Skip to content

fix: preserve TimeSeries defaults with parser v1.0.1 - #247

Merged
orian merged 1 commit into
mainfrom
fix/parser-v1.0.1-timeseries
Sep 8, 2026
Merged

fix: preserve TimeSeries defaults with parser v1.0.1#247
orian merged 1 commit into
mainfrom
fix/parser-v1.0.1-timeseries

Conversation

@orian

@orian orian commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Bump github.com/orian/clickhouse-sql-parser to v1.0.1 and normalize the known default TimeSeries target suffix before parsing. The new parser accepts engine-only targets, bypassing the old parse-error fallback and causing introspection to reject otherwise supported SHOW CREATE output. Normalizing first preserves the existing representation of auto-generated defaults without schema drift.

Extend regression coverage to verify escaped tag mappings, absent default targets, no drift against the equivalent bare declaration, and rejection of unsupported custom targets rather than silently discarding them.

Closes #246.

Validation:

  • go test ./internal/... ./cmd/... ./test
  • go mod verify
  • go vet ./...
  • git diff --check

Live ClickHouse tests were not run.

@orian
orian merged commit 171d6fe into main Sep 8, 2026
16 checks passed
@orian
orian deleted the fix/parser-v1.0.1-timeseries branch September 8, 2026 12:16
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.

introspect: TimeSeries default targets fail with sql-parser v1.0.1

1 participant