GitHub user keypointt opened a pull request:

    https://github.com/apache/spark/pull/14160

    [SPARK-16502] update depreciated ParquetFileReader()

    https://issues.apache.org/jira/browse/SPARK-16502
    
    ## What changes were proposed in this pull request?
    
    During code compile, got below depreciation message.
    ```
    
/Users/quickmobile/workspace/spark/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetSchemaConverter.scala
    Warning:(448, 28) method listType in object ConversionPatterns is 
deprecated: see corresponding Javadoc for more information.
            ConversionPatterns.listType(
                               ^
    Warning:(464, 28) method listType in object ConversionPatterns is 
deprecated: see corresponding Javadoc for more information.
            ConversionPatterns.listType(
                               ^
    ```
    Here just updated the method invocation.
    
    from
    ```
      /** @deprecated */
      public ParquetFileReader(Configuration configuration, Path filePath, 
List<BlockMetaData> blocks, List<ColumnDescriptor> columns) throws IOException {
        this(configuration, (FileMetaData)null, filePath, blocks, columns);
      }
    ```
    to:
    ```
      public ParquetFileReader(Configuration configuration, FileMetaData 
fileMetaData, Path filePath, List<BlockMetaData> blocks, List<ColumnDescriptor> 
columns) throws IOException {
    ```
    
    ## How was this patch tested?
    
    Tested on local machine, running unit tests.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/keypointt/spark SPARK-16502

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/14160.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14160
    
----
commit 7557e1cf5916331255bebca9d7e4682d8ca4021c
Author: Xin Ren <iamsh...@126.com>
Date:   2016-07-12T19:02:22Z

    [SPARK-16502] update depreciated ParquetFileReader()

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to