Skip to content

Commit cea6fa1

Browse files
committed
fix preprocessYamlSqlMultilineValues
1 parent ebaca9b commit cea6fa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ export class YamlCompiler {
348348
}
349349

350350
private preprocessYamlSqlMultilineValues(yamlContent: string): string {
351-
// Convert all folded scalars (sql: >) to literal scalars
351+
// Convert all folded scalars (sql: >) to literal scalars (sql: |)
352352
// to preserve SQL formatting including comments and whitespace
353353
return yamlContent.replace(
354-
/(\s+(?:sql|sqlTable):\s*)>/g,
354+
/(\s+sql:\s*)>/g,
355355
'$1|'
356356
);
357357
}

0 commit comments

Comments
 (0)