Skip to content

Commit

Permalink
add aggregates, fix LIKE, add BigDecimal scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Jan 16, 2025
1 parent a3b5887 commit 79afa4d
Show file tree
Hide file tree
Showing 7 changed files with 688 additions and 42 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
# DuckDB Connector Changelog
This changelog documents changes between release tags.

## [0.2.0] - 2025-01-15
Implement Aggregates

* Basic Aggregates
* star_count
* single_column
* single_column distinct

* Numeric Aggregates:
* sum
* avg
* max
* min
* stddev
* stddev_samp
* stddev_pop
* variance
* var_samp
* var_pop

* String Aggregates:
* group_concat
* group_concat_distinct
* group_concat_include_nulls

* 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.

* Add BigDecimal scalar type for arbitrary precision decimals so aggregation functions like SUM don't overflow


## [0.1.8] - 2025-01-15
* Enable Aggregates

Expand Down
4 changes: 2 additions & 2 deletions connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.1.8
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.2.0
supportedEnvironmentVariables:
- name: DUCKDB_URL
description: The url for the DuckDB database
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.1.8
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.2.0
commandArgs:
- update
dockerComposeWatch:
Expand Down
4 changes: 2 additions & 2 deletions generate-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const determineType = (t: string): string => {
case "VARCHAR":
return "String";
default:
if (t.startsWith("DECIMAL")){
return "Float";
if (t.startsWith("DECIMAL") || t.startsWith("NUMERIC")){
return "BigDecimal";
}
throw new NotSupported("Unsupported type", {});
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duckdb-sdk",
"version": "0.1.8",
"version": "0.2.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 79afa4d

Please sign in to comment.