Skip to content

Commit

Permalink
chore: Add slt for asserting builtin tables (#2387)
Browse files Browse the repository at this point in the history
If we end up refacting builtin tables, this test just lets us do so
without worrying about if we broke an oid.
  • Loading branch information
scsmithr authored Jan 9, 2024
1 parent f2f1b13 commit bd2587d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions testdata/sqllogictests/catalog/tables.slt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ create schema builtin_tables_test;
statement ok
set search_path = builtin_tables_test;

# Builtin tables must have stable OIDs. If we end up doing refactoring, this
# just gives us confidence nothing broke.
query IIITTTTTT rowsort
select * from glare_catalog.tables;
----
16401 16384 16385 glare_catalog databases t f internal READ_ONLY
16402 16384 16385 glare_catalog tunnels t f internal READ_ONLY
16403 16384 16385 glare_catalog credentials t f internal READ_ONLY
16404 16384 16385 glare_catalog schemas t f internal READ_ONLY
16405 16384 16385 glare_catalog tables t f internal READ_ONLY
16406 16384 16385 glare_catalog views t f internal READ_ONLY
16407 16384 16385 glare_catalog columns t f internal READ_ONLY
16408 16384 16385 glare_catalog functions t f internal READ_ONLY
16409 16384 16385 glare_catalog ssh_keys t f internal READ_ONLY
16410 16384 16385 glare_catalog deployment_metadata t f internal READ_ONLY
16411 16384 16385 glare_catalog cached_external_database_tables t f internal READ_ONLY

statement ok
set enable_debug_datasources to t;

Expand Down

0 comments on commit bd2587d

Please sign in to comment.