Skip to content

Commit

Permalink
feat(jdbc-driver): Upgrade java to ^0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Dec 20, 2023
1 parent 24c850c commit ea54400
Show file tree
Hide file tree
Showing 3 changed files with 223 additions and 42 deletions.
4 changes: 2 additions & 2 deletions packages/cubejs-jdbc-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"sqlstring": "^2.3.0"
},
"optionalDependencies": {
"@cubejs-backend/jdbc": "^0.7.6-1",
"java": "^0.12.1"
"@cubejs-backend/jdbc": "^0.8.0",
"java": "^0.14.0"
},
"license": "Apache-2.0",
"eslintConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1868,12 +1868,15 @@ export class PreAggregationPartitionRangeLoader {
if (!range) {
return;
}

if (range.length !== 2) {
throw new Error(`Date range expected to be an array with 2 elements but ${range} found`);
}

if (typeof range[0] !== 'string' || typeof range[1] !== 'string') {
throw new Error(`Date range expected to be a string array but ${range} found`);
}

if (range[0].length !== 23 || range[1].length !== 23) {
throw new Error(`Date range expected to be in YYYY-MM-DDTHH:mm:ss.SSS format but ${range} found`);
}
Expand Down
Loading

0 comments on commit ea54400

Please sign in to comment.