Skip to content

Commit 904cf17

Browse files
committed
fix: "Illegal input character" when using originalSql pre-aggregation with BigQuery and USER_CONTEXT
Fixes #197
1 parent 41b644c commit 904cf17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/adapter/BaseQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ class BaseQuery {
15111511
const propValue = target[name];
15121512
const methods = (paramValue) => ({
15131513
filter: (column) => {
1514-
if (paramValue) {
1514+
if (paramValue && !this.safeEvaluateSymbolContext().originalSqlPreAggregation) {
15151515
const value = Array.isArray(paramValue) ?
15161516
paramValue.map(this.paramAllocator.allocateParam.bind(this.paramAllocator)) :
15171517
this.paramAllocator.allocateParam(paramValue);

0 commit comments

Comments
 (0)