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


   ### 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
   
   I found `org.apache.seatunnel.spark.source.Kudu` have a repeated 
`org.apache.spark.sql.DataFrameReader#format` function call due to an implicit 
function when read data from kudu using spark, just like below:  
   ```scala
       val ds = env.getSparkSession.read
         .format("org.apache.kudu.spark.kudu")
         .options(mapConf) 
         .kudu // Notice, here is an implicit function
   ```
   The implicit function like below:  
   ```scala
     implicit class KuduDataFrameReader(reader: DataFrameReader) {
       def kudu: DataFrame = reader.format("org.apache.kudu.spark.kudu").load
     }
   ```
   
   So the `format("org.apache.kudu.spark.kudu")` is called twice.
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to