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
GEOMESA-3259 FSDS - Add support for GeoParquet #3064
Draft
adeet1
wants to merge
28
commits into
locationtech:main
Choose a base branch
from
adeet1:GEOMESA-3259
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Create a BoundsObserver trait, and tweak various classes and methods to use that trait * Add an observer to the SimpleFeatureParquetWriter and write records to it, in order to create a bounding box of all the geometries. Add this bounding box to the GeoParquet metadata (which requires the metadata map to be changed to a mutable data structure). * Read/write all geometry attributes in binary (a primitive Parquet type) instead of as a pair of x/y doubles (a group Parquet type), using the same converter and attribute writer for all geometry types, while also maintaining backwards compatibility * Add support for parsing WKB bytes in the Parquet geometry transformer functions * Exclude bounding box from the GeoTools filter and use a spatial index instead Co-authored-by: Emilio Lahr-Vivaz <elahrvivaz@ccri.com>
To-do items:
|
elahrvivaz
reviewed
Mar 21, 2024
...parquet/src/main/scala/org/locationtech/geomesa/convert/parquet/ParquetFunctionFactory.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...t-parquet/src/test/scala/org/locationtech/geomesa/convert/parquet/ParquetConverterTest.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...on/src/main/scala/org/locationtech/geomesa/fs/storage/common/AbstractFileSystemStorage.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...src/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureReadSupport.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...src/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureReadSupport.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...rc/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureWriteSupport.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
...rc/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureWriteSupport.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 21, 2024
…d of passing it down from SimpleFeatureParquetWriter
elahrvivaz
reviewed
Mar 28, 2024
...arquet/src/main/scala/org/locationtech/geomesa/convert/parquet/ParquetConverterFactory.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
elahrvivaz
reviewed
Mar 28, 2024
...age-parquet/src/main/scala/org/locationtech/geomesa/fs/storage/parquet/FilterConverter.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...et/src/main/scala/org/locationtech/geomesa/fs/storage/parquet/ParquetFileSystemStorage.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...et/src/main/scala/org/locationtech/geomesa/fs/storage/parquet/ParquetFileSystemStorage.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
.../src/main/scala/org/locationtech/geomesa/fs/storage/parquet/SimpleFeatureParquetWriter.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...c/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureParquetSchema.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...rc/main/scala/org/locationtech/geomesa/fs/storage/parquet/io/SimpleFeatureWriteSupport.scala
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
...esa-fs-storage/geomesa-fs-storage-parquet/src/test/resources/geoparquet-metadata-schema.json
Outdated
Show resolved
Hide resolved
elahrvivaz
reviewed
Mar 28, 2024
val observer = if (observers.isEmpty) { updateObserver } else { | ||
new CompositeObserver(observers.map(_.apply(path)).+:(updateObserver)) | ||
val observer = if (observers.isEmpty) { updateObserver.asInstanceOf[BoundsObserver] } else { | ||
new CompositeObserver(observers.map(_.apply(path)).+:(updateObserver)).asInstanceOf[BoundsObserver] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think ideally we could use the bounds that the writer is already calculating, so that we don't have to calculate them twice.
* This simply checks if the Parquet file is valid - it won't deserialize/manifest everything and thus saves us some processing
adeet1
commented
Mar 28, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- When we compact GeoParquet files in a filesystem partition, we need to ensure that the bounding boxes in the metadata of the files get merged correctly (i.e. assert that the union of bounding boxes of the files before compaction is equal to the union of bounding boxes of the newly compacted files).
…ss files are correctly merged upon compaction * Write features with different geometries and coordinates, so we can test the merging of unique bounding boxes.
* This fixes a failing unit test "suppress or allow empty output files" in ExportCommandTest.scala
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BoundsObserver
trait, and tweak various classes and methods to use that traitSimpleFeatureParquetWriter
and write records to it, in order to create a bounding box of all the geometries