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

feat: reduce included dependencies for Iceberg implementation #5668

Merged
merged 5 commits into from
Jun 26, 2024

Conversation

lbooker42
Copy link
Contributor

No description provided.

@lbooker42 lbooker42 added this to the June 2024 milestone Jun 25, 2024
@lbooker42 lbooker42 self-assigned this Jun 25, 2024
rcaudy
rcaudy previously approved these changes Jun 25, 2024
buildSrc/src/main/groovy/Classpaths.groovy Outdated Show resolved Hide resolved
@@ -23,6 +23,7 @@ dependencies {

Classpaths.inheritIcebergCore(project)
Classpaths.inheritIcebergHadoop(project)
Classpaths.inheritAvro(project, JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME)
Copy link
Member

Choose a reason for hiding this comment

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

What was the specific error when this was not included?

It seems like we should be marking this as runtimeOnly instead? Maybe best to move into one of the added-back-in dependencies with a "because" reason in inheritParquetHadoopConfiguration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error is:

/Users/larrybooker/dhc/lab-reduce-dep/extensions/iceberg/src/main/java/io/deephaven/iceberg/layout/IcebergKeyValuePartitionedLayout.java:91: error: cannot access IndexedRecord
        final PartitionData partitionData = (PartitionData) df.partition();
                                            ^
  class file for org.apache.avro.generic.IndexedRecord not found
/Users/larrybooker/dhc/lab-reduce-dep/extensions/iceberg/src/main/java/io/deephaven/iceberg/layout/IcebergKeyValuePartitionedLayout.java:94: error: cannot access SpecificData
            final Object colValue = partitionData.get(colData.index);
                                                 ^
  class file for org.apache.avro.specific.SpecificData not found
Note: /Users/larrybooker/dhc/lab-reduce-dep/extensions/iceberg/src/main/java/io/deephaven/iceberg/util/IcebergCatalogAdapter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

Copy link
Member

Choose a reason for hiding this comment

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

Interesting; I wonder why iceberg doesn't declare this as an API dependency... I might file an issue with them.

devinrsmith
devinrsmith previously approved these changes Jun 26, 2024
@@ -23,6 +23,7 @@ dependencies {

Classpaths.inheritIcebergCore(project)
Classpaths.inheritIcebergHadoop(project)
Classpaths.inheritAvro(project, JavaPlugin.IMPLEMENTATION_CONFIGURATION_NAME)
Copy link
Member

Choose a reason for hiding this comment

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

Interesting; I wonder why iceberg doesn't declare this as an API dependency... I might file an issue with them.

@devinrsmith
Copy link
Member

devinrsmith
devinrsmith previously approved these changes Jun 26, 2024
@devinrsmith devinrsmith requested a review from rcaudy June 26, 2024 19:09
@lbooker42 lbooker42 merged commit 2d89461 into deephaven:main Jun 26, 2024
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jun 26, 2024
@lbooker42 lbooker42 deleted the lab-reduce-dep branch June 26, 2024 19:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants