Skip to content

Map parsing errors to invalid input #3159

@wjones127

Description

@wjones127

Got this from a SQL parsing error:

IO {
    source: ParserError(
        "Expected: ), found: t",
    ),
    location: Location {
        file: "/Users/willjones/Documents/sophon/src/lance/rust/lance-datafusion/src/sql.rs",
        line: 100,
        column: 8,
    },
}

Would be nice if this was wrapped in InvalidInput instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions