You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a project that is using 'datetime64[ms]' instead of 'datetime64[ns]' so it would be great to add that to the _type_map in query.py in the repo.
if it helps, you could monkey patch the type mapping via:
fromsqlalchemyimporttypesfromsqlalchemy.engineimportEngine, Inspectorfromsqlalchemy.sql.sqltypesimportSTRINGTYPEfromsqlalchemy_dremioimportflight# SqlAlchemy < 2.0 doesn't have a DOUBLE type, but using Float here would be misleading and can be dangerous for the openmetadata usersclassDOUBLE(types.Float):
__visit_name__="DOUBLE"# monkey patching the sql types of sqlalchemy_dremio packageflight._type_map.update({
'double': DOUBLE,
'DOUBLE': DOUBLE,
'CHARACTER VARYING': STRINGTYPE,
'BINARY VARYING': types.LargeBinary,
})
I'm having a project that is using 'datetime64[ms]' instead of 'datetime64[ns]' so it would be great to add that to the _type_map in query.py in the repo.
https://github.com/narendrans/sqlalchemy_dremio/blame/9cf16392ee0e9ca18f241c7d8f2854d9b099162e/sqlalchemy_dremio/query.py#L31
The text was updated successfully, but these errors were encountered: