Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7
-
None
-
None
-
Docs Required
Description
When ones run a SQL statement, like SELECT Id FROM MyTable, the value is "garbled" returning a value like 8\00\05\07\09\0d\09\08\0-\0 for the the Id column. It's similar to the expected value, though, which is 80579d98-9010-4610-b12e-ed33ed7d3c62.
When SQLLine tool is used, the values are not "garbled". This behaviour can be only observed on Linux.
It might have something to do with UTF-16 due to a similar SO question where characters are separated with a \0.
Maybe something to do with the UNICODE setting in this line from the ODBC logs
More info can be found on SO: https://stackoverflow.com/questions/55875927/apache-ignite-2-7-odbc-linux-bad-data-returned
Reproducer instructions (in attachment)
Build
docker build . -t ignitegarbleddatareproducer -f IgniteGarbledDataReproducer/Dockerfile
Execute
PS C:\IgniteGarbledDataReproducer> docker-compose up Starting ignitegarbleddatareproducer_ignitegarbleddatareproducer_1 ... done Attaching to ignitegarbleddatareproducer_ignitegarbleddatareproducer_1 ignitegarbleddatareproducer_1 | START ignitegarbleddatareproducer_1 | DRIVER={Apache Ignite};ADDRESS=my-ignite-3e8b8cb9a4e192af.elb.us-east-1.amazonaws.com:10800;SSL_MODE=disable; ignitegarbleddatareproducer_1 | Connection Opened ignitegarbleddatareproducer_1 | DROP TABLE IF EXISTS MyTable; ignitegarbleddatareproducer_1 | Table Dropped (if it existed) ignitegarbleddatareproducer_1 | CREATE TABLE MyTable (Id varchar(36) not null, FirstName varchar(255), LastName varchar(255), PRIMARY KEY (Id)); ignitegarbleddatareproducer_1 | Table Created ignitegarbleddatareproducer_1 | INSERT INTO MyTable (Id) VALUES ('80579d98-9010-4610-b12e-ed33ed7d3c62'); ignitegarbleddatareproducer_1 | Data Inserted ignitegarbleddatareproducer_1 | SELECT Id FROM MyTable; ignitegarbleddatareproducer_1 | Id = '8 0 5 7 9 d 9 8 - ' ignitegarbleddatareproducer_1 | Data Returned ignitegarbleddatareproducer_1 | DONE ignitegarbleddatareproducer_ignitegarbleddatareproducer_1 exited with code 0