Skip to content

Conversation

@pranaydharmale
Copy link
Contributor

added support for TIME_MILLIS to GenericParquetReader.

@rdblue
Copy link
Contributor

rdblue commented May 12, 2020

Could you add a test for this?

@pranaydharmale
Copy link
Contributor Author

Could you add a test for this?

done; pls check out

required(116, "dec_38_10", Types.DecimalType.of(38, 10)), // maximum precision
required(117, "time", Types.TimeType.get())
required(117, "time", Types.TimeType.get()),
required(118, "time_ms", Types.TimeType.get())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iceberg won't actually write data in milliseconds, so we would need to write a Parquet file using the annotation and confirm that a time column is correct when reading.

Can you remove this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rdblue do we have any boilerplate code I can use to do that?

…in milliseconds, so we would need to write a Parquet file using the annotation and confirm that a time column is correct when reading.', so this test won't work.
@rdblue
Copy link
Contributor

rdblue commented May 21, 2020

We don't have anything currently, but you can use parquet-avro classes to write a file. Let's do this in a follow-up.

@rdblue rdblue merged commit dd60646 into apache:master May 21, 2020
@rdblue
Copy link
Contributor

rdblue commented May 21, 2020

@pranaydharmale, I went ahead and merged this since it looks correct. We can follow up with that test.

@pranaydharmale pranaydharmale deleted the parquet_time_millis branch May 21, 2020 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants