-
Notifications
You must be signed in to change notification settings - Fork 236
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
[BUG] Incorrect values when parsing dates from timestamps stored in CSV files #1091
Comments
andygrove
added
bug
Something isn't working
? - Needs Triage
Need team to review and classify
labels
Nov 10, 2020
sameerz
added
P2
Not required for release
SQL
part of the SQL/Dataframe plugin
and removed
? - Needs Triage
Need team to review and classify
labels
Nov 10, 2020
Please update the documentation at https://github.com/NVIDIA/spark-rapids/blob/branch-0.3/docs/compatibility.md#csv-dates when this is fixed. |
3 tasks
I think that this is working now.
Could we get someone to add a test to verify that it continues to work. |
tgravescs
pushed a commit
to tgravescs/spark-rapids
that referenced
this issue
Nov 30, 2023
…IDIA#1091) Signed-off-by: spark-rapids automation <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If I specify a schema with a
DateType
when reading from a CSV file containing timestamps, I get corrupt data when the plugin is enabled.Steps/Code to reproduce bug
Create
tests/src/test/resources/timestamps.csv
CSV file:Add this method to
tests/src/test/scala/com/nvidia/spark/rapids/SparkQueryCompareTestSuite.scala
:Add these tests to
tests/src/test/scala/com/nvidia/spark/rapids/CsvScanSuite.scala
:The first test passes but the second test fails with:
Expected behavior
The tests should both pass because the output should be the same with or without the plugin enabled.
Environment details (please complete the following information)
Running tests in IDE.
Additional context
N/A
The text was updated successfully, but these errors were encountered: