Skip to content

Commit 4c0fef7

Browse files
authored
fix(snowflake-driver): Set date/timestamp format for exporting data to CSV export bucket (cube-js#9810)
* fix tsc build * fix(snowflake-driver): Set date/timestamp format for exporting data to CSV export bucket
1 parent 7a91a66 commit 4c0fef7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/YamlCompiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class YamlCompiler {
9494
return;
9595
}
9696

97-
const yamlObj = YAML.load(file.content);
97+
const yamlObj: any = YAML.load(file.content);
9898
if (!yamlObj) {
9999
return;
100100
}

packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ export class SnowflakeDriver extends BaseDriver implements DriverInterface {
715715
FILE_FORMAT: '(' +
716716
'TYPE = CSV, ' +
717717
'COMPRESSION = GZIP, ' +
718+
'DATE_FORMAT = \'YYYY-MM-DD\', ' +
719+
'TIMESTAMP_FORMAT = \'YYYY-MM-DD"T"HH24:MI:SS.FF3TZH:TZM\', ' +
718720
'FIELD_OPTIONALLY_ENCLOSED_BY = \'"\'' +
719721
')',
720722
};

0 commit comments

Comments
 (0)