We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39162a commit af9247bCopy full SHA for af9247b
packages/cubejs-schema-compiler/src/compiler/YamlCompiler.ts
@@ -155,6 +155,10 @@ export class YamlCompiler {
155
ast = t.booleanLiteral(code);
156
} else if (typeof code === 'number') {
157
ast = t.numericLiteral(code);
158
+ } else if (code instanceof Date) {
159
+ // Special case when dates are defined in YAML as strings without quotes
160
+ // YAML parser treats them as Date objects, but for conversion we need them as strings
161
+ ast = this.parsePythonAndTranspileToJs(`f"${this.escapeDoubleQuotes(code.toISOString())}"`, errorsReport);
162
}
163
164
if (ast === null) {
0 commit comments