chenlinzhong opened a new pull request, #11752:
URL: https://github.com/apache/doris/pull/11752

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem summary
   
   add rpc-udaf  java demo
   
    
   
   ## Checklist(Required)
   ```
   CREATE TABLE `table2` (
     `event_day` date NULL,
     `siteid` int(11) NULL DEFAULT "10",
     `citycode` smallint(6) NULL,
     `username` varchar(32) NULL DEFAULT "",
     `pv` bigint(20) SUM NULL DEFAULT "0"
   ) ENGINE=OLAP
   AGGREGATE KEY(`event_day`, `siteid`, `citycode`, `username`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`siteid`) BUCKETS 10
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   )
   ```
   import 100w rows data to table
   
   ### create remote rpc udaf 
   ```
   CREATE AGGREGATE FUNCTION  rpc_avg(int) RETURNS double PROPERTIES (
       "TYPE"="RPC",
       "OBJECT_FILE"="127.0.0.1:9700",
       "update_fn"="rpc_avg_update",
       "merge_fn"="rpc_avg_merge",
       "finalize_fn"="rpc_avg_finalize"
   );
   ```
   
   
![image](https://user-images.githubusercontent.com/11487604/184467484-c9efb24a-32ff-4e55-a332-b0bb251d594b.png)
   
   
   
   
   1. Does it affect the original behavior: 
       - [ ] Yes
       - [ ] No
       - [ ] I don't know
   2. Has unit tests been added:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   3. Has document been added or modified:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   4. Does it need to update dependencies:
       - [ ] Yes
       - [ ] No
   5. Are there any changes that cannot be rolled back:
       - [ ] Yes (If Yes, please explain WHY)
       - [ ] No
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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