trino-python-client
trino-python-client copied to clipboard
Optimize the experimental python types flag
Optimizes the experimental_python_types flag. Instead of checking the type for each row, check the type once for each fetch() call and compute a list of lambdas which are to be applied to the values from each row.
- A new
RowMapperFactoryclass was created to wrap this behavior. Thecolumnscontent from the status is analyzed and a list of lambda functions is created (one lambda per column) - The
experimental_python_typesflag is now processed in theTrinoQueryclass instead of theTrinoResultclass