You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "yaooqinn (via GitHub)" <gi...@apache.org> on 2023/10/19 03:31:13 UTC
Re: [PR] [KYUUBI #5446][AUTHZ] Support Create/Drop/Show/Reresh index command for Hudi [kyuubi]
yaooqinn commented on code in PR #5448:
URL: https://github.com/apache/kyuubi/pull/5448#discussion_r1364835101
##########
extensions/spark/kyuubi-spark-authz/src/test/scala/org/apache/kyuubi/plugin/spark/authz/ranger/HudiCatalogRangerSparkExtensionSuite.scala:
##########
@@ -371,4 +371,58 @@ class HudiCatalogRangerSparkExtensionSuite extends RangerSparkExtensionSuite {
}
}
}
+
+ test("IndexBasedCommand") {
+ assume(
+ !isSparkV33OrGreater,
+ "Hudi index creation not supported on Spark 3.3 or greater currently")
+ withCleanTmpResources(Seq((s"$namespace1.$table1", "table"), (namespace1, "database"))) {
+ doAs(admin, sql(s"CREATE DATABASE IF NOT EXISTS $namespace1"))
+ doAs(
+ admin,
+ sql(
+ s"""
+ |CREATE TABLE IF NOT EXISTS $namespace1.$table1(id int, name string, city string)
+ |USING HUDI
+ |OPTIONS (
+ | type = 'cow',
+ | primaryKey = 'id',
+ | 'hoodie.datasource.hive_sync.enable' = 'false'
+ |)
+ |PARTITIONED BY(city)
+ |""".stripMargin))
+
+ // CreateIndexCommand
+ val createIndex = s"CREATE INDEX $index1 ON $namespace1.$table1 USING LUCENE (id)"
Review Comment:
Does this require create priv for namespace1.index1?
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org