You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2021/12/29 14:41:15 UTC

[GitHub] [incubator-seatunnel] wuchunfu opened a new issue #893: [Feature][transform] spark.read.json(RDD) deprecated

wuchunfu opened a new issue #893:
URL: https://github.com/apache/incubator-seatunnel/issues/893


   ### Search before asking
   
   - [X] I had searched in the [feature](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   ```scala
     /**
      * Loads an `RDD[String]` storing JSON objects (<a href="http://jsonlines.org/">JSON Lines
      * text format or newline-delimited JSON</a>) and returns the result as a `DataFrame`.
      *
      * Unless the schema is specified using `schema` function, this function goes through the
      * input once to determine the input schema.
      *
      * @param jsonRDD input RDD with one JSON object per record
      * @since 1.4.0
      */
     @deprecated("Use json(Dataset[String]) instead.", "2.2.0")
     def json(jsonRDD: RDD[String]): DataFrame = {
       json(sparkSession.createDataset(jsonRDD)(Encoders.STRING))
     }
   ```
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] RickyHuo commented on issue #893: [Feature][transform] spark.read.json(RDD) deprecated

Posted by GitBox <gi...@apache.org>.
RickyHuo commented on issue #893:
URL: https://github.com/apache/incubator-seatunnel/issues/893#issuecomment-1002840921


   `spark.read.json(RDD)` is used to compatible with spark 2.2, I think this should be discussed.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org