java.lang.IllegalArgumentException: Unsupported type: StructType(StructField(id,StringType,true))

Stack Overflow | Nandan Rao | 10 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    spark-cassandra-connector - Creating Table from Dataframe - StructType?

    Stack Overflow | 10 months ago | Nandan Rao
    java.lang.IllegalArgumentException: Unsupported type: StructType(StructField(id,StringType,true))

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Unsupported type: StructType(StructField(id,StringType,true))

      at com.datastax.spark.connector.types.ColumnType$.unsupportedType$1()
    2. spark-cassandra-connector
      DataFrameColumnMapper$$anonfun$1.apply
      1. com.datastax.spark.connector.types.ColumnType$.unsupportedType$1(ColumnType.scala:132)
      2. com.datastax.spark.connector.types.ColumnType$.fromSparkSqlType(ColumnType.scala:155)
      3. com.datastax.spark.connector.mapper.DataFrameColumnMapper$$anonfun$1.apply(DataFrameColumnMapper.scala:18)
      4. com.datastax.spark.connector.mapper.DataFrameColumnMapper$$anonfun$1.apply(DataFrameColumnMapper.scala:16)
      4 frames
    3. Scala
      AbstractTraversable.map
      1. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      2. scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      3. scala.collection.immutable.List.foreach(List.scala:318)
      4. scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      5. scala.collection.AbstractTraversable.map(Traversable.scala:105)
      5 frames
    4. spark-cassandra-connector
      DataFrameFunctions.createCassandraTable
      1. com.datastax.spark.connector.mapper.DataFrameColumnMapper.newTable(DataFrameColumnMapper.scala:16)
      2. com.datastax.spark.connector.cql.TableDef$.fromDataFrame(Schema.scala:215)
      3. com.datastax.spark.connector.DataFrameFunctions.createCassandraTable(DataFrameFunctions.scala:26)
      3 frames