You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/31 05:49:13 UTC

[GitHub] [doris] hf200012 opened a new issue, #13802: [Bug] The where condition does not take effect when spark load loads the file

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-unsubscribe@doris.apache.org.apache.org

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


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


[GitHub] [doris] morningman closed issue #13802: [Bug] The where condition does not take effect when spark load loads the file

Posted by GitBox <gi...@apache.org>.
morningman closed issue #13802: [Bug] The where condition does not take effect when spark load loads the file
URL: https://github.com/apache/doris/issues/13802


-- 
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-unsubscribe@doris.apache.org

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


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