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 2021/10/11 11:45:59 UTC

[GitHub] [incubator-doris] morningman opened a new issue #6815: [Bug]

morningman opened a new issue #6815:
URL: https://github.com/apache/incubator-doris/issues/6815


   ### 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
   
   trunk a6e905e
   
   ### What's Wrong?
   
   ```
   CREATE TABLE `test1` (
     `date` date NOT NULL COMMENT "统计日期",
     `road_code` int(11) NOT NULL DEFAULT "-1" COMMENT "路口id"
   ) ENGINE=OLAP
   DUPLICATE KEY(`date`, `road_code`)
   COMMENT "OLAP"
   PARTITION BY RANGE(`date`)
   (PARTITION v2x_ads_lamp_source_percent_statistic_20210929 VALUES [('2021-09-29'), ('2021-09-30')))
   DISTRIBUTED BY HASH(`road_code`) BUCKETS 1
   PROPERTIES (
   "replication_num" = "1"
   );
   
   select * from test.outfile1 where `date` between '2021-10-07' and '2021-10-11' INTO OUTFILE "file:///tmp/1_" FORMAT AS CSV PROPERTIES (     "column_separator" = ",",     "line_delimiter" = "\n",     "max_file_size" = "500MB" );
   
   Error: Must specify BROKER properties in OUTFILE clause
   ```
   
   But if the `where` predicate is removed, this stmt works well.
   
   ### What You Expected?
   
   If outfile to local, no need to specify broker.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   This is because if query stmt need rewrite, the outfile clause will be rewrote twice, and error will happen.
   
   ### 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

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] [incubator-doris] yangzhg closed issue #6815: [Bug] select outfile to local failed

Posted by GitBox <gi...@apache.org>.
yangzhg closed issue #6815:
URL: https://github.com/apache/incubator-doris/issues/6815


   


-- 
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


[GitHub] [incubator-doris] yangzhg closed issue #6815: [Bug] select outfile to local failed

Posted by GitBox <gi...@apache.org>.
yangzhg closed issue #6815:
URL: https://github.com/apache/incubator-doris/issues/6815


   


-- 
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