Skip to content

Commit

Permalink
Update 1_register_table.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ev2900 authored Oct 9, 2024
1 parent 4201858 commit 28b3e33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 1_register_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
.config("spark.sql.catalog.glue_catalog.catalog-impl", "org.apache.iceberg.aws.glue.GlueCatalog") \
.config("spark.sql.catalog.glue_catalog.io-impl", "org.apache.iceberg.aws.s3.S3FileIO") \
.getOrCreate()

query = f"""
CALL glue_catalog.system.register_table(
table => 'b.b',
metadata_file => 's3://b/metadata/Snapshot A.metadata.json'
"""

spark.sql(query)

0 comments on commit 28b3e33

Please sign in to comment.