NhatDuy11 commented on issue #4914:
URL: https://github.com/apache/iceberg/issues/4914#issuecomment-1729292470
@ajantha-bhat hello,
I tried your method again but still did not receive the gzip file, only
received the parquet file when querying
from pyspark.sql import SparkSession
spark = SparkSession.builder \
.appName("CSVICEBERG") \
.config("spark.jars.packages",
"org.apache.iceberg:iceberg-spark-runtime-3.4_2.12:1.3.0") \
.config("spark.sql.extensions",
"org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions") \
.config("spark.sql.catalog.spark_catalog",
"org.apache.iceberg.spark.SparkSessionCatalog") \
.config("spark.sql.catalog.spark_catalog.type", "hive") \
.config("spark.sql.catalog.local",
"org.apache.iceberg.spark.SparkCatalog") \
.config("spark.sql.catalog.local.type", "hadoop") \
.config("spark.sql.catalog.local.warehouse", "D:\iceberg_warehouse") \
.config("spark.sql.defaultCatalog", "local") \
.config("write.parquet.compression-codec","gzip")\
.getOrCreate()
spark.sql("CREATE TABLE local.dcn.two (name STRING ,age INT) USING
iceberg TBLPROPERTIES('write.parquet.compression-codec'='gzip')").show()
spark.sql("insert into local.dcn.two values ('duy',1) ").show()
spark.sql("SELECT * FROM local.dcn.two ").show()
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]