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

[ElasticSearch] Fix for #1521 #1526

Merged
merged 1 commit into from Jan 16, 2017
Merged

[ElasticSearch] Fix for #1521 #1526

merged 1 commit into from Jan 16, 2017

Conversation

adamlwgriffiths
Copy link
Contributor

@adamlwgriffiths adamlwgriffiths commented Jan 16, 2017

The merge from #1521 fixed the invalid variable error
but it fixed in in a way that introduced another error:
"dictionary changed size during iteration".
The correct way to apply the fix is to add a new mappings
dict which takes the result schema.

These errors crept through because of caching. I believed I was testing the code but I was actually inspecting cached query results and cached schemas. My apologies for this.

The merge from #1521 fixed the invalid variable error
but it fixed in in a way that introduced another error:
"dictionary changed size during iteration"
This correctly applies the fix.
@adamlwgriffiths adamlwgriffiths changed the title Fix for #1521 [ElasticSearch] Fix for #1521 Jan 16, 2017
@arikfr arikfr merged commit 8d1b5b4 into getredash:master Jan 16, 2017
@arikfr
Copy link
Member

arikfr commented Jan 16, 2017

Thanks!

@arikfr
Copy link
Member

arikfr commented Jan 16, 2017

We should really add tests to the ES parser. Will help in future refactors :)

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