Closed kamal-1 closed 4 years ago
In theory, you may run queries altering session parameters prior to IMPORT:
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD'; -- set format
ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD HH24:MI:SS.FF6'; -- set format
, but it's not recommended.
The good idea is to update the code of your "iterable" or wrap it into another "iterable" and change text format to valid timestamp value which can be parsed by default Exasol format.
Thanks for the response @wildraid. I'll update the iterable to have timestamp represented in correct format. One request - Can you please let me know all the attributes of the dictionary import_params?
Full list is documented here: https://github.com/badoo/pyexasol/blob/master/docs/HTTP_TRANSPORT.md#parameters
It roughly follows native parameter names for IMPORT / EXPORT.
Thanks!
I am trying to use the import_from_iterable functionality but getting an error for the timestamp format. Is there a way to specify the timestamp format similar when using import_from_iterable function? I tried searching through the docs but didn't find any example for that.