Replies: 3 comments 11 replies
-
Hello does this |
Beta Was this translation helpful? Give feedback.
-
Ultimately the current answer for this (whilst not perfect) is to subclass the |
Beta Was this translation helpful? Give feedback.
-
If this still interesting for someone, I solve the problem by using resolvers using kedro v0.19.7. settings.py file: from sqlalchemy.dialects.oracle import FLOAT
from sqlalchemy.types import Float
CONFIG_LOADER_ARGS = {
"base_env": "base",
"default_run_env": "local",
"custom_resolvers": {
"sqlalchemyfloat": lambda: Float(precision=53).with_variant(FLOAT(binary_precision=126), 'oracle')
} And then using in the catalog like this: dtype:
your_float_column: ${sqlalchemyfloat:} |
Beta Was this translation helpful? Give feedback.
-
Hello! First off - this is the first issue I have yet to be able to find an answer for in the excellent kedro documentation. Kudos for that!
The project that I'm working on is a personal learning project to load world factbook data and make it quantifiable.
I have an issue where I am defining a SqlTableDataSet in my catalog. I want one of the columns to be a postgresql jsonb data type. I have defined the DataCatalog entry as:
In the dataframe, I have tried both a
dict
andjson.dumps(dict)
representation of the data. However, no matter the type ofethnic_groups
nor the sqlalchemy type that I supply seems to work. The error that I receive is:lib versions:
I would appreciate any help in understanding how to configure dtype in the catalog correctly.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions