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

Add opt-in Logical type support to 0.11.x branch #4792

Merged
merged 2 commits into from
May 3, 2023
Merged

Conversation

clairemcginty
Copy link
Contributor

cherry-picked from #4772, #4782

clairemcginty and others added 2 commits May 3, 2023 09:44
* Reproduce SpecificRecords/logicalType bug

* Fix bug

* Cleanup test

* logical types must be added from worker VM, not launcher

* Fix for both reads and writes

* cleanup

* Don't set supplier if user has explicitly configured one

* Test for custom logical type provider

* Pass dataModel to AvroParquetWriter.Builder

* Only override .withDataModel if Configuration key exists

* Isolate SpecificData instances

* fix test

* update copyright year

* cleanup

* Add support for scio-smb Parquet writes

* Manage config defaults via core-site.xml

* Fix formatting

* Should be a standalone class

* add test

* +header

* newline

* Add remaining Converters

* simplify SpecificData creation

* Correctly encode logical types in GenericRecord

* remove unused import
* Make logical type support for Parquet-Avro opt-in

* Update documentation

* conf->jobConf

* scalafmt

* Update scio-parquet/src/main/scala/com/spotify/scio/parquet/avro/ParquetAvroIO.scala

Co-authored-by: Michel Davit <micheld@spotify.com>

* Add parens

---------

Co-authored-by: Michel Davit <micheld@spotify.com>
@clairemcginty clairemcginty merged commit 5de2e2a into v0.11.x May 3, 2023
10 checks passed
@clairemcginty clairemcginty deleted the v0.11.15 branch May 3, 2023 17:22
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.

None yet

2 participants