-
Notifications
You must be signed in to change notification settings - Fork 32
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
Renaming data types and files #1125
Conversation
@@ -90,7 +90,7 @@ func (s *Store) Append(ctx context.Context, tableData *optimization.TableData, u | |||
return nil | |||
} | |||
|
|||
func (s *Store) PrepareTemporaryTable(ctx context.Context, tableData *optimization.TableData, dwh *types.DwhTableConfig, tempTableID sql.TableIdentifier, _ sql.TableIdentifier, opts types.AdditionalSettings, createTempTable bool) error { | |||
func (s *Store) PrepareTemporaryTable(ctx context.Context, tableData *optimization.TableData, dwh *types.DestinationTableConfig, tempTableID sql.TableIdentifier, _ sql.TableIdentifier, opts types.AdditionalSettings, createTempTable bool) error { |
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.
Renamed DwhTableConfig
-> DestinationTableConfig
@@ -40,7 +40,7 @@ const ( | |||
type Store struct { | |||
// If [auditRows] is enabled, we will perform an additional query to ensure that the number of rows in the temporary table matches the expected number of rows. | |||
auditRows bool | |||
configMap *types.DwhToTablesConfigMap | |||
configMap *types.DestinationTableConfigMap |
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.
Renamed DwhToTablesConfigMap
-> DestinationTableConfigMap
columns: columns.NewColumns(cols), | ||
columnsToDelete: make(map[string]time.Time), | ||
createTable: len(cols) == 0, | ||
dropDeletedColumns: dropDeletedColumns, | ||
} | ||
} | ||
|
||
// SetColumnsToDelete - This is used by tests only | ||
func (d *DwhTableConfig) SetColumnsToDelete(cols map[string]time.Time) { | ||
func (d *DestinationTableConfig) SetColumnsToDeleteForTest(cols map[string]time.Time) { |
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.
Renamed f(x)
if !isOk { | ||
return nil | ||
} | ||
|
||
return tableConfig | ||
} | ||
|
||
func (d *DwhToTablesConfigMap) RemoveTableFromConfig(tableID sql.TableIdentifier) { | ||
func (d *DestinationTableConfigMap) RemoveTable(tableID sql.TableIdentifier) { |
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.
Renamed f(x)
} | ||
|
||
func (d *DwhToTablesConfigMap) AddTableToConfig(tableID sql.TableIdentifier, config *DwhTableConfig) { | ||
func (d *DestinationTableConfigMap) AddTable(tableID sql.TableIdentifier, config *DestinationTableConfig) { |
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.
Renamed f(x)
sync.RWMutex | ||
} | ||
|
||
func (d *DwhToTablesConfigMap) TableConfigCache(tableID sql.TableIdentifier) *DwhTableConfig { | ||
func (d *DestinationTableConfigMap) GetTableConfig(tableID sql.TableIdentifier) *DestinationTableConfig { |
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.
Renamed f(x)
lib/destination/types/types_test.go
Outdated
@@ -15,44 +15,44 @@ import ( | |||
"github.com/stretchr/testify/assert" | |||
) | |||
|
|||
func generateDwhTableCfg() *types.DwhTableConfig { | |||
func generateDwhTableCfg() *types.DestinationTableConfig { |
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.
Want to rename this function too? (nit)
No description provided.