feast icon indicating copy to clipboard operation
feast copied to clipboard

fix: Handle parameterized and complex Trino types in type map

Open falloficaruss opened this issue 5 months ago • 0 comments

What this PR does / why we need it:

Fixes trino_type_map.py to properly handle parameterized Trino types (e.g., varchar(10), decimal(10,2)) and complex types (array(...), row(...), map(...)). Previously, \w+ regex in array(...) parsing, missing type map entries for varbinary/json/int/char(...), and unhandled row(...)/map(...) caused AttributeError, KeyError, or UnboundLocalError at runtime during schema introspection.

Which issue(s) this PR fixes:

Fixes #6489

Checks

  • [x] I've made sure the tests are passing.
  • [x] My commits are signed off (git commit -s)
  • [x] My PR title follows conventional commits format

Testing Strategy

  • [x] Unit tests
  • [x] Integration tests
  • [x] Manual tests
  • [ ] Testing is not required for this change

falloficaruss avatar Jun 11 '26 01:06 falloficaruss