Skip to content

SQL alias#4304

Open
Shubham8287 wants to merge 58 commits intomasterfrom
shub/alias
Open

SQL alias#4304
Shubham8287 wants to merge 58 commits intomasterfrom
shub/alias

Conversation

@Shubham8287
Copy link
Contributor

@Shubham8287 Shubham8287 commented Feb 16, 2026

Description of Changes

  • : Store "accessor"s names in ModuleDef (for tables, columns, and indexes for now) and pass them to TableSchema as aliases.

  • Create accessor system tables for each of them: st_table_accessor,st_column_accessor, st_index_accessor

  • Update the SQL parsing logic to also consider alias names.

Alias name stored will be same as actual names until we merge #4263

API and ABI breaking changes

NA

Expected complexity level and risk

3

This patch updates SQL name resolution which isn't a very complex change since table and column name resolution are each handled by their own helper method.

It also adds new system tables which need to be handle correctly during restore/replay. We do have regression tests for this that should catch any incorrect handling or missing steps.

I would say the main risk is that we don't populate cached table and column schemas with the alias/accessor name. Regression tests have been added to catch this, but there are edge cases around migrations and replay that currently aren't covered.

Testing

Added SQL smoketests that use canonical/accessor table/column names. They currently fail because we're currently using the accessor name for both. They should pass once this is updated.

@Shubham8287 Shubham8287 changed the title add alias field in schema && accesor in Defs SQL alias Feb 16, 2026
@Shubham8287 Shubham8287 mentioned this pull request Feb 16, 2026
2 tasks
@Shubham8287 Shubham8287 changed the base branch from shub/table-name-to-accessor to master February 17, 2026 05:48
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.

4 participants