Skip to content

Misidentification of column data type leads to certain sheets being unreadable #43

Description

@ivanfsimeon

Sample column values:

ref_pfr_no
211110015349060
211150015009060
DIV
221400000671023
221170000731023
DIV

When a column starts with a numeric-looking text, and there are other text values within the column, querying & displaying the values gives the error "duckdb.duckdb.InvalidInputException: Invalid Input Error: Failed to cast value: Could not convert string 'DIV' to DOUBLE"

Adjusting the query to cast the values doesn't resolve the issue:
con.sql("SELECT ref_pfr_no::text FROM read_gsheet('', sheet='');").show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions