As per the v0.38 release doc for the BQ-Spark connector, there is support for map type.
We were doing some functionality testing for a customer, and I tried to write the following map-type dataframe into BQ using the connector (using pyspark):
For reference, following is the schema as printed by df.printSchema():
However, when I try to write it to BQ I am getting the error that maptype is not supported: java.lang.IllegalArgumentException: MapType is unsupported.
For reference, I am using the latest v0.40 connector with spark version 3.5 at the GCS location gs://spark-lib/bigquery/spark-3.5-bigquery-0.40.0.jar, and following is the df.write() statement that I am using:
I wanted to ask if map-type only supported for scala or if the support is also extended for java using pyspark? And in case it is, can you please help resolving the issue as to how to perform the writes for map-type data?
Hello,
As per the v0.38 release doc for the BQ-Spark connector, there is support for map type.
We were doing some functionality testing for a customer, and I tried to write the following map-type dataframe into BQ using the connector (using pyspark):
For reference, following is the schema as printed by
df.printSchema()
:However, when I try to write it to BQ I am getting the error that maptype is not supported:
java.lang.IllegalArgumentException: MapType is unsupported.
For reference, I am using the latest v0.40 connector with spark version 3.5 at the GCS location
gs://spark-lib/bigquery/spark-3.5-bigquery-0.40.0.jar
, and following is the df.write() statement that I am using:I wanted to ask if map-type only supported for scala or if the support is also extended for java using pyspark? And in case it is, can you please help resolving the issue as to how to perform the writes for map-type data?