01-19-2026 05:42 AM
I have a Databricks app that makes calls to Genie API, it successfully returns a response containing the text response and the generated SQL query. However, the actual result of the SQL query is missing, in the result object, there is the metadata for the result but the data array is None.
result=ResultData(byte_count=None, chunk_index=0, data_array=None, external_links=[], next_chunk_index=None, next_chunk_internal_link=None, row_count=1, row_offset=0)
When I inspect in monitoring, there is also no SQL result whereas if I use the exact same prompt in the Genie web interface then there is a result (As shown in the attached screenshots).
Any idea of the issue here?
01-20-2026 07:36 PM - edited 01-20-2026 07:38 PM
Can you inspect data_typed_array if data_array is None.
02-02-2026 08:46 AM
Hello,
You can use the Genie statement_id and the Statement Execution API to retrieve the SQL result set, then read result.result.data_array to build your DataFrame.
A working example is provided in the Databricks Apps Cookbook: https://apps-cookbook.dev/docs/dash/bi/genie_api/
Hope this helps!
03-08-2026 11:26 AM