-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
shared.CreateTable
vs using AlterTableArgs
@@ -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()...) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shared.CreateTable
vs using AlterTableArgs
AlterTableArgs
@@ -75,7 +75,6 @@ type AlterTableArgs struct { | |||
// ContainsOtherOperations - this is sourced from tableData `containOtherOperations` | |||
ContainOtherOperations bool | |||
TableID sql.TableIdentifier | |||
CreateTable bool |
There was a problem hiding this comment.
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
shared.CreateTable
AlterTableArgs