In the docs for the python Snowflake connector, it says that setting the connection parameter converter_class when creating the connection object can be used to suppress conversion to python types (leaves data as strings). But I see no difference between queries run with the following two connections (using snowflake-connector-python=2.7.0):
from snowflake.connector.converter_null import SnowflakeNoConverterToPython
DBH1 = snowflake.connector.connect(
user='username',
password='password',
account='account',
converter_class=SnowflakeNoConverterToPython # why isn't this working?
)
DBH2 = snowflake.connector.connect(
user='username',
password='password',
account='account'
)
Queries executed from both DBH1 and DBH2 return timestamps as python datetime objects, and not strings. I noticed that in the doc on snowflake.connector parameters, there is no mention of a converter_class option - this trick is only listed in the "optimizing data pulls" section here: https://docs.snowflake.com/en/user-guide/python-connector-example.html#improving-query-performance-by-bypassing-data-conversion. Is it possible that this feature has been dropped without cleaning up the doc?