GitHub user gengliangwang opened a pull request:

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

    [SPARK-25851][SQL] Fix deprecated API warning in SQLListener

    ## What changes were proposed in this pull request?
    
    In https://github.com/apache/spark/pull/21596, Jackson is upgraded to 2.9.6.
    There are some deprecated API warnings in SQLListener.
    Create a trivial PR to fix them.
    
    ```
    [warn] SQLListener.scala:92: method uncheckedSimpleType in class 
TypeFactory is deprecated: see corresponding Javadoc for more information.
    [warn] val objectType = typeFactory.uncheckedSimpleType(classOf[Object])
    [warn] 
    [warn] SQLListener.scala:93: method constructSimpleType in class 
TypeFactory is deprecated: see corresponding Javadoc for more information.
    [warn] typeFactory.constructSimpleType(classOf[(_, _)], classOf[(_, _)], 
Array(objectType, objectType))
    [warn] 
    [warn] SQLListener.scala:97: method uncheckedSimpleType in class 
TypeFactory is deprecated: see corresponding Javadoc for more information.
    [warn] val longType = typeFactory.uncheckedSimpleType(classOf[Long])
    [warn] 
    [warn] SQLListener.scala:98: method constructSimpleType in class 
TypeFactory is deprecated: see corresponding Javadoc for more information.
    [warn] typeFactory.constructSimpleType(classOf[(_, _)], classOf[(_, _)], 
Array(longType, longType))
    ```
    
    ## How was this patch tested?
    
    Existing unit tests.


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

    $ git pull https://github.com/gengliangwang/spark fixSQLListenerWarning

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

    https://github.com/apache/spark/pull/22848.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 #22848
    
----
commit 991a968f3670c2d7d4ed081f7fd51e7244525cf8
Author: Gengliang Wang <gengliang.wang@...>
Date:   2018-10-26T08:16:29Z

    fix deprecated warning

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to