Skip to content
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

Fixing quesma common table dynamic mapping case, second approach #885

Merged
merged 7 commits into from
Oct 15, 2024

Conversation

pdelewski
Copy link
Contributor

@pdelewski pdelewski commented Oct 14, 2024

This is a second approach (1 - #878) of fixing a problem where mappings contains more fields than ingest and sql queries are based on this knowledge. In this approach we are not altering table to have all fields that were added by dynamic mapping but we based on field origin information and building queries according to that.

image

@pdelewski pdelewski force-pushed the fixing-quesma-common-table-dynamic-mapping-case2 branch 2 times, most recently from 1759962 to 23a61dd Compare October 14, 2024 14:45
@pdelewski pdelewski force-pushed the fixing-quesma-common-table-dynamic-mapping-case2 branch from 23a61dd to 749062d Compare October 14, 2024 14:45
@pdelewski pdelewski marked this pull request as ready for review October 14, 2024 14:50
@pdelewski pdelewski requested a review from a team as a code owner October 14, 2024 14:50
@@ -491,7 +494,10 @@ func (s *SchemaCheckPass) applyFullTextField(indexSchema schema.Schema, query *m

for _, field := range indexSchema.Fields {
if field.Type.IsFullText() {
fullTextFields = append(fullTextFields, field.InternalPropertyName.AsString())
// Take only fields that are ingested
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Got it.

@pdelewski pdelewski added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit 8c93f77 Oct 15, 2024
5 checks passed
@pdelewski pdelewski deleted the fixing-quesma-common-table-dynamic-mapping-case2 branch October 15, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants