Closed cccs-dm closed 3 years ago
Hello!
It seems there's a bug trying to insert data into a table containing a Spark StructField. I can create a table without any issues:
sc = spark.sparkContext df = SQLContext(sc).range(0, 1000) df = df.withColumn("MARK", F.struct(F.lit(7))) df.write.option("path", outputPath).format("iceberg").saveAsTable(tableName)
But when I try to insert more data in this table, I get an exception:
df.write.mode("overwrite").insertInto(tableName)
AnalysisException Traceback (most recent call last)
Hello!
It seems there's a bug trying to insert data into a table containing a Spark StructField. I can create a table without any issues:
But when I try to insert more data in this table, I get an exception:
df.write.mode("overwrite").insertInto(tableName)
AnalysisException Traceback (most recent call last)