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 df854cb commit 4656b7aCopy full SHA for 4656b7a
packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.js
@@ -98,6 +98,10 @@ export class DataSchemaCompiler {
98
99
if (getEnv('workerThreadsTranspilation')) {
100
cubeNames = Object.keys(this.cubeDictionary.byId);
101
+ // We need only cubes and all its member names for transpiling.
102
+ // Communication between main and worker threads uses
103
+ // The structured clone algorithm (@see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)
104
+ // which doesn't allow passing any function objects, so we need to sanitize the symbols.
105
cubeSymbolsNames = Object.fromEntries(
106
Object.entries(this.cubeSymbols.symbols)
107
.map(
0 commit comments