mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
fix(table-catalog): support Spark REST commits (#4788)
* fix(table-catalog): support Spark REST commits * chore(deps): update s3s SigV4 revision --------- Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
@@ -257,6 +257,7 @@ def spark_catalog_config(
|
||||
(f"{prefix}.type", "rest"),
|
||||
(f"{prefix}.uri", f"{endpoint}{rest_path}"),
|
||||
(f"{prefix}.warehouse", warehouse),
|
||||
(f"{prefix}.prefix", warehouse),
|
||||
(f"{prefix}.io-impl", "org.apache.iceberg.aws.s3.S3FileIO"),
|
||||
(f"{prefix}.s3.endpoint", endpoint),
|
||||
(f"{prefix}.s3.path-style-access", "true"),
|
||||
|
||||
@@ -57,6 +57,7 @@ class EngineCompatibilityTest(unittest.TestCase):
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.type"], "rest")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.uri"], "http://127.0.0.1:9000/iceberg")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.warehouse"], "rustfs-s3table-smoke")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.prefix"], "rustfs-s3table-smoke")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.io-impl"], "org.apache.iceberg.aws.s3.S3FileIO")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.s3.endpoint"], "http://127.0.0.1:9000")
|
||||
self.assertEqual(config["spark.sql.catalog.rustfs.rest.signing-name"], "s3")
|
||||
|
||||
Reference in New Issue
Block a user