AssHero commented on code in PR #2721: URL: https://github.com/apache/arrow-datafusion/pull/2721#discussion_r902404072
########## datafusion/core/src/physical_plan/hash_join.rs: ########## @@ -1054,6 +1110,116 @@ fn equal_rows( DataType::LargeUtf8 => { equal_rows_elem!(LargeStringArray, l, r, left, right, null_equals_null) } + DataType::Decimal(_, lscale) => match r.data_type() { Review Comment: I create two tables in datafusion ❯ describe t1; +-------------+----------------+-------------+ | column_name | data_type | is_nullable | +-------------+----------------+-------------+ | c1 | Decimal(10, 2) | NO | +-------------+----------------+-------------+ select * from t1; +------+ | c1 | +------+ | 1.00 | +------+ ❯ describe t2; +-------------+----------------+-------------+ | column_name | data_type | is_nullable | +-------------+----------------+-------------+ | c1 | Decimal(10, 4) | NO | +-------------+----------------+-------------+ select * from t2; +--------+ | c1 | +--------+ | 1.0000 | +--------+ this query gets 0 rows select * from t1 join t2 on t1.c1 = t2.c1; 0 rows in set. Query took 0.005 seconds. but this query gets one row select * from t1 join t2 on t1.c1::decimal(10,4) = t2.c1; +------+--------+ | c1 | c1 | +------+--------+ | 1.00 | 1.0000 | +------+--------+ Does the planner still not converts the data types between left and right for decimal ? If so, perhaps we can add this to planner. please let me know if I miss something? thanks! -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org