| 25 | namespace engine { |
| 26 | |
| 27 | std::string EnumToString(int value, const google::protobuf::EnumDescriptor& descriptor) { |
| 28 | const google::protobuf::EnumValueDescriptor* value_desc = |
| 29 | descriptor.FindValueByNumber(value); |
| 30 | if (value_desc == nullptr) { |
| 31 | return "unknown"; |
| 32 | } |
| 33 | return std::string(value_desc->name()); |
| 34 | } |
| 35 | |
| 36 | std::unique_ptr<substrait::Version> CreateVersion() { |
| 37 | auto version = std::make_unique<substrait::Version>(); |