Closed mariusvniekerk closed 9 years ago
Confirmed, thanks !
Apache thrift dose not throw any errors, thriftpy designs it wrong.
Situations for errors about enums and value references:
enum A {
x
}
const A y = 1
=> ThriftParserError: Couldn't find a named value in enum A for value 1
enum A {}
const i32 y = A
=> ThriftParserError: No enum value or constant found named 'A'
enum A {}
const i32 y = A.x
=> ThriftParserError: Cann't find name 'A.x' at line 3
So i have a thrift file with this spec inside it. (from the hiveserver2 CLI service).
When trying to parse this i get a
It seems that values do not need to be names explicitly?