Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Support parsing dates and timestamps with timezone IDs in the string #1654

Open
4 tasks
res-life opened this issue Dec 15, 2023 · 2 comments
Open
4 tasks

Comments

@res-life
Copy link
Collaborator

res-life commented Dec 15, 2023

Is your feature request related to a problem? Please describe.
This is from NVIDIA/spark-rapids#6846
Needs a kernel to parse dates and timestamps with timezone IDs in the string

  def instantToMicros(instant: Instant): Long = {
    val secs = instant.getEpochSecond
    if (secs == MIN_SECONDS) {
      val us = Math.multiplyExact(secs + 1, MICROS_PER_SECOND)
      Math.addExact(us, NANOSECONDS.toMicros(instant.getNano) - MICROS_PER_SECOND)
    } else {
      val us = Math.multiplyExact(secs, MICROS_PER_SECOND)
      Math.addExact(us, NANOSECONDS.toMicros(instant.getNano))
    }
  }
@res-life
Copy link
Collaborator Author

Alfred is co-working on this.

@res-life
Copy link
Collaborator Author

I'm not planing work on this for release 24.04
@sameerz can we move it to next release?

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

No branches or pull requests

3 participants