MaxGekk opened a new pull request #27179: [SPARK-30492][SQL] Eliminate 
deprecation warnings in ORC datasource
URL: https://github.com/apache/spark/pull/27179
 
 
   ### What changes were proposed in this pull request?
   In the PR, I propose to avoid usage of `getTypes()` in the 
`SparkOrcNewRecordReader` constructor, and replace it by `getSchema()`.
   
   ### Why are the changes needed?
   To eliminate compiler warnings, and highlight other warnings that could 
indicate about real problems:
   ```
   Warning:(44, 13) java: getTypes() in org.apache.orc.Reader has been 
deprecated
   Warning:(47, 24) java: getTypes() in org.apache.orc.Reader has been 
deprecated
   ```
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   By existing tests from the `org.apache.spark.sql.hive.orc` package like 
`HiveOrcQuerySuite`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to