Re: validation for multiple statements

2022-08-23 Thread Benchao Li
Egor, Calcite's `SqlValidatorImpl` does not support to validate a statement list now. You can loop over the list by yourself, and validate one query at a time. Egor Ryashin 于2022年8月23日周二 17:23写道: > Hi all, > > I try to use validation with multi-statement AST but it fails when I call > validate(

validation for multiple statements

2022-08-23 Thread Egor Ryashin
Hi all, I try to use validation with multi-statement AST but it fails when I call validate() with NPE about namespace, I wonder how should I set this namespace: NlsString ';' BigDecimal 1 Exception in thread "main" java.lang.NullPointerException: namespace for SELECT ';', scope org.apache.calcit