forked from opensearch-project/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomoyuki Morita <[email protected]>
- Loading branch information
Showing
16 changed files
with
257 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ jacocoTestCoverageVerification { | |
} | ||
limit { | ||
counter = 'BRANCH' | ||
minimum = 1.0 | ||
minimum = 0.9 | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...core/src/main/java/org/opensearch/sql/spark/validator/DefaultGrammarElementValidator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.spark.validator; | ||
|
||
public class DefaultGrammarElementValidator implements GrammarElementValidator { | ||
@Override | ||
public boolean isValid(GrammarElement element) { | ||
return true; | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
...core/src/main/java/org/opensearch/sql/spark/validator/GrammarElementValidatorFactory.java
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...ore/src/main/java/org/opensearch/sql/spark/validator/GrammarElementValidatorProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.spark.validator; | ||
|
||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import org.opensearch.sql.datasource.model.DataSourceType; | ||
|
||
@AllArgsConstructor | ||
public class GrammarElementValidatorProvider { | ||
|
||
private final Map<DataSourceType, GrammarElementValidator> validatorMap; | ||
private final GrammarElementValidator defaultValidator; | ||
|
||
public GrammarElementValidator getValidatorForDatasource(DataSourceType dataSourceType) { | ||
return validatorMap.getOrDefault(dataSourceType, defaultValidator); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.