hf200012 opened a new issue, #13802:
URL: https://github.com/apache/doris/issues/13802

   ### 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
   
   1.1.x
   
   ### What's Wrong?
   
   hdfs file
   ```
   1,lemon,22
   2,toney,24
   3,zhangfeng,44
   4,test,32
   ```
   doris table:
   ```
    CREATE TABLE `test_where_001` (
     `id` int NOT NULL COMMENT "id",
     `name` varchar(40) NULL COMMENT "name",
     age int 
   ) ENGINE=OLAP
   UNIQUE KEY(`id`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`id`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   ```
   spark load:
   ```
   LOAD LABEL demo.test_where_008
   (
       DATA 
INFILE("hdfs://localhost:9000/user/hive/warehouse/data_center.db/test_partition_snappy_01/test_001.csv")
       INTO TABLE test_where_001
       COLUMNS TERMINATED BY ","
       FORMAT AS "csv"
       (id,name,age)
       SET
       (
           id=id,
           name=name,
           age=age
       )
       where age>23
   )
   WITH RESOURCE 'spark_resource'
   (
       "spark.executor.memory" = "1g",
       "spark.shuffle.compress" = "true"
   )
   PROPERTIES
   (
       "timeout" = "3600"
   ); 
   ```
    result:
   ```
   mysql> select * from test_where_001;
   +------+-----------+------+
   | id   | name      | age  |
   +------+-----------+------+
   |    1 | lemon     |   22 |
   |    2 | toney     |   24 |
   |    3 | zhangfeng |   44 |
   |    4 | test      |   32 |
   +------+-----------+------+
   4 rows in set (0.01 sec)
   ```
   correct result:
   ```
   mysql> select * from test_where_001;
   +------+-----------+------+
   | id   | name      | age  |
   +------+-----------+------+
   |    2 | toney     |   24 |
   |    3 | zhangfeng |   44 |
   |    4 | test      |   32 |
   +------+-----------+------+
   3 rows in set (0.01 sec)
   ```
   
   
   ### What You Expected?
   
   no
   
   ### 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