davidyuan1223 commented on PR #5590:
URL: https://github.com/apache/kyuubi/pull/5590#issuecomment-1787694278
> I want ask a question, why the admin to execute doAs in the next, don't
use sql to execute, i found your code is `doAs(admin, createTableAs)`, why not
is `doAs(admin,sql(createTableAs))`. And i found the DeltaCatalogRanger also
use doAs(user,mySql),but the HudiCatalog use doAs(user,sql(mySql)). Which is
the right way???
>
> @pan3793 could you give some advice
doAs code is
```
protected def doAs[T](user: String, f: => T): T = {
UserGroupInformation.createRemoteUser(user).doAs[T](
new PrivilegedExceptionAction[T] {
override def run(): T = f
})
}
```
If we not use spark.sql to execute our sql, it's only a string format???
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]