class_docstr: Enumeration of valid SQL compatibility modes.
  
  In most of the cases, the built-in compatibility mode should be sufficient. For some features,
  i.e. the "INSERT INTO T PARTITION(a='xxx') ..." grammar, you may need to switch to the
  Hive dialect if required.
  
  We may introduce other SQL dialects in the future.
  
  :data:`DEFAULT`:
  
  Flink's default SQL behavior.
  
  :data:`HIVE`:
  
  SQL dialect that allows some Apache Hive specific grammar.
  
  Note: We might never support all of the Hive grammar. See the documentation for
  supported features.
class_docstr_tok: ["Enumeration","of","valid","SQL","compatibility","modes",".","In","most","of","the","cases",",","the","built-in","compatibility","mode","should","be","sufficient",".","For","some","features",",","i.e",".","the","``","INSERT","INTO","T","PARTITION","(","a='xxx","'",")","...","''","grammar",",","you","may","need","to","switch","to","the","Hive","dialect","if","required",".","We","may","introduce","other","SQL","dialects","in","the","future",".",":","data",":","`","DEFAULT","`",":","Flink","'s","default","SQL","behavior",".",":","data",":","`","HIVE","`",":","SQL","dialect","that","allows","some","Apache","Hive","specific","grammar",".","Note",":","We","might","never","support","all","of","the","Hive","grammar",".","See","the","documentation","for","supported","features","."]
code: def _from_j_sql_dialect(j_sql_dialect):
      gateway = get_gateway()
      JSqlDialect = gateway.jvm.org.apache.flink.table.api.SqlDialect
      if j_sql_dialect == JSqlDialect.DEFAULT:
          return SqlDialect.DEFAULT
      elif j_sql_dialect == JSqlDialect.HIVE:
          return SqlDialect.HIVE
      else:
          raise Exception(
              "Unsupported Java SQL dialect: %s" % j_sql_dialect
          )
  
imports: from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 1 for calling the SqlDialect obj's underlying member method code with example usage: obj._from_j_sql_dialect(j_sql_dialect) and returns: SqlDialect, SqlDialect