smallhibiscus opened a new issue, #22:
URL: https://github.com/apache/incubator-doris-spark-connector/issues/22

   ### 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
   
   spark 3.1.2  scala 2.12
   
   ### What's Wrong?
   
   Spark dataframe read doris configuration doris.read.field does not take 
effect.
   
   ```java
     val session = SparkSession.builder().master("local[*]").getOrCreate()
       val dorisSparkDF = session.read
         .format("doris")
         .option("doris.fenodes", "127.0.0.1:8030")
         .option("user", "root")
         .option("password", "123456")
         .option("doris.table.identifier", "test.test_tbl")
         .option("doris.read.field", "name")
         .load()
   
       dorisSparkDF.show()
       session.stop()
   ```
   The result of executing the above code:
   ```sql
   +--------+------+---+
   |    name|gender|age|
   +--------+------+---+
   |    lisi|     3| 13|
   |  wangwu|     2| 14|
   |zhangsan|     1| 12|
   |    张三|  null| 12|
   +--------+------+---+
   ```
   
   ### What You Expected?
   
   After the doris.read.field configuration takes effect, the resulting data 
should look like this:
   ```sql
   +--------+
   |    name|
   +--------+
   |    lisi|
   |  wangwu|
   |zhangsan|
   |    张三|
   +--------+
   ```
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit 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: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to