Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter table on demand is expensive #3498

Closed
fengjiachun opened this issue Mar 13, 2024 · 0 comments
Closed

Alter table on demand is expensive #3498

fengjiachun opened this issue Mar 13, 2024 · 0 comments

Comments

@fengjiachun
Copy link
Collaborator

What type of enhancement is this?

Performance

What does the enhancement do?

Every time we need to check if a new column needs to be added, we have to traverse all columns. While the schema usually remains unchanged, these checks are necessary. Maybe caching and hashing will be helpful to reduce the overhead of these checks.

let add_columns = extract_new_columns(&table.schema(), column_exprs)

Implementation challenges

No response

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

No branches or pull requests

1 participant