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/19 02:32:03 UTC

[GitHub] [doris] fisher997 opened a new issue, #13458: Implement the mask function of hive in Doris

fisher997 opened a new issue, #13458:
URL: https://github.com/apache/doris/issues/13458

   ### 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.
   
   
   ### Description
   
   我现在有个需求是在 doris中实现 hive 的mask 函数 , 用于数据脱敏 , 目前使用的版本是 1.1.1 ,是否可以用 java udf 函数实现;
   之前的想法是使用 CREATE ALIAS FUNCTION  , 但是不太灵活 无法实现多种参数的方式;
   
   ### Use case
   
   select mask("doris" , "*" ,1) ; d****
   select mask("doris" , "*" ,1,2) ; d**is
   
   
   
   ### Related issues
   
   _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] fisher997 commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
fisher997 commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1290014893

   已发邮件


-- 
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] [doris] stalary commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
stalary commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1284720062

   You can implement it in internal function. 


-- 
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] [doris] fisher997 commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
fisher997 commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1283356577

   > https://doris.apache.org/docs/dev/sql-manual/sql-functions/digital-masking https://doris.apache.org/docs/dev/sql-manual/sql-functions/string-functions/concat 参考这两个看是否能先绕着实现?
   
   自己写的话肯定是能实现的 , 但是上游给拼接的sql只会沿用 hive 的 mask 方式 , 也就是说 是在 doris 中 定义一个 mask函数 , 来实现脱敏


-- 
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] [doris] fisher997 commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
fisher997 commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1284990304

   能详细说一下吗,你指的是原生的UDF吗


-- 
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] [doris] dataalive commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
dataalive commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1283350261

   https://doris.apache.org/docs/dev/sql-manual/sql-functions/digital-masking
   https://doris.apache.org/docs/dev/sql-manual/sql-functions/string-functions/concat
   参考这两个看是否能先绕着实现?


-- 
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] [doris] LOVEGISER commented on issue #13458: Implement the mask function of hive in Doris

Posted by GitBox <gi...@apache.org>.
LOVEGISER commented on issue #13458:
URL: https://github.com/apache/doris/issues/13458#issuecomment-1289951878

   您好,麻烦提供下您这块的邮箱地址,我联系下您。或者发邮件到wanglei@flywheels.com。我们和您沟通下需求和设计。
   


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