issues
search
apecloud
/
myduckserver
MySQL & Postgres Analytics, Reimagined
187
stars
9
forks
source link
chore: enhance the logic for pure query checks
#80
Closed
GaoYusong
closed
2 months ago
GaoYusong
commented
2 months ago
Removed the trick of checking
database()
function and made it explicit. The trick can lead to false positives, e.g., subqueries could be reduced.
Changed
len(tables) > 0
to check if there are data tables (tables in DuckDB).
Walk through subquery nodes to check for nested tables.
database()
function and made it explicit. The trick can lead to false positives, e.g., subqueries could be reduced.len(tables) > 0
to check if there are data tables (tables in DuckDB).