Stepan Pilschikov created IGNITE-9453:
-----------------------------------------

             Summary: REST: UUID column type displayed like byte array
                 Key: IGNITE-9453
                 URL: https://issues.apache.org/jira/browse/IGNITE-9453
             Project: Ignite
          Issue Type: Bug
          Components: rest
    Affects Versions: 2.5
            Reporter: Stepan Pilschikov


Case:
- Create table with uuid
{code:sql}
CREATE TABLE test(id int primary key, field varchar2(50), uuid UUID)
{code}
- Execute `select * from test` query with rest
{code:bash}
curl 
"http://localhost:8080/ignite?cmd=qryfldexe&pageSize=10&cacheName=SQL_PUBLIC_TEST&qry=select%20%2A%20from%20test%3B";
{code}

Actual:
{code:json}
{
    "successStatus": 0,
    "sessionToken": null,
    "error": null,
    "response": {
        "items": [],
        "last": true,
        "fieldsMetadata": [
            {
                "schemaName": "PUBLIC",
                "typeName": "TEST",
                "fieldName": "ID",
                "fieldTypeName": "java.lang.Integer"
            },
            {
                "schemaName": "PUBLIC",
                "typeName": "TEST",
                "fieldName": "FIELD",
                "fieldTypeName": "java.lang.String"
            },
            {
                "schemaName": "PUBLIC",
                "typeName": "TEST",
                "fieldName": "UUID",
                "fieldTypeName": "[B"
            }
        ],
        "queryId": 0
    }
}
{code}

Expected:
uuid was displayed somehow but not "[B"



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to