Skip to content

Commit 79afa4d

Browse files
committed
add aggregates, fix LIKE, add BigDecimal scalar
1 parent a3b5887 commit 79afa4d

File tree

7 files changed

+688
-42
lines changed

7 files changed

+688
-42
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
# DuckDB Connector Changelog
22
This changelog documents changes between release tags.
33

4+
## [0.2.0] - 2025-01-15
5+
Implement Aggregates
6+
7+
* Basic Aggregates
8+
* star_count
9+
* single_column
10+
* single_column distinct
11+
12+
* Numeric Aggregates:
13+
* sum
14+
* avg
15+
* max
16+
* min
17+
* stddev
18+
* stddev_samp
19+
* stddev_pop
20+
* variance
21+
* var_samp
22+
* var_pop
23+
24+
* String Aggregates:
25+
* group_concat
26+
* group_concat_distinct
27+
* group_concat_include_nulls
28+
29+
* Previously, LIKE would automatically wrap the string with %% to do a full-text search, now we allow users to use % on their own so LIKE has full functionality.
30+
31+
* Add BigDecimal scalar type for arbitrary precision decimals so aggregation functions like SUM don't overflow
32+
33+
434
## [0.1.8] - 2025-01-15
535
* Enable Aggregates
636

connector-definition/connector-metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
packagingDefinition:
22
type: PrebuiltDockerImage
3-
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.1.8
3+
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.2.0
44
supportedEnvironmentVariables:
55
- name: DUCKDB_URL
66
description: The url for the DuckDB database
77
commands:
88
update:
99
type: Dockerized
10-
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.1.8
10+
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.2.0
1111
commandArgs:
1212
- update
1313
dockerComposeWatch:

generate-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ const determineType = (t: string): string => {
6262
case "VARCHAR":
6363
return "String";
6464
default:
65-
if (t.startsWith("DECIMAL")){
66-
return "Float";
65+
if (t.startsWith("DECIMAL") || t.startsWith("NUMERIC")){
66+
return "BigDecimal";
6767
}
6868
throw new NotSupported("Unsupported type", {});
6969
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "duckdb-sdk",
3-
"version": "0.1.8",
3+
"version": "0.2.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)