You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Fix resolving indices when tables are auto-discovered (#765)
Users who haven't specified any table configurations aren't able to
create data views today.
1. Because `_resolve` endpoint relies on schema registry, which - as
turned out - has never been populated when the index configuration has
been missing.
2. Because `_field_caps` were **not** routed properly.
`matchedAgainstPattern` did rely only on config, not on schema registry,
so it couldn't route queries to auto discovered tables. Therefore,
timestamp field list has not been expanding and data view could not have
been created.
This PR addresses both issues.
**How it works now:**
<img width="1173" alt="image"
src="https://github.com/user-attachments/assets/5845efb1-ecc1-4d56-86d0-1438c9cb888e">
Copy file name to clipboardExpand all lines: quesma/quesma/source_resolver.go
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import (
6
6
"quesma/elasticsearch"
7
7
"quesma/logger"
8
8
"quesma/quesma/config"
9
+
"quesma/schema"
9
10
"quesma/util"
10
11
"slices"
11
12
"strings"
@@ -18,7 +19,7 @@ const (
18
19
sourceNone="none"
19
20
)
20
21
21
-
funcResolveSources(indexPatternstring, cfg*config.QuesmaConfiguration, im elasticsearch.IndexManagement) (string, []string, []string) {
22
+
funcResolveSources(indexPatternstring, cfg*config.QuesmaConfiguration, im elasticsearch.IndexManagement, sr schema.Registry) (string, []string, []string) {
22
23
ifelasticsearch.IsIndexPattern(indexPattern) {
23
24
matchesElastic:= []string{}
24
25
matchesClickhouse:= []string{}
@@ -29,6 +30,13 @@ func ResolveSources(indexPattern string, cfg *config.QuesmaConfiguration, im ela
0 commit comments