Skip to content

Regression parsing array slice expressions (foo[1:2]) in 0.46 #1283

Closed
@alamb

Description

@alamb

As reported by @tisonkun in #1215 (comment)

This query ran in version 0.45.0

select make_array(1, 2, 3)[1:2], make_array(1.0, 2.0, 3.0)[2:3], make_array('h', 'e', 'l', 'l', 'o')[2:4];

The query fails in version 0.46.0

External error: query failed: DataFusion error: SQL error: ParserError("Expected variant object key name, found: 2")

It appears to have been introduced in #1215

@jmhain 's analysis is #1215 (comment)

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