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 18, 2024
1 parent 77f121b commit c89c70b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ class PaimonCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite {
.foreach(i => sql(s"INSERT INTO $catalogV2.$namespace1.$table1 VALUES ($i, 'name_$i')"))
})

doAs(bob, sql(s"SELECT id FROM $catalogV2.$namespace1.$table1").show)

interceptEndsWith[AccessControlException] {
doAs(bob, sql(s"SELECT * FROM $catalogV2.$namespace1.$table1").show)
}(s"does not have [select] privilege on [$namespace1/$table1]")
doAs(someone, sql(s"SELECT id FROM $catalogV2.$namespace1.$table1").show)
}(s"does not have [select] privilege on [$namespace1/$table1/id]")
}
}
}

0 comments on commit c89c70b

Please sign in to comment.