You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/05/23 17:04:17 UTC
[GitHub] [hive] wecharyu opened a new pull request, #3316: HIVE-26259: Alter Function should also update resource uris
wecharyu opened a new pull request, #3316:
URL: https://github.com/apache/hive/pull/3316
### What changes were proposed in this pull request?
Add the alteration of resource uris for Function while calling `alter_function` api.
### Why are the changes needed?
Computing engines will load the jar of permanent UDF based on the resource uris, if we changed the resource uris through `alter_function` api, which apparently won't work, we will not able to use this UDF because of the lack of jars.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Add an unit test:
```bash
mvn test -Dtest=org.apache.hadoop.hive.metastore.TestObjectStore#testFunctionOps -pl :hive-standalone-metastore-server
```
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] wecharyu commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
wecharyu commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1167220190
Hi @pvary thanks for your concern. It is indeed important to do authorization for operating UDF.
But I do not think it should be an admin privilege for the user level function, user should be able to create or alter their UDF, so an `OWNER_PRIV` is enough just like #3360.
Also, we can achieve the authorization in Hive MetaStore by `MetaStorePreEventListener`, I think it can be done after #3360 because there will be some similar code.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] github-actions[bot] closed pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #3316: HIVE-26259: Alter Function should also update resource uris
URL: https://github.com/apache/hive/pull/3316
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] wecharyu commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
wecharyu commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1140389765
@pvary @ayushtkn Could you review this PR?
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] pvary commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
pvary commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1141681164
Do we have SQL support for this? If yes, then we might want to write a query test for it.
Also, please rebase, to fix the failing test.
Thanks, Peter
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] pvary commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
pvary commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1167081867
We should check around the security here.
I just realized that changing the resource URIs could allow to inject malicious code under a function, so in most live clusters this should be rejected for regular users, and only admins should do this.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-26259: Alter Function should also update resource uris [hive]
Posted by "wecharyu (via GitHub)" <gi...@apache.org>.
wecharyu commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1864440293
@ayushtkn could you take a look again and check if there is any change required?
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] wecharyu commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
wecharyu commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1142152111
Hive SQL does not support `ALTER FUNCTION` yet, we can create a new PR with this feature.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] wecharyu commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
wecharyu commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1167264597
> I would prefer to have a security check already at hand when we enable the alter function.
OK, I will also add the security check here.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] pvary commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
pvary commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1167246761
> Hi @pvary thanks for your concern. It is indeed important to do authorization for operating UDF. But I do not think it should be an admin privilege for the user level function, user should be able to create or alter their UDF, so an `OWNER_PRIV` is enough just like #3360.
Makes sense
> Also, we can achieve the authorization in Hive MetaStore by `MetaStorePreEventListener`, I think it can be done after #3360 because there will be some similar code.
I would prefer to have a security check already at hand when we enable the alter 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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
[GitHub] [hive] github-actions[bot] commented on pull request #3316: HIVE-26259: Alter Function should also update resource uris
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #3316:
URL: https://github.com/apache/hive/pull/3316#issuecomment-1231004746
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.
--
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: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org