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

Legacy fall back with JSON format #237

Merged
merged 40 commits into from
Mar 17, 2023
Merged

Conversation

GumpacG
Copy link

@GumpacG GumpacG commented Mar 2, 2023

NOTE

Actions are expected to fail as the migration of tests will be part of a separate PR.
Jacoco will fail on OpenSearchExecutionEngine and will be fixed in the parent PR as there may be improvements that can be done.

Description

JSON implementation comes from PR #217.
JSON format for V2 does not support and falls back to legacy for the following:

  • Cast
  • Literals
  • Aggregation in group by
  • In memory operations
  • Hints

TODO before being able to merge to upstream main:

  • DateFormatIT. and

  • DateFormatIT. equalTo

  • DateFormatIT. greaterThan

  • DateFormatIT. greaterThanOrEqualTo

  • DateFormatIT. lessThan

  • DateFormatIT. lessThanOrEqualTo

  • DateFormatIT. or

  • DateFormatIT. sortByDateFormat

  • QueryFunctionsIT. wildcardQuery (Dependent on PR #1314)

  • QueryIT. dateBetweenSearch

  • QueryIT. dateSearch

  • QueryIT. selectAllWithFieldAndOrderBy

  • QueryIT. selectAllWithFieldReturnsAll

  • QueryIT. selectAllWithFieldReverseOrder

  • QueryIT. selectAllWithMultipleFields

  • QueryIT. inTest (mismatch with legacy result due to lack of score function. Can be ignored for now as score implementation is in progress)

  • QueryIT. notLikeTests (mismatch with legacy result due to lack of score function. Can be ignored for now as score implementation is in progress)

Issues Resolved

opensearch-project#1317

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@GumpacG GumpacG requested a review from a team March 2, 2023 00:49

if (!isJsonSupported) {
throw new UnsupportedOperationException(
"Queries with aggregation and in memory operations (cast, literals, alias, math, etc.)"

Choose a reason for hiding this comment

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

Curious what of these are supported in legacy engine with JSON format?

Copy link
Author

Choose a reason for hiding this comment

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

All of those are supported in legacy because they are pushed down.

Choose a reason for hiding this comment

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

For slightly better error messaging, throw the errors in JsonSupportAnalyzer and you can say what type of functions are unsupported as the node visitor reaches an unsupported node.

Copy link
Author

Choose a reason for hiding this comment

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

I've made each unsupported node visitor throw the exception in 74f88ae. Thanks!

@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #237 (3335354) into dev-v2-json-support (c4395d6) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@                    Coverage Diff                    @@
##             dev-v2-json-support     #237      +/-   ##
=========================================================
+ Coverage                  98.30%   98.39%   +0.09%     
- Complexity                  3691     3713      +22     
=========================================================
  Files                        344      346       +2     
  Lines                       9125     9164      +39     
  Branches                     585      588       +3     
=========================================================
+ Hits                        8970     9017      +47     
+ Misses                       150      142       -8     
  Partials                       5        5              
Flag Coverage Δ
sql-engine 98.39% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rg/opensearch/sql/analysis/JsonSupportVisitor.java 100.00% <100.00%> (ø)
...search/sql/analysis/JsonSupportVisitorContext.java 100.00% <100.00%> (ø)
...c/main/java/org/opensearch/sql/sql/SQLService.java 100.00% <100.00%> (ø)
.../org/opensearch/sql/sql/antlr/SQLSyntaxParser.java 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@GumpacG GumpacG force-pushed the dev-v2-json-support branch from 6e16fcc to 682110f Compare March 3, 2023 22:55
margarit-h and others added 17 commits March 3, 2023 14:56
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
…format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@GumpacG GumpacG force-pushed the dev-json-fallback branch from 20a17a0 to f7c5ee6 Compare March 3, 2023 22:57
GumpacG and others added 5 commits March 3, 2023 15:06
…format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@GumpacG GumpacG mentioned this pull request Mar 6, 2023
6 tasks
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@@ -32,4 +32,9 @@ public ParseTree parse(String query) {
return parser.root();
}

public boolean containsHints(String query) {

Choose a reason for hiding this comment

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

Longer term, we want to return hints... not whether the parser contains hints.
Maybe, return the whole list now and check the conditional hintsParser.root().getChildCount() > 1 in the calling function.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Changed this in 74f88ae

import org.opensearch.sql.ast.tree.Filter;
import org.opensearch.sql.ast.tree.Project;

public class JsonSupportAnalyzer extends AbstractNodeVisitor<Boolean, Object> {

Choose a reason for hiding this comment

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

JsonSupportNodeVisitor? I'm not sure why we call things "analyzers" when they're node visitors.

Choose a reason for hiding this comment

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

<Boolean, Object> doesn't seem correct, but I suppose we don't really have a ned for a context yet, nor a return type (which is usually a Plan or OptimizedTree.
If the purpose of the node visitor is just to find unsupported nodes, then I suppose this is fine but we should include a javadoc comment that details this.

Choose a reason for hiding this comment

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

Longer term, we may consider using this to return a JSON object or a tree that can be turned into a JSON object.
We can remove the Boolean return type if we throw Exceptions in the node visitors.
If not, we should be returning Boolean types, not boolean types. Example, Boolean.TRUE.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Changed this in 74f88ae and 6785f23.
I've made each unsupported node visitor throw an exception so there is no more use for return type boolean. However The abstract class requires a return type so I left it as Boolean.


if (!isJsonSupported) {
throw new UnsupportedOperationException(
"Queries with aggregation and in memory operations (cast, literals, alias, math, etc.)"

Choose a reason for hiding this comment

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

For slightly better error messaging, throw the errors in JsonSupportAnalyzer and you can say what type of functions are unsupported as the node visitor reaches an unsupported node.

GumpacG added 2 commits March 7, 2023 08:55
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

@Test
public void canThrowUnsupportedExceptionForFunctionJsonQuery() {
sqlService.execute(

Choose a reason for hiding this comment

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

This block of code is common to all the tests, isn't it? They only differ in query sent.

Can you put it in a utility method that's call by the tests?

You can make it even more compact by creating a parameterized test that takes a list of sql statement to test.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, changed in e0e2365. Please let me know if you had something else in mind.

Copy link

@MaxKsyunz MaxKsyunz left a comment

Choose a reason for hiding this comment

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

Are there unit tests for JsonSupportVisitor class?

A lot of it is flagged as lacking test coverage.

@MaxKsyunz
Copy link

Also, DCO check is failing, these changes will need to be squashed before going to upstream.

@GumpacG GumpacG marked this pull request as draft March 8, 2023 14:18
GumpacG added 3 commits March 9, 2023 15:01
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@GumpacG
Copy link
Author

GumpacG commented Mar 10, 2023

Are there unit tests for JsonSupportVisitor class?

A lot of it is flagged as lacking test coverage.

Added in 232196d

@GumpacG
Copy link
Author

GumpacG commented Mar 10, 2023

Also, DCO check is failing, these changes will need to be squashed before going to upstream.

Thanks for the heads up. I'm hoping to squash and merge and have DCO check pass then.

@GumpacG GumpacG marked this pull request as ready for review March 10, 2023 20:26
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
* Unsupported features in V2 are ones the produce results that differ from
* legacy results.
*/
public class JsonSupportVisitor extends AbstractNodeVisitor<Boolean, JsonSupportVisitorContext> {
Copy link
Author

Choose a reason for hiding this comment

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

Change type to Void and only throw exceptions.

Copy link
Author

Choose a reason for hiding this comment

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

Addressed in c2cb0f3

Copy link

@GabeFernandez310 GabeFernandez310 left a comment

Choose a reason for hiding this comment

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

Looks fine to me so far, but I'll wait until you address what we talked about this morning before approving.

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@GumpacG
Copy link
Author

GumpacG commented Mar 13, 2023

Looks fine to me so far, but I'll wait until you address what we talked about this morning before approving.

Addressed in c2cb0f3

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@@ -30,7 +30,7 @@
@RequiredArgsConstructor
public class SQLService {

private final SQLSyntaxParser parser;
private final SQLSyntaxParser parser;sq

Choose a reason for hiding this comment

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

Typo?

Suggested change
private final SQLSyntaxParser parser;sq
private final SQLSyntaxParser parser;

Copy link
Author

Choose a reason for hiding this comment

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

Yes. Fixed in 9233d7c. Thanks

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
@GumpacG GumpacG merged commit 4eb0618 into dev-v2-json-support Mar 17, 2023
GumpacG added a commit that referenced this pull request Mar 18, 2023
* Implement json support for V2 engine

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Reverted some changes

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Removed some fields

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* minor fix

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Added a unit test, cleaned up

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Returning raw OpenSearch response when type is json

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Add an integration test, fix checkstyle errors

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>


---------

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Fixed checkstyle errors

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments and fixed the visitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added comment to visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments to improve visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests for JsonSupportVisitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added helper function for SQLServiceTest

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added expected failures

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Reworked the visitor class to have type Void instead of Boolean

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Fixed typo

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added github link for tracking issue

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

---------

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Co-authored-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Co-authored-by: MaxKsyunz <maxk@bitquilltech.com>
GumpacG added a commit that referenced this pull request Mar 18, 2023
* Implement json support for V2 engine

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Reverted some changes

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Removed some fields

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* minor fix

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Added a unit test, cleaned up

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Returning raw OpenSearch response when type is json

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Add an integration test, fix checkstyle errors

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>


---------

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Fixed checkstyle errors

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments and fixed the visitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added comment to visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments to improve visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests for JsonSupportVisitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added helper function for SQLServiceTest

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added expected failures

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Reworked the visitor class to have type Void instead of Boolean

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Fixed typo

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added github link for tracking issue

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

---------

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Co-authored-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Co-authored-by: MaxKsyunz <maxk@bitquilltech.com>
GumpacG added a commit that referenced this pull request Mar 23, 2023
* Implement json support for V2 engine

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Reverted some changes

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Removed some fields

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* minor fix

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Added a unit test, cleaned up

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Returning raw OpenSearch response when type is json

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Add an integration test, fix checkstyle errors

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Added constructor for empty rawResponse

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added constant for supported formats

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit test

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments:

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Fixed issue

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added getter for rawResponse in PhysicalPlan

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Legacy fall back with JSON format (#237)

* Implement json support for V2 engine

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Reverted some changes

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Removed some fields

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* minor fix

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Added a unit test, cleaned up

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Returning raw OpenSearch response when type is json

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Add an integration test, fix checkstyle errors

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Made new engine fallback to legacy for in memory operations for json format

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Address build failures

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Added legacy fall back

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Refactored fall back logic to use visitor design pattern

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR feedback

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unnecessary context

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added fall back for Filter functions

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>


---------

Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>

* Fixed checkstyle errors

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments and fixed the visitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added comment to visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Addressed PR comments to improve visitor class

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit tests for JsonSupportVisitor

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added helper function for SQLServiceTest

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added expected failures

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Reworked the visitor class to have type Void instead of Boolean

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Fixed typo

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added github link for tracking issue

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

---------

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Co-authored-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Co-authored-by: MaxKsyunz <maxk@bitquilltech.com>

* Reverted OpenSearchIndexScan changes as it broke IT

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Added unit test

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

* Removed unused Mock variable

Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>

---------

Signed-off-by: Margarit Hakobyan <margarit.hakobyan@improving.com>
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
Signed-off-by: MaxKsyunz <maxk@bitquilltech.com>
Co-authored-by: Guian Gumpac <guian.gumpac@improving.com>
Co-authored-by: MaxKsyunz <maxk@bitquilltech.com>
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.

7 participants