Skip to content

Commit 67c78fe

Browse files
committed
reuse yaml transpilation flow for jinja files
1 parent 6b5d4b1 commit 67c78fe

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -762,20 +762,16 @@ export class DataSchemaCompiler {
762762
private async transpileJinjaFile(
763763
file: FileContent,
764764
errorsReport: ErrorReporter,
765-
{ cubeNames, cubeSymbols, contextSymbols, transpilerNames, compilerId, stage }: TranspileOptions
765+
options: TranspileOptions
766766
): Promise<(FileContent | undefined)> {
767-
// if (getEnv('transpilationNative')) {
768-
//
769-
// } else if (getEnv('transpilationWorkerThreads')) {
770-
//
771-
// } else {
772-
return this.yamlCompiler.compileYamlWithJinjaFile(
767+
const renderedFile = this.yamlCompiler.compileYamlWithJinjaFile(
773768
file,
774769
errorsReport,
775770
this.standalone ? {} : this.cloneCompileContextWithGetterAlias(this.compileContext),
776771
this.pythonContext!
777772
);
778-
// }
773+
774+
return this.transpileYamlFile(renderedFile, errorsReport, options);
779775
}
780776

781777
public withQuery(query, fn) {

0 commit comments

Comments
 (0)