[MDEV-27825] PIVOT create not setting default value of the column Created: 2022-02-13 Updated: 2022-05-10 Resolved: 2022-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Mahesh K Renduchintala | Assignee: | Michael Widenius |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When I create a pivot using the following SQL, I do not see that default values are set for the pivot columns. The default value is always 0.
In the above example, W06 values exist in the source table, but not W07. Please check if this is a bug and if there is any workaround. thanks |
| Comments |
| Comment by Sergei Golubchik [ 2022-03-21 ] |
|
what MariaDB version was it? |
| Comment by Anel Husakovic [ 2022-04-11 ] |
|
Do you have null values in order_date column ? |