Skip to content

Commit

Permalink
Use the same parser for maxcompute and alisa. (#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
brightcoder01 authored Jun 22, 2020
1 parent d99bb37 commit ea036f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/parser/external/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ func NewParser(dialect string) (Parser, error) {
return newJavaParser("hive"), nil
case "calcite":
return newJavaParser("calcite"), nil
case "maxcompute":
case "maxcompute", "alisa":
// maxcompute is PHONY parser, java will
// chose odps or calcite according to which
// exists in classpath
return newJavaParser("maxcompute"), nil
case "alisa":
return newJavaParser("odps"), nil
default:
return nil, fmt.Errorf("unrecognized dialect %s", dialect)
}
Expand Down

0 comments on commit ea036f5

Please sign in to comment.