[Apache Calcite] 允许使用未定义的sql函数

296 阅读1分钟

 

org.apache.calcite.sql.validate.SqlValidator.Config#withLenientOperatorLookup

设置为true

 

 SqlValidator.Config.DEFAULT.withSqlConformance(calciteConnectionConfig.conformance())
                .withTypeCoercionEnabled(true).withLenientOperatorLookup(true);