Skip to content

Commit

Permalink
[KYUUBI #6541] [AUTHZ] Fix DataSourceV2RelationTableExtractor#table c…
Browse files Browse the repository at this point in the history
…an't get the 'database' attribute if it's a Paimon plan.
  • Loading branch information
caoyu committed Jul 17, 2024
1 parent 9cfb584 commit 77f121b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ class PaimonCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite {
withCleanTmpResources(Seq((s"$catalogV2.$namespace1.$table1", "table"))) {
doAs(
bob, {
sql( s"""
|CREATE TABLE IF NOT EXISTS $catalogV2.$namespace1.$table1
|(id int, name string)
|USING paimon
|OPTIONS (
| primaryKey = 'id'
|)
|""".stripMargin)
sql(s"""
|CREATE TABLE IF NOT EXISTS $catalogV2.$namespace1.$table1
|(id int, name string)
|USING paimon
|OPTIONS (
| primaryKey = 'id'
|)
|""".stripMargin)
// insert 2 data files
(0 until 2)
.foreach(i => sql(s"INSERT INTO $catalogV2.$namespace1.$table1 VALUES ($i, 'name_$i')"))
Expand Down

0 comments on commit 77f121b

Please sign in to comment.