A field_id -1 (or any negative value) will be serialized as null in Thrift
| 202 | |
| 203 | // A field_id -1 (or any negative value) will be serialized as null in Thrift |
| 204 | static inline NodePtr Make(const std::string& name, Repetition::type repetition, |
| 205 | Type::type type, |
| 206 | ConvertedType::type converted_type = ConvertedType::NONE, |
| 207 | int length = -1, int precision = -1, int scale = -1, |
| 208 | int field_id = -1) { |
| 209 | return NodePtr(new PrimitiveNode(name, repetition, type, converted_type, length, |
| 210 | precision, scale, field_id)); |
| 211 | } |
| 212 | |
| 213 | // If no logical type, pass LogicalType::None() or nullptr |
| 214 | // A field_id -1 (or any negative value) will be serialized as null in Thrift |
no outgoing calls