Skip to content

[ISSUE] Issue with getting the Genie query result data in the ResultData DTO #424

@koffieislekker

Description

@koffieislekker

Description
I am trying to call this service thorugh the SDK:
https://docs.databricks.com/api/workspace/genie/getmessageattachmentqueryresult
I am using this call to achieve that
workspaceClient.genie().getMessageQueryResult(spaceId, conversationId, messageId);

When I call the method I do get a response but the json returned from databricks is different than the one mentioned on the website. In the result (as seen below) the data result are stored in "data_typed_array". I checked the ResultData class but there it only mentions data_array which can not be found in my genie response.

Reproduction
Start a conversation
workspaceClient.genie().startConversation(spaceId, message.getContent());

Get the message query results
workspaceClient.genie().getMessageQueryResult(spaceId, conversationId, messageId);

Expected behavior
I expect to see the data that can be seen in the JSON response from databricks inside the DTO.

Is it a regression?
I only tried it in version 0.42.0, but will check older versions as well just in case.

Debug Logs
2025-03-26T09:55:31.233+01:00 DEBUG 26820 --- [***-genie] [nio-8080-exec-1] com.databricks.sdk.core.ApiClient : > GET /api/2.0/genie/spaces/MYSPACEID/conversations/MYCONVERSATIONID/messages/MYMESSAGEID/query-result 200 OK { "statement_response" : { "manifest" : { "chunks" : [ { "byte_count" : 432, "chunk_index" : 0, "row_count" : 27, "row_offset" : 0 } ], "format" : "SOME_ARRAY_FORMAT", "schema" : { "column_count" : 1, "columns" : [ { "name" : "Barcode", "position" : 0, "type_name" : "INT", "type_text" : "INT" } ] }, "total_byte_count" : 432, "total_chunk_count" : 1, "total_row_count" : 27, "truncated" : false }, "result" : { "chunk_index" : 0, "data_typed_array" : [ { "values" : [ { "str" : "10510" } ] }, { "values" : [ { "str" : "11103" } ] }, { "values" : [ { "str" : "11113" } ] }, { "values" : [ { "str" : "10605" } ] }, { "values" : [ { "str" : "11108" } ] }, { "values" : [ { "str" : "11316" } ] }, { "values" : [ { "str" : "10116" } ] }, { "values" : [ { "str" : "11008" } ] }, { "values" : [ { "str" : "11308" } ] }, { "values" : [ { "str" : "11312" } ] }, { "values" : [ { "str" : "10908" } ] }, { "values" : [ { "str" : "11110" } ] }, { "values" : [ { "str" : "11405" } ] }, { "values" : [ { "str" : "11105" } ] }, { "values" : [ { "str" : "10108" } ] }, { "values" : [ { "str" : "10310" } ] }, { "values" : [ { "str" : "10305" } ] }, { "values" : [ { "str" : "10905" } ] }, { "values" : [ { "str" : "11305" } ] }, { "values" : [ { "str" : "10205" } ] }, { "values" : [ { "str" : "11005" } ] }, { "values" : [ { "str" : "10705" } ] }, { "values" : [ { "str" : "10405" } ] }, { "values" : [ { "str" : "10505" } ] }, { "values" : [ { "str" : "10105" } ] }, { "values" : [ { "str" : "11205" } ] }, { "values" : [ { "str" : "10805" } ] } ], "row_count" : 27, "row_offset" : 0 }, "statement_id" : "some statement id", "status" : { "state" : "SUCCEEDED" } } }

Other Information

  • OS: Windows
  • Version: 11

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions