### _Why are the changes needed?_ To fix #5492 When we use saveAsTable and write as a DataSource table, since CreateTableAsDataSource command's catalogTable was directly constructed by identifier and only will check when executing, so here authz will miss db information as below case  This fixes this issue by following the Spark's code <img width="1256" alt="截屏2023-10-21 下午3 37 37" src="https://github.com/apache/kyuubi/assets/46485123/d7c66db4-400b-4637-b75a-973a8a8a9968"> ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ No Closes #5493 from AngersZhuuuu/KYUUBI-5492. Closes #5492 46867aff2 [Angerszhuuuu] update 7a4c86fe2 [Angerszhuuuu] Merge branch 'master' into KYUUBI-5492 f56f29924 [Angerszhuuuu] Update RangerSparkExtensionSuite.scala 7bcfc236a [Angerszhuuuu] Merge branch 'master' into KYUUBI-5492 6f2472811 [Angerszhuuuu] [KYUUBI #5492] saveAsTable create DataSource table miss db info Authored-by: Angerszhuuuu <angers.zhu@gmail.com> Signed-off-by: Kent Yao <yao@apache.org> |
||
|---|---|---|
| .. | ||
| server/kyuubi-server-plugin | ||
| spark | ||
| README.md | ||
For developers
This folder contains plugins/extension for kyuubi server and different engine types.
- ext
- kyuubi-server
- spark
- flink
- trino
- hive
- others
- ...