-
Notifications
You must be signed in to change notification settings - Fork 237
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
Replace ParquetFileReader.readFooter with open() and getFooter [databricks] #4976
Replace ParquetFileReader.readFooter with open() and getFooter [databricks] #4976
Conversation
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
1 similar comment
build |
There is something weird going on with CI as this test passes locally |
build |
build |
Removing the databricks and kicking CI off again to see if anything changes 🤞 |
build |
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
Adding stains databricks back |
build |
1 similar comment
build |
…ooter Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
val parquetFile = ParquetFileReader.open(inputFile) | ||
val footer = try { | ||
parquetFile.getFooter | ||
} finally { | ||
parquetFile.close() | ||
} |
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.
nit:
val parquetFile = ParquetFileReader.open(inputFile) | |
val footer = try { | |
parquetFile.getFooter | |
} finally { | |
parquetFile.close() | |
} | |
val footer = withResource(ParquetFileReader.open(inputFile))(_.getFooter()) |
@@ -224,6 +224,12 @@ | |||
<version>${spark.version}</version> | |||
<scope>provided</scope> | |||
</dependency> | |||
<dependency> |
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.
Can you comment in the PR description/code as to why new dependency?
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
build |
@gerashegalov have I addressed all your concerns? |
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.
LGTM
This PR replaces the use of deprecated method
readFooter
withopen()
andgetFooter
DB was failing with the following exception unless I import the parquet-common dependency for tests submodule
fixes #2082
Signed-off-by: Raza Jafri rjafri@nvidia.com