Code Monkey home page Code Monkey logo

Comments (4)

flipp5b avatar flipp5b commented on June 20, 2024

It looks like the issue only manifests for some time zones.

  • TZ=Europe/London sbt "core/IntegrationTest/testOnly -z com.github.mjakubowski84.parquet4s.FilteringSpec" - Success.
  • TZ=Europe/Berlin sbt "core/IntegrationTest/testOnly -z com.github.mjakubowski84.parquet4s.FilteringSpec" - Success.
  • TZ=Europe/Warsaw sbt "core/IntegrationTest/testOnly -z com.github.mjakubowski84.parquet4s.FilteringSpec" - Failure (1900-01-01T00:58:08 was not equal to 1900-01-01T00:34:08).
  • TZ=Europe/Moscow sbt "core/IntegrationTest/testOnly -z com.github.mjakubowski84.parquet4s.FilteringSpec" - Failure (1900-01-01T00:04:25 was not equal to 1900-01-01T00:34:08).

from parquet4s.

marcinaylien avatar marcinaylien commented on June 20, 2024

Ha!
Europe/Warsaw is treated by JVM (?) as the timezone used in Polish Commonwealth several hundred years ago :D

from parquet4s.

mjakubowski84 avatar mjakubowski84 commented on June 20, 2024

So, it is actually a bug in Java: https://stackoverflow.com/questions/47823081/java-sql-timestamp-wrong-time-parsing
In order to fix, one must avoid using Timestamp.valueOf or similar

from parquet4s.

flipp5b avatar flipp5b commented on June 20, 2024

Well, yeah :) Switching zeroDate to a more recent date (like LocalDate.of(2000, 1, 1)) works for all the time zones above.

from parquet4s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.