定义
错误
[code]
[ERROR:/home/dennis/tore.thrift:46] (last token was 'FieldSchema')
Type "FieldSchema" has not been defined.
[/code]
原因:
目前,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,
}
错误
[code]
[ERROR:/home/dennis/tore.thrift:46] (last token was 'FieldSchema')
Type "FieldSchema" has not been defined.
[/code]
原因:
目前,thrift还不支持嵌套定义