Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoyuki Morita <[email protected]>
  • Loading branch information
ykmr1224 committed Sep 17, 2024
1 parent 6c91e11 commit 563e027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public enum FunctionType {
"timestamp",
"tinyint"))
.put(PREDICATE, Set.of("isnan", "isnotnull", "isnull", "regexp", "regexp_like", "rlike"))
.put(CSV, Set.of("from_csv","schema_of_csv","to_csv"))
.put(CSV, Set.of("from_csv", "schema_of_csv", "to_csv"))
.put(
MISC,
Set.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public class GrammarElementValidatorFactory {
UNCACHE_TABLE,
CSV_FUNCTIONS,
MISC_FUNCTIONS,
UDF
)
UDF)
.build();

private static final Set<GrammarElement> S3GLUE_DENY_LIST =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.ResetConfigurationContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.ResetQuotedConfigurationContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.SampleContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.SelectClauseContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.SetConfigurationContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.SetNamespaceLocationContext;
import org.opensearch.sql.spark.antlr.parser.SqlBaseParser.SetNamespacePropertiesContext;
Expand Down Expand Up @@ -464,7 +463,7 @@ public Void visitFunctionName(FunctionNameContext ctx) {

private void validateFunctionAllowed(String function) {
FunctionType type = FunctionType.fromFunctionName(function.toLowerCase());
switch(type) {
switch (type) {
case MAP:
validateAllowed(GrammarElement.MAP_FUNCTIONS);
break;
Expand Down

0 comments on commit 563e027

Please sign in to comment.