From 58c6674008037d69673db8e239704f5a0b218e95 Mon Sep 17 00:00:00 2001 From: brightcoder01 Date: Mon, 22 Jun 2020 11:40:23 +0800 Subject: [PATCH] Use the same parser for maxcompute and alisa. --- pkg/parser/external/parser.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/parser/external/parser.go b/pkg/parser/external/parser.go index 810f08a393..59110e7612 100644 --- a/pkg/parser/external/parser.go +++ b/pkg/parser/external/parser.go @@ -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) }