Https443 opened a new issue, #333:
URL: https://github.com/apache/doris-spark-connector/issues/333

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   25.1.0
   
   ### What's Wrong?
   
   The test.table1 table has c1, c2, c3, c4, c5, c6, c7, c8 fields
   
   Use Spark's DataFrame to get data and set the parameter doris.read.fields
   var dataDF = spark.read.format("doris")
         .option("doris.table.identifier", "test.table1")
         .option("doris.fenodes", dorisHost + ":" + dorisHttpPort)
         .option("doris.user", dorisUsername)
         .option("doris.password", dorisPassword)
         .option("doris.read.fields","c1,c2,c3,c4")
         .option("doris.read.mode", "arrow")
         .option("doris.read.arrow-flight-sql.port", dorisArrowPort)
         .load()
   
   The sql should be: SELECT `c1`,`c2`,`c3`,`c4` FROM `test`.`table1`
   But the query sql is: SELECT `c1`,`c2`,`c3`,`c4`,`c5`,`c6`,`c7`,`c8` FROM 
`test`.`table1`
   
   ### What You Expected?
   
   Using Arrow Fillght SQL mode in DataFrame allows you to query the 
corresponding column data according to the doris.read.fields parameter instead 
of querying all columns in the table.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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]


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

Reply via email to