Open hashhar opened 5 months ago
Today the Python client fails with an error when returning MAP columns with ARRAY, MAP or ROW keys.
See the tests added in https://github.com/trinodb/trino-python-client/pull/441 for the behavior.
Using legacy_primitive_types=True is able to return the data but in a non-standard format and requires user to reverse-engineer how Trino serialized the column.
legacy_primitive_types=True
Note that the JDBC driver doesn't work with such columns either at the moment.
Describe the feature
Today the Python client fails with an error when returning MAP columns with ARRAY, MAP or ROW keys.
See the tests added in https://github.com/trinodb/trino-python-client/pull/441 for the behavior.
Describe alternatives you've considered
Using
legacy_primitive_types=True
is able to return the data but in a non-standard format and requires user to reverse-engineer how Trino serialized the column.Note that the JDBC driver doesn't work with such columns either at the moment.
Are you willing to submit PR?