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

Improve query verification by adding semantic analyzer #201

Merged

Conversation

dai-chen
Copy link
Member

@dai-chen dai-chen commented Sep 30, 2019

Issue #, if available: #151, #82

Description of changes: This PR covers the second part of query verification improvement which include several parts:

  1. Semantic analyzer: consists of Semantic Context and Type System.
  2. Parse tree visitor: drive the entire analysis process.
  3. UT and IT: new test cases.
  4. Fix broken IT: found quite a few bad IT. fixed them to pass IT.

The majority of code changes is completed though there are still some to-do items: skip semantic check in unit test, add scope checking, performance impact etc. Sending out this PR to get some feedback earlier.

For reviewers: please read docs/dev/SemanticAnalysis.md before looking into this big PR. The design doc is not complete yet but should give you many context for the code review.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@penghuo penghuo left a comment

Choose a reason for hiding this comment

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

LGTM

@dai-chen dai-chen merged commit 5034571 into opendistro-for-elasticsearch:master Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants