Skip to content

[codex] Add materialized column support#154

Open
rmorehig wants to merge 6 commits into
mainfrom
codex/materialized-column-sdk
Open

[codex] Add materialized column support#154
rmorehig wants to merge 6 commits into
mainfrom
codex/materialized-column-sdk

Conversation

@rmorehig
Copy link
Copy Markdown
Collaborator

@rmorehig rmorehig commented May 12, 2026

Summary

  • add t.*().materialized(expression) for ClickHouse/Tinybird materialized column definitions in generated datasource files
  • emit MATERIALIZED <expression> in generated datasource schemas
  • skip autogenerated JSON paths for materialized columns unless .jsonPath(...) is explicitly set
  • improve live build E2E isolation so each build test uses its own Tinybird branch name and surfaces build API errors clearly

Important note

The live E2E attempt against /v1/build showed the current Tinybird backend rejects this syntax with [raw_logs.datasource] MATERIALIZED columns are not supported. Because of that, this PR keeps coverage at the SDK generator/type level until backend/datafile support exists.

Validation

  • pnpm vitest run src/schema/types.test.ts src/generator/datasource.test.ts
  • pnpm typecheck
  • pnpm test:e2e:live (skipped locally because TINYBIRD_E2E_USER_TOKEN / TINYBIRD_E2E_WORKSPACE_ADMIN_TOKEN are not set)

@rmorehig rmorehig marked this pull request as ready for review May 12, 2026 08:04
Comment thread src/generator/datasource.test.ts
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.

1 participant