Skip to content

Commit

Permalink
Fix query for validate if table is hypertable or not
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Helia <patashelia@gmail.com>
  • Loading branch information
Patrik Helia authored and JamesGuthrie committed Oct 11, 2023
1 parent fad985a commit 1d596aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/schemamanagement/ts/schema_explorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ const (
FROM information_schema.columns
WHERE table_schema = $1 AND table_name = $2;`
isHypertableQueryTemplate = `SELECT EXISTS (
SELECT 1
FROM timescaledb_information.hypertable
WHERE table_schema = $1 AND table_name=$2)`
SELECT 1 FROM _timescaledb_catalog.hypertable
WHERE schema_name = $1 AND table_name=$2)`
hypertableDimensionsQueryTemplate = `SELECT column_name, column_type
FROM _timescaledb_catalog.dimension d
JOIN _timescaledb_catalog.hypertable h ON d.hypertable_id = h.id
Expand Down

0 comments on commit 1d596aa

Please sign in to comment.