diff --git a/quesma/quesma/config/config_v2.go b/quesma/quesma/config/config_v2.go index 571cf5682..b919153c9 100644 --- a/quesma/quesma/config/config_v2.go +++ b/quesma/quesma/config/config_v2.go @@ -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) } @@ -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) } } @@ -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) } } diff --git a/quesma/quesma/config/index_config.go b/quesma/quesma/config/index_config.go index d5980cf5c..9b8b04046 100644 --- a/quesma/quesma/config/index_config.go +++ b/quesma/quesma/config/index_config.go @@ -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"` diff --git a/quesma/quesma/config/test_configs/target_new_variant.yaml b/quesma/quesma/config/test_configs/target_new_variant.yaml index 47142a43a..8f907518a 100644 --- a/quesma/quesma/config/test_configs/target_new_variant.yaml +++ b/quesma/quesma/config/test_configs/target_new_variant.yaml @@ -43,7 +43,7 @@ processors: "test_override": target: - my-clickhouse-data-source: - override: "new_override" + tableName: "new_override" "*": target: [ my-minimal-elasticsearch ] @@ -65,7 +65,7 @@ processors: "test_override": target: - my-clickhouse-data-source: - override: "new_override" + tableName: "new_override" "*": target: [ my-minimal-elasticsearch ] pipelines: