hailin0 commented on PR #18448:
URL: https://github.com/apache/doris/pull/18448#issuecomment-1503870540

   > hi @hailin0 Could you give a brief command line to run 
`extension/beats/doris/doris_integration_test.go`, suppose that there is 
already Doris cluster?
   > 
   > I will add this to the regression test later. And this PR LTGM
   
   
   hi @morningman   
   
   reference
   
   1. Init doris tables
   
   ```sql
   create database test_beats;
   
   CREATE TABLE `test_beats`.`test_beats_csv` (
       `id` bigint(20),
       `name` varchar(100),
       `timestamp` varchar(100),
       `type` varchar(100)
   )
   UNIQUE KEY(`id`)
   DISTRIBUTED BY HASH(`id`) BUCKETS 1
   PROPERTIES (
       "replication_num" = "1"
   );
   
   CREATE TABLE `test_beats`.`test_beats_json` (
       `id` bigint(20),
       `name` varchar(100)
   )
   UNIQUE KEY(`id`)
   DISTRIBUTED BY HASH(`id`) BUCKETS 1
   PROPERTIES (
       "replication_num" = "1"
   );
   
   CREATE TABLE `test_beats`.`test_beats_codec` (
       `id` bigint(20),
       `name` varchar(100),
       `timestamp` varchar(100),
       `type` varchar(100)
   )
   UNIQUE KEY(`id`)
   DISTRIBUTED BY HASH(`id`) BUCKETS 1
   PROPERTIES (
       "replication_num" = "1"
   )
   ```
   
   2. Run golang testcase
   
   ``` shell
   cd doris/extension/beats/doris/
   
   go test -fenodes="http://localhost:8030"; -user="root" -password="root" 
-database="test_beats"
   ```


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

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