Skip to content

[Bug] doris.read.fields parameter does not work in arrow flight sql #333

Open

Description

@Https443

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

Activity

  1. JNSimba commented on Aug 5, 2025

    @JNSimba
    Member

    Could you please post the Spark log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions