Skip to content

Timestamp with timezone cannot be supported by GROUP BY #7604

@acking-you

Description

@acking-you

Describe the bug

When I use TIMESTAMP with time zone, the group by operation reports an error:

Error: External(External(ArrowError(InvalidArgumentError("column types must match schema types, expected Timestamp(Millisecond, Some(\"+08:00\")) but found Timestamp(Millisecond, None) at column index 0"))))

To Reproduce

schema:

Schema::new(vec![
    Field::new("a", DataType::Timestamp(TimeUnit::Millisecond, Some("+08:00".into())),true),
    Field::new("b", DataType::UInt32, true)
])

sql:

select min(a),b from test_table group by b

Expected behavior

just working

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions