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

Support Spark dynamic partition pruning #881

Merged
merged 17 commits into from Feb 2, 2023

Conversation

davidrabinowitz
Copy link
Member

Based on PR #687

Co-Authored-By: Zhou Fang coufon@users.noreply.github.com

@davidrabinowitz
Copy link
Member Author

/gcbrun

@codecov
Copy link

codecov bot commented Jan 21, 2023

Codecov Report

Base: 47.04% // Head: 46.69% // Decreases project coverage by -0.35% ⚠️

Coverage data is based on head (523ebd7) compared to base (f207ada).
Patch coverage: 24.39% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #881      +/-   ##
==========================================
- Coverage   47.04%   46.69%   -0.35%     
==========================================
  Files         161      161              
  Lines        6101     6151      +50     
  Branches      728      725       -3     
==========================================
+ Hits         2870     2872       +2     
- Misses       3013     3061      +48     
  Partials      218      218              
Flag Coverage Δ
integrationtest 46.99% <24.39%> (-0.22%) ⬇️
nightly ?
unittest 46.69% <24.39%> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...loud/bigquery/connector/common/ReadRowsHelper.java 15.00% <0.00%> (-0.79%) ⬇️
.../spark/bigquery/v2/Spark31BigQueryScanBuilder.java 0.00% <0.00%> (ø)
.../spark/bigquery/v2/Spark32BigQueryScanBuilder.java 0.00% <0.00%> (ø)
...igquery/v2/context/ArrowInputPartitionContext.java 37.03% <0.00%> (-6.45%) ⬇️
...ry/v2/context/BigQueryDataSourceReaderContext.java 0.00% <0.00%> (ø)
.../cloud/bigquery/connector/common/BigQueryUtil.java 82.20% <100.00%> (+1.67%) ⬆️
...google/cloud/spark/bigquery/SparkBigQueryUtil.java 52.74% <100.00%> (+3.33%) ⬆️
...com/google/cloud/spark/bigquery/BigQueryUtil.scala 50.00% <0.00%> (-3.34%) ⬇️
...ud/spark/bigquery/pushdowns/BigQueryStrategy.scala 43.68% <0.00%> (-2.54%) ⬇️
...le/cloud/spark/bigquery/pushdowns/UnionQuery.scala 85.71% <0.00%> (-1.39%) ⬇️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@GoogleCloudDataproc GoogleCloudDataproc deleted a comment from sonatype-lift bot Jan 31, 2023
@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz
Copy link
Member Author

/gcbrun

@@ -46,8 +48,10 @@
SupportsReportStatistics,
SupportsQueryPushdown {

private BigQueryDataSourceReaderContext ctx;
private InputPartition[] partitions;
protected final Logger logger = LoggerFactory.getLogger(getClass());
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is logger being used?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is used in the Spark 3.2 subclass. I took a a page from the Spark framework book where the superclass defines the logger for the hierarchy, but for each class the logger name is of that class (because it is not a static variable)

@@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-avro_2.13</artifactId>
<artifactId>spark-avro_2.12</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to downgrade the dependency version?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we need all the dependencies to have the same scala version

@davidrabinowitz
Copy link
Member Author

/gcbrun

@davidrabinowitz davidrabinowitz merged commit 53661cd into GoogleCloudDataproc:master Feb 2, 2023
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