[MCOL-695] Implement joins between CHAR/VARCHAR and INT columns Created: 2017-05-02 Updated: 2023-07-02 Resolved: 2023-07-02 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | 1.1.0 |
| Fix Version/s: | Icebox |
| Type: | New Feature | Priority: | Major |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | Compatibility | ||
| Issue Links: |
|
||||||||||||||||
| Epic Link: | ColumnStore Compatibility Improvements | ||||||||||||||||
| Description |
|
We need to support joins between CHAR/VARCHAR and INT columns. For example the query in working_tpch1_compareLogOnly/fnJoin/tpch11.sql which fails because we are casting an INT column to a VARCHAR before joining it to an INT column. The error we generate is:
|
| Comments |
| Comment by David Thompson (Inactive) [ 2017-09-13 ] | |
|
An explicit cast can be used to work around this in the mean time, for example:
assuming i1.i is an int column and t1.c is a char/varchar containing number strings that might match. | |
| Comment by Todd Stoffel (Inactive) [ 2020-11-09 ] | |
|
dleeyh Please retest in 5.4.1 | |
| Comment by Daniel Lee (Inactive) [ 2020-11-10 ] | |
|
Build tested: 5.4.3-1 It is still an issue [ubuntu18:root~]# /data/qa/autopilot/databases/dbt3/sh/buildDatabase.sh tpch1 columnstore 1g Welcome to the MariaDB monitor. Commands end with ; or \g. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [tpch1]> select ps_partkey, sum(ps_supplycost * ps_availqty) as value | |
| Comment by Todd Stoffel (Inactive) [ 2023-07-02 ] | |
|
The "create date" on this ticket is pre-convergence with MariaDB server. If the issue still exists in a modern version of the engine/plugin please submit a new ticket. |