Skip to content

Commit 7eb02f5

Browse files
authored
fix(databricks-jdbc-driver): Return NULL as NULL instead of false for boolean (#6791)
1 parent 5da7562 commit 7eb02f5

File tree

13 files changed

+92
-58
lines changed

13 files changed

+92
-58
lines changed

packages/cubejs-jdbc-driver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"sqlstring": "^2.3.0"
3232
},
3333
"optionalDependencies": {
34-
"@cubejs-backend/jdbc": "^0.7.6",
34+
"@cubejs-backend/jdbc": "^0.7.6-1",
3535
"java": "^0.12.1"
3636
},
3737
"license": "Apache-2.0",

packages/cubejs-testing-drivers/fixtures/_schemas.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@
211211
"name": "profit",
212212
"sql": "profit",
213213
"type": "number"
214+
},
215+
{
216+
"name": "returning",
217+
"sql": "returning",
218+
"type": "boolean"
214219
}
215220
],
216221
"measures": [

packages/cubejs-testing-drivers/fixtures/athena.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery",
100100
"querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test",
101101
"querying BigECommerce: partitioned pre-agg",
102-
"querying BigECommerce: null sum"
102+
"querying BigECommerce: null sum",
103+
"querying BigECommerce: null boolean"
103104
]
104105
}

packages/cubejs-testing-drivers/fixtures/bigquery.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"querying ECommerce: partitioned pre-agg",
116116
"querying ECommerce: partitioned pre-agg higher granularity",
117117
"querying BigECommerce: partitioned pre-agg",
118-
"querying BigECommerce: null sum"
118+
"querying BigECommerce: null sum",
119+
"querying BigECommerce: null boolean"
119120
]
120121
}

packages/cubejs-testing-drivers/fixtures/clickhouse.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"querying ECommerce: partitioned pre-agg",
119119
"querying ECommerce: partitioned pre-agg higher granularity",
120120
"querying BigECommerce: partitioned pre-agg",
121-
"querying BigECommerce: null sum"
121+
"querying BigECommerce: null sum",
122+
"querying BigECommerce: null boolean"
122123
]
123124
}

packages/cubejs-testing-drivers/fixtures/mssql.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena",
108108
"querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery",
109109
"querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test",
110-
"querying BigECommerce: null sum"
110+
"querying BigECommerce: null sum",
111+
"querying BigECommerce: null boolean"
111112
]
112113
}

packages/cubejs-testing-drivers/fixtures/mysql.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"querying ECommerce: partitioned pre-agg",
103103
"querying ECommerce: partitioned pre-agg higher granularity",
104104
"querying BigECommerce: partitioned pre-agg",
105-
"querying BigECommerce: null sum"
105+
"querying BigECommerce: null sum",
106+
"querying BigECommerce: null boolean"
106107
]
107108
}

packages/cubejs-testing-drivers/fixtures/postgres.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
"querying ECommerce: partitioned pre-agg",
9999
"querying ECommerce: partitioned pre-agg higher granularity",
100100
"querying BigECommerce: partitioned pre-agg",
101-
"querying BigECommerce: null sum"
101+
"querying BigECommerce: null sum",
102+
"querying BigECommerce: null boolean"
102103
]
103104
}

packages/cubejs-testing-drivers/fixtures/snowflake.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
"querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- rounding in athena",
111111
"querying ECommerce: total sales, total profit by month + order (date) + total -- doesn't work with the BigQuery",
112112
"querying ECommerce: total quantity, avg discount, total sales, total profit by product + order + total -- noisy test",
113-
"querying BigECommerce: null sum"
113+
"querying BigECommerce: null sum",
114+
"querying BigECommerce: null boolean"
114115
]
115116
}

packages/cubejs-testing-drivers/src/dataset.ts

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)