Skip to content

TIME_MILLIS support to GenericParquetReader (issue #502) - #1031

Merged
rdblue merged 5 commits into
apache:masterfrom
pranaydharmale:parquet_time_millis
May 21, 2020
Merged

rdblue merged 5 commits into
apache:masterfrom
pranaydharmale:parquet_time_millis

Conversation

@pranaydharmale

Copy link
Copy Markdown
Contributor

added support for TIME_MILLIS to GenericParquetReader.

@rdblue

rdblue commented May 12, 2020

Copy link
Copy Markdown
Contributor

Could you add a test for this?

@pranaydharmale

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

rdblue commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

rdblue commented May 21, 2020

Copy link
Copy Markdown
Contributor

@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