Open b-schmeling opened 2 days ago
Hello! this is related to filter pushdown into GDAL (st_read), which is why you don't get the same error with the csv. When we pass filters down we "stringily" the expressions, but It seems like GDAL's SQL-dialect doesn't understand the ::
as a cast operator since it is syntax that DuckDB has inherited from PostgreSQL.
As a workaround for now you can disable the filter pushdown optimizer by running:
pragma disabled_optimizers='filter_pushdown';
If I run the following with the file samsung_sales.xlsx
I receive the error:
The same error occurs even if I explicitly cast the string literal, e.g.:
However, if I run this same SQL with a csv file, e.g. BikeShare.csv it succeeds: