You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It does not yield an error when comparing VARCHAR and integer.
// create local execution contextlet ctx = SessionContext::new();let testdata = datafusion::test_util::arrow_test_data();
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 CSVWITH HEADER ROWLOCATION '{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
The text was updated successfully, but these errors were encountered:
Describe the bug
It does not yield an error when comparing VARCHAR and integer.
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
The text was updated successfully, but these errors were encountered: