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 2020/08/09 13:54:49 UTC

[GitHub] [incubator-doris] xinghuayu007 opened a new pull request #4307: udf: parse an url to get host, path, query, port, protocol

xinghuayu007 opened a new pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307


   ## Proposed changes
   
   This is an user define function to parse an url to gt host, path, query, port and protocol.
   
   ## Types of changes
   
   What types of changes does your code introduce to Doris?
   _Put an `x` in the boxes that apply_
   
   - [] Bugfix (non-breaking change which fixes an issue)
   - [x] New feature (non-breaking change which adds functionality)
   - [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   - [] Documentation Update (if none of the other choices apply)
   - [] Code refactor (Modify the code structure, format the code, etc...)
   
   ## Checklist
   
   _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
   
   - [] I have create an issue on #ISSUE, and have described the bug/feature there in detail
   - [x] Compiling and unit tests pass locally with my changes
   - [] I have added tests that prove my fix is effective or that my feature works
   - [] If this change need a document change, I have updated the document
   - [] Any dependent changes have been merged
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at dev@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.

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] WingsGo commented on pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
WingsGo commented on pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#issuecomment-671672297


   > > Hi, @xinghuayu007 Can you create an issue to explain why you add the udf parse url?Thx~~
   > 
   > add issue #4320
   
   I think If you want add a udf to Doris, you shouldn't add it in udf_samples, it is just for developer to create their own udf, it is not universal, you should add the udf inside Doris, maybe you can reference the implement of inline function such as `from_unixtime`


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

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] xinghuayu007 commented on a change in pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
xinghuayu007 commented on a change in pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#discussion_r468267343



##########
File path: contrib/udf/src/udf_samples/parse_url.cpp
##########
@@ -0,0 +1,67 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "udf_sample.h"
+#include <string>
+#include<algorithm>

Review comment:
       fixed




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

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] WingsGo commented on a change in pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
WingsGo commented on a change in pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#discussion_r467657699



##########
File path: contrib/udf/src/udf_samples/parse_url.cpp
##########
@@ -0,0 +1,67 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "udf_sample.h"
+#include <string>
+#include<algorithm>

Review comment:
       #include <algorithm>




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

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] xinghuayu007 commented on pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
xinghuayu007 commented on pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#issuecomment-671664447


   > Hi, @xinghuayu007 Can you create an issue to explain why you add the udf parse url?Thx~~
   
   add issue #4320 


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

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] WingsGo commented on a change in pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
WingsGo commented on a change in pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#discussion_r467657699



##########
File path: contrib/udf/src/udf_samples/parse_url.cpp
##########
@@ -0,0 +1,67 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "udf_sample.h"
+#include <string>
+#include<algorithm>

Review comment:
       #include<algorithm>
   ```suggestion
   #include <algorithm>
   ```




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

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] xinghuayu007 closed pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
xinghuayu007 closed pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307


   


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

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] WingsGo commented on pull request #4307: udf: parse an url to get host, path, query, port, protocol

Posted by GitBox <gi...@apache.org>.
WingsGo commented on pull request #4307:
URL: https://github.com/apache/incubator-doris/pull/4307#issuecomment-671132600


   Hi, @xinghuayu007 Can you create an issue to explain why you add the udf parse url?Thx~~


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

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