-
Notifications
You must be signed in to change notification settings - Fork 109
Description
Search before asking
- I had searched in the issues 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
- I agree to follow this project's Code of Conduct