当我尝试验证包含"CREATE TABLE“的sql语句时,它抛出一个错误: java.lang.AssertionError: Was not expecting value 'CREATE_TABLE' for enumeration 'org.apache.calcite.sql.SqlKind' in this context
at
这是DDL的一个例子-- This is just an example, so please ignore some issues related to a grammar) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='card table'Base = raw_sql_base('ddl.sql
我已经让Apache方解石作为我的应用程序的SQL解析器工作--我正在尝试解析MySQL。但是,它无法处理某些SQL语句。问题似乎与任何包含以"@@“表示的变量的SQL语句有关,因此,如下所示:
SELECT @@session.auto_increment_increment AS auto_increment_increment在解析器中失败。
应用程序在一段时间内工作得很好,经过几次迭代后,由于以下Too many files open问题而无法执行。我确保我的代码中没有文件句柄泄漏,但仍然不确定为什么会发生这个问题?在钻取过程重启前后,我确实使用ulimit -a | wc -l & lsof -a -p <PID> | wc -l检查了unix机器上的文件描述符计数,似乎钻取过程占用了大量的文件描述符。(DrillScanRule.java:38) [drill-java-exec-1.14.0.jar:1.14.0]
at org.apache.