Skip to content

arrow::compute::kernels::temporal should support nanoseconds #2995

Closed

Description

@comphead

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

arrow::compute::kernels::temporal should support nanoseconds in similar way it supports seconds

Describe the solution you'd like

Add functions to extracts the nanoseconds of a given temporal array as an array of integers

Describe alternatives you've considered

None
Additional context

None

Activity

  1. comphead commented on Nov 1, 2022

    @comphead
    ContributorAuthor

    Please assign this ticket to me

  2. waitingkuo commented on Nov 1, 2022

    @waitingkuo
    Contributor

    @comphead thank you
    do you plan to do millisecond only or microsecond/nanosecond as well in this pr?

  3. comphead commented on Nov 1, 2022

    @comphead
    ContributorAuthor

    @waitingkuo for now we need milliseconds. but if the PR is relatively small, we can include micro/nano as well

  4. waitingkuo commented on Nov 1, 2022

    @waitingkuo
    Contributor

    @comphead
    extracting second in postgresql contains microseconds

    willy=# select date_part('second', now());
     date_part 
    -----------
     21.070954
    (1 row)

    since the resolution for it's timestamp is microsecond
    https://www.postgresql.org/docs/7.3/datatype-datetime.html

    In datafusion, our default Timestamp's resolution is nanoseconds, so I think we might need that

  5. comphead commented on Nov 1, 2022

    @comphead
    ContributorAuthor

    @waitingkuo I'm wondering would be that better to expose nanoseconds instead? Having that we can always convert nano to less precision data like millis, micros?

  6. waitingkuo commented on Nov 1, 2022

    @waitingkuo
    Contributor

    @comphead expose nanosecond sounds great

  7. changed the title [-]arrow::compute::kernels::temporal should support milliseconds[/-] [+]arrow::compute::kernels::temporal should support nanoseconds[/+] on Nov 1, 2022
  8. alamb commented on Nov 11, 2022

    @alamb
    Contributor

    label_issue.py automatically added labels {'arrow'} from #2996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arrowChanges to the arrow crateenhancementNew feature/addition

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions