thrift嵌套编译错误

定义

struct FieldSchema {
  1: string name, // name of the field
  2: string type, // type of the field. primitive types defined above, specify list<TYPE_NAME>, map<TYPE_NAME, TYPE_NAME> for lists & maps
  3: string comment,
  4: i32 part_num,
  5: i32 part_level,
  6: string part_type;
  7: string part_type_param,
  8: list<FieldSchema> subPartitionKeys,
}

错误

[ERROR:/home/dennis/tore.thrift:46] (last token was 'FieldSchema')
Type "FieldSchema" has not been defined.

原因:

目前,thrift还不支持嵌套定义