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

[DDL] More refactor around AlterTableArgs #1040

Merged
merged 9 commits into from
Nov 15, 2024
Merged

[DDL] More refactor around AlterTableArgs #1040

merged 9 commits into from
Nov 15, 2024

Conversation

Tang8330
Copy link
Contributor

@Tang8330 Tang8330 commented Nov 14, 2024

  1. Creating tables is all going through shared.CreateTable
  2. Removed the create table functionality from AlterTableArgs

@Tang8330 Tang8330 changed the title [DDL] Create Table [DDL] Moving create table to call shared.CreateTable vs using AlterTableArgs Nov 14, 2024
@@ -25,6 +25,6 @@ func CreateTable(ctx context.Context, dwh destination.DataWarehouse, tableData *
}

// Update cache with the new columns that we've added.
tc.MutateInMemoryColumns(true, constants.Add, tableData.ReadOnlyInMemoryCols().GetColumns()...)
tc.MutateInMemoryColumns(false, constants.Add, tableData.ReadOnlyInMemoryCols().GetColumns()...)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been false to begin with. I'm going to put up another PR to remove this flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Tang8330 Tang8330 marked this pull request as ready for review November 14, 2024 05:53
@Tang8330 Tang8330 requested a review from a team as a code owner November 14, 2024 05:53
@Tang8330 Tang8330 changed the title [DDL] Moving create table to call shared.CreateTable vs using AlterTableArgs [DDL] More refactor around AlterTableArgs Nov 14, 2024
@Tang8330 Tang8330 mentioned this pull request Nov 14, 2024
@@ -75,7 +75,6 @@ type AlterTableArgs struct {
// ContainsOtherOperations - this is sourced from tableData `containOtherOperations`
ContainOtherOperations bool
TableID sql.TableIdentifier
CreateTable bool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the ability to create table in this function

@Tang8330 Tang8330 merged commit 9e9d904 into master Nov 15, 2024
3 checks passed
@Tang8330 Tang8330 deleted the alter-table branch November 15, 2024 19:14
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.

2 participants