Skip to content

Commit ea036f5

Browse files
Use the same parser for maxcompute and alisa. (#2510)
1 parent d99bb37 commit ea036f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/parser/external/parser.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ func NewParser(dialect string) (Parser, error) {
3838
return newJavaParser("hive"), nil
3939
case "calcite":
4040
return newJavaParser("calcite"), nil
41-
case "maxcompute":
41+
case "maxcompute", "alisa":
4242
// maxcompute is PHONY parser, java will
4343
// chose odps or calcite according to which
4444
// exists in classpath
4545
return newJavaParser("maxcompute"), nil
46-
case "alisa":
47-
return newJavaParser("odps"), nil
4846
default:
4947
return nil, fmt.Errorf("unrecognized dialect %s", dialect)
5048
}

0 commit comments

Comments
 (0)