Uh oh!
There was an error while loading. Please reload this page.
[SPARK-30492][SQL] Eliminate deprecation warnings in ORC datasource - #27179
[SPARK-30492][SQL] Eliminate deprecation warnings in ORC datasource#27179MaxGekk wants to merge 1 commit into
Conversation
MaxGekk
commented
Jan 12, 2020
@dongjoon-hyun Please, take a look at this. |
dongjoon-hyun
commented
Jan 12, 2020
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Unfortunately, this breaks our Hive 1.2 code. Can we have a fix for both Hive 1.2 and Hive 2.3?
[ERROR] [Error] /home/runner/work/spark/spark/sql/hive/src/main/java/org/apache/hadoop/hive/ql/io/orc/SparkOrcNewRecordReader.java:46: cannot find symbol
1420
symbol: method getSchema()
1421
location: variable file of type org.apache.hadoop.hive.ql.io.orc.Reader
Since we cannot drop Hive 1.2 completely at least in 3.0 (or maybe until 3.1), we need to support it still.
cc @srowen , @wangyum and @gatorsmile
MaxGekk
commented
Jan 12, 2020
@dongjoon-hyun Just in case, do you know why there are 2 ORC implementations:
Is it something specific for ORC? |
Historically,
So, with |
SparkQA
commented
Jan 12, 2020
Test build #116568 has finished for PR 27179 at commit
|
srowen
commented
Jan 12, 2020
If it's much trouble here... I'd just leave it. We're not going to be able to resolve 100% of warnings just for reasons like this. |
MaxGekk
commented
Jan 13, 2020
I would propose to add the In any case, we are going to deprecate |
dongjoon-hyun
commented
Jan 13, 2020
@MaxGekk . Sorry, but I'm technically -1 to prevent a feature regression. I guess you are assuming that the new one supports all use cases of old one. However, it's not true. One simple long standing JIRA is https://issues.apache.org/jira/browse/SPARK-21997 . Users are still using the old ones because new ones (ORC and Parquet) don't provide the same feature. For me, this one is not worth of your time. We had better move on from this part. |
MaxGekk
commented
Jan 13, 2020
I didn't know that. @dongjoon-hyun Thank you for the explanation. I am closing this PR. |
What changes were proposed in this pull request?
In the PR, I propose to avoid usage of
getTypes()in theSparkOrcNewRecordReaderconstructor, and replace it bygetSchema().Why are the changes needed?
To eliminate compiler warnings, and highlight other warnings that could indicate about real problems:
Does this PR introduce any user-facing change?
No
How was this patch tested?
By existing tests from the
org.apache.spark.sql.hive.orcpackage likeHiveOrcQuerySuite.