Skip to content

Commit b70db64

Browse files
authored
Merge pull request #6702 from keboola/zajca/DMD-1048/export-timezone
feat: add configurable timezone for Snowflake table export
2 parents 202c1a2 + 9bff523 commit b70db64

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

apiary.apib

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3415,6 +3415,7 @@ will show information about the created file and caching:
34153415
+ csv - CSV file
34163416
+ parquet - Parquet file
34173417
+ Default: csv
3418+
+ timezone (optional, string) - IANA timezone name (e.g. `America/Los_Angeles`, `Europe/Prague`). When set, Snowflake session timezone is configured before export, affecting TIMESTAMP_LTZ column display. Not supported for Parquet exports. Available only for Snowflake backend.
34183419
34193420
+ Request (application/json)
34203421
+ Headers
@@ -3443,6 +3444,7 @@ will show information about the created file and caching:
34433444
"format": "rfc",
34443445
"whereFilters": [],
34453446
"fileType": "csv",
3447+
"timezone": null
34463448
},
34473449
"queue": "main_fast"
34483450
},

src/Keboola/StorageApi/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,7 @@ private function prepareExportOptions(array $options)
17711771
'fulltextSearch',
17721772
'includeInternalTimestamp',
17731773
'fileType',
1774+
'timezone',
17741775
];
17751776

17761777
$filteredOptions = array_intersect_key($options, array_flip($allowedOptions));

0 commit comments

Comments
 (0)