Hi team! We're developing an IO with a type_handle...
# ask-community
d
Hi team! We're developing an IO with a type_handler similar to one created for Snowflake, found here. However, our Dataframe has columns with JSONB values that must be specified in the
dtype
argument in the
<http://dataframe.to|dataframe.to>_sql
function. We don't want to hardcode the
dtype
mapping in the
type_handler
class because that would make its use limited to a specific df. Any ideas on how to pass the
dypte
mapping to the
type_handler
class more dynamically? cc: @Gabriel Montañola
We found a nice way to do this. Using the asset's metada, we could call the dtype mapping from context.metadata.get("dtype_overrides")
g
dagsir