Skip to content

[pull] trunk from spiceai:trunk#859

Merged
pull[bot] merged 6 commits into
TheRakeshPurohit:trunkfrom
spiceai:trunk
May 23, 2026
Merged

[pull] trunk from spiceai:trunk#859
pull[bot] merged 6 commits into
TheRakeshPurohit:trunkfrom
spiceai:trunk

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 23, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

lukekim and others added 6 commits May 22, 2026 21:40
* feat: enhance metadata handling for datasets and views with comments

* feat: propagate source comments into metadata

* Enhance metadata handling for MySQL, Postgres, and Snowflake connectors

- Updated MySQL and Postgres connectors to include source type metadata for columns.
- Modified the schema enrichment process to incorporate partition and clustering metadata in Snowflake.
- Refactored field metadata handling to support additional metadata keys across various connectors.
- Improved the ADBC connector to retrieve and store schema metadata, including comments and source types.
- Renamed functions related to metadata enrichment for clarity and consistency.

* refactor: improve formatting and readability of metadata handling in MySQL, Postgres, Snowflake, and ADBC connectors

* refactor: reorganize metadata key imports and improve test assertions for schema validation

* refactor: update metadata handling to use metadata_value_to_string for improved consistency

* feat: retrieve token from token provider in SqlWarehouseApi

* refactor: simplify metadata enrichment by using metadata_enriched_table_provider function

* refactor: streamline metadata retrieval in DatasetBuilder and ViewBuilder

* feat: add data_components and tracing dependencies to MySQL and Postgres connectors

* refactor: streamline MySQL and Postgres metadata handling by utilizing dedicated functions for comment extraction

* feat: introduce metadata module with value serialization functions

* refactor: enhance type definitions for MySQL schema metadata and improve SQLite connection documentation

* refactor: rename ADBC factory field

* fix: preserve federated adaptor pushdown

* perf: avoid cloning field metadata maps

* Fix test

* Properly unwrap MetadataEnrichedTableProvider

* Lint

* Lint

* Lint

---------

Co-authored-by: Viktor Yershov <viktor@spice.ai>
* chbench-driver: Align schema & supplier loader with BenchBase

Aligns `chbench-driver` DDL and supplier data generation with the [BenchBase CH-Benchmark reference](https://github.com/cmu-db/benchbase).

### Schema DDL

- Add `NOT NULL` to all non-PK columns across all 12 tables
- Add `DEFAULT CURRENT_TIMESTAMP` to `c_since`, `h_date`, `o_entry_d`
- Set `ol_delivery_d` to `NULL DEFAULT NULL`, `o_carrier_id` to `DEFAULT NULL`
- `ol_quantity`: `INT` → `DECIMAL(6,2)`
- `n_name`, `r_name`, `su_name`, `su_phone`: `CHAR` → `VARCHAR` (avoids DuckDB/DataFusion trailing-space comparison issues)
- `n_comment`, `r_comment`: add `NOT NULL`

### Supplier loader

- `su_nationkey`: draw from all 62 CH-Benchmark nations (was 25 — left nations 25–61 with zero suppliers)
- `su_acctbal`: 100.00–10,000,000.00 (was −999.99–9,999.99), matching BenchBase `fixedPoint(2, 10000, 1000000000)`
- `n_comment`/`r_comment`: insert `''` instead of `NULL`

* Exclude Q21

* Fix lint

* Report tpmc

* Fix lint
The chat proc was sending messages before confirming the spice chat
process was ready, causing a "spawn id not open" error when the process
exited between responses.
* fix: handle EXISTS/NOT EXISTS subqueries in federation analyzer

* Update

* Update

* Update sha
@pull pull Bot locked and limited conversation to collaborators May 23, 2026
@pull pull Bot added the ⤵️ pull label May 23, 2026
@pull pull Bot merged commit 635c641 into TheRakeshPurohit:trunk May 23, 2026
1 of 11 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants