Skip to content

Re-order the columns in the auto-created DuckDB view to have the indexed column first - #390

Merged
phillipleblanc merged 2 commits into
spiceaifrom
phillip/250714-order-index-column
Jul 14, 2025
Merged

Re-order the columns in the auto-created DuckDB view to have the indexed column first#390
phillipleblanc merged 2 commits into
spiceaifrom
phillip/250714-order-index-column

Conversation

@phillipleblanc

Copy link
Copy Markdown
Collaborator

Re-orders the columns in the view that is automatically created to have any single-column indexes with their columns appearing first. This is a workaround for duckdb/duckdb#17290 (comment)

Comment thread src/duckdb/creator.rs
@phillipleblanc
phillipleblanc merged commit c2307be into spiceai Jul 14, 2025
2 of 3 checks passed
@phillipleblanc
phillipleblanc deleted the phillip/250714-order-index-column branch July 14, 2025 14:10
phillipleblanc added a commit that referenced this pull request Jul 21, 2025
mach-kernel added a commit that referenced this pull request Jul 21, 2025
* Revert "Re-order the columns in the auto-created DuckDB view to have the indexed column first (#390)"

This reverts commit c2307be.

* Use DuckDB with fixed index scan

* add primary key tests

* use correct commit

* clippy/unused fns

---------

Co-authored-by: David Stancu <david@spice.ai>
krinart pushed a commit to krinart/datafusion-table-providers that referenced this pull request Jul 23, 2025
* Revert "Re-order the columns in the auto-created DuckDB view to have the indexed column first (datafusion-contrib#390)"

This reverts commit c2307be.

* Use DuckDB with fixed index scan

* add primary key tests

* use correct commit

* clippy/unused fns

---------

Co-authored-by: David Stancu <david@spice.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants