You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] doris.read.fields parameter does not work in arrow flight sql #333
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.
Activity
JNSimba commentedon Aug 5, 2025
Could you please post the Spark log?