Skip to content

Commit

Permalink
Change property name from override to tableName
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski committed Nov 6, 2024
1 parent 9b0831a commit 0ed3d8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions quesma/quesma/config/config_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration {
if val, exists := target.properties["useCommonTable"]; exists {
processedConfig.UseCommonTable = val == "true"
}
if val, exists := target.properties["override"]; exists {
if val, exists := target.properties["tableName"]; exists {
processedConfig.Override = val.(string)
}

Expand Down Expand Up @@ -722,7 +722,7 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration {
if val, exists := target.properties["useCommonTable"]; exists {
processedConfig.UseCommonTable = val == true
}
if val, exists := target.properties["override"]; exists {
if val, exists := target.properties["tableName"]; exists {
processedConfig.Override = val.(string)
}
}
Expand Down Expand Up @@ -771,7 +771,7 @@ func (c *QuesmaNewConfiguration) TranslateToLegacyConfig() QuesmaConfiguration {
if val, exists := target.properties["useCommonTable"]; exists {
processedConfig.UseCommonTable = val == true
}
if val, exists := target.properties["override"]; exists {
if val, exists := target.properties["tableName"]; exists {
processedConfig.Override = val.(string)
}
}
Expand Down
2 changes: 1 addition & 1 deletion quesma/quesma/config/index_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
type IndexConfiguration struct {
SchemaOverrides *SchemaConfiguration `koanf:"schemaOverrides"`
Optimizers map[string]OptimizerConfiguration `koanf:"optimizers"`
Override string `koanf:"override"`
Override string `koanf:"tableName"`
UseCommonTable bool `koanf:"useCommonTable"`
Target any `koanf:"target"`

Expand Down
4 changes: 2 additions & 2 deletions quesma/quesma/config/test_configs/target_new_variant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ processors:
"test_override":
target:
- my-clickhouse-data-source:
override: "new_override"
tableName: "new_override"
"*":
target: [ my-minimal-elasticsearch ]

Expand All @@ -65,7 +65,7 @@ processors:
"test_override":
target:
- my-clickhouse-data-source:
override: "new_override"
tableName: "new_override"
"*":
target: [ my-minimal-elasticsearch ]
pipelines:
Expand Down

0 comments on commit 0ed3d8c

Please sign in to comment.