[MCOL-3570] Type convertion problems columnstore Created: 2019-10-21 Updated: 2023-03-06 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ExeMgr, PrimProc |
| Affects Version/s: | 1.1.7, 1.2.5, 5.5.1, 6.1.1 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Minor |
| Reporter: | Matthias Dr. Döring | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hello, the SELECT at the end of the example below provides wrong NULL values as result for Best regards DROP TABLE IF EXISTS fact; INSERT INTO fact VALUES CREATE OR REPLACE VIEW v_fact_primary AS CREATE OR REPLACE VIEW v_fact_secondary AS SELECT CAST(SUM(v2) AS CHAR(100)) AS s2, – not working |
| Comments |
| Comment by Roman [ 2021-03-03 ] |
|
Looks like MDB optimizes the query replacing CAST(SUM(v2) AS CHAR(100)) AS s2 with a constant '0' that CAST and CONVERT can't process properly. |