Closed ericsun95 closed 4 years ago
To reduce redundant work, we'd better unify the naming to be the same as XML format data. Something like this (also for the common shared fields).
StructType( StructField(id,LongType,false), StructField(type,ByteType,false), StructField(lat,DoubleType,true), StructField(lon,DoubleType,true), StructField(nd,ArrayType(LongType,true),true), StructField(relations,ArrayType(StructType( StructField(id,LongType,true), StructField(type,ByteType,true), StructField(role,StringType,true) ),true),true), StructField(tags,MapType(StringType,StringType,true),true) )
To reduce redundant work, we'd better unify the naming to be the same as XML format data. Something like this (also for the common shared fields).