-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make sure table locations are unique (#335)
* make sure table locations are unique * locations never have trailing slash * remove cache due to issues with deletions, replace stringy locations by typed locations
- Loading branch information
Showing
26 changed files
with
704 additions
and
420 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
.sqlx/query-0cb7056aecbaaee03d9f305faed446c973acdbd43b81dd19bdd8f76eba12ca69.json
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
.sqlx/query-a72bbdf696c60afc7b544d6ed8d30aeff99f473ab6a35fd5328c11c9f1b4de1d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
.sqlx/query-dd7b5691293ab795857ea5434878dbc2d17b18a377b06c32f2a80aef4c903ee8.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
crates/iceberg-catalog/migrations/20240911094637_unique_tabular_location.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- the old text_pattern_ops index was not useful for our only query which used something like: | ||
-- select 1 from tabular where '123' like location || '%'; | ||
-- so we drop it and create a new btree index instead that we'll use for exact match queries | ||
drop index if exists tabular_location_idx; | ||
create index tabular_namespace_id_location_idx on tabular (namespace_id, location); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.