Skip to content

Commit 478c6c6

Browse files
committed
fix(athena-driver): TypeError: Cannot read property 'map' of undefined
1 parent 7e437a6 commit 478c6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-athena-driver/driver/AthenaDriver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AthenaDriver extends BaseDriver {
3737
async query(query, values) {
3838
const queryString = applyParams(
3939
query,
40-
values.map(s => (typeof s === 'string' ? {
40+
(values || []).map(s => (typeof s === 'string' ? {
4141
toSqlString: () => SqlString.escape(s).replace(/\\\\([_%])/g, '\\$1').replace(/\\'/g, '\'\'')
4242
} : s))
4343
);

0 commit comments

Comments
 (0)