Skip to content

Commit

Permalink
[Fix] SqlDialect DEFAULT requires capitalization (#3277)
Browse files Browse the repository at this point in the history
* [Fix] sqlDialect "DEFAULT" requires capitalization
  • Loading branch information
ChengJie1053 authored Oct 24, 2023
1 parent a8abc4a commit 47f50ee
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
*/
package org.apache.streampark.flink.core

import org.apache.streampark.common.Constant
import org.apache.streampark.common.enums.FlinkSqlValidationFailedType
import org.apache.streampark.common.util.{ExceptionUtils, Logger, Utils}
import org.apache.streampark.common.util.{ExceptionUtils, Logger}
import org.apache.streampark.flink.core.SqlCommand._

import org.apache.calcite.config.Lex
Expand Down Expand Up @@ -84,7 +83,7 @@ object FlinkSqlValidator extends Logger {
.getOrElse(Class.forName(FLINK113_PLUS_CALCITE_PARSER_CLASS))
sqlDialect.toUpperCase() match {
case "HIVE" =>
case Constant.DEFAULT =>
case "DEFAULT" =>
val parser = calciteClass
.getConstructor(Array(classOf[Config]): _*)
.newInstance(sqlParserConfigMap(sqlDialect.toUpperCase()))
Expand Down

0 comments on commit 47f50ee

Please sign in to comment.