[MCOL-4538] MCS must be able to join decimal fields with a different scale. Created: 2021-02-12  Updated: 2023-07-01

Status: Open
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 6.1.1
Fix Version/s: Icebox

Type: Task Priority: Minor
Reporter: Roman Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Consider the example:

 

MariaDB [test]> CREATE TABLE cs1 (d1 DECIMAL(38))engine=Columnstore;
Query OK, 0 rows affected (0.388 sec)

MariaDB [test]> CREATE TABLE cs2 (de1 DECIMAL(38,1))engine=Columnstore;
Query OK, 0 rows affected (0.376 sec)

MariaDB [test]> SELECT cs2.de1, cs1.d1 FROM cs1 INNER JOIN cs2 ON cs1.d1 = cs2.de1 ORDER BY 1;
ERROR 1815 (HY000): Internal error: IDB-1002: 'cs1' and 'cs2' have incompatible column type specified for join condition.
}
MDB is able to join using columns with unequal scales.


Generated at Thu Feb 08 02:51:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.