metesynnada opened a new issue, #5414:
URL: https://github.com/apache/arrow-datafusion/issues/5414
**Describe the bug**
It does not yield an error when comparing VARCHAR and integer.
```rust
ctx.sql(&format!(
"CREATE EXTERNAL TABLE aggregate_test_100 (
c1 VARCHAR NOT NULL,
c2 TINYINT NOT NULL,
c3 SMALLINT NOT NULL,
c4 SMALLINT NOT NULL,
c5 INTEGER NOT NULL,
c6 BIGINT NOT NULL,
c7 SMALLINT NOT NULL,
c8 INT NOT NULL,
c9 INT UNSIGNED NOT NULL,
c10 BIGINT UNSIGNED NOT NULL,
c11 FLOAT NOT NULL,
c12 DOUBLE NOT NULL,
c13 VARCHAR NOT NULL
)
STORED AS CSV
WITH HEADER ROW
LOCATION '{testdata}/csv/aggregate_test_100.csv'"
))
.await?;
let df = ctx.sql( "SELECT c1, c2 FROM aggregate_test_100
WHERE c1 < 10").await?;
assert!(df.collect().await.is_err());
```
**To Reproduce**
Use the code above in a test.
**Expected behavior**
Error throw. In PostgreSQL: `Query Error: error: operator does not exist:
character varying < integer`
**Additional context**
NA
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]