Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cursor methods catalogs(), schemas(), tables() & columns() return ColumnTable when using fetchall_arrow() #550

Closed
@alexmalins

Description

@alexmalins

Since thev3.5.0 release and PR#440, the Cursor methods catalogs(), schemas(), tables() & columns() return the new ColumnTable objects when fetching the results withfetchall_arrow() despite pyarrow being installed:

Since 3.5.0:

from databricks import sqlimport osconn = sql.connect(    server_hostname=os.getenv("DATABRICKS_HOST"),    http_path=os.getenv("DATABRICKS_HTTP_PATH"),    access_token=os.getenv("DATABRICKS_TOKEN"),)cursor = conn.cursor()cursor.catalogs()type(cursor.fetchall_arrow())  # databricks.sql.utils.ColumnTable

Prior to 3.5.0 databricks-sql-python would respect the users wish and return a pyarrow table, i.e. output of above code ispyarrow.lib.Table.

As far as I can understand, the goal of#440 was only to return ColumnTable objects if pyarrow is not installed. But since 3.5.0 the behaviour offetchall_arrow() when pyarrow is installed is inconsistent. Forcursor.execute() thencursor.fetchall_arrow() queries it will return pyarrow tables, but for the catalogs(), schemas(), tables() & columns() methods it now returns ColumnTables when it should really return pyarrow tables.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp