Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for query that doesn't produce rows #136

Merged
merged 1 commit into from
Jun 26, 2023

Commits on Jun 23, 2023

  1. Bug fix for query that doesn't produce rows

    When executing a statement that doesn't produce rows (ex. CREATE TABLE ....) using DB.Query() instead of DB.Exec() the driver would panic.
    When DB.Query() is used we try to create a row object.  In this case there was a mismatch in the schema metadata returned by thrift and the arrow schema metadata.
    The thrift schema was indicating a single column named 'Result' while the arrow schema metadata was indicating no columns.
    Moved the code creating the arrow schema and column info into separate functions.
    Updated creation of the column info to handle mismatch between the arrow and thrift schemas.  
    Signed-off-by: Raymond Cypher <raymond.cypher@databricks.com>
    rcypher-databricks committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    1e10053 View commit details
    Browse the repository at this point in the history