Qihoo360 / Quicksql

A Flexible, Fast, Federated(3F) SQL Analysis Middleware for Multiple Data Sources
https://quicksql.readthedocs.io
MIT License
2.06k stars 583 forks source link

[BUG] testParseSingleBdNameAndTableNameWithError in tableNameCollectorTest is not as expected #280

Open IcePigZDB opened 2 years ago

IcePigZDB commented 2 years ago

Versions

eg: 99b77fbac300b739d6383832273544bb09aa8396

Describe the bug

Current error parameter in validateTableName can not throw exception in case of A.A.A, see testParseSingleBdNameAndTableNameWithError and testParseSingleBdNameAndTableNameWithError2.

To Reproduce

Steps to reproduce the behavior:

  1. Go to TableNameCollectorTest
  2. Dubug on testParseSingleBdNameAndTableNameWithError
  3. You will find no exception throw, I think it's not as expected.

Expected behavior

Throw exception.

Actual behavior

No exception. Because there is no exception, so it pass these two tests luckily.

Additional context

截图_选择区域_20220711121158