matthias_gey
09/10/2023, 8:48 PM"TypeError: Invalid argument(s) 'json_serializer','json_deserializer' sent to create_engine(), using configuration TeradataDialect/SingletonThreadPool/Engine. Please check that the keyword arguments are appropriate for this combination of components."
I could get the teradata-target functioning by overriding the create_engine method by uncommenting these two parameters (see below).
Can someone tell me what is the purpose of these two attributes? Also, Can you suggest if overriding the create_engine class is somewhat problematic?
Any help is warmly appreciated 🙂
def create_engine(self) -> Engine:
return sqlalchemy.create_engine(
self.sqlalchemy_url,
echo=False
# The json_serializer and json_deserializer potperties are apparently not supported in the sqlalchemy dialect of teradata
# overiding class to remove those
#json_serializer=self.serialize_json,
#json_deserializer=self.deserialize_json,
)
edgar_ramirez_mondragon
09/11/2023, 12:31 AMmatthias_gey
09/12/2023, 7:09 PMmatthias_gey
09/12/2023, 9:05 PMedgar_ramirez_mondragon
09/12/2023, 9:24 PM