Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Disable access to the field keyword in the new SQL engine. #1019

Closed
penghuo opened this issue Jan 28, 2021 · 0 comments
Closed

Disable access to the field keyword in the new SQL engine. #1019

penghuo opened this issue Jan 28, 2021 · 0 comments
Labels
Breaking Changes Breaking Changes that will impact clients SQL

Comments

@penghuo
Copy link
Contributor

penghuo commented Jan 28, 2021

In the legacy engine, the following query is workable

SELECT firstname.keyword FROM

In the new engine, we the query will throw Semantic Exception because

  1. Customer should not aware of the keyword, the query engine should expanded it automatically.
  2. firstname.keyword is not the valid field in the symbol table/mapping. In DSL, firstname.keyword can't be used directly when select fields. {"from":0,"size":200,"timeout":"1m","_source":{"includes":["firstname.keyword"],"excludes":[]}}
@penghuo penghuo added Breaking Changes Breaking Changes that will impact clients SQL labels Jan 28, 2021
@penghuo penghuo closed this as completed Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Breaking Changes Breaking Changes that will impact clients SQL
Projects
None yet
Development

No branches or pull requests

1 participant