Skip to content

Support arrow.TIME64 arrow.TIMESTAMP .. in exprs.ToSubstraitType() #404

@Sunyue

Description

@Sunyue

Describe the enhancement requested

I am trying to do filter on arrow table/record with compute and exprs package, and found filtering for arrow.TIME64, arrow.TIMESTAMP, arrow.DECIMAL128, arrow.DECIMAL256 is not working as expected.

Could you please help to support arrow.TIME64 arrow.TIMESTAMP ... in exprs.ToSubstraitType()
https://pkg.go.dev/github.com/apache/arrow-go/v18/arrow/compute/exprs#ToSubstraitType

Looking at the code arrow.DECIMAL128, arrow.DECIMAL256 seems are supported, but not work well, maybe a bug?

Expected: SetInputSchema(), exprs.ExecuteScalarExpression() can work well with arrow.TIME64 arrow.TIMESTAMP, arrow.DECIMAL128, arrow.DECIMAL256

Note: I find it relatively simple to support arrow.TIME64 arrow.TIMESTAMP by adding cases to exprs.ToSubstraitType(), but it seems only arrow.Microsecond is supported as it is hard coded in FromSubstraitType, any possibility to derive the unit from the input schema?

Component(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    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