[MCOL-2234] VARBINARY in InnoDB is truncated on 0x00 byte when joining with ColumnStore Created: 2019-03-12 Updated: 2023-03-06 Resolved: 2023-03-06 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | N/A |
| Affects Version/s: | 1.2.2 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Michal Chomo | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | beginner-friendly | ||
| Environment: |
Ubuntu 18.04 64-bit |
||
| Description |
|
Server version: 10.3.11-MariaDB-log Columnstore 1.2.2-1 Steps to replicate:
|
| Comments |
| Comment by Roman [ 2019-03-13 ] | |||||||||||||
|
Greetings, | |||||||||||||
| Comment by Roman [ 2019-03-13 ] | |||||||||||||
|
The external ip_address.ip_addr internal representation is a string and it is 0x4700d120 When CrossEngineStep::setField() get into Row::setStringField() CS incorrectly detects a length of std::string taking the null byte as a end of the string. | |||||||||||||
| Comment by Michal Chomo [ 2019-03-13 ] | |||||||||||||
|
Hi Roman, thank you very much for such a quick response. Regarding your second comment, inet6_ntoa() actually works fine even in join with CS if the address doesn't contain null bytes. Example with the same tables as in the description:
| |||||||||||||
| Comment by Roman [ 2019-03-14 ] | |||||||||||||
|
GTK. Many thanks for this important detail. We will look into this bug | |||||||||||||
| Comment by Todd Stoffel (Inactive) [ 2023-03-06 ] | |||||||||||||
|
This ticket was opened prior to convergence with the server. It may have been rendered obsolete. If this issue still exists in a modern version, please open a new request. |