diff --git a/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java b/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java index 2198532..d8451fa 100644 --- a/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java +++ b/core/src/main/java/com/qihoo/qsql/plan/TableNameCollector.java @@ -190,7 +190,7 @@ private void visitBasicCall(SqlBasicCall sqlCall) { private QueryTables validateTableName(QueryTables tableNames) { for (String tableName : tableNames.tableNames) { - if (tableName.split("\\.", -1).length > 3) { + if (tableName.split("\\.", -1).length > 2) { throw new ParseException("Qsql only support structure like dbName.tableName," + " and there is a unsupported tableName here: " + tableName); }