Hi Calcite Community,
Thanks for your attention. After failing self-helping by debug source code, i
sent this email for your help. :)
My query SQL is `SELECT count(*) a FROM test`, and i called JDBC interface,
i.e, `ResultSet.getMetaData().getTableName(1)` to get table name, i.e, test,
however the result of which is null.
I traced the process and found that if !(selectItem instanceof SqlIdentifier)
then return null in `SqlValidatorImpl.java`. Is there any way to get the real
table name, i.e, test?
Thanks in advance,
Trista
Juan Pan (Trista)
Senior DBA & PPMC of Apache ShardingSphere(Incubating)
E-mail: [email protected]