예제 #1
0
    def get_sql_dialect(self):
        """
        Returns the current SQL dialect.

        :rtype: SqlDialect
        """
        return SqlDialect._from_j_sql_dialect(self._j_table_config.getSqlDialect())
예제 #2
0
    def set_sql_dialect(self, sql_dialect):
        """
        Sets the current SQL dialect to parse a SQL query. Flink's SQL behavior by default.

        :param sql_dialect: The given SQL dialect.
        :type sql_dialect: SqlDialect
        """
        self._j_table_config.setSqlDialect(SqlDialect._to_j_sql_dialect(sql_dialect))