CTE/WITH .. UNION ALL confuses name resolution in WHERE #1509
Labels
bug
Something isn't working
datafusion
Changes in the datafusion crate
help wanted
Extra attention is needed
Describe the bug
A construction like:
..gives the error:
Explicitly specifying
where x.a
gives the same error, so that is resolving correctly?Writing the query as
where baz.a=1
instead gives:To Reproduce
Steps to reproduce the behavior:
Expected behavior
I believe
SELECT a FROM x WHERE a=1
should function as if x was a single table containing a column nameda
, as shown in non-filtered select in the reproduction steps above.Additional context
This isn't something to do with memory tables; it happens to my Parquet EXTERNAL tables too.
The error messaging here isn't great for my parquet files, which already use dotted notation, like
select "address.line1" from address
, now we have "address.address.line1".The text was updated successfully, but these errors were encountered: