forked from databricks/databricks-sql-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix issue 147: BUG with reading table that contains copied map (d…
…atabricks#149) Issue with reading a table with a MAP column, but only when the table was created by copying an existing table. The bug was caused by an indexing issue when reading map values from an arrow batch. The occurrence of the bug was dependent on the configuration of batches the result set was broken down into. Added a new test using the arrow batch returned in the error scenario. Also fixed an existing test that had been masking this bug.
- Loading branch information
Showing
3 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"status": { | ||
"statusCode": "SUCCESS_STATUS" | ||
}, | ||
"operationHandle": { | ||
"operationId": { | ||
"guid": "Ae4qWOAZGPWte+TeoMZC2w==", | ||
"secret": "M41SnYJyRuuEgstBlGaDnQ==" | ||
}, | ||
"operationType": "EXECUTE_STATEMENT", | ||
"hasResultSet": true | ||
}, | ||
"directResults": { | ||
"operationStatus": { | ||
"status": { | ||
"statusCode": "SUCCESS_STATUS" | ||
}, | ||
"operationState": "FINISHED_STATE", | ||
"operationStarted": 1690227170051, | ||
"operationCompleted": 1690227170417 | ||
}, | ||
"resultSetMetadata": { | ||
"status": { | ||
"statusCode": "SUCCESS_STATUS" | ||
}, | ||
"schema": { | ||
"columns": [ | ||
{ | ||
"columnName": "id", | ||
"typeDesc": { | ||
"types": [ | ||
{ | ||
"primitiveEntry": { | ||
"type": "STRING_TYPE" | ||
} | ||
} | ||
] | ||
}, | ||
"position": 1, | ||
"comment": "" | ||
}, | ||
{ | ||
"columnName": "myMap", | ||
"typeDesc": { | ||
"types": [ | ||
{ | ||
"primitiveEntry": { | ||
"type": "MAP_TYPE" | ||
} | ||
} | ||
] | ||
}, | ||
"position": 2, | ||
"comment": "" | ||
} | ||
] | ||
}, | ||
"resultFormat": "ARROW_BASED_SET", | ||
"lz4Compressed": false, | ||
"arrowSchema": "/////6ACAAAQAAAAAAAKAA4ABgANAAgACgAAAAAABAAQAAAAAAEKAAwAAAAIAAQACgAAAAgAAAAIAAAAAAAAAAIAAAC0AQAABAAAAGb+//8UAAAA2AAAAIABAAAAABEBfAEAAAIAAACEAAAABAAAABz+//8IAAAAWAAAAE8AAAB7InR5cGUiOiJtYXAiLCJrZXlUeXBlIjoic3RyaW5nIiwidmFsdWVUeXBlIjoic3RyaW5nIiwidmFsdWVDb250YWluc051bGwiOnRydWV9ABcAAABTcGFyazpEYXRhVHlwZTpKc29uVHlwZQCY/v//CAAAABwAAAATAAAATUFQPFNUUklORywgU1RSSU5HPgAWAAAAU3Bhcms6RGF0YVR5cGU6U3FsTmFtZQAAAQAAAAQAAACq////FAAAABQAAACIAAAAAAAADYQAAAAAAAAAAgAAAEgAAAAEAAAAdv///xQAAAAUAAAAFAAAAAAABQEQAAAAAAAAAAAAAADo/v//BQAAAHZhbHVlABIAGAAUAAAAEwAMAAAACAAEABIAAAAUAAAAFAAAABQAAAAAAAAFEAAAAAAAAAAAAAAAKP///wMAAABrZXkANP///wcAAABlbnRyaWVzAET///8FAAAAbXlNYXAAEgAYABQAEwASAAwAAAAIAAQAEgAAABQAAACQAAAAlAAAAAAABQGQAAAAAgAAAEgAAAAEAAAAyP///wgAAAAUAAAACAAAACJzdHJpbmciAAAAABcAAABTcGFyazpEYXRhVHlwZTpKc29uVHlwZQAIAAwACAAEAAgAAAAIAAAAEAAAAAYAAABTVFJJTkcAABYAAABTcGFyazpEYXRhVHlwZTpTcWxOYW1lAAAAAAAABAAEAAQAAAACAAAAaWQAAAAAAAA=", | ||
"cacheLookupResult": "LOCAL_CACHE_HIT", | ||
"uncompressedBytes": 512, | ||
"compressedBytes": 512 | ||
}, | ||
"resultSet": { | ||
"status": { | ||
"statusCode": "SUCCESS_STATUS" | ||
}, | ||
"hasMoreRows": false, | ||
"results": { | ||
"startRowOffset": 0, | ||
"rows": [], | ||
"arrowBatches": [ | ||
{ | ||
"batch": "/////2gBAAAUAAAAAAAAAAwAFgAOABUAEAAEAAwAAACQAAAAAAAAAAAABAAQAAAAAAMKABgADAAIAAQACgAAABQAAADYAAAAAwAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAQAAAAAAAAAIAAAAAAAAABAAAAAAAAAAGAAAAAAAAAADAAAAAAAAACAAAAAAAAAAAQAAAAAAAAAoAAAAAAAAABAAAAAAAAAAOAAAAAAAAAABAAAAAAAAAEAAAAAAAAAAAQAAAAAAAABIAAAAAAAAABAAAAAAAAAAWAAAAAAAAAAMAAAAAAAAAGgAAAAAAAAAAQAAAAAAAABwAAAAAAAAABAAAAAAAAAAgAAAAAAAAAAOAAAAAAAAAAAAAAAFAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAxMjMAAAAAAAcAAAAAAAAAAAAAAAEAAAACAAAAAwAAAAcAAAAAAAAABwAAAAAAAAAAAAAABAAAAAgAAAAMAAAAbmFtZW5hbWVuYW1lAAAAAAcAAAAAAAAAAAAAAAYAAAAKAAAADgAAAGFsaWNlMmJvYjJqb24yAAA=", | ||
"rowCount": 3 | ||
} | ||
] | ||
} | ||
}, | ||
"closeOperation": { | ||
"status": { | ||
"statusCode": "SUCCESS_STATUS" | ||
} | ||
} | ||
}, | ||
"executionRejected": false, | ||
"maxClusterCapacity": 10, | ||
"queryCost": 0.5, | ||
"currentClusterLoad": 1, | ||
"idempotencyType": "IDEMPOTENT" | ||
} |