Skip to content

Commit

Permalink
Fixing error message to avoid user confusion (#1222)
Browse files Browse the repository at this point in the history
We still use `Override` internally, however in config there is
`tableName`

```
processors:
  - name: my-query-processor
    type: quesma-v1-processor-query
    config:
      indexes:
        kibana_sample_data_ecommerce:
          target: [ my-clickhouse-data-source ]
          tableName: "kibana_sample_data_ecommerce_ext"
```

This PR updates property name according to configuration and
documentation
  • Loading branch information
pdelewski authored Jan 23, 2025
1 parent 3dcf336 commit 6f0cfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quesma/quesma/config/config_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (c *QuesmaNewConfiguration) validatePipelines() error {
continue
}
if queryIndexConf.Override != ingestIndexConf.Override {
return fmt.Errorf("ingest and query processors must have the same configuration of 'Override' for index '%s' due to current limitations", indexName)
return fmt.Errorf("ingest and query processors must have the same configuration of 'tableName' for index '%s' due to current limitations", indexName)
}
if queryIndexConf.UseCommonTable != ingestIndexConf.UseCommonTable {
return fmt.Errorf("ingest and query processors must have the same configuration of 'useCommonTable' for index '%s' due to current limitations", indexName)
Expand Down

0 comments on commit 6f0cfbb

Please sign in to comment.