我的Cassandra表中有一个名为'ABC_lines'的列 .
它是UDT数据类型 . UDT名称是“ABC_om_line”
如果我查看表ABC_lines的模式,这就是我的列类型的样子 .
ABC_lines列表>
我在这个UDT“ABC_om_line”下有30列 . 像col1,col2,col3等到col30 .
现在我想通过从这个UDT中拉出col2和col3来创建一个数据帧 .
谁能请帮忙 .
我使用Spark 1.6 Scala 2.10
不幸的是,连接器无法映射UDT的集合,请参见此处:https://github.com/datastax/spark-cassandra-connector/blob/master/doc/6_advanced_mapper.md#using-custom-field-types
Custom converters for collections are not supported
1 回答
不幸的是,连接器无法映射UDT的集合,请参见此处:https://github.com/datastax/spark-cassandra-connector/blob/master/doc/6_advanced_mapper.md#using-custom-field-types
Custom converters for collections are not supported