Skip to content

fix: Handle parameterized and complex Trino types in type map#6496

Open
falloficaruss wants to merge 2 commits into
feast-dev:masterfrom
falloficaruss:fix/trino-type-map-parameterized-types
Open

fix: Handle parameterized and complex Trino types in type map#6496
falloficaruss wants to merge 2 commits into
feast-dev:masterfrom
falloficaruss:fix/trino-type-map-parameterized-types

Conversation

@falloficaruss

Copy link
Copy Markdown

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

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

Testing Strategy

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

Signed-off-by: Abhishek Shinde <norizzabhii@gmail.com>
@falloficaruss falloficaruss requested a review from a team as a code owner June 11, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TrinoOfflineStore: trino_type_map fails on parameterized and complex types

1 participant