Skip to content

Complete dynamic index querying for DuckDB (#1163)#1294

Open
Elshaarawy-1 wants to merge 2 commits intosqlancer:mainfrom
Elshaarawy-1:fix/1163-duckdb-index-query
Open

Complete dynamic index querying for DuckDB (#1163)#1294
Elshaarawy-1 wants to merge 2 commits intosqlancer:mainfrom
Elshaarawy-1:fix/1163-duckdb-index-query

Conversation

@Elshaarawy-1
Copy link

Background

PR #1171 by @ahmed-kamal2004 implemented getIndexes() but had a bug where it filtered by
SQLancer's database name ("duckdb0") instead of DuckDB's actual name
("memory" in in-memory mode). This caused empty results and index name
collisions.

Changes

Commit 1: Adopted initial implementation from PR #1171

  • Added DuckDBSchema.getIndexes()
  • Queries duckdb_indexes() system table

Commit 2: Fixed the bug

  • Removed DATABASE_NAME filter (SQLancer tests single database)
  • Verified no more index collisions in in-memory mode

Testing

Ran SQLancer with DuckDB - index names now properly tracked.

Fixes #1163

Remove DATABASE_NAME filter to fix index collision bug.
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.

Query index information for DuckDB dynamically

1 participant