Skip to content

Commit b209548

Browse files
committed
feature/WIP adding icerberg tables
1 parent e7fe8ab commit b209548

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/bronze/get_full_tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pyspark.sql import SparkSession #type:ignore
22
from pyspark.sql import DataFrame #type:ignore
3+
from pyspark.sql.types import StructType, StructField, StringType, IntegerType, FloatType #type:ignore
34
import pyspark.sql.functions as F #type:ignore
45
import argparse
56
import os
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- TDB --
2+
-- TABLE DDL FOR THE ICEBERG CATALOG --

src/bronze/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def get_iceberg_spark_session(self,cfg: Config) -> SparkSession:
3636
.config("spark.hadoop.fs.s3.impl", "org.apache.hadoop.fs.s3a.S3AFileSystem") \
3737
.getOrCreate()
3838
return spark
39-
def get_delta_spark_session(self,S3_ACCESS_KEY: str,S3_SECRET_KEY: str , S3_ENDPOINT: str) -> SparkSession:
4039

40+
def get_delta_spark_session(self,S3_ACCESS_KEY: str,S3_SECRET_KEY: str , S3_ENDPOINT: str) -> SparkSession:
4141
spark = SparkSession.builder \
4242
.appName("incremental_table_ingestion") \
4343
.config("spark.jars",

0 commit comments

Comments
 (0)