diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index 8f2d743e..ac79df43 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -123,6 +123,7 @@ %nonterm iceberg_catalog_config_scope String %nonterm iceberg_catalog_uri String %nonterm iceberg_data logic.IcebergData +%nonterm full_table logic.IcebergTarget %nonterm iceberg_from_snapshot String %nonterm iceberg_locator logic.IcebergLocator %nonterm iceberg_locator_namespace Sequence[String] @@ -1225,16 +1226,24 @@ iceberg_to_snapshot construct: $$ = $3 deconstruct: $3: String = $$ +full_table + : "(" "full_table" relation_id "[" type* "]" ")" + construct: $$ = logic.IcebergTarget(target_id=$3, types=$5) + deconstruct: + $3: logic.RelationId = $$.target_id + $5: Sequence[logic.Type] = $$.types + iceberg_data - : "(" "iceberg_data" iceberg_locator iceberg_catalog_config gnf_columns iceberg_from_snapshot? iceberg_to_snapshot? boolean_value ")" - construct: $$ = construct_iceberg_data($3, $4, $5, $6, $7, $8) + : "(" "iceberg_data" iceberg_locator iceberg_catalog_config gnf_columns? full_table? iceberg_from_snapshot? iceberg_to_snapshot? boolean_value ")" + construct: $$ = construct_iceberg_data($3, $4, $5, $6, $7, $8, $9) deconstruct: $3: logic.IcebergLocator = $$.locator $4: logic.IcebergCatalogConfig = $$.config - $5: Sequence[logic.GNFColumn] = $$.columns - $6: Optional[String] = deconstruct_iceberg_data_from_snapshot_optional($$) - $7: Optional[String] = deconstruct_iceberg_data_to_snapshot_optional($$) - $8: Boolean = $$.returns_delta + $5: Optional[Sequence[logic.GNFColumn]] = $$.columns if not builtin.is_empty($$.columns) else None + $6: Optional[logic.IcebergTarget] = $$.target if builtin.has_proto_field($$, 'target') else None + $7: Optional[String] = deconstruct_iceberg_data_from_snapshot_optional($$) + $8: Optional[String] = deconstruct_iceberg_data_to_snapshot_optional($$) + $9: Boolean = $$.returns_delta undefine : "(" "undefine" fragment_id ")" @@ -1724,7 +1733,8 @@ def deconstruct_iceberg_catalog_config_scope_optional(msg: logic.IcebergCatalogC def construct_iceberg_data( locator: logic.IcebergLocator, config: logic.IcebergCatalogConfig, - columns: Sequence[logic.GNFColumn], + columns_opt: Optional[Sequence[logic.GNFColumn]], + target_opt: Optional[logic.IcebergTarget], from_snapshot_opt: Optional[String], to_snapshot_opt: Optional[String], returns_delta: Boolean, @@ -1732,7 +1742,8 @@ def construct_iceberg_data( return logic.IcebergData( locator=locator, config=config, - columns=columns, + columns=builtin.unwrap_option_or(columns_opt, list[logic.GNFColumn]()), + target=target_opt, from_snapshot=builtin.some(builtin.unwrap_option_or(from_snapshot_opt, "")), to_snapshot=builtin.some(builtin.unwrap_option_or(to_snapshot_opt, "")), returns_delta=returns_delta, diff --git a/proto/relationalai/lqp/v1/logic.proto b/proto/relationalai/lqp/v1/logic.proto index 918561b1..31c5765c 100644 --- a/proto/relationalai/lqp/v1/logic.proto +++ b/proto/relationalai/lqp/v1/logic.proto @@ -316,6 +316,11 @@ message CSVConfig { int64 partition_size_mb = 12; } +message IcebergTarget { + RelationId target_id = 1; + repeated Type types = 2; +} + message IcebergData { IcebergLocator locator = 1; IcebergCatalogConfig config = 2; @@ -323,6 +328,7 @@ message IcebergData { optional string from_snapshot = 4; optional string to_snapshot = 5; bool returns_delta = 6; + optional IcebergTarget target = 7; } message IcebergLocator { diff --git a/sdks/go/src/lqp/v1/logic.pb.go b/sdks/go/src/lqp/v1/logic.pb.go index 605c57e0..465acda9 100644 --- a/sdks/go/src/lqp/v1/logic.pb.go +++ b/sdks/go/src/lqp/v1/logic.pb.go @@ -3195,6 +3195,58 @@ func (x *CSVConfig) GetPartitionSizeMb() int64 { return 0 } +type IcebergTarget struct { + state protoimpl.MessageState `protogen:"open.v1"` + TargetId *RelationId `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` + Types []*Type `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IcebergTarget) Reset() { + *x = IcebergTarget{} + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IcebergTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IcebergTarget) ProtoMessage() {} + +func (x *IcebergTarget) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IcebergTarget.ProtoReflect.Descriptor instead. +func (*IcebergTarget) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{46} +} + +func (x *IcebergTarget) GetTargetId() *RelationId { + if x != nil { + return x.TargetId + } + return nil +} + +func (x *IcebergTarget) GetTypes() []*Type { + if x != nil { + return x.Types + } + return nil +} + type IcebergData struct { state protoimpl.MessageState `protogen:"open.v1"` Locator *IcebergLocator `protobuf:"bytes,1,opt,name=locator,proto3" json:"locator,omitempty"` @@ -3203,13 +3255,14 @@ type IcebergData struct { FromSnapshot *string `protobuf:"bytes,4,opt,name=from_snapshot,json=fromSnapshot,proto3,oneof" json:"from_snapshot,omitempty"` ToSnapshot *string `protobuf:"bytes,5,opt,name=to_snapshot,json=toSnapshot,proto3,oneof" json:"to_snapshot,omitempty"` ReturnsDelta bool `protobuf:"varint,6,opt,name=returns_delta,json=returnsDelta,proto3" json:"returns_delta,omitempty"` + Target *IcebergTarget `protobuf:"bytes,7,opt,name=target,proto3,oneof" json:"target,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *IcebergData) Reset() { *x = IcebergData{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3221,7 +3274,7 @@ func (x *IcebergData) String() string { func (*IcebergData) ProtoMessage() {} func (x *IcebergData) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3234,7 +3287,7 @@ func (x *IcebergData) ProtoReflect() protoreflect.Message { // Deprecated: Use IcebergData.ProtoReflect.Descriptor instead. func (*IcebergData) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{46} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{47} } func (x *IcebergData) GetLocator() *IcebergLocator { @@ -3279,6 +3332,13 @@ func (x *IcebergData) GetReturnsDelta() bool { return false } +func (x *IcebergData) GetTarget() *IcebergTarget { + if x != nil { + return x.Target + } + return nil +} + type IcebergLocator struct { state protoimpl.MessageState `protogen:"open.v1"` TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` @@ -3290,7 +3350,7 @@ type IcebergLocator struct { func (x *IcebergLocator) Reset() { *x = IcebergLocator{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3302,7 +3362,7 @@ func (x *IcebergLocator) String() string { func (*IcebergLocator) ProtoMessage() {} func (x *IcebergLocator) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3315,7 +3375,7 @@ func (x *IcebergLocator) ProtoReflect() protoreflect.Message { // Deprecated: Use IcebergLocator.ProtoReflect.Descriptor instead. func (*IcebergLocator) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{47} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{48} } func (x *IcebergLocator) GetTableName() string { @@ -3351,7 +3411,7 @@ type IcebergCatalogConfig struct { func (x *IcebergCatalogConfig) Reset() { *x = IcebergCatalogConfig{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3363,7 +3423,7 @@ func (x *IcebergCatalogConfig) String() string { func (*IcebergCatalogConfig) ProtoMessage() {} func (x *IcebergCatalogConfig) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3376,7 +3436,7 @@ func (x *IcebergCatalogConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use IcebergCatalogConfig.ProtoReflect.Descriptor instead. func (*IcebergCatalogConfig) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{48} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{49} } func (x *IcebergCatalogConfig) GetCatalogUri() string { @@ -3418,7 +3478,7 @@ type GNFColumn struct { func (x *GNFColumn) Reset() { *x = GNFColumn{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3430,7 +3490,7 @@ func (x *GNFColumn) String() string { func (*GNFColumn) ProtoMessage() {} func (x *GNFColumn) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3443,7 +3503,7 @@ func (x *GNFColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use GNFColumn.ProtoReflect.Descriptor instead. func (*GNFColumn) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{49} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{50} } func (x *GNFColumn) GetColumnPath() []string { @@ -3478,7 +3538,7 @@ type RelationId struct { func (x *RelationId) Reset() { *x = RelationId{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3490,7 +3550,7 @@ func (x *RelationId) String() string { func (*RelationId) ProtoMessage() {} func (x *RelationId) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3503,7 +3563,7 @@ func (x *RelationId) ProtoReflect() protoreflect.Message { // Deprecated: Use RelationId.ProtoReflect.Descriptor instead. func (*RelationId) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{50} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{51} } func (x *RelationId) GetIdLow() uint64 { @@ -3545,7 +3605,7 @@ type Type struct { func (x *Type) Reset() { *x = Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3557,7 +3617,7 @@ func (x *Type) String() string { func (*Type) ProtoMessage() {} func (x *Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3570,7 +3630,7 @@ func (x *Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Type.ProtoReflect.Descriptor instead. func (*Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{51} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{52} } func (x *Type) GetType() isType_Type { @@ -3802,7 +3862,7 @@ type UnspecifiedType struct { func (x *UnspecifiedType) Reset() { *x = UnspecifiedType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3814,7 +3874,7 @@ func (x *UnspecifiedType) String() string { func (*UnspecifiedType) ProtoMessage() {} func (x *UnspecifiedType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3827,7 +3887,7 @@ func (x *UnspecifiedType) ProtoReflect() protoreflect.Message { // Deprecated: Use UnspecifiedType.ProtoReflect.Descriptor instead. func (*UnspecifiedType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{52} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{53} } type StringType struct { @@ -3838,7 +3898,7 @@ type StringType struct { func (x *StringType) Reset() { *x = StringType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3850,7 +3910,7 @@ func (x *StringType) String() string { func (*StringType) ProtoMessage() {} func (x *StringType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3863,7 +3923,7 @@ func (x *StringType) ProtoReflect() protoreflect.Message { // Deprecated: Use StringType.ProtoReflect.Descriptor instead. func (*StringType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{53} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{54} } type IntType struct { @@ -3874,7 +3934,7 @@ type IntType struct { func (x *IntType) Reset() { *x = IntType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3886,7 +3946,7 @@ func (x *IntType) String() string { func (*IntType) ProtoMessage() {} func (x *IntType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3899,7 +3959,7 @@ func (x *IntType) ProtoReflect() protoreflect.Message { // Deprecated: Use IntType.ProtoReflect.Descriptor instead. func (*IntType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{54} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{55} } type FloatType struct { @@ -3910,7 +3970,7 @@ type FloatType struct { func (x *FloatType) Reset() { *x = FloatType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3922,7 +3982,7 @@ func (x *FloatType) String() string { func (*FloatType) ProtoMessage() {} func (x *FloatType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3935,7 +3995,7 @@ func (x *FloatType) ProtoReflect() protoreflect.Message { // Deprecated: Use FloatType.ProtoReflect.Descriptor instead. func (*FloatType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{55} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{56} } type UInt128Type struct { @@ -3946,7 +4006,7 @@ type UInt128Type struct { func (x *UInt128Type) Reset() { *x = UInt128Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3958,7 +4018,7 @@ func (x *UInt128Type) String() string { func (*UInt128Type) ProtoMessage() {} func (x *UInt128Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3971,7 +4031,7 @@ func (x *UInt128Type) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt128Type.ProtoReflect.Descriptor instead. func (*UInt128Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{56} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{57} } type Int128Type struct { @@ -3982,7 +4042,7 @@ type Int128Type struct { func (x *Int128Type) Reset() { *x = Int128Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3994,7 +4054,7 @@ func (x *Int128Type) String() string { func (*Int128Type) ProtoMessage() {} func (x *Int128Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4007,7 +4067,7 @@ func (x *Int128Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Int128Type.ProtoReflect.Descriptor instead. func (*Int128Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{57} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{58} } type DateType struct { @@ -4018,7 +4078,7 @@ type DateType struct { func (x *DateType) Reset() { *x = DateType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4030,7 +4090,7 @@ func (x *DateType) String() string { func (*DateType) ProtoMessage() {} func (x *DateType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4043,7 +4103,7 @@ func (x *DateType) ProtoReflect() protoreflect.Message { // Deprecated: Use DateType.ProtoReflect.Descriptor instead. func (*DateType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{58} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{59} } type DateTimeType struct { @@ -4054,7 +4114,7 @@ type DateTimeType struct { func (x *DateTimeType) Reset() { *x = DateTimeType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4066,7 +4126,7 @@ func (x *DateTimeType) String() string { func (*DateTimeType) ProtoMessage() {} func (x *DateTimeType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4079,7 +4139,7 @@ func (x *DateTimeType) ProtoReflect() protoreflect.Message { // Deprecated: Use DateTimeType.ProtoReflect.Descriptor instead. func (*DateTimeType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{59} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{60} } type MissingType struct { @@ -4090,7 +4150,7 @@ type MissingType struct { func (x *MissingType) Reset() { *x = MissingType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4102,7 +4162,7 @@ func (x *MissingType) String() string { func (*MissingType) ProtoMessage() {} func (x *MissingType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4115,7 +4175,7 @@ func (x *MissingType) ProtoReflect() protoreflect.Message { // Deprecated: Use MissingType.ProtoReflect.Descriptor instead. func (*MissingType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{60} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{61} } type DecimalType struct { @@ -4128,7 +4188,7 @@ type DecimalType struct { func (x *DecimalType) Reset() { *x = DecimalType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4140,7 +4200,7 @@ func (x *DecimalType) String() string { func (*DecimalType) ProtoMessage() {} func (x *DecimalType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4153,7 +4213,7 @@ func (x *DecimalType) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalType.ProtoReflect.Descriptor instead. func (*DecimalType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{61} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{62} } func (x *DecimalType) GetPrecision() int32 { @@ -4178,7 +4238,7 @@ type BooleanType struct { func (x *BooleanType) Reset() { *x = BooleanType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4190,7 +4250,7 @@ func (x *BooleanType) String() string { func (*BooleanType) ProtoMessage() {} func (x *BooleanType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4203,7 +4263,7 @@ func (x *BooleanType) ProtoReflect() protoreflect.Message { // Deprecated: Use BooleanType.ProtoReflect.Descriptor instead. func (*BooleanType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{62} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{63} } type Int32Type struct { @@ -4214,7 +4274,7 @@ type Int32Type struct { func (x *Int32Type) Reset() { *x = Int32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4226,7 +4286,7 @@ func (x *Int32Type) String() string { func (*Int32Type) ProtoMessage() {} func (x *Int32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4239,7 +4299,7 @@ func (x *Int32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Int32Type.ProtoReflect.Descriptor instead. func (*Int32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{63} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{64} } type Float32Type struct { @@ -4250,7 +4310,7 @@ type Float32Type struct { func (x *Float32Type) Reset() { *x = Float32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4262,7 +4322,7 @@ func (x *Float32Type) String() string { func (*Float32Type) ProtoMessage() {} func (x *Float32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4275,7 +4335,7 @@ func (x *Float32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Float32Type.ProtoReflect.Descriptor instead. func (*Float32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{64} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{65} } type UInt32Type struct { @@ -4286,7 +4346,7 @@ type UInt32Type struct { func (x *UInt32Type) Reset() { *x = UInt32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4298,7 +4358,7 @@ func (x *UInt32Type) String() string { func (*UInt32Type) ProtoMessage() {} func (x *UInt32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4311,7 +4371,7 @@ func (x *UInt32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt32Type.ProtoReflect.Descriptor instead. func (*UInt32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{65} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{66} } type Value struct { @@ -4338,7 +4398,7 @@ type Value struct { func (x *Value) Reset() { *x = Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4350,7 +4410,7 @@ func (x *Value) String() string { func (*Value) ProtoMessage() {} func (x *Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4363,7 +4423,7 @@ func (x *Value) ProtoReflect() protoreflect.Message { // Deprecated: Use Value.ProtoReflect.Descriptor instead. func (*Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{66} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{67} } func (x *Value) GetValue() isValue_Value { @@ -4582,7 +4642,7 @@ type UInt128Value struct { func (x *UInt128Value) Reset() { *x = UInt128Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4594,7 +4654,7 @@ func (x *UInt128Value) String() string { func (*UInt128Value) ProtoMessage() {} func (x *UInt128Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4607,7 +4667,7 @@ func (x *UInt128Value) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt128Value.ProtoReflect.Descriptor instead. func (*UInt128Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{67} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{68} } func (x *UInt128Value) GetLow() uint64 { @@ -4634,7 +4694,7 @@ type Int128Value struct { func (x *Int128Value) Reset() { *x = Int128Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4646,7 +4706,7 @@ func (x *Int128Value) String() string { func (*Int128Value) ProtoMessage() {} func (x *Int128Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4659,7 +4719,7 @@ func (x *Int128Value) ProtoReflect() protoreflect.Message { // Deprecated: Use Int128Value.ProtoReflect.Descriptor instead. func (*Int128Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{68} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{69} } func (x *Int128Value) GetLow() uint64 { @@ -4684,7 +4744,7 @@ type MissingValue struct { func (x *MissingValue) Reset() { *x = MissingValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4696,7 +4756,7 @@ func (x *MissingValue) String() string { func (*MissingValue) ProtoMessage() {} func (x *MissingValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4709,7 +4769,7 @@ func (x *MissingValue) ProtoReflect() protoreflect.Message { // Deprecated: Use MissingValue.ProtoReflect.Descriptor instead. func (*MissingValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{69} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{70} } type DateValue struct { @@ -4723,7 +4783,7 @@ type DateValue struct { func (x *DateValue) Reset() { *x = DateValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4735,7 +4795,7 @@ func (x *DateValue) String() string { func (*DateValue) ProtoMessage() {} func (x *DateValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4748,7 +4808,7 @@ func (x *DateValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DateValue.ProtoReflect.Descriptor instead. func (*DateValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{70} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{71} } func (x *DateValue) GetYear() int32 { @@ -4789,7 +4849,7 @@ type DateTimeValue struct { func (x *DateTimeValue) Reset() { *x = DateTimeValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4801,7 +4861,7 @@ func (x *DateTimeValue) String() string { func (*DateTimeValue) ProtoMessage() {} func (x *DateTimeValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4814,7 +4874,7 @@ func (x *DateTimeValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DateTimeValue.ProtoReflect.Descriptor instead. func (*DateTimeValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{71} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{72} } func (x *DateTimeValue) GetYear() int32 { @@ -4877,7 +4937,7 @@ type DecimalValue struct { func (x *DecimalValue) Reset() { *x = DecimalValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4889,7 +4949,7 @@ func (x *DecimalValue) String() string { func (*DecimalValue) ProtoMessage() {} func (x *DecimalValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[73] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4902,7 +4962,7 @@ func (x *DecimalValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalValue.ProtoReflect.Descriptor instead. func (*DecimalValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{72} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{73} } func (x *DecimalValue) GetPrecision() int32 { @@ -5391,7 +5451,15 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6d, 0x62, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x69, 0x7a, 0x65, 0x4d, 0x62, 0x22, 0xe0, 0x02, 0x0a, 0x0b, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, + 0x69, 0x7a, 0x65, 0x4d, 0x62, 0x22, 0x7e, 0x0a, 0x0d, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, + 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x3c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xac, 0x03, 0x0a, 0x0b, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, @@ -5411,215 +5479,219 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x48, 0x01, 0x52, 0x0a, 0x74, 0x6f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x73, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x6f, 0x5f, - 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x22, 0x6b, 0x0a, 0x0e, 0x49, 0x63, 0x65, 0x62, - 0x65, 0x72, 0x67, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, - 0x6f, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, - 0x68, 0x6f, 0x75, 0x73, 0x65, 0x22, 0xa1, 0x03, 0x0a, 0x14, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, - 0x67, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x55, 0x72, 0x69, 0x12, - 0x19, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, - 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, - 0x72, 0x74, 0x69, 0x65, 0x73, 0x12, 0x66, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, - 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x61, - 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, 0x0a, - 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, - 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, - 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, - 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, - 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, - 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, - 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, - 0x52, 0x06, 0x69, 0x64, 0x48, 0x69, 0x67, 0x68, 0x22, 0xd5, 0x07, 0x0a, 0x04, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x51, 0x0a, 0x10, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x6c, + 0x73, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x3f, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, + 0x62, 0x65, 0x72, 0x67, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x02, 0x52, 0x06, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, + 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x6f, + 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x22, 0x6b, 0x0a, 0x0e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x4c, + 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, + 0x65, 0x22, 0xa1, 0x03, 0x0a, 0x14, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x55, 0x72, 0x69, 0x12, 0x19, 0x0a, 0x05, 0x73, + 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x73, 0x63, + 0x6f, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x59, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, - 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, + 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x66, 0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, - 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x69, - 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, - 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x3c, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, - 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x74, - 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, - 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, - 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, - 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, - 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, - 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, - 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, - 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, - 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, + 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x70, 0x61, + 0x74, 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, 0x6f, 0x77, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x69, + 0x64, 0x5f, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x69, 0x64, + 0x48, 0x69, 0x67, 0x68, 0x22, 0xd5, 0x07, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x51, 0x0a, + 0x10, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, + 0x0f, 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x3f, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x45, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, + 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, + 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, + 0x38, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, + 0x0a, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, + 0x08, 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x61, 0x74, + 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, + 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x69, - 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x11, 0x0a, 0x0f, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, - 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x09, 0x0a, 0x07, 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0b, 0x0a, 0x09, - 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x55, 0x49, 0x6e, - 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x31, - 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x41, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, - 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, - 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x0c, 0x0a, 0x0a, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc0, 0x05, - 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, - 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, - 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, - 0x0a, 0x0d, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x64, 0x65, + 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, + 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, + 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6f, 0x6f, + 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, + 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, + 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, + 0x65, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x42, 0x0a, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, 0x74, - 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, - 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x31, - 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, - 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x48, 0x0a, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, - 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, - 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x64, 0x61, - 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, - 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x6d, - 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, + 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x11, 0x0a, 0x0f, + 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x0c, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x09, 0x0a, + 0x07, 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x46, 0x6c, 0x6f, 0x61, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, + 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0e, + 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, + 0x0a, 0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x41, 0x0a, + 0x0b, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, + 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, + 0x0b, 0x0a, 0x09, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, + 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x55, + 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc0, 0x05, 0x0a, 0x05, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, + 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, + 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x75, 0x69, + 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, + 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, + 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, + 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, - 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, - 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, - 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x66, - 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x00, 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, - 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, - 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, - 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, 0x0a, 0x0b, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, - 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, - 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, - 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, - 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, - 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, - 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, - 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x7a, 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, - 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, - 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, - 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, - 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, - 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, + 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, + 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, + 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x66, 0x6c, 0x6f, 0x61, 0x74, + 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, + 0x52, 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, + 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, + 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, + 0x67, 0x68, 0x22, 0x33, 0x0a, 0x0b, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, + 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, + 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, + 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, + 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, + 0x75, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x7a, 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, + 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -5634,7 +5706,7 @@ func file_relationalai_lqp_v1_logic_proto_rawDescGZIP() []byte { return file_relationalai_lqp_v1_logic_proto_rawDescData } -var file_relationalai_lqp_v1_logic_proto_msgTypes = make([]protoimpl.MessageInfo, 75) +var file_relationalai_lqp_v1_logic_proto_msgTypes = make([]protoimpl.MessageInfo, 76) var file_relationalai_lqp_v1_logic_proto_goTypes = []any{ (*Declaration)(nil), // 0: relationalai.lqp.v1.Declaration (*Def)(nil), // 1: relationalai.lqp.v1.Def @@ -5682,50 +5754,51 @@ var file_relationalai_lqp_v1_logic_proto_goTypes = []any{ (*CSVData)(nil), // 43: relationalai.lqp.v1.CSVData (*CSVLocator)(nil), // 44: relationalai.lqp.v1.CSVLocator (*CSVConfig)(nil), // 45: relationalai.lqp.v1.CSVConfig - (*IcebergData)(nil), // 46: relationalai.lqp.v1.IcebergData - (*IcebergLocator)(nil), // 47: relationalai.lqp.v1.IcebergLocator - (*IcebergCatalogConfig)(nil), // 48: relationalai.lqp.v1.IcebergCatalogConfig - (*GNFColumn)(nil), // 49: relationalai.lqp.v1.GNFColumn - (*RelationId)(nil), // 50: relationalai.lqp.v1.RelationId - (*Type)(nil), // 51: relationalai.lqp.v1.Type - (*UnspecifiedType)(nil), // 52: relationalai.lqp.v1.UnspecifiedType - (*StringType)(nil), // 53: relationalai.lqp.v1.StringType - (*IntType)(nil), // 54: relationalai.lqp.v1.IntType - (*FloatType)(nil), // 55: relationalai.lqp.v1.FloatType - (*UInt128Type)(nil), // 56: relationalai.lqp.v1.UInt128Type - (*Int128Type)(nil), // 57: relationalai.lqp.v1.Int128Type - (*DateType)(nil), // 58: relationalai.lqp.v1.DateType - (*DateTimeType)(nil), // 59: relationalai.lqp.v1.DateTimeType - (*MissingType)(nil), // 60: relationalai.lqp.v1.MissingType - (*DecimalType)(nil), // 61: relationalai.lqp.v1.DecimalType - (*BooleanType)(nil), // 62: relationalai.lqp.v1.BooleanType - (*Int32Type)(nil), // 63: relationalai.lqp.v1.Int32Type - (*Float32Type)(nil), // 64: relationalai.lqp.v1.Float32Type - (*UInt32Type)(nil), // 65: relationalai.lqp.v1.UInt32Type - (*Value)(nil), // 66: relationalai.lqp.v1.Value - (*UInt128Value)(nil), // 67: relationalai.lqp.v1.UInt128Value - (*Int128Value)(nil), // 68: relationalai.lqp.v1.Int128Value - (*MissingValue)(nil), // 69: relationalai.lqp.v1.MissingValue - (*DateValue)(nil), // 70: relationalai.lqp.v1.DateValue - (*DateTimeValue)(nil), // 71: relationalai.lqp.v1.DateTimeValue - (*DecimalValue)(nil), // 72: relationalai.lqp.v1.DecimalValue - nil, // 73: relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry - nil, // 74: relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry + (*IcebergTarget)(nil), // 46: relationalai.lqp.v1.IcebergTarget + (*IcebergData)(nil), // 47: relationalai.lqp.v1.IcebergData + (*IcebergLocator)(nil), // 48: relationalai.lqp.v1.IcebergLocator + (*IcebergCatalogConfig)(nil), // 49: relationalai.lqp.v1.IcebergCatalogConfig + (*GNFColumn)(nil), // 50: relationalai.lqp.v1.GNFColumn + (*RelationId)(nil), // 51: relationalai.lqp.v1.RelationId + (*Type)(nil), // 52: relationalai.lqp.v1.Type + (*UnspecifiedType)(nil), // 53: relationalai.lqp.v1.UnspecifiedType + (*StringType)(nil), // 54: relationalai.lqp.v1.StringType + (*IntType)(nil), // 55: relationalai.lqp.v1.IntType + (*FloatType)(nil), // 56: relationalai.lqp.v1.FloatType + (*UInt128Type)(nil), // 57: relationalai.lqp.v1.UInt128Type + (*Int128Type)(nil), // 58: relationalai.lqp.v1.Int128Type + (*DateType)(nil), // 59: relationalai.lqp.v1.DateType + (*DateTimeType)(nil), // 60: relationalai.lqp.v1.DateTimeType + (*MissingType)(nil), // 61: relationalai.lqp.v1.MissingType + (*DecimalType)(nil), // 62: relationalai.lqp.v1.DecimalType + (*BooleanType)(nil), // 63: relationalai.lqp.v1.BooleanType + (*Int32Type)(nil), // 64: relationalai.lqp.v1.Int32Type + (*Float32Type)(nil), // 65: relationalai.lqp.v1.Float32Type + (*UInt32Type)(nil), // 66: relationalai.lqp.v1.UInt32Type + (*Value)(nil), // 67: relationalai.lqp.v1.Value + (*UInt128Value)(nil), // 68: relationalai.lqp.v1.UInt128Value + (*Int128Value)(nil), // 69: relationalai.lqp.v1.Int128Value + (*MissingValue)(nil), // 70: relationalai.lqp.v1.MissingValue + (*DateValue)(nil), // 71: relationalai.lqp.v1.DateValue + (*DateTimeValue)(nil), // 72: relationalai.lqp.v1.DateTimeValue + (*DecimalValue)(nil), // 73: relationalai.lqp.v1.DecimalValue + nil, // 74: relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry + nil, // 75: relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry } var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 1, // 0: relationalai.lqp.v1.Declaration.def:type_name -> relationalai.lqp.v1.Def 4, // 1: relationalai.lqp.v1.Declaration.algorithm:type_name -> relationalai.lqp.v1.Algorithm 2, // 2: relationalai.lqp.v1.Declaration.constraint:type_name -> relationalai.lqp.v1.Constraint 37, // 3: relationalai.lqp.v1.Declaration.data:type_name -> relationalai.lqp.v1.Data - 50, // 4: relationalai.lqp.v1.Def.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 4: relationalai.lqp.v1.Def.name:type_name -> relationalai.lqp.v1.RelationId 20, // 5: relationalai.lqp.v1.Def.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 6: relationalai.lqp.v1.Def.attrs:type_name -> relationalai.lqp.v1.Attribute - 50, // 7: relationalai.lqp.v1.Constraint.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 7: relationalai.lqp.v1.Constraint.name:type_name -> relationalai.lqp.v1.RelationId 3, // 8: relationalai.lqp.v1.Constraint.functional_dependency:type_name -> relationalai.lqp.v1.FunctionalDependency 20, // 9: relationalai.lqp.v1.FunctionalDependency.guard:type_name -> relationalai.lqp.v1.Abstraction 35, // 10: relationalai.lqp.v1.FunctionalDependency.keys:type_name -> relationalai.lqp.v1.Var 35, // 11: relationalai.lqp.v1.FunctionalDependency.values:type_name -> relationalai.lqp.v1.Var - 50, // 12: relationalai.lqp.v1.Algorithm.global:type_name -> relationalai.lqp.v1.RelationId + 51, // 12: relationalai.lqp.v1.Algorithm.global:type_name -> relationalai.lqp.v1.RelationId 5, // 13: relationalai.lqp.v1.Algorithm.body:type_name -> relationalai.lqp.v1.Script 36, // 14: relationalai.lqp.v1.Algorithm.attrs:type_name -> relationalai.lqp.v1.Attribute 6, // 15: relationalai.lqp.v1.Script.constructs:type_name -> relationalai.lqp.v1.Construct @@ -5739,32 +5812,32 @@ var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 11, // 23: relationalai.lqp.v1.Instruction.break:type_name -> relationalai.lqp.v1.Break 12, // 24: relationalai.lqp.v1.Instruction.monoid_def:type_name -> relationalai.lqp.v1.MonoidDef 13, // 25: relationalai.lqp.v1.Instruction.monus_def:type_name -> relationalai.lqp.v1.MonusDef - 50, // 26: relationalai.lqp.v1.Assign.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 26: relationalai.lqp.v1.Assign.name:type_name -> relationalai.lqp.v1.RelationId 20, // 27: relationalai.lqp.v1.Assign.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 28: relationalai.lqp.v1.Assign.attrs:type_name -> relationalai.lqp.v1.Attribute - 50, // 29: relationalai.lqp.v1.Upsert.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 29: relationalai.lqp.v1.Upsert.name:type_name -> relationalai.lqp.v1.RelationId 20, // 30: relationalai.lqp.v1.Upsert.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 31: relationalai.lqp.v1.Upsert.attrs:type_name -> relationalai.lqp.v1.Attribute - 50, // 32: relationalai.lqp.v1.Break.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 32: relationalai.lqp.v1.Break.name:type_name -> relationalai.lqp.v1.RelationId 20, // 33: relationalai.lqp.v1.Break.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 34: relationalai.lqp.v1.Break.attrs:type_name -> relationalai.lqp.v1.Attribute 14, // 35: relationalai.lqp.v1.MonoidDef.monoid:type_name -> relationalai.lqp.v1.Monoid - 50, // 36: relationalai.lqp.v1.MonoidDef.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 36: relationalai.lqp.v1.MonoidDef.name:type_name -> relationalai.lqp.v1.RelationId 20, // 37: relationalai.lqp.v1.MonoidDef.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 38: relationalai.lqp.v1.MonoidDef.attrs:type_name -> relationalai.lqp.v1.Attribute 14, // 39: relationalai.lqp.v1.MonusDef.monoid:type_name -> relationalai.lqp.v1.Monoid - 50, // 40: relationalai.lqp.v1.MonusDef.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 40: relationalai.lqp.v1.MonusDef.name:type_name -> relationalai.lqp.v1.RelationId 20, // 41: relationalai.lqp.v1.MonusDef.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 42: relationalai.lqp.v1.MonusDef.attrs:type_name -> relationalai.lqp.v1.Attribute 15, // 43: relationalai.lqp.v1.Monoid.or_monoid:type_name -> relationalai.lqp.v1.OrMonoid 16, // 44: relationalai.lqp.v1.Monoid.min_monoid:type_name -> relationalai.lqp.v1.MinMonoid 17, // 45: relationalai.lqp.v1.Monoid.max_monoid:type_name -> relationalai.lqp.v1.MaxMonoid 18, // 46: relationalai.lqp.v1.Monoid.sum_monoid:type_name -> relationalai.lqp.v1.SumMonoid - 51, // 47: relationalai.lqp.v1.MinMonoid.type:type_name -> relationalai.lqp.v1.Type - 51, // 48: relationalai.lqp.v1.MaxMonoid.type:type_name -> relationalai.lqp.v1.Type - 51, // 49: relationalai.lqp.v1.SumMonoid.type:type_name -> relationalai.lqp.v1.Type + 52, // 47: relationalai.lqp.v1.MinMonoid.type:type_name -> relationalai.lqp.v1.Type + 52, // 48: relationalai.lqp.v1.MaxMonoid.type:type_name -> relationalai.lqp.v1.Type + 52, // 49: relationalai.lqp.v1.SumMonoid.type:type_name -> relationalai.lqp.v1.Type 35, // 50: relationalai.lqp.v1.Binding.var:type_name -> relationalai.lqp.v1.Var - 51, // 51: relationalai.lqp.v1.Binding.type:type_name -> relationalai.lqp.v1.Type + 52, // 51: relationalai.lqp.v1.Binding.type:type_name -> relationalai.lqp.v1.Type 19, // 52: relationalai.lqp.v1.Abstraction.vars:type_name -> relationalai.lqp.v1.Binding 21, // 53: relationalai.lqp.v1.Abstraction.value:type_name -> relationalai.lqp.v1.Formula 22, // 54: relationalai.lqp.v1.Formula.exists:type_name -> relationalai.lqp.v1.Exists @@ -5787,67 +5860,70 @@ var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 21, // 71: relationalai.lqp.v1.Not.arg:type_name -> relationalai.lqp.v1.Formula 20, // 72: relationalai.lqp.v1.FFI.args:type_name -> relationalai.lqp.v1.Abstraction 34, // 73: relationalai.lqp.v1.FFI.terms:type_name -> relationalai.lqp.v1.Term - 50, // 74: relationalai.lqp.v1.Atom.name:type_name -> relationalai.lqp.v1.RelationId + 51, // 74: relationalai.lqp.v1.Atom.name:type_name -> relationalai.lqp.v1.RelationId 34, // 75: relationalai.lqp.v1.Atom.terms:type_name -> relationalai.lqp.v1.Term 34, // 76: relationalai.lqp.v1.Pragma.terms:type_name -> relationalai.lqp.v1.Term 33, // 77: relationalai.lqp.v1.Primitive.terms:type_name -> relationalai.lqp.v1.RelTerm 33, // 78: relationalai.lqp.v1.RelAtom.terms:type_name -> relationalai.lqp.v1.RelTerm 34, // 79: relationalai.lqp.v1.Cast.input:type_name -> relationalai.lqp.v1.Term 34, // 80: relationalai.lqp.v1.Cast.result:type_name -> relationalai.lqp.v1.Term - 66, // 81: relationalai.lqp.v1.RelTerm.specialized_value:type_name -> relationalai.lqp.v1.Value + 67, // 81: relationalai.lqp.v1.RelTerm.specialized_value:type_name -> relationalai.lqp.v1.Value 34, // 82: relationalai.lqp.v1.RelTerm.term:type_name -> relationalai.lqp.v1.Term 35, // 83: relationalai.lqp.v1.Term.var:type_name -> relationalai.lqp.v1.Var - 66, // 84: relationalai.lqp.v1.Term.constant:type_name -> relationalai.lqp.v1.Value - 66, // 85: relationalai.lqp.v1.Attribute.args:type_name -> relationalai.lqp.v1.Value + 67, // 84: relationalai.lqp.v1.Term.constant:type_name -> relationalai.lqp.v1.Value + 67, // 85: relationalai.lqp.v1.Attribute.args:type_name -> relationalai.lqp.v1.Value 38, // 86: relationalai.lqp.v1.Data.edb:type_name -> relationalai.lqp.v1.EDB 39, // 87: relationalai.lqp.v1.Data.betree_relation:type_name -> relationalai.lqp.v1.BeTreeRelation 43, // 88: relationalai.lqp.v1.Data.csv_data:type_name -> relationalai.lqp.v1.CSVData - 46, // 89: relationalai.lqp.v1.Data.iceberg_data:type_name -> relationalai.lqp.v1.IcebergData - 50, // 90: relationalai.lqp.v1.EDB.target_id:type_name -> relationalai.lqp.v1.RelationId - 51, // 91: relationalai.lqp.v1.EDB.types:type_name -> relationalai.lqp.v1.Type - 50, // 92: relationalai.lqp.v1.BeTreeRelation.name:type_name -> relationalai.lqp.v1.RelationId + 47, // 89: relationalai.lqp.v1.Data.iceberg_data:type_name -> relationalai.lqp.v1.IcebergData + 51, // 90: relationalai.lqp.v1.EDB.target_id:type_name -> relationalai.lqp.v1.RelationId + 52, // 91: relationalai.lqp.v1.EDB.types:type_name -> relationalai.lqp.v1.Type + 51, // 92: relationalai.lqp.v1.BeTreeRelation.name:type_name -> relationalai.lqp.v1.RelationId 40, // 93: relationalai.lqp.v1.BeTreeRelation.relation_info:type_name -> relationalai.lqp.v1.BeTreeInfo - 51, // 94: relationalai.lqp.v1.BeTreeInfo.key_types:type_name -> relationalai.lqp.v1.Type - 51, // 95: relationalai.lqp.v1.BeTreeInfo.value_types:type_name -> relationalai.lqp.v1.Type + 52, // 94: relationalai.lqp.v1.BeTreeInfo.key_types:type_name -> relationalai.lqp.v1.Type + 52, // 95: relationalai.lqp.v1.BeTreeInfo.value_types:type_name -> relationalai.lqp.v1.Type 41, // 96: relationalai.lqp.v1.BeTreeInfo.storage_config:type_name -> relationalai.lqp.v1.BeTreeConfig 42, // 97: relationalai.lqp.v1.BeTreeInfo.relation_locator:type_name -> relationalai.lqp.v1.BeTreeLocator - 67, // 98: relationalai.lqp.v1.BeTreeLocator.root_pageid:type_name -> relationalai.lqp.v1.UInt128Value + 68, // 98: relationalai.lqp.v1.BeTreeLocator.root_pageid:type_name -> relationalai.lqp.v1.UInt128Value 44, // 99: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator 45, // 100: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig - 49, // 101: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn - 47, // 102: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator - 48, // 103: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergCatalogConfig - 49, // 104: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn - 73, // 105: relationalai.lqp.v1.IcebergCatalogConfig.properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry - 74, // 106: relationalai.lqp.v1.IcebergCatalogConfig.auth_properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry - 50, // 107: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId - 51, // 108: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type - 52, // 109: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType - 53, // 110: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType - 54, // 111: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType - 55, // 112: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType - 56, // 113: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type - 57, // 114: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type - 58, // 115: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType - 59, // 116: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType - 60, // 117: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType - 61, // 118: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType - 62, // 119: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType - 63, // 120: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type - 64, // 121: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type - 65, // 122: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type - 67, // 123: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value - 68, // 124: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value - 69, // 125: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue - 70, // 126: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue - 71, // 127: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue - 72, // 128: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue - 68, // 129: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value - 130, // [130:130] is the sub-list for method output_type - 130, // [130:130] is the sub-list for method input_type - 130, // [130:130] is the sub-list for extension type_name - 130, // [130:130] is the sub-list for extension extendee - 0, // [0:130] is the sub-list for field type_name + 50, // 101: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 51, // 102: relationalai.lqp.v1.IcebergTarget.target_id:type_name -> relationalai.lqp.v1.RelationId + 52, // 103: relationalai.lqp.v1.IcebergTarget.types:type_name -> relationalai.lqp.v1.Type + 48, // 104: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator + 49, // 105: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergCatalogConfig + 50, // 106: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 46, // 107: relationalai.lqp.v1.IcebergData.target:type_name -> relationalai.lqp.v1.IcebergTarget + 74, // 108: relationalai.lqp.v1.IcebergCatalogConfig.properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry + 75, // 109: relationalai.lqp.v1.IcebergCatalogConfig.auth_properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry + 51, // 110: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId + 52, // 111: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type + 53, // 112: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType + 54, // 113: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType + 55, // 114: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType + 56, // 115: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType + 57, // 116: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type + 58, // 117: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type + 59, // 118: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType + 60, // 119: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType + 61, // 120: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType + 62, // 121: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType + 63, // 122: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType + 64, // 123: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type + 65, // 124: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type + 66, // 125: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type + 68, // 126: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value + 69, // 127: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value + 70, // 128: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue + 71, // 129: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue + 72, // 130: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue + 73, // 131: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue + 69, // 132: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value + 133, // [133:133] is the sub-list for method output_type + 133, // [133:133] is the sub-list for method input_type + 133, // [133:133] is the sub-list for extension type_name + 133, // [133:133] is the sub-list for extension extendee + 0, // [0:133] is the sub-list for field type_name } func init() { file_relationalai_lqp_v1_logic_proto_init() } @@ -5912,10 +5988,10 @@ func file_relationalai_lqp_v1_logic_proto_init() { (*BeTreeLocator_RootPageid)(nil), (*BeTreeLocator_InlineData)(nil), } - file_relationalai_lqp_v1_logic_proto_msgTypes[46].OneofWrappers = []any{} - file_relationalai_lqp_v1_logic_proto_msgTypes[48].OneofWrappers = []any{} + file_relationalai_lqp_v1_logic_proto_msgTypes[47].OneofWrappers = []any{} file_relationalai_lqp_v1_logic_proto_msgTypes[49].OneofWrappers = []any{} - file_relationalai_lqp_v1_logic_proto_msgTypes[51].OneofWrappers = []any{ + file_relationalai_lqp_v1_logic_proto_msgTypes[50].OneofWrappers = []any{} + file_relationalai_lqp_v1_logic_proto_msgTypes[52].OneofWrappers = []any{ (*Type_UnspecifiedType)(nil), (*Type_StringType)(nil), (*Type_IntType)(nil), @@ -5931,7 +6007,7 @@ func file_relationalai_lqp_v1_logic_proto_init() { (*Type_Float32Type)(nil), (*Type_Uint32Type)(nil), } - file_relationalai_lqp_v1_logic_proto_msgTypes[66].OneofWrappers = []any{ + file_relationalai_lqp_v1_logic_proto_msgTypes[67].OneofWrappers = []any{ (*Value_StringValue)(nil), (*Value_IntValue)(nil), (*Value_FloatValue)(nil), @@ -5952,7 +6028,7 @@ func file_relationalai_lqp_v1_logic_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_relationalai_lqp_v1_logic_proto_rawDesc), len(file_relationalai_lqp_v1_logic_proto_rawDesc)), NumEnums: 0, - NumMessages: 75, + NumMessages: 76, NumExtensions: 0, NumServices: 0, }, diff --git a/sdks/go/src/lqp/v1/transactions.pb.go b/sdks/go/src/lqp/v1/transactions.pb.go index 90f3754e..b1a0ca1f 100644 --- a/sdks/go/src/lqp/v1/transactions.pb.go +++ b/sdks/go/src/lqp/v1/transactions.pb.go @@ -1648,7 +1648,7 @@ var file_relationalai_lqp_v1_transactions_proto_rawDesc = string([]byte{ 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x22, 0xa2, 0x04, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x63, 0x65, 0x62, 0x65, + 0x22, 0xa8, 0x04, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, @@ -1682,72 +1682,72 @@ var file_relationalai_lqp_v1_transactions_proto_rawDesc = string([]byte{ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x19, 0x0a, 0x17, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0xa4, 0x02, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x35, - 0x0a, 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0xa4, 0x02, 0x0a, 0x04, + 0x52, 0x65, 0x61, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6d, 0x61, 0x6e, + 0x64, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x77, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x66, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, + 0x48, 0x00, 0x52, 0x06, 0x77, 0x68, 0x61, 0x74, 0x49, 0x66, 0x12, 0x32, 0x0a, 0x05, 0x61, 0x62, + 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x62, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x35, + 0x0a, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, - 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x64, - 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, - 0x77, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x06, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x0b, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5e, + 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb3, + 0x01, 0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x73, 0x76, + 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x48, 0x00, 0x52, 0x06, 0x77, 0x68, - 0x61, 0x74, 0x49, 0x66, 0x12, 0x32, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x48, - 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x63, 0x73, 0x76, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x51, 0x0a, 0x0e, 0x69, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, - 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, - 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x06, - 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x06, 0x45, 0x78, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, - 0x09, 0x63, 0x73, 0x76, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x51, 0x0a, 0x0e, 0x69, 0x63, - 0x65, 0x62, 0x65, 0x72, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x49, - 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0d, - 0x69, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0f, 0x0a, - 0x0d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x52, - 0x0a, 0x06, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, - 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x12, 0x30, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, - 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, - 0x63, 0x68, 0x22, 0x5d, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x2a, 0x87, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, - 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, - 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, - 0x46, 0x46, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, - 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, - 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, - 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x43, 0x5a, 0x41, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, - 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x42, 0x0f, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x22, 0x52, 0x0a, 0x06, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x12, 0x16, + 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, + 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x5d, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x72, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x2a, 0x87, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, + 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x21, 0x0a, 0x1d, + 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, + 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, + 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x46, 0x46, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x41, + 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, + 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, + 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x4c, 0x4c, 0x10, + 0x03, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, + 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, + 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( diff --git a/sdks/go/src/parser.go b/sdks/go/src/parser.go index 826e4e47..5a5bccd2 100644 --- a/sdks/go/src/parser.go +++ b/sdks/go/src/parser.go @@ -655,152 +655,152 @@ func toPascalCase(s string) string { // --- Helper functions --- func (p *Parser) _extract_value_int32(value *pb.Value, default_ int64) int32 { - var _t2094 interface{} + var _t2116 interface{} if (value != nil && hasProtoField(value, "int32_value")) { return value.GetInt32Value() } - _ = _t2094 + _ = _t2116 return int32(default_) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t2095 interface{} + var _t2117 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t2095 + _ = _t2117 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t2096 interface{} + var _t2118 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t2096 + _ = _t2118 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t2097 interface{} + var _t2119 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t2097 + _ = _t2119 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t2098 interface{} + var _t2120 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t2098 + _ = _t2120 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t2099 interface{} + var _t2121 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t2099 + _ = _t2121 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t2100 interface{} + var _t2122 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t2100 + _ = _t2122 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t2101 interface{} + var _t2123 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t2101 + _ = _t2123 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t2102 interface{} + var _t2124 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t2102 + _ = _t2124 return nil } func (p *Parser) construct_csv_config(config_dict [][]interface{}) *pb.CSVConfig { config := dictFromList(config_dict) - _t2103 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) - header_row := _t2103 - _t2104 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) - skip := _t2104 - _t2105 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") - new_line := _t2105 - _t2106 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") - delimiter := _t2106 - _t2107 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") - quotechar := _t2107 - _t2108 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") - escapechar := _t2108 - _t2109 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") - comment := _t2109 - _t2110 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) - missing_strings := _t2110 - _t2111 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") - decimal_separator := _t2111 - _t2112 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") - encoding := _t2112 - _t2113 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") - compression := _t2113 - _t2114 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) - partition_size_mb := _t2114 - _t2115 := &pb.CSVConfig{HeaderRow: header_row, Skip: skip, NewLine: new_line, Delimiter: delimiter, Quotechar: quotechar, Escapechar: escapechar, Comment: comment, MissingStrings: missing_strings, DecimalSeparator: decimal_separator, Encoding: encoding, Compression: compression, PartitionSizeMb: partition_size_mb} - return _t2115 + _t2125 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t2125 + _t2126 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t2126 + _t2127 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t2127 + _t2128 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t2128 + _t2129 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t2129 + _t2130 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t2130 + _t2131 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t2131 + _t2132 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t2132 + _t2133 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t2133 + _t2134 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t2134 + _t2135 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") + compression := _t2135 + _t2136 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t2136 + _t2137 := &pb.CSVConfig{HeaderRow: header_row, Skip: skip, NewLine: new_line, Delimiter: delimiter, Quotechar: quotechar, Escapechar: escapechar, Comment: comment, MissingStrings: missing_strings, DecimalSeparator: decimal_separator, Encoding: encoding, Compression: compression, PartitionSizeMb: partition_size_mb} + return _t2137 } func (p *Parser) construct_betree_info(key_types []*pb.Type, value_types []*pb.Type, config_dict [][]interface{}) *pb.BeTreeInfo { config := dictFromList(config_dict) - _t2116 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) - epsilon := _t2116 - _t2117 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) - max_pivots := _t2117 - _t2118 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) - max_deltas := _t2118 - _t2119 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) - max_leaf := _t2119 - _t2120 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} - storage_config := _t2120 - _t2121 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) - root_pageid := _t2121 - _t2122 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) - inline_data := _t2122 - _t2123 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) - element_count := _t2123 - _t2124 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) - tree_height := _t2124 - _t2125 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} + _t2138 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t2138 + _t2139 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t2139 + _t2140 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t2140 + _t2141 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t2141 + _t2142 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t2142 + _t2143 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t2143 + _t2144 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t2144 + _t2145 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t2145 + _t2146 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t2146 + _t2147 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t2125.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t2147.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t2125.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t2147.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} } - relation_locator := _t2125 - _t2126 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} - return _t2126 + relation_locator := _t2147 + _t2148 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t2148 } func (p *Parser) default_configure() *pb.Configure { - _t2127 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} - ivm_config := _t2127 - _t2128 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} - return _t2128 + _t2149 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t2149 + _t2150 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t2150 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -822,4259 +822,4297 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } } - _t2129 := &pb.IVMConfig{Level: maintenance_level} - ivm_config := _t2129 - _t2130 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) - semantics_version := _t2130 - _t2131 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} - return _t2131 + _t2151 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t2151 + _t2152 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t2152 + _t2153 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} + return _t2153 } func (p *Parser) construct_export_csv_config(path string, columns []*pb.ExportCSVColumn, config_dict [][]interface{}) *pb.ExportCSVConfig { config := dictFromList(config_dict) - _t2132 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) - partition_size := _t2132 - _t2133 := p._extract_value_string(dictGetValue(config, "compression"), "") - compression := _t2133 - _t2134 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) - syntax_header_row := _t2134 - _t2135 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") - syntax_missing_string := _t2135 - _t2136 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") - syntax_delim := _t2136 - _t2137 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") - syntax_quotechar := _t2137 - _t2138 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") - syntax_escapechar := _t2138 - _t2139 := &pb.ExportCSVConfig{Path: path, DataColumns: columns, PartitionSize: ptr(partition_size), Compression: ptr(compression), SyntaxHeaderRow: ptr(syntax_header_row), SyntaxMissingString: ptr(syntax_missing_string), SyntaxDelim: ptr(syntax_delim), SyntaxQuotechar: ptr(syntax_quotechar), SyntaxEscapechar: ptr(syntax_escapechar)} - return _t2139 + _t2154 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t2154 + _t2155 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t2155 + _t2156 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t2156 + _t2157 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t2157 + _t2158 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t2158 + _t2159 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t2159 + _t2160 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t2160 + _t2161 := &pb.ExportCSVConfig{Path: path, DataColumns: columns, PartitionSize: ptr(partition_size), Compression: ptr(compression), SyntaxHeaderRow: ptr(syntax_header_row), SyntaxMissingString: ptr(syntax_missing_string), SyntaxDelim: ptr(syntax_delim), SyntaxQuotechar: ptr(syntax_quotechar), SyntaxEscapechar: ptr(syntax_escapechar)} + return _t2161 } func (p *Parser) construct_export_csv_config_with_source(path string, csv_source *pb.ExportCSVSource, csv_config *pb.CSVConfig) *pb.ExportCSVConfig { - _t2140 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} - return _t2140 + _t2162 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} + return _t2162 } func (p *Parser) construct_iceberg_catalog_config(catalog_uri string, scope_opt *string, property_pairs [][]interface{}, auth_property_pairs [][]interface{}) *pb.IcebergCatalogConfig { props := stringMapFromPairs(property_pairs) auth_props := stringMapFromPairs(auth_property_pairs) - _t2141 := &pb.IcebergCatalogConfig{CatalogUri: catalog_uri, Scope: ptr(deref(scope_opt, "")), Properties: props, AuthProperties: auth_props} - return _t2141 + _t2163 := &pb.IcebergCatalogConfig{CatalogUri: catalog_uri, Scope: ptr(deref(scope_opt, "")), Properties: props, AuthProperties: auth_props} + return _t2163 } -func (p *Parser) construct_iceberg_data(locator *pb.IcebergLocator, config *pb.IcebergCatalogConfig, columns []*pb.GNFColumn, from_snapshot_opt *string, to_snapshot_opt *string, returns_delta bool) *pb.IcebergData { - _t2142 := &pb.IcebergData{Locator: locator, Config: config, Columns: columns, FromSnapshot: ptr(deref(from_snapshot_opt, "")), ToSnapshot: ptr(deref(to_snapshot_opt, "")), ReturnsDelta: returns_delta} - return _t2142 +func (p *Parser) construct_iceberg_data(locator *pb.IcebergLocator, config *pb.IcebergCatalogConfig, columns_opt []*pb.GNFColumn, target_opt *pb.IcebergTarget, from_snapshot_opt *string, to_snapshot_opt *string, returns_delta bool) *pb.IcebergData { + _t2164 := columns_opt + if columns_opt == nil { + _t2164 = []*pb.GNFColumn{} + } + _t2165 := &pb.IcebergData{Locator: locator, Config: config, Columns: _t2164, Target: target_opt, FromSnapshot: ptr(deref(from_snapshot_opt, "")), ToSnapshot: ptr(deref(to_snapshot_opt, "")), ReturnsDelta: returns_delta} + return _t2165 } func (p *Parser) construct_export_iceberg_config_full(locator *pb.IcebergLocator, config *pb.IcebergCatalogConfig, table_def *pb.RelationId, table_property_pairs [][]interface{}, config_dict [][]interface{}) *pb.ExportIcebergConfig { - _t2143 := config_dict + _t2166 := config_dict if config_dict == nil { - _t2143 = [][]interface{}{} - } - cfg := dictFromList(_t2143) - _t2144 := p._extract_value_string(dictGetValue(cfg, "prefix"), "") - prefix := _t2144 - _t2145 := p._extract_value_int64(dictGetValue(cfg, "target_file_size_bytes"), 0) - target_file_size_bytes := _t2145 - _t2146 := p._extract_value_string(dictGetValue(cfg, "compression"), "") - compression := _t2146 + _t2166 = [][]interface{}{} + } + cfg := dictFromList(_t2166) + _t2167 := p._extract_value_string(dictGetValue(cfg, "prefix"), "") + prefix := _t2167 + _t2168 := p._extract_value_int64(dictGetValue(cfg, "target_file_size_bytes"), 0) + target_file_size_bytes := _t2168 + _t2169 := p._extract_value_string(dictGetValue(cfg, "compression"), "") + compression := _t2169 table_props := stringMapFromPairs(table_property_pairs) - _t2147 := &pb.ExportIcebergConfig{Locator: locator, Config: config, TableDef: table_def, Prefix: ptr(prefix), TargetFileSizeBytes: ptr(target_file_size_bytes), Compression: compression, TableProperties: table_props} - return _t2147 + _t2170 := &pb.ExportIcebergConfig{Locator: locator, Config: config, TableDef: table_def, Prefix: ptr(prefix), TargetFileSizeBytes: ptr(target_file_size_bytes), Compression: compression, TableProperties: table_props} + return _t2170 } // --- Parse functions --- func (p *Parser) parse_transaction() *pb.Transaction { - span_start671 := int64(p.spanStart()) + span_start679 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("transaction") - var _t1330 *pb.Configure + var _t1346 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t1331 := p.parse_configure() - _t1330 = _t1331 + _t1347 := p.parse_configure() + _t1346 = _t1347 } - configure665 := _t1330 - var _t1332 *pb.Sync + configure673 := _t1346 + var _t1348 *pb.Sync if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("sync", 1)) { - _t1333 := p.parse_sync() - _t1332 = _t1333 - } - sync666 := _t1332 - xs667 := []*pb.Epoch{} - cond668 := p.matchLookaheadLiteral("(", 0) - for cond668 { - _t1334 := p.parse_epoch() - item669 := _t1334 - xs667 = append(xs667, item669) - cond668 = p.matchLookaheadLiteral("(", 0) - } - epochs670 := xs667 + _t1349 := p.parse_sync() + _t1348 = _t1349 + } + sync674 := _t1348 + xs675 := []*pb.Epoch{} + cond676 := p.matchLookaheadLiteral("(", 0) + for cond676 { + _t1350 := p.parse_epoch() + item677 := _t1350 + xs675 = append(xs675, item677) + cond676 = p.matchLookaheadLiteral("(", 0) + } + epochs678 := xs675 p.consumeLiteral(")") - _t1335 := p.default_configure() - _t1336 := configure665 - if configure665 == nil { - _t1336 = _t1335 + _t1351 := p.default_configure() + _t1352 := configure673 + if configure673 == nil { + _t1352 = _t1351 } - _t1337 := &pb.Transaction{Epochs: epochs670, Configure: _t1336, Sync: sync666} - result672 := _t1337 - p.recordSpan(int(span_start671), "Transaction") - return result672 + _t1353 := &pb.Transaction{Epochs: epochs678, Configure: _t1352, Sync: sync674} + result680 := _t1353 + p.recordSpan(int(span_start679), "Transaction") + return result680 } func (p *Parser) parse_configure() *pb.Configure { - span_start674 := int64(p.spanStart()) + span_start682 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("configure") - _t1338 := p.parse_config_dict() - config_dict673 := _t1338 + _t1354 := p.parse_config_dict() + config_dict681 := _t1354 p.consumeLiteral(")") - _t1339 := p.construct_configure(config_dict673) - result675 := _t1339 - p.recordSpan(int(span_start674), "Configure") - return result675 + _t1355 := p.construct_configure(config_dict681) + result683 := _t1355 + p.recordSpan(int(span_start682), "Configure") + return result683 } func (p *Parser) parse_config_dict() [][]interface{} { p.consumeLiteral("{") - xs676 := [][]interface{}{} - cond677 := p.matchLookaheadLiteral(":", 0) - for cond677 { - _t1340 := p.parse_config_key_value() - item678 := _t1340 - xs676 = append(xs676, item678) - cond677 = p.matchLookaheadLiteral(":", 0) - } - config_key_values679 := xs676 + xs684 := [][]interface{}{} + cond685 := p.matchLookaheadLiteral(":", 0) + for cond685 { + _t1356 := p.parse_config_key_value() + item686 := _t1356 + xs684 = append(xs684, item686) + cond685 = p.matchLookaheadLiteral(":", 0) + } + config_key_values687 := xs684 p.consumeLiteral("}") - return config_key_values679 + return config_key_values687 } func (p *Parser) parse_config_key_value() []interface{} { p.consumeLiteral(":") - symbol680 := p.consumeTerminal("SYMBOL").Value.str - _t1341 := p.parse_raw_value() - raw_value681 := _t1341 - return []interface{}{symbol680, raw_value681} + symbol688 := p.consumeTerminal("SYMBOL").Value.str + _t1357 := p.parse_raw_value() + raw_value689 := _t1357 + return []interface{}{symbol688, raw_value689} } func (p *Parser) parse_raw_value() *pb.Value { - span_start695 := int64(p.spanStart()) - var _t1342 int64 + span_start703 := int64(p.spanStart()) + var _t1358 int64 if p.matchLookaheadLiteral("true", 0) { - _t1342 = 12 + _t1358 = 12 } else { - var _t1343 int64 + var _t1359 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1343 = 11 + _t1359 = 11 } else { - var _t1344 int64 + var _t1360 int64 if p.matchLookaheadLiteral("false", 0) { - _t1344 = 12 + _t1360 = 12 } else { - var _t1345 int64 + var _t1361 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1346 int64 + var _t1362 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1346 = 1 + _t1362 = 1 } else { - var _t1347 int64 + var _t1363 int64 if p.matchLookaheadLiteral("date", 1) { - _t1347 = 0 + _t1363 = 0 } else { - _t1347 = -1 + _t1363 = -1 } - _t1346 = _t1347 + _t1362 = _t1363 } - _t1345 = _t1346 + _t1361 = _t1362 } else { - var _t1348 int64 + var _t1364 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1348 = 7 + _t1364 = 7 } else { - var _t1349 int64 + var _t1365 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1349 = 8 + _t1365 = 8 } else { - var _t1350 int64 + var _t1366 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1350 = 2 + _t1366 = 2 } else { - var _t1351 int64 + var _t1367 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1351 = 3 + _t1367 = 3 } else { - var _t1352 int64 + var _t1368 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1352 = 9 + _t1368 = 9 } else { - var _t1353 int64 + var _t1369 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1353 = 4 + _t1369 = 4 } else { - var _t1354 int64 + var _t1370 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1354 = 5 + _t1370 = 5 } else { - var _t1355 int64 + var _t1371 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1355 = 6 + _t1371 = 6 } else { - var _t1356 int64 + var _t1372 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1356 = 10 + _t1372 = 10 } else { - _t1356 = -1 + _t1372 = -1 } - _t1355 = _t1356 + _t1371 = _t1372 } - _t1354 = _t1355 + _t1370 = _t1371 } - _t1353 = _t1354 + _t1369 = _t1370 } - _t1352 = _t1353 + _t1368 = _t1369 } - _t1351 = _t1352 + _t1367 = _t1368 } - _t1350 = _t1351 + _t1366 = _t1367 } - _t1349 = _t1350 + _t1365 = _t1366 } - _t1348 = _t1349 + _t1364 = _t1365 } - _t1345 = _t1348 + _t1361 = _t1364 } - _t1344 = _t1345 + _t1360 = _t1361 } - _t1343 = _t1344 + _t1359 = _t1360 } - _t1342 = _t1343 - } - prediction682 := _t1342 - var _t1357 *pb.Value - if prediction682 == 12 { - _t1358 := p.parse_boolean_value() - boolean_value694 := _t1358 - _t1359 := &pb.Value{} - _t1359.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value694} - _t1357 = _t1359 + _t1358 = _t1359 + } + prediction690 := _t1358 + var _t1373 *pb.Value + if prediction690 == 12 { + _t1374 := p.parse_boolean_value() + boolean_value702 := _t1374 + _t1375 := &pb.Value{} + _t1375.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value702} + _t1373 = _t1375 } else { - var _t1360 *pb.Value - if prediction682 == 11 { + var _t1376 *pb.Value + if prediction690 == 11 { p.consumeLiteral("missing") - _t1361 := &pb.MissingValue{} - _t1362 := &pb.Value{} - _t1362.Value = &pb.Value_MissingValue{MissingValue: _t1361} - _t1360 = _t1362 + _t1377 := &pb.MissingValue{} + _t1378 := &pb.Value{} + _t1378.Value = &pb.Value_MissingValue{MissingValue: _t1377} + _t1376 = _t1378 } else { - var _t1363 *pb.Value - if prediction682 == 10 { - decimal693 := p.consumeTerminal("DECIMAL").Value.decimal - _t1364 := &pb.Value{} - _t1364.Value = &pb.Value_DecimalValue{DecimalValue: decimal693} - _t1363 = _t1364 + var _t1379 *pb.Value + if prediction690 == 10 { + decimal701 := p.consumeTerminal("DECIMAL").Value.decimal + _t1380 := &pb.Value{} + _t1380.Value = &pb.Value_DecimalValue{DecimalValue: decimal701} + _t1379 = _t1380 } else { - var _t1365 *pb.Value - if prediction682 == 9 { - int128692 := p.consumeTerminal("INT128").Value.int128 - _t1366 := &pb.Value{} - _t1366.Value = &pb.Value_Int128Value{Int128Value: int128692} - _t1365 = _t1366 + var _t1381 *pb.Value + if prediction690 == 9 { + int128700 := p.consumeTerminal("INT128").Value.int128 + _t1382 := &pb.Value{} + _t1382.Value = &pb.Value_Int128Value{Int128Value: int128700} + _t1381 = _t1382 } else { - var _t1367 *pb.Value - if prediction682 == 8 { - uint128691 := p.consumeTerminal("UINT128").Value.uint128 - _t1368 := &pb.Value{} - _t1368.Value = &pb.Value_Uint128Value{Uint128Value: uint128691} - _t1367 = _t1368 + var _t1383 *pb.Value + if prediction690 == 8 { + uint128699 := p.consumeTerminal("UINT128").Value.uint128 + _t1384 := &pb.Value{} + _t1384.Value = &pb.Value_Uint128Value{Uint128Value: uint128699} + _t1383 = _t1384 } else { - var _t1369 *pb.Value - if prediction682 == 7 { - uint32690 := p.consumeTerminal("UINT32").Value.u32 - _t1370 := &pb.Value{} - _t1370.Value = &pb.Value_Uint32Value{Uint32Value: uint32690} - _t1369 = _t1370 + var _t1385 *pb.Value + if prediction690 == 7 { + uint32698 := p.consumeTerminal("UINT32").Value.u32 + _t1386 := &pb.Value{} + _t1386.Value = &pb.Value_Uint32Value{Uint32Value: uint32698} + _t1385 = _t1386 } else { - var _t1371 *pb.Value - if prediction682 == 6 { - float689 := p.consumeTerminal("FLOAT").Value.f64 - _t1372 := &pb.Value{} - _t1372.Value = &pb.Value_FloatValue{FloatValue: float689} - _t1371 = _t1372 + var _t1387 *pb.Value + if prediction690 == 6 { + float697 := p.consumeTerminal("FLOAT").Value.f64 + _t1388 := &pb.Value{} + _t1388.Value = &pb.Value_FloatValue{FloatValue: float697} + _t1387 = _t1388 } else { - var _t1373 *pb.Value - if prediction682 == 5 { - float32688 := p.consumeTerminal("FLOAT32").Value.f32 - _t1374 := &pb.Value{} - _t1374.Value = &pb.Value_Float32Value{Float32Value: float32688} - _t1373 = _t1374 + var _t1389 *pb.Value + if prediction690 == 5 { + float32696 := p.consumeTerminal("FLOAT32").Value.f32 + _t1390 := &pb.Value{} + _t1390.Value = &pb.Value_Float32Value{Float32Value: float32696} + _t1389 = _t1390 } else { - var _t1375 *pb.Value - if prediction682 == 4 { - int687 := p.consumeTerminal("INT").Value.i64 - _t1376 := &pb.Value{} - _t1376.Value = &pb.Value_IntValue{IntValue: int687} - _t1375 = _t1376 + var _t1391 *pb.Value + if prediction690 == 4 { + int695 := p.consumeTerminal("INT").Value.i64 + _t1392 := &pb.Value{} + _t1392.Value = &pb.Value_IntValue{IntValue: int695} + _t1391 = _t1392 } else { - var _t1377 *pb.Value - if prediction682 == 3 { - int32686 := p.consumeTerminal("INT32").Value.i32 - _t1378 := &pb.Value{} - _t1378.Value = &pb.Value_Int32Value{Int32Value: int32686} - _t1377 = _t1378 + var _t1393 *pb.Value + if prediction690 == 3 { + int32694 := p.consumeTerminal("INT32").Value.i32 + _t1394 := &pb.Value{} + _t1394.Value = &pb.Value_Int32Value{Int32Value: int32694} + _t1393 = _t1394 } else { - var _t1379 *pb.Value - if prediction682 == 2 { - string685 := p.consumeTerminal("STRING").Value.str - _t1380 := &pb.Value{} - _t1380.Value = &pb.Value_StringValue{StringValue: string685} - _t1379 = _t1380 + var _t1395 *pb.Value + if prediction690 == 2 { + string693 := p.consumeTerminal("STRING").Value.str + _t1396 := &pb.Value{} + _t1396.Value = &pb.Value_StringValue{StringValue: string693} + _t1395 = _t1396 } else { - var _t1381 *pb.Value - if prediction682 == 1 { - _t1382 := p.parse_raw_datetime() - raw_datetime684 := _t1382 - _t1383 := &pb.Value{} - _t1383.Value = &pb.Value_DatetimeValue{DatetimeValue: raw_datetime684} - _t1381 = _t1383 + var _t1397 *pb.Value + if prediction690 == 1 { + _t1398 := p.parse_raw_datetime() + raw_datetime692 := _t1398 + _t1399 := &pb.Value{} + _t1399.Value = &pb.Value_DatetimeValue{DatetimeValue: raw_datetime692} + _t1397 = _t1399 } else { - var _t1384 *pb.Value - if prediction682 == 0 { - _t1385 := p.parse_raw_date() - raw_date683 := _t1385 - _t1386 := &pb.Value{} - _t1386.Value = &pb.Value_DateValue{DateValue: raw_date683} - _t1384 = _t1386 + var _t1400 *pb.Value + if prediction690 == 0 { + _t1401 := p.parse_raw_date() + raw_date691 := _t1401 + _t1402 := &pb.Value{} + _t1402.Value = &pb.Value_DateValue{DateValue: raw_date691} + _t1400 = _t1402 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in raw_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1381 = _t1384 + _t1397 = _t1400 } - _t1379 = _t1381 + _t1395 = _t1397 } - _t1377 = _t1379 + _t1393 = _t1395 } - _t1375 = _t1377 + _t1391 = _t1393 } - _t1373 = _t1375 + _t1389 = _t1391 } - _t1371 = _t1373 + _t1387 = _t1389 } - _t1369 = _t1371 + _t1385 = _t1387 } - _t1367 = _t1369 + _t1383 = _t1385 } - _t1365 = _t1367 + _t1381 = _t1383 } - _t1363 = _t1365 + _t1379 = _t1381 } - _t1360 = _t1363 + _t1376 = _t1379 } - _t1357 = _t1360 + _t1373 = _t1376 } - result696 := _t1357 - p.recordSpan(int(span_start695), "Value") - return result696 + result704 := _t1373 + p.recordSpan(int(span_start703), "Value") + return result704 } func (p *Parser) parse_raw_date() *pb.DateValue { - span_start700 := int64(p.spanStart()) + span_start708 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("date") - int697 := p.consumeTerminal("INT").Value.i64 - int_3698 := p.consumeTerminal("INT").Value.i64 - int_4699 := p.consumeTerminal("INT").Value.i64 + int705 := p.consumeTerminal("INT").Value.i64 + int_3706 := p.consumeTerminal("INT").Value.i64 + int_4707 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1387 := &pb.DateValue{Year: int32(int697), Month: int32(int_3698), Day: int32(int_4699)} - result701 := _t1387 - p.recordSpan(int(span_start700), "DateValue") - return result701 + _t1403 := &pb.DateValue{Year: int32(int705), Month: int32(int_3706), Day: int32(int_4707)} + result709 := _t1403 + p.recordSpan(int(span_start708), "DateValue") + return result709 } func (p *Parser) parse_raw_datetime() *pb.DateTimeValue { - span_start709 := int64(p.spanStart()) + span_start717 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("datetime") - int702 := p.consumeTerminal("INT").Value.i64 - int_3703 := p.consumeTerminal("INT").Value.i64 - int_4704 := p.consumeTerminal("INT").Value.i64 - int_5705 := p.consumeTerminal("INT").Value.i64 - int_6706 := p.consumeTerminal("INT").Value.i64 - int_7707 := p.consumeTerminal("INT").Value.i64 - var _t1388 *int64 + int710 := p.consumeTerminal("INT").Value.i64 + int_3711 := p.consumeTerminal("INT").Value.i64 + int_4712 := p.consumeTerminal("INT").Value.i64 + int_5713 := p.consumeTerminal("INT").Value.i64 + int_6714 := p.consumeTerminal("INT").Value.i64 + int_7715 := p.consumeTerminal("INT").Value.i64 + var _t1404 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1388 = ptr(p.consumeTerminal("INT").Value.i64) + _t1404 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8708 := _t1388 + int_8716 := _t1404 p.consumeLiteral(")") - _t1389 := &pb.DateTimeValue{Year: int32(int702), Month: int32(int_3703), Day: int32(int_4704), Hour: int32(int_5705), Minute: int32(int_6706), Second: int32(int_7707), Microsecond: int32(deref(int_8708, 0))} - result710 := _t1389 - p.recordSpan(int(span_start709), "DateTimeValue") - return result710 + _t1405 := &pb.DateTimeValue{Year: int32(int710), Month: int32(int_3711), Day: int32(int_4712), Hour: int32(int_5713), Minute: int32(int_6714), Second: int32(int_7715), Microsecond: int32(deref(int_8716, 0))} + result718 := _t1405 + p.recordSpan(int(span_start717), "DateTimeValue") + return result718 } func (p *Parser) parse_boolean_value() bool { - var _t1390 int64 + var _t1406 int64 if p.matchLookaheadLiteral("true", 0) { - _t1390 = 0 + _t1406 = 0 } else { - var _t1391 int64 + var _t1407 int64 if p.matchLookaheadLiteral("false", 0) { - _t1391 = 1 + _t1407 = 1 } else { - _t1391 = -1 + _t1407 = -1 } - _t1390 = _t1391 + _t1406 = _t1407 } - prediction711 := _t1390 - var _t1392 bool - if prediction711 == 1 { + prediction719 := _t1406 + var _t1408 bool + if prediction719 == 1 { p.consumeLiteral("false") - _t1392 = false + _t1408 = false } else { - var _t1393 bool - if prediction711 == 0 { + var _t1409 bool + if prediction719 == 0 { p.consumeLiteral("true") - _t1393 = true + _t1409 = true } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in boolean_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1392 = _t1393 + _t1408 = _t1409 } - return _t1392 + return _t1408 } func (p *Parser) parse_sync() *pb.Sync { - span_start716 := int64(p.spanStart()) + span_start724 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sync") - xs712 := []*pb.FragmentId{} - cond713 := p.matchLookaheadLiteral(":", 0) - for cond713 { - _t1394 := p.parse_fragment_id() - item714 := _t1394 - xs712 = append(xs712, item714) - cond713 = p.matchLookaheadLiteral(":", 0) - } - fragment_ids715 := xs712 + xs720 := []*pb.FragmentId{} + cond721 := p.matchLookaheadLiteral(":", 0) + for cond721 { + _t1410 := p.parse_fragment_id() + item722 := _t1410 + xs720 = append(xs720, item722) + cond721 = p.matchLookaheadLiteral(":", 0) + } + fragment_ids723 := xs720 p.consumeLiteral(")") - _t1395 := &pb.Sync{Fragments: fragment_ids715} - result717 := _t1395 - p.recordSpan(int(span_start716), "Sync") - return result717 + _t1411 := &pb.Sync{Fragments: fragment_ids723} + result725 := _t1411 + p.recordSpan(int(span_start724), "Sync") + return result725 } func (p *Parser) parse_fragment_id() *pb.FragmentId { - span_start719 := int64(p.spanStart()) + span_start727 := int64(p.spanStart()) p.consumeLiteral(":") - symbol718 := p.consumeTerminal("SYMBOL").Value.str - result720 := &pb.FragmentId{Id: []byte(symbol718)} - p.recordSpan(int(span_start719), "FragmentId") - return result720 + symbol726 := p.consumeTerminal("SYMBOL").Value.str + result728 := &pb.FragmentId{Id: []byte(symbol726)} + p.recordSpan(int(span_start727), "FragmentId") + return result728 } func (p *Parser) parse_epoch() *pb.Epoch { - span_start723 := int64(p.spanStart()) + span_start731 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t1396 []*pb.Write + var _t1412 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t1397 := p.parse_epoch_writes() - _t1396 = _t1397 + _t1413 := p.parse_epoch_writes() + _t1412 = _t1413 } - epoch_writes721 := _t1396 - var _t1398 []*pb.Read + epoch_writes729 := _t1412 + var _t1414 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t1399 := p.parse_epoch_reads() - _t1398 = _t1399 + _t1415 := p.parse_epoch_reads() + _t1414 = _t1415 } - epoch_reads722 := _t1398 + epoch_reads730 := _t1414 p.consumeLiteral(")") - _t1400 := epoch_writes721 - if epoch_writes721 == nil { - _t1400 = []*pb.Write{} + _t1416 := epoch_writes729 + if epoch_writes729 == nil { + _t1416 = []*pb.Write{} } - _t1401 := epoch_reads722 - if epoch_reads722 == nil { - _t1401 = []*pb.Read{} + _t1417 := epoch_reads730 + if epoch_reads730 == nil { + _t1417 = []*pb.Read{} } - _t1402 := &pb.Epoch{Writes: _t1400, Reads: _t1401} - result724 := _t1402 - p.recordSpan(int(span_start723), "Epoch") - return result724 + _t1418 := &pb.Epoch{Writes: _t1416, Reads: _t1417} + result732 := _t1418 + p.recordSpan(int(span_start731), "Epoch") + return result732 } func (p *Parser) parse_epoch_writes() []*pb.Write { p.consumeLiteral("(") p.consumeLiteral("writes") - xs725 := []*pb.Write{} - cond726 := p.matchLookaheadLiteral("(", 0) - for cond726 { - _t1403 := p.parse_write() - item727 := _t1403 - xs725 = append(xs725, item727) - cond726 = p.matchLookaheadLiteral("(", 0) - } - writes728 := xs725 + xs733 := []*pb.Write{} + cond734 := p.matchLookaheadLiteral("(", 0) + for cond734 { + _t1419 := p.parse_write() + item735 := _t1419 + xs733 = append(xs733, item735) + cond734 = p.matchLookaheadLiteral("(", 0) + } + writes736 := xs733 p.consumeLiteral(")") - return writes728 + return writes736 } func (p *Parser) parse_write() *pb.Write { - span_start734 := int64(p.spanStart()) - var _t1404 int64 + span_start742 := int64(p.spanStart()) + var _t1420 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1405 int64 + var _t1421 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t1405 = 1 + _t1421 = 1 } else { - var _t1406 int64 + var _t1422 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t1406 = 3 + _t1422 = 3 } else { - var _t1407 int64 + var _t1423 int64 if p.matchLookaheadLiteral("define", 1) { - _t1407 = 0 + _t1423 = 0 } else { - var _t1408 int64 + var _t1424 int64 if p.matchLookaheadLiteral("context", 1) { - _t1408 = 2 + _t1424 = 2 } else { - _t1408 = -1 + _t1424 = -1 } - _t1407 = _t1408 + _t1423 = _t1424 } - _t1406 = _t1407 + _t1422 = _t1423 } - _t1405 = _t1406 + _t1421 = _t1422 } - _t1404 = _t1405 + _t1420 = _t1421 } else { - _t1404 = -1 - } - prediction729 := _t1404 - var _t1409 *pb.Write - if prediction729 == 3 { - _t1410 := p.parse_snapshot() - snapshot733 := _t1410 - _t1411 := &pb.Write{} - _t1411.WriteType = &pb.Write_Snapshot{Snapshot: snapshot733} - _t1409 = _t1411 + _t1420 = -1 + } + prediction737 := _t1420 + var _t1425 *pb.Write + if prediction737 == 3 { + _t1426 := p.parse_snapshot() + snapshot741 := _t1426 + _t1427 := &pb.Write{} + _t1427.WriteType = &pb.Write_Snapshot{Snapshot: snapshot741} + _t1425 = _t1427 } else { - var _t1412 *pb.Write - if prediction729 == 2 { - _t1413 := p.parse_context() - context732 := _t1413 - _t1414 := &pb.Write{} - _t1414.WriteType = &pb.Write_Context{Context: context732} - _t1412 = _t1414 + var _t1428 *pb.Write + if prediction737 == 2 { + _t1429 := p.parse_context() + context740 := _t1429 + _t1430 := &pb.Write{} + _t1430.WriteType = &pb.Write_Context{Context: context740} + _t1428 = _t1430 } else { - var _t1415 *pb.Write - if prediction729 == 1 { - _t1416 := p.parse_undefine() - undefine731 := _t1416 - _t1417 := &pb.Write{} - _t1417.WriteType = &pb.Write_Undefine{Undefine: undefine731} - _t1415 = _t1417 + var _t1431 *pb.Write + if prediction737 == 1 { + _t1432 := p.parse_undefine() + undefine739 := _t1432 + _t1433 := &pb.Write{} + _t1433.WriteType = &pb.Write_Undefine{Undefine: undefine739} + _t1431 = _t1433 } else { - var _t1418 *pb.Write - if prediction729 == 0 { - _t1419 := p.parse_define() - define730 := _t1419 - _t1420 := &pb.Write{} - _t1420.WriteType = &pb.Write_Define{Define: define730} - _t1418 = _t1420 + var _t1434 *pb.Write + if prediction737 == 0 { + _t1435 := p.parse_define() + define738 := _t1435 + _t1436 := &pb.Write{} + _t1436.WriteType = &pb.Write_Define{Define: define738} + _t1434 = _t1436 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1415 = _t1418 + _t1431 = _t1434 } - _t1412 = _t1415 + _t1428 = _t1431 } - _t1409 = _t1412 + _t1425 = _t1428 } - result735 := _t1409 - p.recordSpan(int(span_start734), "Write") - return result735 + result743 := _t1425 + p.recordSpan(int(span_start742), "Write") + return result743 } func (p *Parser) parse_define() *pb.Define { - span_start737 := int64(p.spanStart()) + span_start745 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("define") - _t1421 := p.parse_fragment() - fragment736 := _t1421 + _t1437 := p.parse_fragment() + fragment744 := _t1437 p.consumeLiteral(")") - _t1422 := &pb.Define{Fragment: fragment736} - result738 := _t1422 - p.recordSpan(int(span_start737), "Define") - return result738 + _t1438 := &pb.Define{Fragment: fragment744} + result746 := _t1438 + p.recordSpan(int(span_start745), "Define") + return result746 } func (p *Parser) parse_fragment() *pb.Fragment { - span_start744 := int64(p.spanStart()) + span_start752 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("fragment") - _t1423 := p.parse_new_fragment_id() - new_fragment_id739 := _t1423 - xs740 := []*pb.Declaration{} - cond741 := p.matchLookaheadLiteral("(", 0) - for cond741 { - _t1424 := p.parse_declaration() - item742 := _t1424 - xs740 = append(xs740, item742) - cond741 = p.matchLookaheadLiteral("(", 0) - } - declarations743 := xs740 + _t1439 := p.parse_new_fragment_id() + new_fragment_id747 := _t1439 + xs748 := []*pb.Declaration{} + cond749 := p.matchLookaheadLiteral("(", 0) + for cond749 { + _t1440 := p.parse_declaration() + item750 := _t1440 + xs748 = append(xs748, item750) + cond749 = p.matchLookaheadLiteral("(", 0) + } + declarations751 := xs748 p.consumeLiteral(")") - result745 := p.constructFragment(new_fragment_id739, declarations743) - p.recordSpan(int(span_start744), "Fragment") - return result745 + result753 := p.constructFragment(new_fragment_id747, declarations751) + p.recordSpan(int(span_start752), "Fragment") + return result753 } func (p *Parser) parse_new_fragment_id() *pb.FragmentId { - span_start747 := int64(p.spanStart()) - _t1425 := p.parse_fragment_id() - fragment_id746 := _t1425 - p.startFragment(fragment_id746) - result748 := fragment_id746 - p.recordSpan(int(span_start747), "FragmentId") - return result748 + span_start755 := int64(p.spanStart()) + _t1441 := p.parse_fragment_id() + fragment_id754 := _t1441 + p.startFragment(fragment_id754) + result756 := fragment_id754 + p.recordSpan(int(span_start755), "FragmentId") + return result756 } func (p *Parser) parse_declaration() *pb.Declaration { - span_start754 := int64(p.spanStart()) - var _t1426 int64 + span_start762 := int64(p.spanStart()) + var _t1442 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1427 int64 + var _t1443 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t1427 = 3 + _t1443 = 3 } else { - var _t1428 int64 + var _t1444 int64 if p.matchLookaheadLiteral("functional_dependency", 1) { - _t1428 = 2 + _t1444 = 2 } else { - var _t1429 int64 + var _t1445 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1429 = 3 + _t1445 = 3 } else { - var _t1430 int64 + var _t1446 int64 if p.matchLookaheadLiteral("def", 1) { - _t1430 = 0 + _t1446 = 0 } else { - var _t1431 int64 + var _t1447 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1431 = 3 + _t1447 = 3 } else { - var _t1432 int64 + var _t1448 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1432 = 3 + _t1448 = 3 } else { - var _t1433 int64 + var _t1449 int64 if p.matchLookaheadLiteral("algorithm", 1) { - _t1433 = 1 + _t1449 = 1 } else { - _t1433 = -1 + _t1449 = -1 } - _t1432 = _t1433 + _t1448 = _t1449 } - _t1431 = _t1432 + _t1447 = _t1448 } - _t1430 = _t1431 + _t1446 = _t1447 } - _t1429 = _t1430 + _t1445 = _t1446 } - _t1428 = _t1429 + _t1444 = _t1445 } - _t1427 = _t1428 + _t1443 = _t1444 } - _t1426 = _t1427 + _t1442 = _t1443 } else { - _t1426 = -1 - } - prediction749 := _t1426 - var _t1434 *pb.Declaration - if prediction749 == 3 { - _t1435 := p.parse_data() - data753 := _t1435 - _t1436 := &pb.Declaration{} - _t1436.DeclarationType = &pb.Declaration_Data{Data: data753} - _t1434 = _t1436 + _t1442 = -1 + } + prediction757 := _t1442 + var _t1450 *pb.Declaration + if prediction757 == 3 { + _t1451 := p.parse_data() + data761 := _t1451 + _t1452 := &pb.Declaration{} + _t1452.DeclarationType = &pb.Declaration_Data{Data: data761} + _t1450 = _t1452 } else { - var _t1437 *pb.Declaration - if prediction749 == 2 { - _t1438 := p.parse_constraint() - constraint752 := _t1438 - _t1439 := &pb.Declaration{} - _t1439.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint752} - _t1437 = _t1439 + var _t1453 *pb.Declaration + if prediction757 == 2 { + _t1454 := p.parse_constraint() + constraint760 := _t1454 + _t1455 := &pb.Declaration{} + _t1455.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint760} + _t1453 = _t1455 } else { - var _t1440 *pb.Declaration - if prediction749 == 1 { - _t1441 := p.parse_algorithm() - algorithm751 := _t1441 - _t1442 := &pb.Declaration{} - _t1442.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm751} - _t1440 = _t1442 + var _t1456 *pb.Declaration + if prediction757 == 1 { + _t1457 := p.parse_algorithm() + algorithm759 := _t1457 + _t1458 := &pb.Declaration{} + _t1458.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm759} + _t1456 = _t1458 } else { - var _t1443 *pb.Declaration - if prediction749 == 0 { - _t1444 := p.parse_def() - def750 := _t1444 - _t1445 := &pb.Declaration{} - _t1445.DeclarationType = &pb.Declaration_Def{Def: def750} - _t1443 = _t1445 + var _t1459 *pb.Declaration + if prediction757 == 0 { + _t1460 := p.parse_def() + def758 := _t1460 + _t1461 := &pb.Declaration{} + _t1461.DeclarationType = &pb.Declaration_Def{Def: def758} + _t1459 = _t1461 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1440 = _t1443 + _t1456 = _t1459 } - _t1437 = _t1440 + _t1453 = _t1456 } - _t1434 = _t1437 + _t1450 = _t1453 } - result755 := _t1434 - p.recordSpan(int(span_start754), "Declaration") - return result755 + result763 := _t1450 + p.recordSpan(int(span_start762), "Declaration") + return result763 } func (p *Parser) parse_def() *pb.Def { - span_start759 := int64(p.spanStart()) + span_start767 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("def") - _t1446 := p.parse_relation_id() - relation_id756 := _t1446 - _t1447 := p.parse_abstraction() - abstraction757 := _t1447 - var _t1448 []*pb.Attribute + _t1462 := p.parse_relation_id() + relation_id764 := _t1462 + _t1463 := p.parse_abstraction() + abstraction765 := _t1463 + var _t1464 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1449 := p.parse_attrs() - _t1448 = _t1449 + _t1465 := p.parse_attrs() + _t1464 = _t1465 } - attrs758 := _t1448 + attrs766 := _t1464 p.consumeLiteral(")") - _t1450 := attrs758 - if attrs758 == nil { - _t1450 = []*pb.Attribute{} + _t1466 := attrs766 + if attrs766 == nil { + _t1466 = []*pb.Attribute{} } - _t1451 := &pb.Def{Name: relation_id756, Body: abstraction757, Attrs: _t1450} - result760 := _t1451 - p.recordSpan(int(span_start759), "Def") - return result760 + _t1467 := &pb.Def{Name: relation_id764, Body: abstraction765, Attrs: _t1466} + result768 := _t1467 + p.recordSpan(int(span_start767), "Def") + return result768 } func (p *Parser) parse_relation_id() *pb.RelationId { - span_start764 := int64(p.spanStart()) - var _t1452 int64 + span_start772 := int64(p.spanStart()) + var _t1468 int64 if p.matchLookaheadLiteral(":", 0) { - _t1452 = 0 + _t1468 = 0 } else { - var _t1453 int64 + var _t1469 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1453 = 1 + _t1469 = 1 } else { - _t1453 = -1 + _t1469 = -1 } - _t1452 = _t1453 - } - prediction761 := _t1452 - var _t1454 *pb.RelationId - if prediction761 == 1 { - uint128763 := p.consumeTerminal("UINT128").Value.uint128 - _ = uint128763 - _t1454 = &pb.RelationId{IdLow: uint128763.Low, IdHigh: uint128763.High} + _t1468 = _t1469 + } + prediction769 := _t1468 + var _t1470 *pb.RelationId + if prediction769 == 1 { + uint128771 := p.consumeTerminal("UINT128").Value.uint128 + _ = uint128771 + _t1470 = &pb.RelationId{IdLow: uint128771.Low, IdHigh: uint128771.High} } else { - var _t1455 *pb.RelationId - if prediction761 == 0 { + var _t1471 *pb.RelationId + if prediction769 == 0 { p.consumeLiteral(":") - symbol762 := p.consumeTerminal("SYMBOL").Value.str - _t1455 = p.relationIdFromString(symbol762) + symbol770 := p.consumeTerminal("SYMBOL").Value.str + _t1471 = p.relationIdFromString(symbol770) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1454 = _t1455 + _t1470 = _t1471 } - result765 := _t1454 - p.recordSpan(int(span_start764), "RelationId") - return result765 + result773 := _t1470 + p.recordSpan(int(span_start772), "RelationId") + return result773 } func (p *Parser) parse_abstraction() *pb.Abstraction { - span_start768 := int64(p.spanStart()) + span_start776 := int64(p.spanStart()) p.consumeLiteral("(") - _t1456 := p.parse_bindings() - bindings766 := _t1456 - _t1457 := p.parse_formula() - formula767 := _t1457 + _t1472 := p.parse_bindings() + bindings774 := _t1472 + _t1473 := p.parse_formula() + formula775 := _t1473 p.consumeLiteral(")") - _t1458 := &pb.Abstraction{Vars: listConcat(bindings766[0].([]*pb.Binding), bindings766[1].([]*pb.Binding)), Value: formula767} - result769 := _t1458 - p.recordSpan(int(span_start768), "Abstraction") - return result769 + _t1474 := &pb.Abstraction{Vars: listConcat(bindings774[0].([]*pb.Binding), bindings774[1].([]*pb.Binding)), Value: formula775} + result777 := _t1474 + p.recordSpan(int(span_start776), "Abstraction") + return result777 } func (p *Parser) parse_bindings() []interface{} { p.consumeLiteral("[") - xs770 := []*pb.Binding{} - cond771 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond771 { - _t1459 := p.parse_binding() - item772 := _t1459 - xs770 = append(xs770, item772) - cond771 = p.matchLookaheadTerminal("SYMBOL", 0) - } - bindings773 := xs770 - var _t1460 []*pb.Binding + xs778 := []*pb.Binding{} + cond779 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond779 { + _t1475 := p.parse_binding() + item780 := _t1475 + xs778 = append(xs778, item780) + cond779 = p.matchLookaheadTerminal("SYMBOL", 0) + } + bindings781 := xs778 + var _t1476 []*pb.Binding if p.matchLookaheadLiteral("|", 0) { - _t1461 := p.parse_value_bindings() - _t1460 = _t1461 + _t1477 := p.parse_value_bindings() + _t1476 = _t1477 } - value_bindings774 := _t1460 + value_bindings782 := _t1476 p.consumeLiteral("]") - _t1462 := value_bindings774 - if value_bindings774 == nil { - _t1462 = []*pb.Binding{} + _t1478 := value_bindings782 + if value_bindings782 == nil { + _t1478 = []*pb.Binding{} } - return []interface{}{bindings773, _t1462} + return []interface{}{bindings781, _t1478} } func (p *Parser) parse_binding() *pb.Binding { - span_start777 := int64(p.spanStart()) - symbol775 := p.consumeTerminal("SYMBOL").Value.str + span_start785 := int64(p.spanStart()) + symbol783 := p.consumeTerminal("SYMBOL").Value.str p.consumeLiteral("::") - _t1463 := p.parse_type() - type776 := _t1463 - _t1464 := &pb.Var{Name: symbol775} - _t1465 := &pb.Binding{Var: _t1464, Type: type776} - result778 := _t1465 - p.recordSpan(int(span_start777), "Binding") - return result778 + _t1479 := p.parse_type() + type784 := _t1479 + _t1480 := &pb.Var{Name: symbol783} + _t1481 := &pb.Binding{Var: _t1480, Type: type784} + result786 := _t1481 + p.recordSpan(int(span_start785), "Binding") + return result786 } func (p *Parser) parse_type() *pb.Type { - span_start794 := int64(p.spanStart()) - var _t1466 int64 + span_start802 := int64(p.spanStart()) + var _t1482 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t1466 = 0 + _t1482 = 0 } else { - var _t1467 int64 + var _t1483 int64 if p.matchLookaheadLiteral("UINT32", 0) { - _t1467 = 13 + _t1483 = 13 } else { - var _t1468 int64 + var _t1484 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t1468 = 4 + _t1484 = 4 } else { - var _t1469 int64 + var _t1485 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t1469 = 1 + _t1485 = 1 } else { - var _t1470 int64 + var _t1486 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t1470 = 8 + _t1486 = 8 } else { - var _t1471 int64 + var _t1487 int64 if p.matchLookaheadLiteral("INT32", 0) { - _t1471 = 11 + _t1487 = 11 } else { - var _t1472 int64 + var _t1488 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t1472 = 5 + _t1488 = 5 } else { - var _t1473 int64 + var _t1489 int64 if p.matchLookaheadLiteral("INT", 0) { - _t1473 = 2 + _t1489 = 2 } else { - var _t1474 int64 + var _t1490 int64 if p.matchLookaheadLiteral("FLOAT32", 0) { - _t1474 = 12 + _t1490 = 12 } else { - var _t1475 int64 + var _t1491 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t1475 = 3 + _t1491 = 3 } else { - var _t1476 int64 + var _t1492 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t1476 = 7 + _t1492 = 7 } else { - var _t1477 int64 + var _t1493 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t1477 = 6 + _t1493 = 6 } else { - var _t1478 int64 + var _t1494 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t1478 = 10 + _t1494 = 10 } else { - var _t1479 int64 + var _t1495 int64 if p.matchLookaheadLiteral("(", 0) { - _t1479 = 9 + _t1495 = 9 } else { - _t1479 = -1 + _t1495 = -1 } - _t1478 = _t1479 + _t1494 = _t1495 } - _t1477 = _t1478 + _t1493 = _t1494 } - _t1476 = _t1477 + _t1492 = _t1493 } - _t1475 = _t1476 + _t1491 = _t1492 } - _t1474 = _t1475 + _t1490 = _t1491 } - _t1473 = _t1474 + _t1489 = _t1490 } - _t1472 = _t1473 + _t1488 = _t1489 } - _t1471 = _t1472 + _t1487 = _t1488 } - _t1470 = _t1471 + _t1486 = _t1487 } - _t1469 = _t1470 + _t1485 = _t1486 } - _t1468 = _t1469 + _t1484 = _t1485 } - _t1467 = _t1468 + _t1483 = _t1484 } - _t1466 = _t1467 - } - prediction779 := _t1466 - var _t1480 *pb.Type - if prediction779 == 13 { - _t1481 := p.parse_uint32_type() - uint32_type793 := _t1481 - _t1482 := &pb.Type{} - _t1482.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type793} - _t1480 = _t1482 + _t1482 = _t1483 + } + prediction787 := _t1482 + var _t1496 *pb.Type + if prediction787 == 13 { + _t1497 := p.parse_uint32_type() + uint32_type801 := _t1497 + _t1498 := &pb.Type{} + _t1498.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type801} + _t1496 = _t1498 } else { - var _t1483 *pb.Type - if prediction779 == 12 { - _t1484 := p.parse_float32_type() - float32_type792 := _t1484 - _t1485 := &pb.Type{} - _t1485.Type = &pb.Type_Float32Type{Float32Type: float32_type792} - _t1483 = _t1485 + var _t1499 *pb.Type + if prediction787 == 12 { + _t1500 := p.parse_float32_type() + float32_type800 := _t1500 + _t1501 := &pb.Type{} + _t1501.Type = &pb.Type_Float32Type{Float32Type: float32_type800} + _t1499 = _t1501 } else { - var _t1486 *pb.Type - if prediction779 == 11 { - _t1487 := p.parse_int32_type() - int32_type791 := _t1487 - _t1488 := &pb.Type{} - _t1488.Type = &pb.Type_Int32Type{Int32Type: int32_type791} - _t1486 = _t1488 + var _t1502 *pb.Type + if prediction787 == 11 { + _t1503 := p.parse_int32_type() + int32_type799 := _t1503 + _t1504 := &pb.Type{} + _t1504.Type = &pb.Type_Int32Type{Int32Type: int32_type799} + _t1502 = _t1504 } else { - var _t1489 *pb.Type - if prediction779 == 10 { - _t1490 := p.parse_boolean_type() - boolean_type790 := _t1490 - _t1491 := &pb.Type{} - _t1491.Type = &pb.Type_BooleanType{BooleanType: boolean_type790} - _t1489 = _t1491 + var _t1505 *pb.Type + if prediction787 == 10 { + _t1506 := p.parse_boolean_type() + boolean_type798 := _t1506 + _t1507 := &pb.Type{} + _t1507.Type = &pb.Type_BooleanType{BooleanType: boolean_type798} + _t1505 = _t1507 } else { - var _t1492 *pb.Type - if prediction779 == 9 { - _t1493 := p.parse_decimal_type() - decimal_type789 := _t1493 - _t1494 := &pb.Type{} - _t1494.Type = &pb.Type_DecimalType{DecimalType: decimal_type789} - _t1492 = _t1494 + var _t1508 *pb.Type + if prediction787 == 9 { + _t1509 := p.parse_decimal_type() + decimal_type797 := _t1509 + _t1510 := &pb.Type{} + _t1510.Type = &pb.Type_DecimalType{DecimalType: decimal_type797} + _t1508 = _t1510 } else { - var _t1495 *pb.Type - if prediction779 == 8 { - _t1496 := p.parse_missing_type() - missing_type788 := _t1496 - _t1497 := &pb.Type{} - _t1497.Type = &pb.Type_MissingType{MissingType: missing_type788} - _t1495 = _t1497 + var _t1511 *pb.Type + if prediction787 == 8 { + _t1512 := p.parse_missing_type() + missing_type796 := _t1512 + _t1513 := &pb.Type{} + _t1513.Type = &pb.Type_MissingType{MissingType: missing_type796} + _t1511 = _t1513 } else { - var _t1498 *pb.Type - if prediction779 == 7 { - _t1499 := p.parse_datetime_type() - datetime_type787 := _t1499 - _t1500 := &pb.Type{} - _t1500.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type787} - _t1498 = _t1500 + var _t1514 *pb.Type + if prediction787 == 7 { + _t1515 := p.parse_datetime_type() + datetime_type795 := _t1515 + _t1516 := &pb.Type{} + _t1516.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type795} + _t1514 = _t1516 } else { - var _t1501 *pb.Type - if prediction779 == 6 { - _t1502 := p.parse_date_type() - date_type786 := _t1502 - _t1503 := &pb.Type{} - _t1503.Type = &pb.Type_DateType{DateType: date_type786} - _t1501 = _t1503 + var _t1517 *pb.Type + if prediction787 == 6 { + _t1518 := p.parse_date_type() + date_type794 := _t1518 + _t1519 := &pb.Type{} + _t1519.Type = &pb.Type_DateType{DateType: date_type794} + _t1517 = _t1519 } else { - var _t1504 *pb.Type - if prediction779 == 5 { - _t1505 := p.parse_int128_type() - int128_type785 := _t1505 - _t1506 := &pb.Type{} - _t1506.Type = &pb.Type_Int128Type{Int128Type: int128_type785} - _t1504 = _t1506 + var _t1520 *pb.Type + if prediction787 == 5 { + _t1521 := p.parse_int128_type() + int128_type793 := _t1521 + _t1522 := &pb.Type{} + _t1522.Type = &pb.Type_Int128Type{Int128Type: int128_type793} + _t1520 = _t1522 } else { - var _t1507 *pb.Type - if prediction779 == 4 { - _t1508 := p.parse_uint128_type() - uint128_type784 := _t1508 - _t1509 := &pb.Type{} - _t1509.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type784} - _t1507 = _t1509 + var _t1523 *pb.Type + if prediction787 == 4 { + _t1524 := p.parse_uint128_type() + uint128_type792 := _t1524 + _t1525 := &pb.Type{} + _t1525.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type792} + _t1523 = _t1525 } else { - var _t1510 *pb.Type - if prediction779 == 3 { - _t1511 := p.parse_float_type() - float_type783 := _t1511 - _t1512 := &pb.Type{} - _t1512.Type = &pb.Type_FloatType{FloatType: float_type783} - _t1510 = _t1512 + var _t1526 *pb.Type + if prediction787 == 3 { + _t1527 := p.parse_float_type() + float_type791 := _t1527 + _t1528 := &pb.Type{} + _t1528.Type = &pb.Type_FloatType{FloatType: float_type791} + _t1526 = _t1528 } else { - var _t1513 *pb.Type - if prediction779 == 2 { - _t1514 := p.parse_int_type() - int_type782 := _t1514 - _t1515 := &pb.Type{} - _t1515.Type = &pb.Type_IntType{IntType: int_type782} - _t1513 = _t1515 + var _t1529 *pb.Type + if prediction787 == 2 { + _t1530 := p.parse_int_type() + int_type790 := _t1530 + _t1531 := &pb.Type{} + _t1531.Type = &pb.Type_IntType{IntType: int_type790} + _t1529 = _t1531 } else { - var _t1516 *pb.Type - if prediction779 == 1 { - _t1517 := p.parse_string_type() - string_type781 := _t1517 - _t1518 := &pb.Type{} - _t1518.Type = &pb.Type_StringType{StringType: string_type781} - _t1516 = _t1518 + var _t1532 *pb.Type + if prediction787 == 1 { + _t1533 := p.parse_string_type() + string_type789 := _t1533 + _t1534 := &pb.Type{} + _t1534.Type = &pb.Type_StringType{StringType: string_type789} + _t1532 = _t1534 } else { - var _t1519 *pb.Type - if prediction779 == 0 { - _t1520 := p.parse_unspecified_type() - unspecified_type780 := _t1520 - _t1521 := &pb.Type{} - _t1521.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type780} - _t1519 = _t1521 + var _t1535 *pb.Type + if prediction787 == 0 { + _t1536 := p.parse_unspecified_type() + unspecified_type788 := _t1536 + _t1537 := &pb.Type{} + _t1537.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type788} + _t1535 = _t1537 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1516 = _t1519 + _t1532 = _t1535 } - _t1513 = _t1516 + _t1529 = _t1532 } - _t1510 = _t1513 + _t1526 = _t1529 } - _t1507 = _t1510 + _t1523 = _t1526 } - _t1504 = _t1507 + _t1520 = _t1523 } - _t1501 = _t1504 + _t1517 = _t1520 } - _t1498 = _t1501 + _t1514 = _t1517 } - _t1495 = _t1498 + _t1511 = _t1514 } - _t1492 = _t1495 + _t1508 = _t1511 } - _t1489 = _t1492 + _t1505 = _t1508 } - _t1486 = _t1489 + _t1502 = _t1505 } - _t1483 = _t1486 + _t1499 = _t1502 } - _t1480 = _t1483 + _t1496 = _t1499 } - result795 := _t1480 - p.recordSpan(int(span_start794), "Type") - return result795 + result803 := _t1496 + p.recordSpan(int(span_start802), "Type") + return result803 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { - span_start796 := int64(p.spanStart()) + span_start804 := int64(p.spanStart()) p.consumeLiteral("UNKNOWN") - _t1522 := &pb.UnspecifiedType{} - result797 := _t1522 - p.recordSpan(int(span_start796), "UnspecifiedType") - return result797 + _t1538 := &pb.UnspecifiedType{} + result805 := _t1538 + p.recordSpan(int(span_start804), "UnspecifiedType") + return result805 } func (p *Parser) parse_string_type() *pb.StringType { - span_start798 := int64(p.spanStart()) + span_start806 := int64(p.spanStart()) p.consumeLiteral("STRING") - _t1523 := &pb.StringType{} - result799 := _t1523 - p.recordSpan(int(span_start798), "StringType") - return result799 + _t1539 := &pb.StringType{} + result807 := _t1539 + p.recordSpan(int(span_start806), "StringType") + return result807 } func (p *Parser) parse_int_type() *pb.IntType { - span_start800 := int64(p.spanStart()) + span_start808 := int64(p.spanStart()) p.consumeLiteral("INT") - _t1524 := &pb.IntType{} - result801 := _t1524 - p.recordSpan(int(span_start800), "IntType") - return result801 + _t1540 := &pb.IntType{} + result809 := _t1540 + p.recordSpan(int(span_start808), "IntType") + return result809 } func (p *Parser) parse_float_type() *pb.FloatType { - span_start802 := int64(p.spanStart()) + span_start810 := int64(p.spanStart()) p.consumeLiteral("FLOAT") - _t1525 := &pb.FloatType{} - result803 := _t1525 - p.recordSpan(int(span_start802), "FloatType") - return result803 + _t1541 := &pb.FloatType{} + result811 := _t1541 + p.recordSpan(int(span_start810), "FloatType") + return result811 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { - span_start804 := int64(p.spanStart()) + span_start812 := int64(p.spanStart()) p.consumeLiteral("UINT128") - _t1526 := &pb.UInt128Type{} - result805 := _t1526 - p.recordSpan(int(span_start804), "UInt128Type") - return result805 + _t1542 := &pb.UInt128Type{} + result813 := _t1542 + p.recordSpan(int(span_start812), "UInt128Type") + return result813 } func (p *Parser) parse_int128_type() *pb.Int128Type { - span_start806 := int64(p.spanStart()) + span_start814 := int64(p.spanStart()) p.consumeLiteral("INT128") - _t1527 := &pb.Int128Type{} - result807 := _t1527 - p.recordSpan(int(span_start806), "Int128Type") - return result807 + _t1543 := &pb.Int128Type{} + result815 := _t1543 + p.recordSpan(int(span_start814), "Int128Type") + return result815 } func (p *Parser) parse_date_type() *pb.DateType { - span_start808 := int64(p.spanStart()) + span_start816 := int64(p.spanStart()) p.consumeLiteral("DATE") - _t1528 := &pb.DateType{} - result809 := _t1528 - p.recordSpan(int(span_start808), "DateType") - return result809 + _t1544 := &pb.DateType{} + result817 := _t1544 + p.recordSpan(int(span_start816), "DateType") + return result817 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { - span_start810 := int64(p.spanStart()) + span_start818 := int64(p.spanStart()) p.consumeLiteral("DATETIME") - _t1529 := &pb.DateTimeType{} - result811 := _t1529 - p.recordSpan(int(span_start810), "DateTimeType") - return result811 + _t1545 := &pb.DateTimeType{} + result819 := _t1545 + p.recordSpan(int(span_start818), "DateTimeType") + return result819 } func (p *Parser) parse_missing_type() *pb.MissingType { - span_start812 := int64(p.spanStart()) + span_start820 := int64(p.spanStart()) p.consumeLiteral("MISSING") - _t1530 := &pb.MissingType{} - result813 := _t1530 - p.recordSpan(int(span_start812), "MissingType") - return result813 + _t1546 := &pb.MissingType{} + result821 := _t1546 + p.recordSpan(int(span_start820), "MissingType") + return result821 } func (p *Parser) parse_decimal_type() *pb.DecimalType { - span_start816 := int64(p.spanStart()) + span_start824 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int814 := p.consumeTerminal("INT").Value.i64 - int_3815 := p.consumeTerminal("INT").Value.i64 + int822 := p.consumeTerminal("INT").Value.i64 + int_3823 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1531 := &pb.DecimalType{Precision: int32(int814), Scale: int32(int_3815)} - result817 := _t1531 - p.recordSpan(int(span_start816), "DecimalType") - return result817 + _t1547 := &pb.DecimalType{Precision: int32(int822), Scale: int32(int_3823)} + result825 := _t1547 + p.recordSpan(int(span_start824), "DecimalType") + return result825 } func (p *Parser) parse_boolean_type() *pb.BooleanType { - span_start818 := int64(p.spanStart()) + span_start826 := int64(p.spanStart()) p.consumeLiteral("BOOLEAN") - _t1532 := &pb.BooleanType{} - result819 := _t1532 - p.recordSpan(int(span_start818), "BooleanType") - return result819 + _t1548 := &pb.BooleanType{} + result827 := _t1548 + p.recordSpan(int(span_start826), "BooleanType") + return result827 } func (p *Parser) parse_int32_type() *pb.Int32Type { - span_start820 := int64(p.spanStart()) + span_start828 := int64(p.spanStart()) p.consumeLiteral("INT32") - _t1533 := &pb.Int32Type{} - result821 := _t1533 - p.recordSpan(int(span_start820), "Int32Type") - return result821 + _t1549 := &pb.Int32Type{} + result829 := _t1549 + p.recordSpan(int(span_start828), "Int32Type") + return result829 } func (p *Parser) parse_float32_type() *pb.Float32Type { - span_start822 := int64(p.spanStart()) + span_start830 := int64(p.spanStart()) p.consumeLiteral("FLOAT32") - _t1534 := &pb.Float32Type{} - result823 := _t1534 - p.recordSpan(int(span_start822), "Float32Type") - return result823 + _t1550 := &pb.Float32Type{} + result831 := _t1550 + p.recordSpan(int(span_start830), "Float32Type") + return result831 } func (p *Parser) parse_uint32_type() *pb.UInt32Type { - span_start824 := int64(p.spanStart()) + span_start832 := int64(p.spanStart()) p.consumeLiteral("UINT32") - _t1535 := &pb.UInt32Type{} - result825 := _t1535 - p.recordSpan(int(span_start824), "UInt32Type") - return result825 + _t1551 := &pb.UInt32Type{} + result833 := _t1551 + p.recordSpan(int(span_start832), "UInt32Type") + return result833 } func (p *Parser) parse_value_bindings() []*pb.Binding { p.consumeLiteral("|") - xs826 := []*pb.Binding{} - cond827 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond827 { - _t1536 := p.parse_binding() - item828 := _t1536 - xs826 = append(xs826, item828) - cond827 = p.matchLookaheadTerminal("SYMBOL", 0) + xs834 := []*pb.Binding{} + cond835 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond835 { + _t1552 := p.parse_binding() + item836 := _t1552 + xs834 = append(xs834, item836) + cond835 = p.matchLookaheadTerminal("SYMBOL", 0) } - bindings829 := xs826 - return bindings829 + bindings837 := xs834 + return bindings837 } func (p *Parser) parse_formula() *pb.Formula { - span_start844 := int64(p.spanStart()) - var _t1537 int64 + span_start852 := int64(p.spanStart()) + var _t1553 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1538 int64 + var _t1554 int64 if p.matchLookaheadLiteral("true", 1) { - _t1538 = 0 + _t1554 = 0 } else { - var _t1539 int64 + var _t1555 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t1539 = 11 + _t1555 = 11 } else { - var _t1540 int64 + var _t1556 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t1540 = 3 + _t1556 = 3 } else { - var _t1541 int64 + var _t1557 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1541 = 10 + _t1557 = 10 } else { - var _t1542 int64 + var _t1558 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t1542 = 9 + _t1558 = 9 } else { - var _t1543 int64 + var _t1559 int64 if p.matchLookaheadLiteral("or", 1) { - _t1543 = 5 + _t1559 = 5 } else { - var _t1544 int64 + var _t1560 int64 if p.matchLookaheadLiteral("not", 1) { - _t1544 = 6 + _t1560 = 6 } else { - var _t1545 int64 + var _t1561 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t1545 = 7 + _t1561 = 7 } else { - var _t1546 int64 + var _t1562 int64 if p.matchLookaheadLiteral("false", 1) { - _t1546 = 1 + _t1562 = 1 } else { - var _t1547 int64 + var _t1563 int64 if p.matchLookaheadLiteral("exists", 1) { - _t1547 = 2 + _t1563 = 2 } else { - var _t1548 int64 + var _t1564 int64 if p.matchLookaheadLiteral("cast", 1) { - _t1548 = 12 + _t1564 = 12 } else { - var _t1549 int64 + var _t1565 int64 if p.matchLookaheadLiteral("atom", 1) { - _t1549 = 8 + _t1565 = 8 } else { - var _t1550 int64 + var _t1566 int64 if p.matchLookaheadLiteral("and", 1) { - _t1550 = 4 + _t1566 = 4 } else { - var _t1551 int64 + var _t1567 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1551 = 10 + _t1567 = 10 } else { - var _t1552 int64 + var _t1568 int64 if p.matchLookaheadLiteral(">", 1) { - _t1552 = 10 + _t1568 = 10 } else { - var _t1553 int64 + var _t1569 int64 if p.matchLookaheadLiteral("=", 1) { - _t1553 = 10 + _t1569 = 10 } else { - var _t1554 int64 + var _t1570 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1554 = 10 + _t1570 = 10 } else { - var _t1555 int64 + var _t1571 int64 if p.matchLookaheadLiteral("<", 1) { - _t1555 = 10 + _t1571 = 10 } else { - var _t1556 int64 + var _t1572 int64 if p.matchLookaheadLiteral("/", 1) { - _t1556 = 10 + _t1572 = 10 } else { - var _t1557 int64 + var _t1573 int64 if p.matchLookaheadLiteral("-", 1) { - _t1557 = 10 + _t1573 = 10 } else { - var _t1558 int64 + var _t1574 int64 if p.matchLookaheadLiteral("+", 1) { - _t1558 = 10 + _t1574 = 10 } else { - var _t1559 int64 + var _t1575 int64 if p.matchLookaheadLiteral("*", 1) { - _t1559 = 10 + _t1575 = 10 } else { - _t1559 = -1 + _t1575 = -1 } - _t1558 = _t1559 + _t1574 = _t1575 } - _t1557 = _t1558 + _t1573 = _t1574 } - _t1556 = _t1557 + _t1572 = _t1573 } - _t1555 = _t1556 + _t1571 = _t1572 } - _t1554 = _t1555 + _t1570 = _t1571 } - _t1553 = _t1554 + _t1569 = _t1570 } - _t1552 = _t1553 + _t1568 = _t1569 } - _t1551 = _t1552 + _t1567 = _t1568 } - _t1550 = _t1551 + _t1566 = _t1567 } - _t1549 = _t1550 + _t1565 = _t1566 } - _t1548 = _t1549 + _t1564 = _t1565 } - _t1547 = _t1548 + _t1563 = _t1564 } - _t1546 = _t1547 + _t1562 = _t1563 } - _t1545 = _t1546 + _t1561 = _t1562 } - _t1544 = _t1545 + _t1560 = _t1561 } - _t1543 = _t1544 + _t1559 = _t1560 } - _t1542 = _t1543 + _t1558 = _t1559 } - _t1541 = _t1542 + _t1557 = _t1558 } - _t1540 = _t1541 + _t1556 = _t1557 } - _t1539 = _t1540 + _t1555 = _t1556 } - _t1538 = _t1539 + _t1554 = _t1555 } - _t1537 = _t1538 + _t1553 = _t1554 } else { - _t1537 = -1 - } - prediction830 := _t1537 - var _t1560 *pb.Formula - if prediction830 == 12 { - _t1561 := p.parse_cast() - cast843 := _t1561 - _t1562 := &pb.Formula{} - _t1562.FormulaType = &pb.Formula_Cast{Cast: cast843} - _t1560 = _t1562 + _t1553 = -1 + } + prediction838 := _t1553 + var _t1576 *pb.Formula + if prediction838 == 12 { + _t1577 := p.parse_cast() + cast851 := _t1577 + _t1578 := &pb.Formula{} + _t1578.FormulaType = &pb.Formula_Cast{Cast: cast851} + _t1576 = _t1578 } else { - var _t1563 *pb.Formula - if prediction830 == 11 { - _t1564 := p.parse_rel_atom() - rel_atom842 := _t1564 - _t1565 := &pb.Formula{} - _t1565.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom842} - _t1563 = _t1565 + var _t1579 *pb.Formula + if prediction838 == 11 { + _t1580 := p.parse_rel_atom() + rel_atom850 := _t1580 + _t1581 := &pb.Formula{} + _t1581.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom850} + _t1579 = _t1581 } else { - var _t1566 *pb.Formula - if prediction830 == 10 { - _t1567 := p.parse_primitive() - primitive841 := _t1567 - _t1568 := &pb.Formula{} - _t1568.FormulaType = &pb.Formula_Primitive{Primitive: primitive841} - _t1566 = _t1568 + var _t1582 *pb.Formula + if prediction838 == 10 { + _t1583 := p.parse_primitive() + primitive849 := _t1583 + _t1584 := &pb.Formula{} + _t1584.FormulaType = &pb.Formula_Primitive{Primitive: primitive849} + _t1582 = _t1584 } else { - var _t1569 *pb.Formula - if prediction830 == 9 { - _t1570 := p.parse_pragma() - pragma840 := _t1570 - _t1571 := &pb.Formula{} - _t1571.FormulaType = &pb.Formula_Pragma{Pragma: pragma840} - _t1569 = _t1571 + var _t1585 *pb.Formula + if prediction838 == 9 { + _t1586 := p.parse_pragma() + pragma848 := _t1586 + _t1587 := &pb.Formula{} + _t1587.FormulaType = &pb.Formula_Pragma{Pragma: pragma848} + _t1585 = _t1587 } else { - var _t1572 *pb.Formula - if prediction830 == 8 { - _t1573 := p.parse_atom() - atom839 := _t1573 - _t1574 := &pb.Formula{} - _t1574.FormulaType = &pb.Formula_Atom{Atom: atom839} - _t1572 = _t1574 + var _t1588 *pb.Formula + if prediction838 == 8 { + _t1589 := p.parse_atom() + atom847 := _t1589 + _t1590 := &pb.Formula{} + _t1590.FormulaType = &pb.Formula_Atom{Atom: atom847} + _t1588 = _t1590 } else { - var _t1575 *pb.Formula - if prediction830 == 7 { - _t1576 := p.parse_ffi() - ffi838 := _t1576 - _t1577 := &pb.Formula{} - _t1577.FormulaType = &pb.Formula_Ffi{Ffi: ffi838} - _t1575 = _t1577 + var _t1591 *pb.Formula + if prediction838 == 7 { + _t1592 := p.parse_ffi() + ffi846 := _t1592 + _t1593 := &pb.Formula{} + _t1593.FormulaType = &pb.Formula_Ffi{Ffi: ffi846} + _t1591 = _t1593 } else { - var _t1578 *pb.Formula - if prediction830 == 6 { - _t1579 := p.parse_not() - not837 := _t1579 - _t1580 := &pb.Formula{} - _t1580.FormulaType = &pb.Formula_Not{Not: not837} - _t1578 = _t1580 + var _t1594 *pb.Formula + if prediction838 == 6 { + _t1595 := p.parse_not() + not845 := _t1595 + _t1596 := &pb.Formula{} + _t1596.FormulaType = &pb.Formula_Not{Not: not845} + _t1594 = _t1596 } else { - var _t1581 *pb.Formula - if prediction830 == 5 { - _t1582 := p.parse_disjunction() - disjunction836 := _t1582 - _t1583 := &pb.Formula{} - _t1583.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction836} - _t1581 = _t1583 + var _t1597 *pb.Formula + if prediction838 == 5 { + _t1598 := p.parse_disjunction() + disjunction844 := _t1598 + _t1599 := &pb.Formula{} + _t1599.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction844} + _t1597 = _t1599 } else { - var _t1584 *pb.Formula - if prediction830 == 4 { - _t1585 := p.parse_conjunction() - conjunction835 := _t1585 - _t1586 := &pb.Formula{} - _t1586.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction835} - _t1584 = _t1586 + var _t1600 *pb.Formula + if prediction838 == 4 { + _t1601 := p.parse_conjunction() + conjunction843 := _t1601 + _t1602 := &pb.Formula{} + _t1602.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction843} + _t1600 = _t1602 } else { - var _t1587 *pb.Formula - if prediction830 == 3 { - _t1588 := p.parse_reduce() - reduce834 := _t1588 - _t1589 := &pb.Formula{} - _t1589.FormulaType = &pb.Formula_Reduce{Reduce: reduce834} - _t1587 = _t1589 + var _t1603 *pb.Formula + if prediction838 == 3 { + _t1604 := p.parse_reduce() + reduce842 := _t1604 + _t1605 := &pb.Formula{} + _t1605.FormulaType = &pb.Formula_Reduce{Reduce: reduce842} + _t1603 = _t1605 } else { - var _t1590 *pb.Formula - if prediction830 == 2 { - _t1591 := p.parse_exists() - exists833 := _t1591 - _t1592 := &pb.Formula{} - _t1592.FormulaType = &pb.Formula_Exists{Exists: exists833} - _t1590 = _t1592 + var _t1606 *pb.Formula + if prediction838 == 2 { + _t1607 := p.parse_exists() + exists841 := _t1607 + _t1608 := &pb.Formula{} + _t1608.FormulaType = &pb.Formula_Exists{Exists: exists841} + _t1606 = _t1608 } else { - var _t1593 *pb.Formula - if prediction830 == 1 { - _t1594 := p.parse_false() - false832 := _t1594 - _t1595 := &pb.Formula{} - _t1595.FormulaType = &pb.Formula_Disjunction{Disjunction: false832} - _t1593 = _t1595 + var _t1609 *pb.Formula + if prediction838 == 1 { + _t1610 := p.parse_false() + false840 := _t1610 + _t1611 := &pb.Formula{} + _t1611.FormulaType = &pb.Formula_Disjunction{Disjunction: false840} + _t1609 = _t1611 } else { - var _t1596 *pb.Formula - if prediction830 == 0 { - _t1597 := p.parse_true() - true831 := _t1597 - _t1598 := &pb.Formula{} - _t1598.FormulaType = &pb.Formula_Conjunction{Conjunction: true831} - _t1596 = _t1598 + var _t1612 *pb.Formula + if prediction838 == 0 { + _t1613 := p.parse_true() + true839 := _t1613 + _t1614 := &pb.Formula{} + _t1614.FormulaType = &pb.Formula_Conjunction{Conjunction: true839} + _t1612 = _t1614 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1593 = _t1596 + _t1609 = _t1612 } - _t1590 = _t1593 + _t1606 = _t1609 } - _t1587 = _t1590 + _t1603 = _t1606 } - _t1584 = _t1587 + _t1600 = _t1603 } - _t1581 = _t1584 + _t1597 = _t1600 } - _t1578 = _t1581 + _t1594 = _t1597 } - _t1575 = _t1578 + _t1591 = _t1594 } - _t1572 = _t1575 + _t1588 = _t1591 } - _t1569 = _t1572 + _t1585 = _t1588 } - _t1566 = _t1569 + _t1582 = _t1585 } - _t1563 = _t1566 + _t1579 = _t1582 } - _t1560 = _t1563 + _t1576 = _t1579 } - result845 := _t1560 - p.recordSpan(int(span_start844), "Formula") - return result845 + result853 := _t1576 + p.recordSpan(int(span_start852), "Formula") + return result853 } func (p *Parser) parse_true() *pb.Conjunction { - span_start846 := int64(p.spanStart()) + span_start854 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("true") p.consumeLiteral(")") - _t1599 := &pb.Conjunction{Args: []*pb.Formula{}} - result847 := _t1599 - p.recordSpan(int(span_start846), "Conjunction") - return result847 + _t1615 := &pb.Conjunction{Args: []*pb.Formula{}} + result855 := _t1615 + p.recordSpan(int(span_start854), "Conjunction") + return result855 } func (p *Parser) parse_false() *pb.Disjunction { - span_start848 := int64(p.spanStart()) + span_start856 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("false") p.consumeLiteral(")") - _t1600 := &pb.Disjunction{Args: []*pb.Formula{}} - result849 := _t1600 - p.recordSpan(int(span_start848), "Disjunction") - return result849 + _t1616 := &pb.Disjunction{Args: []*pb.Formula{}} + result857 := _t1616 + p.recordSpan(int(span_start856), "Disjunction") + return result857 } func (p *Parser) parse_exists() *pb.Exists { - span_start852 := int64(p.spanStart()) + span_start860 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("exists") - _t1601 := p.parse_bindings() - bindings850 := _t1601 - _t1602 := p.parse_formula() - formula851 := _t1602 + _t1617 := p.parse_bindings() + bindings858 := _t1617 + _t1618 := p.parse_formula() + formula859 := _t1618 p.consumeLiteral(")") - _t1603 := &pb.Abstraction{Vars: listConcat(bindings850[0].([]*pb.Binding), bindings850[1].([]*pb.Binding)), Value: formula851} - _t1604 := &pb.Exists{Body: _t1603} - result853 := _t1604 - p.recordSpan(int(span_start852), "Exists") - return result853 + _t1619 := &pb.Abstraction{Vars: listConcat(bindings858[0].([]*pb.Binding), bindings858[1].([]*pb.Binding)), Value: formula859} + _t1620 := &pb.Exists{Body: _t1619} + result861 := _t1620 + p.recordSpan(int(span_start860), "Exists") + return result861 } func (p *Parser) parse_reduce() *pb.Reduce { - span_start857 := int64(p.spanStart()) + span_start865 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("reduce") - _t1605 := p.parse_abstraction() - abstraction854 := _t1605 - _t1606 := p.parse_abstraction() - abstraction_3855 := _t1606 - _t1607 := p.parse_terms() - terms856 := _t1607 + _t1621 := p.parse_abstraction() + abstraction862 := _t1621 + _t1622 := p.parse_abstraction() + abstraction_3863 := _t1622 + _t1623 := p.parse_terms() + terms864 := _t1623 p.consumeLiteral(")") - _t1608 := &pb.Reduce{Op: abstraction854, Body: abstraction_3855, Terms: terms856} - result858 := _t1608 - p.recordSpan(int(span_start857), "Reduce") - return result858 + _t1624 := &pb.Reduce{Op: abstraction862, Body: abstraction_3863, Terms: terms864} + result866 := _t1624 + p.recordSpan(int(span_start865), "Reduce") + return result866 } func (p *Parser) parse_terms() []*pb.Term { p.consumeLiteral("(") p.consumeLiteral("terms") - xs859 := []*pb.Term{} - cond860 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - for cond860 { - _t1609 := p.parse_term() - item861 := _t1609 - xs859 = append(xs859, item861) - cond860 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - } - terms862 := xs859 + xs867 := []*pb.Term{} + cond868 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + for cond868 { + _t1625 := p.parse_term() + item869 := _t1625 + xs867 = append(xs867, item869) + cond868 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + } + terms870 := xs867 p.consumeLiteral(")") - return terms862 + return terms870 } func (p *Parser) parse_term() *pb.Term { - span_start866 := int64(p.spanStart()) - var _t1610 int64 + span_start874 := int64(p.spanStart()) + var _t1626 int64 if p.matchLookaheadLiteral("true", 0) { - _t1610 = 1 + _t1626 = 1 } else { - var _t1611 int64 + var _t1627 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1611 = 1 + _t1627 = 1 } else { - var _t1612 int64 + var _t1628 int64 if p.matchLookaheadLiteral("false", 0) { - _t1612 = 1 + _t1628 = 1 } else { - var _t1613 int64 + var _t1629 int64 if p.matchLookaheadLiteral("(", 0) { - _t1613 = 1 + _t1629 = 1 } else { - var _t1614 int64 + var _t1630 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1614 = 0 + _t1630 = 0 } else { - var _t1615 int64 + var _t1631 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1615 = 1 + _t1631 = 1 } else { - var _t1616 int64 + var _t1632 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1616 = 1 + _t1632 = 1 } else { - var _t1617 int64 + var _t1633 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1617 = 1 + _t1633 = 1 } else { - var _t1618 int64 + var _t1634 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1618 = 1 + _t1634 = 1 } else { - var _t1619 int64 + var _t1635 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1619 = 1 + _t1635 = 1 } else { - var _t1620 int64 + var _t1636 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1620 = 1 + _t1636 = 1 } else { - var _t1621 int64 + var _t1637 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1621 = 1 + _t1637 = 1 } else { - var _t1622 int64 + var _t1638 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1622 = 1 + _t1638 = 1 } else { - var _t1623 int64 + var _t1639 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1623 = 1 + _t1639 = 1 } else { - _t1623 = -1 + _t1639 = -1 } - _t1622 = _t1623 + _t1638 = _t1639 } - _t1621 = _t1622 + _t1637 = _t1638 } - _t1620 = _t1621 + _t1636 = _t1637 } - _t1619 = _t1620 + _t1635 = _t1636 } - _t1618 = _t1619 + _t1634 = _t1635 } - _t1617 = _t1618 + _t1633 = _t1634 } - _t1616 = _t1617 + _t1632 = _t1633 } - _t1615 = _t1616 + _t1631 = _t1632 } - _t1614 = _t1615 + _t1630 = _t1631 } - _t1613 = _t1614 + _t1629 = _t1630 } - _t1612 = _t1613 + _t1628 = _t1629 } - _t1611 = _t1612 + _t1627 = _t1628 } - _t1610 = _t1611 - } - prediction863 := _t1610 - var _t1624 *pb.Term - if prediction863 == 1 { - _t1625 := p.parse_value() - value865 := _t1625 - _t1626 := &pb.Term{} - _t1626.TermType = &pb.Term_Constant{Constant: value865} - _t1624 = _t1626 + _t1626 = _t1627 + } + prediction871 := _t1626 + var _t1640 *pb.Term + if prediction871 == 1 { + _t1641 := p.parse_value() + value873 := _t1641 + _t1642 := &pb.Term{} + _t1642.TermType = &pb.Term_Constant{Constant: value873} + _t1640 = _t1642 } else { - var _t1627 *pb.Term - if prediction863 == 0 { - _t1628 := p.parse_var() - var864 := _t1628 - _t1629 := &pb.Term{} - _t1629.TermType = &pb.Term_Var{Var: var864} - _t1627 = _t1629 + var _t1643 *pb.Term + if prediction871 == 0 { + _t1644 := p.parse_var() + var872 := _t1644 + _t1645 := &pb.Term{} + _t1645.TermType = &pb.Term_Var{Var: var872} + _t1643 = _t1645 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1624 = _t1627 + _t1640 = _t1643 } - result867 := _t1624 - p.recordSpan(int(span_start866), "Term") - return result867 + result875 := _t1640 + p.recordSpan(int(span_start874), "Term") + return result875 } func (p *Parser) parse_var() *pb.Var { - span_start869 := int64(p.spanStart()) - symbol868 := p.consumeTerminal("SYMBOL").Value.str - _t1630 := &pb.Var{Name: symbol868} - result870 := _t1630 - p.recordSpan(int(span_start869), "Var") - return result870 + span_start877 := int64(p.spanStart()) + symbol876 := p.consumeTerminal("SYMBOL").Value.str + _t1646 := &pb.Var{Name: symbol876} + result878 := _t1646 + p.recordSpan(int(span_start877), "Var") + return result878 } func (p *Parser) parse_value() *pb.Value { - span_start884 := int64(p.spanStart()) - var _t1631 int64 + span_start892 := int64(p.spanStart()) + var _t1647 int64 if p.matchLookaheadLiteral("true", 0) { - _t1631 = 12 + _t1647 = 12 } else { - var _t1632 int64 + var _t1648 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1632 = 11 + _t1648 = 11 } else { - var _t1633 int64 + var _t1649 int64 if p.matchLookaheadLiteral("false", 0) { - _t1633 = 12 + _t1649 = 12 } else { - var _t1634 int64 + var _t1650 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1635 int64 + var _t1651 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1635 = 1 + _t1651 = 1 } else { - var _t1636 int64 + var _t1652 int64 if p.matchLookaheadLiteral("date", 1) { - _t1636 = 0 + _t1652 = 0 } else { - _t1636 = -1 + _t1652 = -1 } - _t1635 = _t1636 + _t1651 = _t1652 } - _t1634 = _t1635 + _t1650 = _t1651 } else { - var _t1637 int64 + var _t1653 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1637 = 7 + _t1653 = 7 } else { - var _t1638 int64 + var _t1654 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1638 = 8 + _t1654 = 8 } else { - var _t1639 int64 + var _t1655 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1639 = 2 + _t1655 = 2 } else { - var _t1640 int64 + var _t1656 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1640 = 3 + _t1656 = 3 } else { - var _t1641 int64 + var _t1657 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1641 = 9 + _t1657 = 9 } else { - var _t1642 int64 + var _t1658 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1642 = 4 + _t1658 = 4 } else { - var _t1643 int64 + var _t1659 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1643 = 5 + _t1659 = 5 } else { - var _t1644 int64 + var _t1660 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1644 = 6 + _t1660 = 6 } else { - var _t1645 int64 + var _t1661 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1645 = 10 + _t1661 = 10 } else { - _t1645 = -1 + _t1661 = -1 } - _t1644 = _t1645 + _t1660 = _t1661 } - _t1643 = _t1644 + _t1659 = _t1660 } - _t1642 = _t1643 + _t1658 = _t1659 } - _t1641 = _t1642 + _t1657 = _t1658 } - _t1640 = _t1641 + _t1656 = _t1657 } - _t1639 = _t1640 + _t1655 = _t1656 } - _t1638 = _t1639 + _t1654 = _t1655 } - _t1637 = _t1638 + _t1653 = _t1654 } - _t1634 = _t1637 + _t1650 = _t1653 } - _t1633 = _t1634 + _t1649 = _t1650 } - _t1632 = _t1633 + _t1648 = _t1649 } - _t1631 = _t1632 - } - prediction871 := _t1631 - var _t1646 *pb.Value - if prediction871 == 12 { - _t1647 := p.parse_boolean_value() - boolean_value883 := _t1647 - _t1648 := &pb.Value{} - _t1648.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value883} - _t1646 = _t1648 + _t1647 = _t1648 + } + prediction879 := _t1647 + var _t1662 *pb.Value + if prediction879 == 12 { + _t1663 := p.parse_boolean_value() + boolean_value891 := _t1663 + _t1664 := &pb.Value{} + _t1664.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value891} + _t1662 = _t1664 } else { - var _t1649 *pb.Value - if prediction871 == 11 { + var _t1665 *pb.Value + if prediction879 == 11 { p.consumeLiteral("missing") - _t1650 := &pb.MissingValue{} - _t1651 := &pb.Value{} - _t1651.Value = &pb.Value_MissingValue{MissingValue: _t1650} - _t1649 = _t1651 + _t1666 := &pb.MissingValue{} + _t1667 := &pb.Value{} + _t1667.Value = &pb.Value_MissingValue{MissingValue: _t1666} + _t1665 = _t1667 } else { - var _t1652 *pb.Value - if prediction871 == 10 { - formatted_decimal882 := p.consumeTerminal("DECIMAL").Value.decimal - _t1653 := &pb.Value{} - _t1653.Value = &pb.Value_DecimalValue{DecimalValue: formatted_decimal882} - _t1652 = _t1653 + var _t1668 *pb.Value + if prediction879 == 10 { + formatted_decimal890 := p.consumeTerminal("DECIMAL").Value.decimal + _t1669 := &pb.Value{} + _t1669.Value = &pb.Value_DecimalValue{DecimalValue: formatted_decimal890} + _t1668 = _t1669 } else { - var _t1654 *pb.Value - if prediction871 == 9 { - formatted_int128881 := p.consumeTerminal("INT128").Value.int128 - _t1655 := &pb.Value{} - _t1655.Value = &pb.Value_Int128Value{Int128Value: formatted_int128881} - _t1654 = _t1655 + var _t1670 *pb.Value + if prediction879 == 9 { + formatted_int128889 := p.consumeTerminal("INT128").Value.int128 + _t1671 := &pb.Value{} + _t1671.Value = &pb.Value_Int128Value{Int128Value: formatted_int128889} + _t1670 = _t1671 } else { - var _t1656 *pb.Value - if prediction871 == 8 { - formatted_uint128880 := p.consumeTerminal("UINT128").Value.uint128 - _t1657 := &pb.Value{} - _t1657.Value = &pb.Value_Uint128Value{Uint128Value: formatted_uint128880} - _t1656 = _t1657 + var _t1672 *pb.Value + if prediction879 == 8 { + formatted_uint128888 := p.consumeTerminal("UINT128").Value.uint128 + _t1673 := &pb.Value{} + _t1673.Value = &pb.Value_Uint128Value{Uint128Value: formatted_uint128888} + _t1672 = _t1673 } else { - var _t1658 *pb.Value - if prediction871 == 7 { - formatted_uint32879 := p.consumeTerminal("UINT32").Value.u32 - _t1659 := &pb.Value{} - _t1659.Value = &pb.Value_Uint32Value{Uint32Value: formatted_uint32879} - _t1658 = _t1659 + var _t1674 *pb.Value + if prediction879 == 7 { + formatted_uint32887 := p.consumeTerminal("UINT32").Value.u32 + _t1675 := &pb.Value{} + _t1675.Value = &pb.Value_Uint32Value{Uint32Value: formatted_uint32887} + _t1674 = _t1675 } else { - var _t1660 *pb.Value - if prediction871 == 6 { - formatted_float878 := p.consumeTerminal("FLOAT").Value.f64 - _t1661 := &pb.Value{} - _t1661.Value = &pb.Value_FloatValue{FloatValue: formatted_float878} - _t1660 = _t1661 + var _t1676 *pb.Value + if prediction879 == 6 { + formatted_float886 := p.consumeTerminal("FLOAT").Value.f64 + _t1677 := &pb.Value{} + _t1677.Value = &pb.Value_FloatValue{FloatValue: formatted_float886} + _t1676 = _t1677 } else { - var _t1662 *pb.Value - if prediction871 == 5 { - formatted_float32877 := p.consumeTerminal("FLOAT32").Value.f32 - _t1663 := &pb.Value{} - _t1663.Value = &pb.Value_Float32Value{Float32Value: formatted_float32877} - _t1662 = _t1663 + var _t1678 *pb.Value + if prediction879 == 5 { + formatted_float32885 := p.consumeTerminal("FLOAT32").Value.f32 + _t1679 := &pb.Value{} + _t1679.Value = &pb.Value_Float32Value{Float32Value: formatted_float32885} + _t1678 = _t1679 } else { - var _t1664 *pb.Value - if prediction871 == 4 { - formatted_int876 := p.consumeTerminal("INT").Value.i64 - _t1665 := &pb.Value{} - _t1665.Value = &pb.Value_IntValue{IntValue: formatted_int876} - _t1664 = _t1665 + var _t1680 *pb.Value + if prediction879 == 4 { + formatted_int884 := p.consumeTerminal("INT").Value.i64 + _t1681 := &pb.Value{} + _t1681.Value = &pb.Value_IntValue{IntValue: formatted_int884} + _t1680 = _t1681 } else { - var _t1666 *pb.Value - if prediction871 == 3 { - formatted_int32875 := p.consumeTerminal("INT32").Value.i32 - _t1667 := &pb.Value{} - _t1667.Value = &pb.Value_Int32Value{Int32Value: formatted_int32875} - _t1666 = _t1667 + var _t1682 *pb.Value + if prediction879 == 3 { + formatted_int32883 := p.consumeTerminal("INT32").Value.i32 + _t1683 := &pb.Value{} + _t1683.Value = &pb.Value_Int32Value{Int32Value: formatted_int32883} + _t1682 = _t1683 } else { - var _t1668 *pb.Value - if prediction871 == 2 { - formatted_string874 := p.consumeTerminal("STRING").Value.str - _t1669 := &pb.Value{} - _t1669.Value = &pb.Value_StringValue{StringValue: formatted_string874} - _t1668 = _t1669 + var _t1684 *pb.Value + if prediction879 == 2 { + formatted_string882 := p.consumeTerminal("STRING").Value.str + _t1685 := &pb.Value{} + _t1685.Value = &pb.Value_StringValue{StringValue: formatted_string882} + _t1684 = _t1685 } else { - var _t1670 *pb.Value - if prediction871 == 1 { - _t1671 := p.parse_datetime() - datetime873 := _t1671 - _t1672 := &pb.Value{} - _t1672.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime873} - _t1670 = _t1672 + var _t1686 *pb.Value + if prediction879 == 1 { + _t1687 := p.parse_datetime() + datetime881 := _t1687 + _t1688 := &pb.Value{} + _t1688.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime881} + _t1686 = _t1688 } else { - var _t1673 *pb.Value - if prediction871 == 0 { - _t1674 := p.parse_date() - date872 := _t1674 - _t1675 := &pb.Value{} - _t1675.Value = &pb.Value_DateValue{DateValue: date872} - _t1673 = _t1675 + var _t1689 *pb.Value + if prediction879 == 0 { + _t1690 := p.parse_date() + date880 := _t1690 + _t1691 := &pb.Value{} + _t1691.Value = &pb.Value_DateValue{DateValue: date880} + _t1689 = _t1691 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1670 = _t1673 + _t1686 = _t1689 } - _t1668 = _t1670 + _t1684 = _t1686 } - _t1666 = _t1668 + _t1682 = _t1684 } - _t1664 = _t1666 + _t1680 = _t1682 } - _t1662 = _t1664 + _t1678 = _t1680 } - _t1660 = _t1662 + _t1676 = _t1678 } - _t1658 = _t1660 + _t1674 = _t1676 } - _t1656 = _t1658 + _t1672 = _t1674 } - _t1654 = _t1656 + _t1670 = _t1672 } - _t1652 = _t1654 + _t1668 = _t1670 } - _t1649 = _t1652 + _t1665 = _t1668 } - _t1646 = _t1649 + _t1662 = _t1665 } - result885 := _t1646 - p.recordSpan(int(span_start884), "Value") - return result885 + result893 := _t1662 + p.recordSpan(int(span_start892), "Value") + return result893 } func (p *Parser) parse_date() *pb.DateValue { - span_start889 := int64(p.spanStart()) + span_start897 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("date") - formatted_int886 := p.consumeTerminal("INT").Value.i64 - formatted_int_3887 := p.consumeTerminal("INT").Value.i64 - formatted_int_4888 := p.consumeTerminal("INT").Value.i64 + formatted_int894 := p.consumeTerminal("INT").Value.i64 + formatted_int_3895 := p.consumeTerminal("INT").Value.i64 + formatted_int_4896 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1676 := &pb.DateValue{Year: int32(formatted_int886), Month: int32(formatted_int_3887), Day: int32(formatted_int_4888)} - result890 := _t1676 - p.recordSpan(int(span_start889), "DateValue") - return result890 + _t1692 := &pb.DateValue{Year: int32(formatted_int894), Month: int32(formatted_int_3895), Day: int32(formatted_int_4896)} + result898 := _t1692 + p.recordSpan(int(span_start897), "DateValue") + return result898 } func (p *Parser) parse_datetime() *pb.DateTimeValue { - span_start898 := int64(p.spanStart()) + span_start906 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("datetime") - formatted_int891 := p.consumeTerminal("INT").Value.i64 - formatted_int_3892 := p.consumeTerminal("INT").Value.i64 - formatted_int_4893 := p.consumeTerminal("INT").Value.i64 - formatted_int_5894 := p.consumeTerminal("INT").Value.i64 - formatted_int_6895 := p.consumeTerminal("INT").Value.i64 - formatted_int_7896 := p.consumeTerminal("INT").Value.i64 - var _t1677 *int64 + formatted_int899 := p.consumeTerminal("INT").Value.i64 + formatted_int_3900 := p.consumeTerminal("INT").Value.i64 + formatted_int_4901 := p.consumeTerminal("INT").Value.i64 + formatted_int_5902 := p.consumeTerminal("INT").Value.i64 + formatted_int_6903 := p.consumeTerminal("INT").Value.i64 + formatted_int_7904 := p.consumeTerminal("INT").Value.i64 + var _t1693 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1677 = ptr(p.consumeTerminal("INT").Value.i64) + _t1693 = ptr(p.consumeTerminal("INT").Value.i64) } - formatted_int_8897 := _t1677 + formatted_int_8905 := _t1693 p.consumeLiteral(")") - _t1678 := &pb.DateTimeValue{Year: int32(formatted_int891), Month: int32(formatted_int_3892), Day: int32(formatted_int_4893), Hour: int32(formatted_int_5894), Minute: int32(formatted_int_6895), Second: int32(formatted_int_7896), Microsecond: int32(deref(formatted_int_8897, 0))} - result899 := _t1678 - p.recordSpan(int(span_start898), "DateTimeValue") - return result899 + _t1694 := &pb.DateTimeValue{Year: int32(formatted_int899), Month: int32(formatted_int_3900), Day: int32(formatted_int_4901), Hour: int32(formatted_int_5902), Minute: int32(formatted_int_6903), Second: int32(formatted_int_7904), Microsecond: int32(deref(formatted_int_8905, 0))} + result907 := _t1694 + p.recordSpan(int(span_start906), "DateTimeValue") + return result907 } func (p *Parser) parse_conjunction() *pb.Conjunction { - span_start904 := int64(p.spanStart()) + span_start912 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("and") - xs900 := []*pb.Formula{} - cond901 := p.matchLookaheadLiteral("(", 0) - for cond901 { - _t1679 := p.parse_formula() - item902 := _t1679 - xs900 = append(xs900, item902) - cond901 = p.matchLookaheadLiteral("(", 0) - } - formulas903 := xs900 + xs908 := []*pb.Formula{} + cond909 := p.matchLookaheadLiteral("(", 0) + for cond909 { + _t1695 := p.parse_formula() + item910 := _t1695 + xs908 = append(xs908, item910) + cond909 = p.matchLookaheadLiteral("(", 0) + } + formulas911 := xs908 p.consumeLiteral(")") - _t1680 := &pb.Conjunction{Args: formulas903} - result905 := _t1680 - p.recordSpan(int(span_start904), "Conjunction") - return result905 + _t1696 := &pb.Conjunction{Args: formulas911} + result913 := _t1696 + p.recordSpan(int(span_start912), "Conjunction") + return result913 } func (p *Parser) parse_disjunction() *pb.Disjunction { - span_start910 := int64(p.spanStart()) + span_start918 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") - xs906 := []*pb.Formula{} - cond907 := p.matchLookaheadLiteral("(", 0) - for cond907 { - _t1681 := p.parse_formula() - item908 := _t1681 - xs906 = append(xs906, item908) - cond907 = p.matchLookaheadLiteral("(", 0) - } - formulas909 := xs906 + xs914 := []*pb.Formula{} + cond915 := p.matchLookaheadLiteral("(", 0) + for cond915 { + _t1697 := p.parse_formula() + item916 := _t1697 + xs914 = append(xs914, item916) + cond915 = p.matchLookaheadLiteral("(", 0) + } + formulas917 := xs914 p.consumeLiteral(")") - _t1682 := &pb.Disjunction{Args: formulas909} - result911 := _t1682 - p.recordSpan(int(span_start910), "Disjunction") - return result911 + _t1698 := &pb.Disjunction{Args: formulas917} + result919 := _t1698 + p.recordSpan(int(span_start918), "Disjunction") + return result919 } func (p *Parser) parse_not() *pb.Not { - span_start913 := int64(p.spanStart()) + span_start921 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("not") - _t1683 := p.parse_formula() - formula912 := _t1683 + _t1699 := p.parse_formula() + formula920 := _t1699 p.consumeLiteral(")") - _t1684 := &pb.Not{Arg: formula912} - result914 := _t1684 - p.recordSpan(int(span_start913), "Not") - return result914 + _t1700 := &pb.Not{Arg: formula920} + result922 := _t1700 + p.recordSpan(int(span_start921), "Not") + return result922 } func (p *Parser) parse_ffi() *pb.FFI { - span_start918 := int64(p.spanStart()) + span_start926 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("ffi") - _t1685 := p.parse_name() - name915 := _t1685 - _t1686 := p.parse_ffi_args() - ffi_args916 := _t1686 - _t1687 := p.parse_terms() - terms917 := _t1687 + _t1701 := p.parse_name() + name923 := _t1701 + _t1702 := p.parse_ffi_args() + ffi_args924 := _t1702 + _t1703 := p.parse_terms() + terms925 := _t1703 p.consumeLiteral(")") - _t1688 := &pb.FFI{Name: name915, Args: ffi_args916, Terms: terms917} - result919 := _t1688 - p.recordSpan(int(span_start918), "FFI") - return result919 + _t1704 := &pb.FFI{Name: name923, Args: ffi_args924, Terms: terms925} + result927 := _t1704 + p.recordSpan(int(span_start926), "FFI") + return result927 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol920 := p.consumeTerminal("SYMBOL").Value.str - return symbol920 + symbol928 := p.consumeTerminal("SYMBOL").Value.str + return symbol928 } func (p *Parser) parse_ffi_args() []*pb.Abstraction { p.consumeLiteral("(") p.consumeLiteral("args") - xs921 := []*pb.Abstraction{} - cond922 := p.matchLookaheadLiteral("(", 0) - for cond922 { - _t1689 := p.parse_abstraction() - item923 := _t1689 - xs921 = append(xs921, item923) - cond922 = p.matchLookaheadLiteral("(", 0) - } - abstractions924 := xs921 + xs929 := []*pb.Abstraction{} + cond930 := p.matchLookaheadLiteral("(", 0) + for cond930 { + _t1705 := p.parse_abstraction() + item931 := _t1705 + xs929 = append(xs929, item931) + cond930 = p.matchLookaheadLiteral("(", 0) + } + abstractions932 := xs929 p.consumeLiteral(")") - return abstractions924 + return abstractions932 } func (p *Parser) parse_atom() *pb.Atom { - span_start930 := int64(p.spanStart()) + span_start938 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("atom") - _t1690 := p.parse_relation_id() - relation_id925 := _t1690 - xs926 := []*pb.Term{} - cond927 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - for cond927 { - _t1691 := p.parse_term() - item928 := _t1691 - xs926 = append(xs926, item928) - cond927 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - } - terms929 := xs926 + _t1706 := p.parse_relation_id() + relation_id933 := _t1706 + xs934 := []*pb.Term{} + cond935 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + for cond935 { + _t1707 := p.parse_term() + item936 := _t1707 + xs934 = append(xs934, item936) + cond935 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + } + terms937 := xs934 p.consumeLiteral(")") - _t1692 := &pb.Atom{Name: relation_id925, Terms: terms929} - result931 := _t1692 - p.recordSpan(int(span_start930), "Atom") - return result931 + _t1708 := &pb.Atom{Name: relation_id933, Terms: terms937} + result939 := _t1708 + p.recordSpan(int(span_start938), "Atom") + return result939 } func (p *Parser) parse_pragma() *pb.Pragma { - span_start937 := int64(p.spanStart()) + span_start945 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("pragma") - _t1693 := p.parse_name() - name932 := _t1693 - xs933 := []*pb.Term{} - cond934 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - for cond934 { - _t1694 := p.parse_term() - item935 := _t1694 - xs933 = append(xs933, item935) - cond934 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - } - terms936 := xs933 + _t1709 := p.parse_name() + name940 := _t1709 + xs941 := []*pb.Term{} + cond942 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + for cond942 { + _t1710 := p.parse_term() + item943 := _t1710 + xs941 = append(xs941, item943) + cond942 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + } + terms944 := xs941 p.consumeLiteral(")") - _t1695 := &pb.Pragma{Name: name932, Terms: terms936} - result938 := _t1695 - p.recordSpan(int(span_start937), "Pragma") - return result938 + _t1711 := &pb.Pragma{Name: name940, Terms: terms944} + result946 := _t1711 + p.recordSpan(int(span_start945), "Pragma") + return result946 } func (p *Parser) parse_primitive() *pb.Primitive { - span_start954 := int64(p.spanStart()) - var _t1696 int64 + span_start962 := int64(p.spanStart()) + var _t1712 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1697 int64 + var _t1713 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1697 = 9 + _t1713 = 9 } else { - var _t1698 int64 + var _t1714 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1698 = 4 + _t1714 = 4 } else { - var _t1699 int64 + var _t1715 int64 if p.matchLookaheadLiteral(">", 1) { - _t1699 = 3 + _t1715 = 3 } else { - var _t1700 int64 + var _t1716 int64 if p.matchLookaheadLiteral("=", 1) { - _t1700 = 0 + _t1716 = 0 } else { - var _t1701 int64 + var _t1717 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1701 = 2 + _t1717 = 2 } else { - var _t1702 int64 + var _t1718 int64 if p.matchLookaheadLiteral("<", 1) { - _t1702 = 1 + _t1718 = 1 } else { - var _t1703 int64 + var _t1719 int64 if p.matchLookaheadLiteral("/", 1) { - _t1703 = 8 + _t1719 = 8 } else { - var _t1704 int64 + var _t1720 int64 if p.matchLookaheadLiteral("-", 1) { - _t1704 = 6 + _t1720 = 6 } else { - var _t1705 int64 + var _t1721 int64 if p.matchLookaheadLiteral("+", 1) { - _t1705 = 5 + _t1721 = 5 } else { - var _t1706 int64 + var _t1722 int64 if p.matchLookaheadLiteral("*", 1) { - _t1706 = 7 + _t1722 = 7 } else { - _t1706 = -1 + _t1722 = -1 } - _t1705 = _t1706 + _t1721 = _t1722 } - _t1704 = _t1705 + _t1720 = _t1721 } - _t1703 = _t1704 + _t1719 = _t1720 } - _t1702 = _t1703 + _t1718 = _t1719 } - _t1701 = _t1702 + _t1717 = _t1718 } - _t1700 = _t1701 + _t1716 = _t1717 } - _t1699 = _t1700 + _t1715 = _t1716 } - _t1698 = _t1699 + _t1714 = _t1715 } - _t1697 = _t1698 + _t1713 = _t1714 } - _t1696 = _t1697 + _t1712 = _t1713 } else { - _t1696 = -1 + _t1712 = -1 } - prediction939 := _t1696 - var _t1707 *pb.Primitive - if prediction939 == 9 { + prediction947 := _t1712 + var _t1723 *pb.Primitive + if prediction947 == 9 { p.consumeLiteral("(") p.consumeLiteral("primitive") - _t1708 := p.parse_name() - name949 := _t1708 - xs950 := []*pb.RelTerm{} - cond951 := ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - for cond951 { - _t1709 := p.parse_rel_term() - item952 := _t1709 - xs950 = append(xs950, item952) - cond951 = ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + _t1724 := p.parse_name() + name957 := _t1724 + xs958 := []*pb.RelTerm{} + cond959 := ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + for cond959 { + _t1725 := p.parse_rel_term() + item960 := _t1725 + xs958 = append(xs958, item960) + cond959 = ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) } - rel_terms953 := xs950 + rel_terms961 := xs958 p.consumeLiteral(")") - _t1710 := &pb.Primitive{Name: name949, Terms: rel_terms953} - _t1707 = _t1710 + _t1726 := &pb.Primitive{Name: name957, Terms: rel_terms961} + _t1723 = _t1726 } else { - var _t1711 *pb.Primitive - if prediction939 == 8 { - _t1712 := p.parse_divide() - divide948 := _t1712 - _t1711 = divide948 + var _t1727 *pb.Primitive + if prediction947 == 8 { + _t1728 := p.parse_divide() + divide956 := _t1728 + _t1727 = divide956 } else { - var _t1713 *pb.Primitive - if prediction939 == 7 { - _t1714 := p.parse_multiply() - multiply947 := _t1714 - _t1713 = multiply947 + var _t1729 *pb.Primitive + if prediction947 == 7 { + _t1730 := p.parse_multiply() + multiply955 := _t1730 + _t1729 = multiply955 } else { - var _t1715 *pb.Primitive - if prediction939 == 6 { - _t1716 := p.parse_minus() - minus946 := _t1716 - _t1715 = minus946 + var _t1731 *pb.Primitive + if prediction947 == 6 { + _t1732 := p.parse_minus() + minus954 := _t1732 + _t1731 = minus954 } else { - var _t1717 *pb.Primitive - if prediction939 == 5 { - _t1718 := p.parse_add() - add945 := _t1718 - _t1717 = add945 + var _t1733 *pb.Primitive + if prediction947 == 5 { + _t1734 := p.parse_add() + add953 := _t1734 + _t1733 = add953 } else { - var _t1719 *pb.Primitive - if prediction939 == 4 { - _t1720 := p.parse_gt_eq() - gt_eq944 := _t1720 - _t1719 = gt_eq944 + var _t1735 *pb.Primitive + if prediction947 == 4 { + _t1736 := p.parse_gt_eq() + gt_eq952 := _t1736 + _t1735 = gt_eq952 } else { - var _t1721 *pb.Primitive - if prediction939 == 3 { - _t1722 := p.parse_gt() - gt943 := _t1722 - _t1721 = gt943 + var _t1737 *pb.Primitive + if prediction947 == 3 { + _t1738 := p.parse_gt() + gt951 := _t1738 + _t1737 = gt951 } else { - var _t1723 *pb.Primitive - if prediction939 == 2 { - _t1724 := p.parse_lt_eq() - lt_eq942 := _t1724 - _t1723 = lt_eq942 + var _t1739 *pb.Primitive + if prediction947 == 2 { + _t1740 := p.parse_lt_eq() + lt_eq950 := _t1740 + _t1739 = lt_eq950 } else { - var _t1725 *pb.Primitive - if prediction939 == 1 { - _t1726 := p.parse_lt() - lt941 := _t1726 - _t1725 = lt941 + var _t1741 *pb.Primitive + if prediction947 == 1 { + _t1742 := p.parse_lt() + lt949 := _t1742 + _t1741 = lt949 } else { - var _t1727 *pb.Primitive - if prediction939 == 0 { - _t1728 := p.parse_eq() - eq940 := _t1728 - _t1727 = eq940 + var _t1743 *pb.Primitive + if prediction947 == 0 { + _t1744 := p.parse_eq() + eq948 := _t1744 + _t1743 = eq948 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1725 = _t1727 + _t1741 = _t1743 } - _t1723 = _t1725 + _t1739 = _t1741 } - _t1721 = _t1723 + _t1737 = _t1739 } - _t1719 = _t1721 + _t1735 = _t1737 } - _t1717 = _t1719 + _t1733 = _t1735 } - _t1715 = _t1717 + _t1731 = _t1733 } - _t1713 = _t1715 + _t1729 = _t1731 } - _t1711 = _t1713 + _t1727 = _t1729 } - _t1707 = _t1711 + _t1723 = _t1727 } - result955 := _t1707 - p.recordSpan(int(span_start954), "Primitive") - return result955 + result963 := _t1723 + p.recordSpan(int(span_start962), "Primitive") + return result963 } func (p *Parser) parse_eq() *pb.Primitive { - span_start958 := int64(p.spanStart()) + span_start966 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("=") - _t1729 := p.parse_term() - term956 := _t1729 - _t1730 := p.parse_term() - term_3957 := _t1730 + _t1745 := p.parse_term() + term964 := _t1745 + _t1746 := p.parse_term() + term_3965 := _t1746 p.consumeLiteral(")") - _t1731 := &pb.RelTerm{} - _t1731.RelTermType = &pb.RelTerm_Term{Term: term956} - _t1732 := &pb.RelTerm{} - _t1732.RelTermType = &pb.RelTerm_Term{Term: term_3957} - _t1733 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1731, _t1732}} - result959 := _t1733 - p.recordSpan(int(span_start958), "Primitive") - return result959 + _t1747 := &pb.RelTerm{} + _t1747.RelTermType = &pb.RelTerm_Term{Term: term964} + _t1748 := &pb.RelTerm{} + _t1748.RelTermType = &pb.RelTerm_Term{Term: term_3965} + _t1749 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1747, _t1748}} + result967 := _t1749 + p.recordSpan(int(span_start966), "Primitive") + return result967 } func (p *Parser) parse_lt() *pb.Primitive { - span_start962 := int64(p.spanStart()) + span_start970 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<") - _t1734 := p.parse_term() - term960 := _t1734 - _t1735 := p.parse_term() - term_3961 := _t1735 + _t1750 := p.parse_term() + term968 := _t1750 + _t1751 := p.parse_term() + term_3969 := _t1751 p.consumeLiteral(")") - _t1736 := &pb.RelTerm{} - _t1736.RelTermType = &pb.RelTerm_Term{Term: term960} - _t1737 := &pb.RelTerm{} - _t1737.RelTermType = &pb.RelTerm_Term{Term: term_3961} - _t1738 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1736, _t1737}} - result963 := _t1738 - p.recordSpan(int(span_start962), "Primitive") - return result963 + _t1752 := &pb.RelTerm{} + _t1752.RelTermType = &pb.RelTerm_Term{Term: term968} + _t1753 := &pb.RelTerm{} + _t1753.RelTermType = &pb.RelTerm_Term{Term: term_3969} + _t1754 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1752, _t1753}} + result971 := _t1754 + p.recordSpan(int(span_start970), "Primitive") + return result971 } func (p *Parser) parse_lt_eq() *pb.Primitive { - span_start966 := int64(p.spanStart()) + span_start974 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<=") - _t1739 := p.parse_term() - term964 := _t1739 - _t1740 := p.parse_term() - term_3965 := _t1740 + _t1755 := p.parse_term() + term972 := _t1755 + _t1756 := p.parse_term() + term_3973 := _t1756 p.consumeLiteral(")") - _t1741 := &pb.RelTerm{} - _t1741.RelTermType = &pb.RelTerm_Term{Term: term964} - _t1742 := &pb.RelTerm{} - _t1742.RelTermType = &pb.RelTerm_Term{Term: term_3965} - _t1743 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1741, _t1742}} - result967 := _t1743 - p.recordSpan(int(span_start966), "Primitive") - return result967 + _t1757 := &pb.RelTerm{} + _t1757.RelTermType = &pb.RelTerm_Term{Term: term972} + _t1758 := &pb.RelTerm{} + _t1758.RelTermType = &pb.RelTerm_Term{Term: term_3973} + _t1759 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1757, _t1758}} + result975 := _t1759 + p.recordSpan(int(span_start974), "Primitive") + return result975 } func (p *Parser) parse_gt() *pb.Primitive { - span_start970 := int64(p.spanStart()) + span_start978 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">") - _t1744 := p.parse_term() - term968 := _t1744 - _t1745 := p.parse_term() - term_3969 := _t1745 + _t1760 := p.parse_term() + term976 := _t1760 + _t1761 := p.parse_term() + term_3977 := _t1761 p.consumeLiteral(")") - _t1746 := &pb.RelTerm{} - _t1746.RelTermType = &pb.RelTerm_Term{Term: term968} - _t1747 := &pb.RelTerm{} - _t1747.RelTermType = &pb.RelTerm_Term{Term: term_3969} - _t1748 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1746, _t1747}} - result971 := _t1748 - p.recordSpan(int(span_start970), "Primitive") - return result971 + _t1762 := &pb.RelTerm{} + _t1762.RelTermType = &pb.RelTerm_Term{Term: term976} + _t1763 := &pb.RelTerm{} + _t1763.RelTermType = &pb.RelTerm_Term{Term: term_3977} + _t1764 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1762, _t1763}} + result979 := _t1764 + p.recordSpan(int(span_start978), "Primitive") + return result979 } func (p *Parser) parse_gt_eq() *pb.Primitive { - span_start974 := int64(p.spanStart()) + span_start982 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">=") - _t1749 := p.parse_term() - term972 := _t1749 - _t1750 := p.parse_term() - term_3973 := _t1750 + _t1765 := p.parse_term() + term980 := _t1765 + _t1766 := p.parse_term() + term_3981 := _t1766 p.consumeLiteral(")") - _t1751 := &pb.RelTerm{} - _t1751.RelTermType = &pb.RelTerm_Term{Term: term972} - _t1752 := &pb.RelTerm{} - _t1752.RelTermType = &pb.RelTerm_Term{Term: term_3973} - _t1753 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1751, _t1752}} - result975 := _t1753 - p.recordSpan(int(span_start974), "Primitive") - return result975 + _t1767 := &pb.RelTerm{} + _t1767.RelTermType = &pb.RelTerm_Term{Term: term980} + _t1768 := &pb.RelTerm{} + _t1768.RelTermType = &pb.RelTerm_Term{Term: term_3981} + _t1769 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1767, _t1768}} + result983 := _t1769 + p.recordSpan(int(span_start982), "Primitive") + return result983 } func (p *Parser) parse_add() *pb.Primitive { - span_start979 := int64(p.spanStart()) + span_start987 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("+") - _t1754 := p.parse_term() - term976 := _t1754 - _t1755 := p.parse_term() - term_3977 := _t1755 - _t1756 := p.parse_term() - term_4978 := _t1756 + _t1770 := p.parse_term() + term984 := _t1770 + _t1771 := p.parse_term() + term_3985 := _t1771 + _t1772 := p.parse_term() + term_4986 := _t1772 p.consumeLiteral(")") - _t1757 := &pb.RelTerm{} - _t1757.RelTermType = &pb.RelTerm_Term{Term: term976} - _t1758 := &pb.RelTerm{} - _t1758.RelTermType = &pb.RelTerm_Term{Term: term_3977} - _t1759 := &pb.RelTerm{} - _t1759.RelTermType = &pb.RelTerm_Term{Term: term_4978} - _t1760 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1757, _t1758, _t1759}} - result980 := _t1760 - p.recordSpan(int(span_start979), "Primitive") - return result980 + _t1773 := &pb.RelTerm{} + _t1773.RelTermType = &pb.RelTerm_Term{Term: term984} + _t1774 := &pb.RelTerm{} + _t1774.RelTermType = &pb.RelTerm_Term{Term: term_3985} + _t1775 := &pb.RelTerm{} + _t1775.RelTermType = &pb.RelTerm_Term{Term: term_4986} + _t1776 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1773, _t1774, _t1775}} + result988 := _t1776 + p.recordSpan(int(span_start987), "Primitive") + return result988 } func (p *Parser) parse_minus() *pb.Primitive { - span_start984 := int64(p.spanStart()) + span_start992 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("-") - _t1761 := p.parse_term() - term981 := _t1761 - _t1762 := p.parse_term() - term_3982 := _t1762 - _t1763 := p.parse_term() - term_4983 := _t1763 + _t1777 := p.parse_term() + term989 := _t1777 + _t1778 := p.parse_term() + term_3990 := _t1778 + _t1779 := p.parse_term() + term_4991 := _t1779 p.consumeLiteral(")") - _t1764 := &pb.RelTerm{} - _t1764.RelTermType = &pb.RelTerm_Term{Term: term981} - _t1765 := &pb.RelTerm{} - _t1765.RelTermType = &pb.RelTerm_Term{Term: term_3982} - _t1766 := &pb.RelTerm{} - _t1766.RelTermType = &pb.RelTerm_Term{Term: term_4983} - _t1767 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1764, _t1765, _t1766}} - result985 := _t1767 - p.recordSpan(int(span_start984), "Primitive") - return result985 + _t1780 := &pb.RelTerm{} + _t1780.RelTermType = &pb.RelTerm_Term{Term: term989} + _t1781 := &pb.RelTerm{} + _t1781.RelTermType = &pb.RelTerm_Term{Term: term_3990} + _t1782 := &pb.RelTerm{} + _t1782.RelTermType = &pb.RelTerm_Term{Term: term_4991} + _t1783 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1780, _t1781, _t1782}} + result993 := _t1783 + p.recordSpan(int(span_start992), "Primitive") + return result993 } func (p *Parser) parse_multiply() *pb.Primitive { - span_start989 := int64(p.spanStart()) + span_start997 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("*") - _t1768 := p.parse_term() - term986 := _t1768 - _t1769 := p.parse_term() - term_3987 := _t1769 - _t1770 := p.parse_term() - term_4988 := _t1770 + _t1784 := p.parse_term() + term994 := _t1784 + _t1785 := p.parse_term() + term_3995 := _t1785 + _t1786 := p.parse_term() + term_4996 := _t1786 p.consumeLiteral(")") - _t1771 := &pb.RelTerm{} - _t1771.RelTermType = &pb.RelTerm_Term{Term: term986} - _t1772 := &pb.RelTerm{} - _t1772.RelTermType = &pb.RelTerm_Term{Term: term_3987} - _t1773 := &pb.RelTerm{} - _t1773.RelTermType = &pb.RelTerm_Term{Term: term_4988} - _t1774 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1771, _t1772, _t1773}} - result990 := _t1774 - p.recordSpan(int(span_start989), "Primitive") - return result990 + _t1787 := &pb.RelTerm{} + _t1787.RelTermType = &pb.RelTerm_Term{Term: term994} + _t1788 := &pb.RelTerm{} + _t1788.RelTermType = &pb.RelTerm_Term{Term: term_3995} + _t1789 := &pb.RelTerm{} + _t1789.RelTermType = &pb.RelTerm_Term{Term: term_4996} + _t1790 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1787, _t1788, _t1789}} + result998 := _t1790 + p.recordSpan(int(span_start997), "Primitive") + return result998 } func (p *Parser) parse_divide() *pb.Primitive { - span_start994 := int64(p.spanStart()) + span_start1002 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("/") - _t1775 := p.parse_term() - term991 := _t1775 - _t1776 := p.parse_term() - term_3992 := _t1776 - _t1777 := p.parse_term() - term_4993 := _t1777 + _t1791 := p.parse_term() + term999 := _t1791 + _t1792 := p.parse_term() + term_31000 := _t1792 + _t1793 := p.parse_term() + term_41001 := _t1793 p.consumeLiteral(")") - _t1778 := &pb.RelTerm{} - _t1778.RelTermType = &pb.RelTerm_Term{Term: term991} - _t1779 := &pb.RelTerm{} - _t1779.RelTermType = &pb.RelTerm_Term{Term: term_3992} - _t1780 := &pb.RelTerm{} - _t1780.RelTermType = &pb.RelTerm_Term{Term: term_4993} - _t1781 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1778, _t1779, _t1780}} - result995 := _t1781 - p.recordSpan(int(span_start994), "Primitive") - return result995 + _t1794 := &pb.RelTerm{} + _t1794.RelTermType = &pb.RelTerm_Term{Term: term999} + _t1795 := &pb.RelTerm{} + _t1795.RelTermType = &pb.RelTerm_Term{Term: term_31000} + _t1796 := &pb.RelTerm{} + _t1796.RelTermType = &pb.RelTerm_Term{Term: term_41001} + _t1797 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1794, _t1795, _t1796}} + result1003 := _t1797 + p.recordSpan(int(span_start1002), "Primitive") + return result1003 } func (p *Parser) parse_rel_term() *pb.RelTerm { - span_start999 := int64(p.spanStart()) - var _t1782 int64 + span_start1007 := int64(p.spanStart()) + var _t1798 int64 if p.matchLookaheadLiteral("true", 0) { - _t1782 = 1 + _t1798 = 1 } else { - var _t1783 int64 + var _t1799 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1783 = 1 + _t1799 = 1 } else { - var _t1784 int64 + var _t1800 int64 if p.matchLookaheadLiteral("false", 0) { - _t1784 = 1 + _t1800 = 1 } else { - var _t1785 int64 + var _t1801 int64 if p.matchLookaheadLiteral("(", 0) { - _t1785 = 1 + _t1801 = 1 } else { - var _t1786 int64 + var _t1802 int64 if p.matchLookaheadLiteral("#", 0) { - _t1786 = 0 + _t1802 = 0 } else { - var _t1787 int64 + var _t1803 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1787 = 1 + _t1803 = 1 } else { - var _t1788 int64 + var _t1804 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1788 = 1 + _t1804 = 1 } else { - var _t1789 int64 + var _t1805 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1789 = 1 + _t1805 = 1 } else { - var _t1790 int64 + var _t1806 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1790 = 1 + _t1806 = 1 } else { - var _t1791 int64 + var _t1807 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1791 = 1 + _t1807 = 1 } else { - var _t1792 int64 + var _t1808 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1792 = 1 + _t1808 = 1 } else { - var _t1793 int64 + var _t1809 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1793 = 1 + _t1809 = 1 } else { - var _t1794 int64 + var _t1810 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1794 = 1 + _t1810 = 1 } else { - var _t1795 int64 + var _t1811 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1795 = 1 + _t1811 = 1 } else { - var _t1796 int64 + var _t1812 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1796 = 1 + _t1812 = 1 } else { - _t1796 = -1 + _t1812 = -1 } - _t1795 = _t1796 + _t1811 = _t1812 } - _t1794 = _t1795 + _t1810 = _t1811 } - _t1793 = _t1794 + _t1809 = _t1810 } - _t1792 = _t1793 + _t1808 = _t1809 } - _t1791 = _t1792 + _t1807 = _t1808 } - _t1790 = _t1791 + _t1806 = _t1807 } - _t1789 = _t1790 + _t1805 = _t1806 } - _t1788 = _t1789 + _t1804 = _t1805 } - _t1787 = _t1788 + _t1803 = _t1804 } - _t1786 = _t1787 + _t1802 = _t1803 } - _t1785 = _t1786 + _t1801 = _t1802 } - _t1784 = _t1785 + _t1800 = _t1801 } - _t1783 = _t1784 + _t1799 = _t1800 } - _t1782 = _t1783 - } - prediction996 := _t1782 - var _t1797 *pb.RelTerm - if prediction996 == 1 { - _t1798 := p.parse_term() - term998 := _t1798 - _t1799 := &pb.RelTerm{} - _t1799.RelTermType = &pb.RelTerm_Term{Term: term998} - _t1797 = _t1799 + _t1798 = _t1799 + } + prediction1004 := _t1798 + var _t1813 *pb.RelTerm + if prediction1004 == 1 { + _t1814 := p.parse_term() + term1006 := _t1814 + _t1815 := &pb.RelTerm{} + _t1815.RelTermType = &pb.RelTerm_Term{Term: term1006} + _t1813 = _t1815 } else { - var _t1800 *pb.RelTerm - if prediction996 == 0 { - _t1801 := p.parse_specialized_value() - specialized_value997 := _t1801 - _t1802 := &pb.RelTerm{} - _t1802.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value997} - _t1800 = _t1802 + var _t1816 *pb.RelTerm + if prediction1004 == 0 { + _t1817 := p.parse_specialized_value() + specialized_value1005 := _t1817 + _t1818 := &pb.RelTerm{} + _t1818.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value1005} + _t1816 = _t1818 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1797 = _t1800 + _t1813 = _t1816 } - result1000 := _t1797 - p.recordSpan(int(span_start999), "RelTerm") - return result1000 + result1008 := _t1813 + p.recordSpan(int(span_start1007), "RelTerm") + return result1008 } func (p *Parser) parse_specialized_value() *pb.Value { - span_start1002 := int64(p.spanStart()) + span_start1010 := int64(p.spanStart()) p.consumeLiteral("#") - _t1803 := p.parse_raw_value() - raw_value1001 := _t1803 - result1003 := raw_value1001 - p.recordSpan(int(span_start1002), "Value") - return result1003 + _t1819 := p.parse_raw_value() + raw_value1009 := _t1819 + result1011 := raw_value1009 + p.recordSpan(int(span_start1010), "Value") + return result1011 } func (p *Parser) parse_rel_atom() *pb.RelAtom { - span_start1009 := int64(p.spanStart()) + span_start1017 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("relatom") - _t1804 := p.parse_name() - name1004 := _t1804 - xs1005 := []*pb.RelTerm{} - cond1006 := ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - for cond1006 { - _t1805 := p.parse_rel_term() - item1007 := _t1805 - xs1005 = append(xs1005, item1007) - cond1006 = ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) - } - rel_terms1008 := xs1005 + _t1820 := p.parse_name() + name1012 := _t1820 + xs1013 := []*pb.RelTerm{} + cond1014 := ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + for cond1014 { + _t1821 := p.parse_rel_term() + item1015 := _t1821 + xs1013 = append(xs1013, item1015) + cond1014 = ((((((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) + } + rel_terms1016 := xs1013 p.consumeLiteral(")") - _t1806 := &pb.RelAtom{Name: name1004, Terms: rel_terms1008} - result1010 := _t1806 - p.recordSpan(int(span_start1009), "RelAtom") - return result1010 + _t1822 := &pb.RelAtom{Name: name1012, Terms: rel_terms1016} + result1018 := _t1822 + p.recordSpan(int(span_start1017), "RelAtom") + return result1018 } func (p *Parser) parse_cast() *pb.Cast { - span_start1013 := int64(p.spanStart()) + span_start1021 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("cast") - _t1807 := p.parse_term() - term1011 := _t1807 - _t1808 := p.parse_term() - term_31012 := _t1808 + _t1823 := p.parse_term() + term1019 := _t1823 + _t1824 := p.parse_term() + term_31020 := _t1824 p.consumeLiteral(")") - _t1809 := &pb.Cast{Input: term1011, Result: term_31012} - result1014 := _t1809 - p.recordSpan(int(span_start1013), "Cast") - return result1014 + _t1825 := &pb.Cast{Input: term1019, Result: term_31020} + result1022 := _t1825 + p.recordSpan(int(span_start1021), "Cast") + return result1022 } func (p *Parser) parse_attrs() []*pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attrs") - xs1015 := []*pb.Attribute{} - cond1016 := p.matchLookaheadLiteral("(", 0) - for cond1016 { - _t1810 := p.parse_attribute() - item1017 := _t1810 - xs1015 = append(xs1015, item1017) - cond1016 = p.matchLookaheadLiteral("(", 0) - } - attributes1018 := xs1015 + xs1023 := []*pb.Attribute{} + cond1024 := p.matchLookaheadLiteral("(", 0) + for cond1024 { + _t1826 := p.parse_attribute() + item1025 := _t1826 + xs1023 = append(xs1023, item1025) + cond1024 = p.matchLookaheadLiteral("(", 0) + } + attributes1026 := xs1023 p.consumeLiteral(")") - return attributes1018 + return attributes1026 } func (p *Parser) parse_attribute() *pb.Attribute { - span_start1024 := int64(p.spanStart()) + span_start1032 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("attribute") - _t1811 := p.parse_name() - name1019 := _t1811 - xs1020 := []*pb.Value{} - cond1021 := ((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond1021 { - _t1812 := p.parse_raw_value() - item1022 := _t1812 - xs1020 = append(xs1020, item1022) - cond1021 = ((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - raw_values1023 := xs1020 + _t1827 := p.parse_name() + name1027 := _t1827 + xs1028 := []*pb.Value{} + cond1029 := ((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond1029 { + _t1828 := p.parse_raw_value() + item1030 := _t1828 + xs1028 = append(xs1028, item1030) + cond1029 = ((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + raw_values1031 := xs1028 p.consumeLiteral(")") - _t1813 := &pb.Attribute{Name: name1019, Args: raw_values1023} - result1025 := _t1813 - p.recordSpan(int(span_start1024), "Attribute") - return result1025 + _t1829 := &pb.Attribute{Name: name1027, Args: raw_values1031} + result1033 := _t1829 + p.recordSpan(int(span_start1032), "Attribute") + return result1033 } func (p *Parser) parse_algorithm() *pb.Algorithm { - span_start1032 := int64(p.spanStart()) + span_start1040 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("algorithm") - xs1026 := []*pb.RelationId{} - cond1027 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond1027 { - _t1814 := p.parse_relation_id() - item1028 := _t1814 - xs1026 = append(xs1026, item1028) - cond1027 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids1029 := xs1026 - _t1815 := p.parse_script() - script1030 := _t1815 - var _t1816 []*pb.Attribute + xs1034 := []*pb.RelationId{} + cond1035 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1035 { + _t1830 := p.parse_relation_id() + item1036 := _t1830 + xs1034 = append(xs1034, item1036) + cond1035 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1037 := xs1034 + _t1831 := p.parse_script() + script1038 := _t1831 + var _t1832 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1817 := p.parse_attrs() - _t1816 = _t1817 + _t1833 := p.parse_attrs() + _t1832 = _t1833 } - attrs1031 := _t1816 + attrs1039 := _t1832 p.consumeLiteral(")") - _t1818 := attrs1031 - if attrs1031 == nil { - _t1818 = []*pb.Attribute{} + _t1834 := attrs1039 + if attrs1039 == nil { + _t1834 = []*pb.Attribute{} } - _t1819 := &pb.Algorithm{Global: relation_ids1029, Body: script1030, Attrs: _t1818} - result1033 := _t1819 - p.recordSpan(int(span_start1032), "Algorithm") - return result1033 + _t1835 := &pb.Algorithm{Global: relation_ids1037, Body: script1038, Attrs: _t1834} + result1041 := _t1835 + p.recordSpan(int(span_start1040), "Algorithm") + return result1041 } func (p *Parser) parse_script() *pb.Script { - span_start1038 := int64(p.spanStart()) + span_start1046 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("script") - xs1034 := []*pb.Construct{} - cond1035 := p.matchLookaheadLiteral("(", 0) - for cond1035 { - _t1820 := p.parse_construct() - item1036 := _t1820 - xs1034 = append(xs1034, item1036) - cond1035 = p.matchLookaheadLiteral("(", 0) - } - constructs1037 := xs1034 + xs1042 := []*pb.Construct{} + cond1043 := p.matchLookaheadLiteral("(", 0) + for cond1043 { + _t1836 := p.parse_construct() + item1044 := _t1836 + xs1042 = append(xs1042, item1044) + cond1043 = p.matchLookaheadLiteral("(", 0) + } + constructs1045 := xs1042 p.consumeLiteral(")") - _t1821 := &pb.Script{Constructs: constructs1037} - result1039 := _t1821 - p.recordSpan(int(span_start1038), "Script") - return result1039 + _t1837 := &pb.Script{Constructs: constructs1045} + result1047 := _t1837 + p.recordSpan(int(span_start1046), "Script") + return result1047 } func (p *Parser) parse_construct() *pb.Construct { - span_start1043 := int64(p.spanStart()) - var _t1822 int64 + span_start1051 := int64(p.spanStart()) + var _t1838 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1823 int64 + var _t1839 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1823 = 1 + _t1839 = 1 } else { - var _t1824 int64 + var _t1840 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1824 = 1 + _t1840 = 1 } else { - var _t1825 int64 + var _t1841 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1825 = 1 + _t1841 = 1 } else { - var _t1826 int64 + var _t1842 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1826 = 0 + _t1842 = 0 } else { - var _t1827 int64 + var _t1843 int64 if p.matchLookaheadLiteral("break", 1) { - _t1827 = 1 + _t1843 = 1 } else { - var _t1828 int64 + var _t1844 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1828 = 1 + _t1844 = 1 } else { - _t1828 = -1 + _t1844 = -1 } - _t1827 = _t1828 + _t1843 = _t1844 } - _t1826 = _t1827 + _t1842 = _t1843 } - _t1825 = _t1826 + _t1841 = _t1842 } - _t1824 = _t1825 + _t1840 = _t1841 } - _t1823 = _t1824 + _t1839 = _t1840 } - _t1822 = _t1823 + _t1838 = _t1839 } else { - _t1822 = -1 - } - prediction1040 := _t1822 - var _t1829 *pb.Construct - if prediction1040 == 1 { - _t1830 := p.parse_instruction() - instruction1042 := _t1830 - _t1831 := &pb.Construct{} - _t1831.ConstructType = &pb.Construct_Instruction{Instruction: instruction1042} - _t1829 = _t1831 + _t1838 = -1 + } + prediction1048 := _t1838 + var _t1845 *pb.Construct + if prediction1048 == 1 { + _t1846 := p.parse_instruction() + instruction1050 := _t1846 + _t1847 := &pb.Construct{} + _t1847.ConstructType = &pb.Construct_Instruction{Instruction: instruction1050} + _t1845 = _t1847 } else { - var _t1832 *pb.Construct - if prediction1040 == 0 { - _t1833 := p.parse_loop() - loop1041 := _t1833 - _t1834 := &pb.Construct{} - _t1834.ConstructType = &pb.Construct_Loop{Loop: loop1041} - _t1832 = _t1834 + var _t1848 *pb.Construct + if prediction1048 == 0 { + _t1849 := p.parse_loop() + loop1049 := _t1849 + _t1850 := &pb.Construct{} + _t1850.ConstructType = &pb.Construct_Loop{Loop: loop1049} + _t1848 = _t1850 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1829 = _t1832 + _t1845 = _t1848 } - result1044 := _t1829 - p.recordSpan(int(span_start1043), "Construct") - return result1044 + result1052 := _t1845 + p.recordSpan(int(span_start1051), "Construct") + return result1052 } func (p *Parser) parse_loop() *pb.Loop { - span_start1048 := int64(p.spanStart()) + span_start1056 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("loop") - _t1835 := p.parse_init() - init1045 := _t1835 - _t1836 := p.parse_script() - script1046 := _t1836 - var _t1837 []*pb.Attribute + _t1851 := p.parse_init() + init1053 := _t1851 + _t1852 := p.parse_script() + script1054 := _t1852 + var _t1853 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1838 := p.parse_attrs() - _t1837 = _t1838 + _t1854 := p.parse_attrs() + _t1853 = _t1854 } - attrs1047 := _t1837 + attrs1055 := _t1853 p.consumeLiteral(")") - _t1839 := attrs1047 - if attrs1047 == nil { - _t1839 = []*pb.Attribute{} + _t1855 := attrs1055 + if attrs1055 == nil { + _t1855 = []*pb.Attribute{} } - _t1840 := &pb.Loop{Init: init1045, Body: script1046, Attrs: _t1839} - result1049 := _t1840 - p.recordSpan(int(span_start1048), "Loop") - return result1049 + _t1856 := &pb.Loop{Init: init1053, Body: script1054, Attrs: _t1855} + result1057 := _t1856 + p.recordSpan(int(span_start1056), "Loop") + return result1057 } func (p *Parser) parse_init() []*pb.Instruction { p.consumeLiteral("(") p.consumeLiteral("init") - xs1050 := []*pb.Instruction{} - cond1051 := p.matchLookaheadLiteral("(", 0) - for cond1051 { - _t1841 := p.parse_instruction() - item1052 := _t1841 - xs1050 = append(xs1050, item1052) - cond1051 = p.matchLookaheadLiteral("(", 0) - } - instructions1053 := xs1050 + xs1058 := []*pb.Instruction{} + cond1059 := p.matchLookaheadLiteral("(", 0) + for cond1059 { + _t1857 := p.parse_instruction() + item1060 := _t1857 + xs1058 = append(xs1058, item1060) + cond1059 = p.matchLookaheadLiteral("(", 0) + } + instructions1061 := xs1058 p.consumeLiteral(")") - return instructions1053 + return instructions1061 } func (p *Parser) parse_instruction() *pb.Instruction { - span_start1060 := int64(p.spanStart()) - var _t1842 int64 + span_start1068 := int64(p.spanStart()) + var _t1858 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1843 int64 + var _t1859 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1843 = 1 + _t1859 = 1 } else { - var _t1844 int64 + var _t1860 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1844 = 4 + _t1860 = 4 } else { - var _t1845 int64 + var _t1861 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1845 = 3 + _t1861 = 3 } else { - var _t1846 int64 + var _t1862 int64 if p.matchLookaheadLiteral("break", 1) { - _t1846 = 2 + _t1862 = 2 } else { - var _t1847 int64 + var _t1863 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1847 = 0 + _t1863 = 0 } else { - _t1847 = -1 + _t1863 = -1 } - _t1846 = _t1847 + _t1862 = _t1863 } - _t1845 = _t1846 + _t1861 = _t1862 } - _t1844 = _t1845 + _t1860 = _t1861 } - _t1843 = _t1844 + _t1859 = _t1860 } - _t1842 = _t1843 + _t1858 = _t1859 } else { - _t1842 = -1 - } - prediction1054 := _t1842 - var _t1848 *pb.Instruction - if prediction1054 == 4 { - _t1849 := p.parse_monus_def() - monus_def1059 := _t1849 - _t1850 := &pb.Instruction{} - _t1850.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def1059} - _t1848 = _t1850 + _t1858 = -1 + } + prediction1062 := _t1858 + var _t1864 *pb.Instruction + if prediction1062 == 4 { + _t1865 := p.parse_monus_def() + monus_def1067 := _t1865 + _t1866 := &pb.Instruction{} + _t1866.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def1067} + _t1864 = _t1866 } else { - var _t1851 *pb.Instruction - if prediction1054 == 3 { - _t1852 := p.parse_monoid_def() - monoid_def1058 := _t1852 - _t1853 := &pb.Instruction{} - _t1853.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def1058} - _t1851 = _t1853 + var _t1867 *pb.Instruction + if prediction1062 == 3 { + _t1868 := p.parse_monoid_def() + monoid_def1066 := _t1868 + _t1869 := &pb.Instruction{} + _t1869.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def1066} + _t1867 = _t1869 } else { - var _t1854 *pb.Instruction - if prediction1054 == 2 { - _t1855 := p.parse_break() - break1057 := _t1855 - _t1856 := &pb.Instruction{} - _t1856.InstrType = &pb.Instruction_Break{Break: break1057} - _t1854 = _t1856 + var _t1870 *pb.Instruction + if prediction1062 == 2 { + _t1871 := p.parse_break() + break1065 := _t1871 + _t1872 := &pb.Instruction{} + _t1872.InstrType = &pb.Instruction_Break{Break: break1065} + _t1870 = _t1872 } else { - var _t1857 *pb.Instruction - if prediction1054 == 1 { - _t1858 := p.parse_upsert() - upsert1056 := _t1858 - _t1859 := &pb.Instruction{} - _t1859.InstrType = &pb.Instruction_Upsert{Upsert: upsert1056} - _t1857 = _t1859 + var _t1873 *pb.Instruction + if prediction1062 == 1 { + _t1874 := p.parse_upsert() + upsert1064 := _t1874 + _t1875 := &pb.Instruction{} + _t1875.InstrType = &pb.Instruction_Upsert{Upsert: upsert1064} + _t1873 = _t1875 } else { - var _t1860 *pb.Instruction - if prediction1054 == 0 { - _t1861 := p.parse_assign() - assign1055 := _t1861 - _t1862 := &pb.Instruction{} - _t1862.InstrType = &pb.Instruction_Assign{Assign: assign1055} - _t1860 = _t1862 + var _t1876 *pb.Instruction + if prediction1062 == 0 { + _t1877 := p.parse_assign() + assign1063 := _t1877 + _t1878 := &pb.Instruction{} + _t1878.InstrType = &pb.Instruction_Assign{Assign: assign1063} + _t1876 = _t1878 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1857 = _t1860 + _t1873 = _t1876 } - _t1854 = _t1857 + _t1870 = _t1873 } - _t1851 = _t1854 + _t1867 = _t1870 } - _t1848 = _t1851 + _t1864 = _t1867 } - result1061 := _t1848 - p.recordSpan(int(span_start1060), "Instruction") - return result1061 + result1069 := _t1864 + p.recordSpan(int(span_start1068), "Instruction") + return result1069 } func (p *Parser) parse_assign() *pb.Assign { - span_start1065 := int64(p.spanStart()) + span_start1073 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("assign") - _t1863 := p.parse_relation_id() - relation_id1062 := _t1863 - _t1864 := p.parse_abstraction() - abstraction1063 := _t1864 - var _t1865 []*pb.Attribute + _t1879 := p.parse_relation_id() + relation_id1070 := _t1879 + _t1880 := p.parse_abstraction() + abstraction1071 := _t1880 + var _t1881 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1866 := p.parse_attrs() - _t1865 = _t1866 + _t1882 := p.parse_attrs() + _t1881 = _t1882 } - attrs1064 := _t1865 + attrs1072 := _t1881 p.consumeLiteral(")") - _t1867 := attrs1064 - if attrs1064 == nil { - _t1867 = []*pb.Attribute{} + _t1883 := attrs1072 + if attrs1072 == nil { + _t1883 = []*pb.Attribute{} } - _t1868 := &pb.Assign{Name: relation_id1062, Body: abstraction1063, Attrs: _t1867} - result1066 := _t1868 - p.recordSpan(int(span_start1065), "Assign") - return result1066 + _t1884 := &pb.Assign{Name: relation_id1070, Body: abstraction1071, Attrs: _t1883} + result1074 := _t1884 + p.recordSpan(int(span_start1073), "Assign") + return result1074 } func (p *Parser) parse_upsert() *pb.Upsert { - span_start1070 := int64(p.spanStart()) + span_start1078 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("upsert") - _t1869 := p.parse_relation_id() - relation_id1067 := _t1869 - _t1870 := p.parse_abstraction_with_arity() - abstraction_with_arity1068 := _t1870 - var _t1871 []*pb.Attribute + _t1885 := p.parse_relation_id() + relation_id1075 := _t1885 + _t1886 := p.parse_abstraction_with_arity() + abstraction_with_arity1076 := _t1886 + var _t1887 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1872 := p.parse_attrs() - _t1871 = _t1872 + _t1888 := p.parse_attrs() + _t1887 = _t1888 } - attrs1069 := _t1871 + attrs1077 := _t1887 p.consumeLiteral(")") - _t1873 := attrs1069 - if attrs1069 == nil { - _t1873 = []*pb.Attribute{} + _t1889 := attrs1077 + if attrs1077 == nil { + _t1889 = []*pb.Attribute{} } - _t1874 := &pb.Upsert{Name: relation_id1067, Body: abstraction_with_arity1068[0].(*pb.Abstraction), Attrs: _t1873, ValueArity: abstraction_with_arity1068[1].(int64)} - result1071 := _t1874 - p.recordSpan(int(span_start1070), "Upsert") - return result1071 + _t1890 := &pb.Upsert{Name: relation_id1075, Body: abstraction_with_arity1076[0].(*pb.Abstraction), Attrs: _t1889, ValueArity: abstraction_with_arity1076[1].(int64)} + result1079 := _t1890 + p.recordSpan(int(span_start1078), "Upsert") + return result1079 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1875 := p.parse_bindings() - bindings1072 := _t1875 - _t1876 := p.parse_formula() - formula1073 := _t1876 + _t1891 := p.parse_bindings() + bindings1080 := _t1891 + _t1892 := p.parse_formula() + formula1081 := _t1892 p.consumeLiteral(")") - _t1877 := &pb.Abstraction{Vars: listConcat(bindings1072[0].([]*pb.Binding), bindings1072[1].([]*pb.Binding)), Value: formula1073} - return []interface{}{_t1877, int64(len(bindings1072[1].([]*pb.Binding)))} + _t1893 := &pb.Abstraction{Vars: listConcat(bindings1080[0].([]*pb.Binding), bindings1080[1].([]*pb.Binding)), Value: formula1081} + return []interface{}{_t1893, int64(len(bindings1080[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { - span_start1077 := int64(p.spanStart()) + span_start1085 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("break") - _t1878 := p.parse_relation_id() - relation_id1074 := _t1878 - _t1879 := p.parse_abstraction() - abstraction1075 := _t1879 - var _t1880 []*pb.Attribute + _t1894 := p.parse_relation_id() + relation_id1082 := _t1894 + _t1895 := p.parse_abstraction() + abstraction1083 := _t1895 + var _t1896 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1881 := p.parse_attrs() - _t1880 = _t1881 + _t1897 := p.parse_attrs() + _t1896 = _t1897 } - attrs1076 := _t1880 + attrs1084 := _t1896 p.consumeLiteral(")") - _t1882 := attrs1076 - if attrs1076 == nil { - _t1882 = []*pb.Attribute{} + _t1898 := attrs1084 + if attrs1084 == nil { + _t1898 = []*pb.Attribute{} } - _t1883 := &pb.Break{Name: relation_id1074, Body: abstraction1075, Attrs: _t1882} - result1078 := _t1883 - p.recordSpan(int(span_start1077), "Break") - return result1078 + _t1899 := &pb.Break{Name: relation_id1082, Body: abstraction1083, Attrs: _t1898} + result1086 := _t1899 + p.recordSpan(int(span_start1085), "Break") + return result1086 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { - span_start1083 := int64(p.spanStart()) + span_start1091 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monoid") - _t1884 := p.parse_monoid() - monoid1079 := _t1884 - _t1885 := p.parse_relation_id() - relation_id1080 := _t1885 - _t1886 := p.parse_abstraction_with_arity() - abstraction_with_arity1081 := _t1886 - var _t1887 []*pb.Attribute + _t1900 := p.parse_monoid() + monoid1087 := _t1900 + _t1901 := p.parse_relation_id() + relation_id1088 := _t1901 + _t1902 := p.parse_abstraction_with_arity() + abstraction_with_arity1089 := _t1902 + var _t1903 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1888 := p.parse_attrs() - _t1887 = _t1888 + _t1904 := p.parse_attrs() + _t1903 = _t1904 } - attrs1082 := _t1887 + attrs1090 := _t1903 p.consumeLiteral(")") - _t1889 := attrs1082 - if attrs1082 == nil { - _t1889 = []*pb.Attribute{} + _t1905 := attrs1090 + if attrs1090 == nil { + _t1905 = []*pb.Attribute{} } - _t1890 := &pb.MonoidDef{Monoid: monoid1079, Name: relation_id1080, Body: abstraction_with_arity1081[0].(*pb.Abstraction), Attrs: _t1889, ValueArity: abstraction_with_arity1081[1].(int64)} - result1084 := _t1890 - p.recordSpan(int(span_start1083), "MonoidDef") - return result1084 + _t1906 := &pb.MonoidDef{Monoid: monoid1087, Name: relation_id1088, Body: abstraction_with_arity1089[0].(*pb.Abstraction), Attrs: _t1905, ValueArity: abstraction_with_arity1089[1].(int64)} + result1092 := _t1906 + p.recordSpan(int(span_start1091), "MonoidDef") + return result1092 } func (p *Parser) parse_monoid() *pb.Monoid { - span_start1090 := int64(p.spanStart()) - var _t1891 int64 + span_start1098 := int64(p.spanStart()) + var _t1907 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1892 int64 + var _t1908 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1892 = 3 + _t1908 = 3 } else { - var _t1893 int64 + var _t1909 int64 if p.matchLookaheadLiteral("or", 1) { - _t1893 = 0 + _t1909 = 0 } else { - var _t1894 int64 + var _t1910 int64 if p.matchLookaheadLiteral("min", 1) { - _t1894 = 1 + _t1910 = 1 } else { - var _t1895 int64 + var _t1911 int64 if p.matchLookaheadLiteral("max", 1) { - _t1895 = 2 + _t1911 = 2 } else { - _t1895 = -1 + _t1911 = -1 } - _t1894 = _t1895 + _t1910 = _t1911 } - _t1893 = _t1894 + _t1909 = _t1910 } - _t1892 = _t1893 + _t1908 = _t1909 } - _t1891 = _t1892 + _t1907 = _t1908 } else { - _t1891 = -1 - } - prediction1085 := _t1891 - var _t1896 *pb.Monoid - if prediction1085 == 3 { - _t1897 := p.parse_sum_monoid() - sum_monoid1089 := _t1897 - _t1898 := &pb.Monoid{} - _t1898.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1089} - _t1896 = _t1898 + _t1907 = -1 + } + prediction1093 := _t1907 + var _t1912 *pb.Monoid + if prediction1093 == 3 { + _t1913 := p.parse_sum_monoid() + sum_monoid1097 := _t1913 + _t1914 := &pb.Monoid{} + _t1914.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1097} + _t1912 = _t1914 } else { - var _t1899 *pb.Monoid - if prediction1085 == 2 { - _t1900 := p.parse_max_monoid() - max_monoid1088 := _t1900 - _t1901 := &pb.Monoid{} - _t1901.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1088} - _t1899 = _t1901 + var _t1915 *pb.Monoid + if prediction1093 == 2 { + _t1916 := p.parse_max_monoid() + max_monoid1096 := _t1916 + _t1917 := &pb.Monoid{} + _t1917.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1096} + _t1915 = _t1917 } else { - var _t1902 *pb.Monoid - if prediction1085 == 1 { - _t1903 := p.parse_min_monoid() - min_monoid1087 := _t1903 - _t1904 := &pb.Monoid{} - _t1904.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1087} - _t1902 = _t1904 + var _t1918 *pb.Monoid + if prediction1093 == 1 { + _t1919 := p.parse_min_monoid() + min_monoid1095 := _t1919 + _t1920 := &pb.Monoid{} + _t1920.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1095} + _t1918 = _t1920 } else { - var _t1905 *pb.Monoid - if prediction1085 == 0 { - _t1906 := p.parse_or_monoid() - or_monoid1086 := _t1906 - _t1907 := &pb.Monoid{} - _t1907.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1086} - _t1905 = _t1907 + var _t1921 *pb.Monoid + if prediction1093 == 0 { + _t1922 := p.parse_or_monoid() + or_monoid1094 := _t1922 + _t1923 := &pb.Monoid{} + _t1923.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1094} + _t1921 = _t1923 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1902 = _t1905 + _t1918 = _t1921 } - _t1899 = _t1902 + _t1915 = _t1918 } - _t1896 = _t1899 + _t1912 = _t1915 } - result1091 := _t1896 - p.recordSpan(int(span_start1090), "Monoid") - return result1091 + result1099 := _t1912 + p.recordSpan(int(span_start1098), "Monoid") + return result1099 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { - span_start1092 := int64(p.spanStart()) + span_start1100 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1908 := &pb.OrMonoid{} - result1093 := _t1908 - p.recordSpan(int(span_start1092), "OrMonoid") - return result1093 + _t1924 := &pb.OrMonoid{} + result1101 := _t1924 + p.recordSpan(int(span_start1100), "OrMonoid") + return result1101 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { - span_start1095 := int64(p.spanStart()) + span_start1103 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("min") - _t1909 := p.parse_type() - type1094 := _t1909 + _t1925 := p.parse_type() + type1102 := _t1925 p.consumeLiteral(")") - _t1910 := &pb.MinMonoid{Type: type1094} - result1096 := _t1910 - p.recordSpan(int(span_start1095), "MinMonoid") - return result1096 + _t1926 := &pb.MinMonoid{Type: type1102} + result1104 := _t1926 + p.recordSpan(int(span_start1103), "MinMonoid") + return result1104 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { - span_start1098 := int64(p.spanStart()) + span_start1106 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("max") - _t1911 := p.parse_type() - type1097 := _t1911 + _t1927 := p.parse_type() + type1105 := _t1927 p.consumeLiteral(")") - _t1912 := &pb.MaxMonoid{Type: type1097} - result1099 := _t1912 - p.recordSpan(int(span_start1098), "MaxMonoid") - return result1099 + _t1928 := &pb.MaxMonoid{Type: type1105} + result1107 := _t1928 + p.recordSpan(int(span_start1106), "MaxMonoid") + return result1107 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { - span_start1101 := int64(p.spanStart()) + span_start1109 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sum") - _t1913 := p.parse_type() - type1100 := _t1913 + _t1929 := p.parse_type() + type1108 := _t1929 p.consumeLiteral(")") - _t1914 := &pb.SumMonoid{Type: type1100} - result1102 := _t1914 - p.recordSpan(int(span_start1101), "SumMonoid") - return result1102 + _t1930 := &pb.SumMonoid{Type: type1108} + result1110 := _t1930 + p.recordSpan(int(span_start1109), "SumMonoid") + return result1110 } func (p *Parser) parse_monus_def() *pb.MonusDef { - span_start1107 := int64(p.spanStart()) + span_start1115 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monus") - _t1915 := p.parse_monoid() - monoid1103 := _t1915 - _t1916 := p.parse_relation_id() - relation_id1104 := _t1916 - _t1917 := p.parse_abstraction_with_arity() - abstraction_with_arity1105 := _t1917 - var _t1918 []*pb.Attribute + _t1931 := p.parse_monoid() + monoid1111 := _t1931 + _t1932 := p.parse_relation_id() + relation_id1112 := _t1932 + _t1933 := p.parse_abstraction_with_arity() + abstraction_with_arity1113 := _t1933 + var _t1934 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1919 := p.parse_attrs() - _t1918 = _t1919 + _t1935 := p.parse_attrs() + _t1934 = _t1935 } - attrs1106 := _t1918 + attrs1114 := _t1934 p.consumeLiteral(")") - _t1920 := attrs1106 - if attrs1106 == nil { - _t1920 = []*pb.Attribute{} + _t1936 := attrs1114 + if attrs1114 == nil { + _t1936 = []*pb.Attribute{} } - _t1921 := &pb.MonusDef{Monoid: monoid1103, Name: relation_id1104, Body: abstraction_with_arity1105[0].(*pb.Abstraction), Attrs: _t1920, ValueArity: abstraction_with_arity1105[1].(int64)} - result1108 := _t1921 - p.recordSpan(int(span_start1107), "MonusDef") - return result1108 + _t1937 := &pb.MonusDef{Monoid: monoid1111, Name: relation_id1112, Body: abstraction_with_arity1113[0].(*pb.Abstraction), Attrs: _t1936, ValueArity: abstraction_with_arity1113[1].(int64)} + result1116 := _t1937 + p.recordSpan(int(span_start1115), "MonusDef") + return result1116 } func (p *Parser) parse_constraint() *pb.Constraint { - span_start1113 := int64(p.spanStart()) + span_start1121 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("functional_dependency") - _t1922 := p.parse_relation_id() - relation_id1109 := _t1922 - _t1923 := p.parse_abstraction() - abstraction1110 := _t1923 - _t1924 := p.parse_functional_dependency_keys() - functional_dependency_keys1111 := _t1924 - _t1925 := p.parse_functional_dependency_values() - functional_dependency_values1112 := _t1925 + _t1938 := p.parse_relation_id() + relation_id1117 := _t1938 + _t1939 := p.parse_abstraction() + abstraction1118 := _t1939 + _t1940 := p.parse_functional_dependency_keys() + functional_dependency_keys1119 := _t1940 + _t1941 := p.parse_functional_dependency_values() + functional_dependency_values1120 := _t1941 p.consumeLiteral(")") - _t1926 := &pb.FunctionalDependency{Guard: abstraction1110, Keys: functional_dependency_keys1111, Values: functional_dependency_values1112} - _t1927 := &pb.Constraint{Name: relation_id1109} - _t1927.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1926} - result1114 := _t1927 - p.recordSpan(int(span_start1113), "Constraint") - return result1114 + _t1942 := &pb.FunctionalDependency{Guard: abstraction1118, Keys: functional_dependency_keys1119, Values: functional_dependency_values1120} + _t1943 := &pb.Constraint{Name: relation_id1117} + _t1943.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1942} + result1122 := _t1943 + p.recordSpan(int(span_start1121), "Constraint") + return result1122 } func (p *Parser) parse_functional_dependency_keys() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("keys") - xs1115 := []*pb.Var{} - cond1116 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond1116 { - _t1928 := p.parse_var() - item1117 := _t1928 - xs1115 = append(xs1115, item1117) - cond1116 = p.matchLookaheadTerminal("SYMBOL", 0) - } - vars1118 := xs1115 + xs1123 := []*pb.Var{} + cond1124 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1124 { + _t1944 := p.parse_var() + item1125 := _t1944 + xs1123 = append(xs1123, item1125) + cond1124 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1126 := xs1123 p.consumeLiteral(")") - return vars1118 + return vars1126 } func (p *Parser) parse_functional_dependency_values() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("values") - xs1119 := []*pb.Var{} - cond1120 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond1120 { - _t1929 := p.parse_var() - item1121 := _t1929 - xs1119 = append(xs1119, item1121) - cond1120 = p.matchLookaheadTerminal("SYMBOL", 0) - } - vars1122 := xs1119 + xs1127 := []*pb.Var{} + cond1128 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1128 { + _t1945 := p.parse_var() + item1129 := _t1945 + xs1127 = append(xs1127, item1129) + cond1128 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1130 := xs1127 p.consumeLiteral(")") - return vars1122 + return vars1130 } func (p *Parser) parse_data() *pb.Data { - span_start1128 := int64(p.spanStart()) - var _t1930 int64 + span_start1136 := int64(p.spanStart()) + var _t1946 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1931 int64 + var _t1947 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t1931 = 3 + _t1947 = 3 } else { - var _t1932 int64 + var _t1948 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1932 = 0 + _t1948 = 0 } else { - var _t1933 int64 + var _t1949 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1933 = 2 + _t1949 = 2 } else { - var _t1934 int64 + var _t1950 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1934 = 1 + _t1950 = 1 } else { - _t1934 = -1 + _t1950 = -1 } - _t1933 = _t1934 + _t1949 = _t1950 } - _t1932 = _t1933 + _t1948 = _t1949 } - _t1931 = _t1932 + _t1947 = _t1948 } - _t1930 = _t1931 + _t1946 = _t1947 } else { - _t1930 = -1 - } - prediction1123 := _t1930 - var _t1935 *pb.Data - if prediction1123 == 3 { - _t1936 := p.parse_iceberg_data() - iceberg_data1127 := _t1936 - _t1937 := &pb.Data{} - _t1937.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1127} - _t1935 = _t1937 + _t1946 = -1 + } + prediction1131 := _t1946 + var _t1951 *pb.Data + if prediction1131 == 3 { + _t1952 := p.parse_iceberg_data() + iceberg_data1135 := _t1952 + _t1953 := &pb.Data{} + _t1953.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1135} + _t1951 = _t1953 } else { - var _t1938 *pb.Data - if prediction1123 == 2 { - _t1939 := p.parse_csv_data() - csv_data1126 := _t1939 - _t1940 := &pb.Data{} - _t1940.DataType = &pb.Data_CsvData{CsvData: csv_data1126} - _t1938 = _t1940 + var _t1954 *pb.Data + if prediction1131 == 2 { + _t1955 := p.parse_csv_data() + csv_data1134 := _t1955 + _t1956 := &pb.Data{} + _t1956.DataType = &pb.Data_CsvData{CsvData: csv_data1134} + _t1954 = _t1956 } else { - var _t1941 *pb.Data - if prediction1123 == 1 { - _t1942 := p.parse_betree_relation() - betree_relation1125 := _t1942 - _t1943 := &pb.Data{} - _t1943.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1125} - _t1941 = _t1943 + var _t1957 *pb.Data + if prediction1131 == 1 { + _t1958 := p.parse_betree_relation() + betree_relation1133 := _t1958 + _t1959 := &pb.Data{} + _t1959.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1133} + _t1957 = _t1959 } else { - var _t1944 *pb.Data - if prediction1123 == 0 { - _t1945 := p.parse_edb() - edb1124 := _t1945 - _t1946 := &pb.Data{} - _t1946.DataType = &pb.Data_Edb{Edb: edb1124} - _t1944 = _t1946 + var _t1960 *pb.Data + if prediction1131 == 0 { + _t1961 := p.parse_edb() + edb1132 := _t1961 + _t1962 := &pb.Data{} + _t1962.DataType = &pb.Data_Edb{Edb: edb1132} + _t1960 = _t1962 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1941 = _t1944 + _t1957 = _t1960 } - _t1938 = _t1941 + _t1954 = _t1957 } - _t1935 = _t1938 + _t1951 = _t1954 } - result1129 := _t1935 - p.recordSpan(int(span_start1128), "Data") - return result1129 + result1137 := _t1951 + p.recordSpan(int(span_start1136), "Data") + return result1137 } func (p *Parser) parse_edb() *pb.EDB { - span_start1133 := int64(p.spanStart()) + span_start1141 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("edb") - _t1947 := p.parse_relation_id() - relation_id1130 := _t1947 - _t1948 := p.parse_edb_path() - edb_path1131 := _t1948 - _t1949 := p.parse_edb_types() - edb_types1132 := _t1949 + _t1963 := p.parse_relation_id() + relation_id1138 := _t1963 + _t1964 := p.parse_edb_path() + edb_path1139 := _t1964 + _t1965 := p.parse_edb_types() + edb_types1140 := _t1965 p.consumeLiteral(")") - _t1950 := &pb.EDB{TargetId: relation_id1130, Path: edb_path1131, Types: edb_types1132} - result1134 := _t1950 - p.recordSpan(int(span_start1133), "EDB") - return result1134 + _t1966 := &pb.EDB{TargetId: relation_id1138, Path: edb_path1139, Types: edb_types1140} + result1142 := _t1966 + p.recordSpan(int(span_start1141), "EDB") + return result1142 } func (p *Parser) parse_edb_path() []string { p.consumeLiteral("[") - xs1135 := []string{} - cond1136 := p.matchLookaheadTerminal("STRING", 0) - for cond1136 { - item1137 := p.consumeTerminal("STRING").Value.str - xs1135 = append(xs1135, item1137) - cond1136 = p.matchLookaheadTerminal("STRING", 0) - } - strings1138 := xs1135 + xs1143 := []string{} + cond1144 := p.matchLookaheadTerminal("STRING", 0) + for cond1144 { + item1145 := p.consumeTerminal("STRING").Value.str + xs1143 = append(xs1143, item1145) + cond1144 = p.matchLookaheadTerminal("STRING", 0) + } + strings1146 := xs1143 p.consumeLiteral("]") - return strings1138 + return strings1146 } func (p *Parser) parse_edb_types() []*pb.Type { p.consumeLiteral("[") - xs1139 := []*pb.Type{} - cond1140 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1140 { - _t1951 := p.parse_type() - item1141 := _t1951 - xs1139 = append(xs1139, item1141) - cond1140 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1142 := xs1139 + xs1147 := []*pb.Type{} + cond1148 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1148 { + _t1967 := p.parse_type() + item1149 := _t1967 + xs1147 = append(xs1147, item1149) + cond1148 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1150 := xs1147 p.consumeLiteral("]") - return types1142 + return types1150 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { - span_start1145 := int64(p.spanStart()) + span_start1153 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_relation") - _t1952 := p.parse_relation_id() - relation_id1143 := _t1952 - _t1953 := p.parse_betree_info() - betree_info1144 := _t1953 + _t1968 := p.parse_relation_id() + relation_id1151 := _t1968 + _t1969 := p.parse_betree_info() + betree_info1152 := _t1969 p.consumeLiteral(")") - _t1954 := &pb.BeTreeRelation{Name: relation_id1143, RelationInfo: betree_info1144} - result1146 := _t1954 - p.recordSpan(int(span_start1145), "BeTreeRelation") - return result1146 + _t1970 := &pb.BeTreeRelation{Name: relation_id1151, RelationInfo: betree_info1152} + result1154 := _t1970 + p.recordSpan(int(span_start1153), "BeTreeRelation") + return result1154 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { - span_start1150 := int64(p.spanStart()) + span_start1158 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_info") - _t1955 := p.parse_betree_info_key_types() - betree_info_key_types1147 := _t1955 - _t1956 := p.parse_betree_info_value_types() - betree_info_value_types1148 := _t1956 - _t1957 := p.parse_config_dict() - config_dict1149 := _t1957 + _t1971 := p.parse_betree_info_key_types() + betree_info_key_types1155 := _t1971 + _t1972 := p.parse_betree_info_value_types() + betree_info_value_types1156 := _t1972 + _t1973 := p.parse_config_dict() + config_dict1157 := _t1973 p.consumeLiteral(")") - _t1958 := p.construct_betree_info(betree_info_key_types1147, betree_info_value_types1148, config_dict1149) - result1151 := _t1958 - p.recordSpan(int(span_start1150), "BeTreeInfo") - return result1151 + _t1974 := p.construct_betree_info(betree_info_key_types1155, betree_info_value_types1156, config_dict1157) + result1159 := _t1974 + p.recordSpan(int(span_start1158), "BeTreeInfo") + return result1159 } func (p *Parser) parse_betree_info_key_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("key_types") - xs1152 := []*pb.Type{} - cond1153 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1153 { - _t1959 := p.parse_type() - item1154 := _t1959 - xs1152 = append(xs1152, item1154) - cond1153 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1155 := xs1152 + xs1160 := []*pb.Type{} + cond1161 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1161 { + _t1975 := p.parse_type() + item1162 := _t1975 + xs1160 = append(xs1160, item1162) + cond1161 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1163 := xs1160 p.consumeLiteral(")") - return types1155 + return types1163 } func (p *Parser) parse_betree_info_value_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("value_types") - xs1156 := []*pb.Type{} - cond1157 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1157 { - _t1960 := p.parse_type() - item1158 := _t1960 - xs1156 = append(xs1156, item1158) - cond1157 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1159 := xs1156 + xs1164 := []*pb.Type{} + cond1165 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1165 { + _t1976 := p.parse_type() + item1166 := _t1976 + xs1164 = append(xs1164, item1166) + cond1165 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1167 := xs1164 p.consumeLiteral(")") - return types1159 + return types1167 } func (p *Parser) parse_csv_data() *pb.CSVData { - span_start1164 := int64(p.spanStart()) + span_start1172 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_data") - _t1961 := p.parse_csvlocator() - csvlocator1160 := _t1961 - _t1962 := p.parse_csv_config() - csv_config1161 := _t1962 - _t1963 := p.parse_gnf_columns() - gnf_columns1162 := _t1963 - _t1964 := p.parse_csv_asof() - csv_asof1163 := _t1964 + _t1977 := p.parse_csvlocator() + csvlocator1168 := _t1977 + _t1978 := p.parse_csv_config() + csv_config1169 := _t1978 + _t1979 := p.parse_gnf_columns() + gnf_columns1170 := _t1979 + _t1980 := p.parse_csv_asof() + csv_asof1171 := _t1980 p.consumeLiteral(")") - _t1965 := &pb.CSVData{Locator: csvlocator1160, Config: csv_config1161, Columns: gnf_columns1162, Asof: csv_asof1163} - result1165 := _t1965 - p.recordSpan(int(span_start1164), "CSVData") - return result1165 + _t1981 := &pb.CSVData{Locator: csvlocator1168, Config: csv_config1169, Columns: gnf_columns1170, Asof: csv_asof1171} + result1173 := _t1981 + p.recordSpan(int(span_start1172), "CSVData") + return result1173 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { - span_start1168 := int64(p.spanStart()) + span_start1176 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t1966 []string + var _t1982 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t1967 := p.parse_csv_locator_paths() - _t1966 = _t1967 + _t1983 := p.parse_csv_locator_paths() + _t1982 = _t1983 } - csv_locator_paths1166 := _t1966 - var _t1968 *string + csv_locator_paths1174 := _t1982 + var _t1984 *string if p.matchLookaheadLiteral("(", 0) { - _t1969 := p.parse_csv_locator_inline_data() - _t1968 = ptr(_t1969) + _t1985 := p.parse_csv_locator_inline_data() + _t1984 = ptr(_t1985) } - csv_locator_inline_data1167 := _t1968 + csv_locator_inline_data1175 := _t1984 p.consumeLiteral(")") - _t1970 := csv_locator_paths1166 - if csv_locator_paths1166 == nil { - _t1970 = []string{} + _t1986 := csv_locator_paths1174 + if csv_locator_paths1174 == nil { + _t1986 = []string{} } - _t1971 := &pb.CSVLocator{Paths: _t1970, InlineData: []byte(deref(csv_locator_inline_data1167, ""))} - result1169 := _t1971 - p.recordSpan(int(span_start1168), "CSVLocator") - return result1169 + _t1987 := &pb.CSVLocator{Paths: _t1986, InlineData: []byte(deref(csv_locator_inline_data1175, ""))} + result1177 := _t1987 + p.recordSpan(int(span_start1176), "CSVLocator") + return result1177 } func (p *Parser) parse_csv_locator_paths() []string { p.consumeLiteral("(") p.consumeLiteral("paths") - xs1170 := []string{} - cond1171 := p.matchLookaheadTerminal("STRING", 0) - for cond1171 { - item1172 := p.consumeTerminal("STRING").Value.str - xs1170 = append(xs1170, item1172) - cond1171 = p.matchLookaheadTerminal("STRING", 0) - } - strings1173 := xs1170 + xs1178 := []string{} + cond1179 := p.matchLookaheadTerminal("STRING", 0) + for cond1179 { + item1180 := p.consumeTerminal("STRING").Value.str + xs1178 = append(xs1178, item1180) + cond1179 = p.matchLookaheadTerminal("STRING", 0) + } + strings1181 := xs1178 p.consumeLiteral(")") - return strings1173 + return strings1181 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - string1174 := p.consumeTerminal("STRING").Value.str + string1182 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1174 + return string1182 } func (p *Parser) parse_csv_config() *pb.CSVConfig { - span_start1176 := int64(p.spanStart()) + span_start1184 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t1972 := p.parse_config_dict() - config_dict1175 := _t1972 + _t1988 := p.parse_config_dict() + config_dict1183 := _t1988 p.consumeLiteral(")") - _t1973 := p.construct_csv_config(config_dict1175) - result1177 := _t1973 - p.recordSpan(int(span_start1176), "CSVConfig") - return result1177 + _t1989 := p.construct_csv_config(config_dict1183) + result1185 := _t1989 + p.recordSpan(int(span_start1184), "CSVConfig") + return result1185 } func (p *Parser) parse_gnf_columns() []*pb.GNFColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1178 := []*pb.GNFColumn{} - cond1179 := p.matchLookaheadLiteral("(", 0) - for cond1179 { - _t1974 := p.parse_gnf_column() - item1180 := _t1974 - xs1178 = append(xs1178, item1180) - cond1179 = p.matchLookaheadLiteral("(", 0) - } - gnf_columns1181 := xs1178 + xs1186 := []*pb.GNFColumn{} + cond1187 := p.matchLookaheadLiteral("(", 0) + for cond1187 { + _t1990 := p.parse_gnf_column() + item1188 := _t1990 + xs1186 = append(xs1186, item1188) + cond1187 = p.matchLookaheadLiteral("(", 0) + } + gnf_columns1189 := xs1186 p.consumeLiteral(")") - return gnf_columns1181 + return gnf_columns1189 } func (p *Parser) parse_gnf_column() *pb.GNFColumn { - span_start1188 := int64(p.spanStart()) + span_start1196 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - _t1975 := p.parse_gnf_column_path() - gnf_column_path1182 := _t1975 - var _t1976 *pb.RelationId + _t1991 := p.parse_gnf_column_path() + gnf_column_path1190 := _t1991 + var _t1992 *pb.RelationId if (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) { - _t1977 := p.parse_relation_id() - _t1976 = _t1977 + _t1993 := p.parse_relation_id() + _t1992 = _t1993 } - relation_id1183 := _t1976 + relation_id1191 := _t1992 p.consumeLiteral("[") - xs1184 := []*pb.Type{} - cond1185 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1185 { - _t1978 := p.parse_type() - item1186 := _t1978 - xs1184 = append(xs1184, item1186) - cond1185 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1187 := xs1184 + xs1192 := []*pb.Type{} + cond1193 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1193 { + _t1994 := p.parse_type() + item1194 := _t1994 + xs1192 = append(xs1192, item1194) + cond1193 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1195 := xs1192 p.consumeLiteral("]") p.consumeLiteral(")") - _t1979 := &pb.GNFColumn{ColumnPath: gnf_column_path1182, TargetId: relation_id1183, Types: types1187} - result1189 := _t1979 - p.recordSpan(int(span_start1188), "GNFColumn") - return result1189 + _t1995 := &pb.GNFColumn{ColumnPath: gnf_column_path1190, TargetId: relation_id1191, Types: types1195} + result1197 := _t1995 + p.recordSpan(int(span_start1196), "GNFColumn") + return result1197 } func (p *Parser) parse_gnf_column_path() []string { - var _t1980 int64 + var _t1996 int64 if p.matchLookaheadLiteral("[", 0) { - _t1980 = 1 + _t1996 = 1 } else { - var _t1981 int64 + var _t1997 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1981 = 0 + _t1997 = 0 } else { - _t1981 = -1 + _t1997 = -1 } - _t1980 = _t1981 + _t1996 = _t1997 } - prediction1190 := _t1980 - var _t1982 []string - if prediction1190 == 1 { + prediction1198 := _t1996 + var _t1998 []string + if prediction1198 == 1 { p.consumeLiteral("[") - xs1192 := []string{} - cond1193 := p.matchLookaheadTerminal("STRING", 0) - for cond1193 { - item1194 := p.consumeTerminal("STRING").Value.str - xs1192 = append(xs1192, item1194) - cond1193 = p.matchLookaheadTerminal("STRING", 0) + xs1200 := []string{} + cond1201 := p.matchLookaheadTerminal("STRING", 0) + for cond1201 { + item1202 := p.consumeTerminal("STRING").Value.str + xs1200 = append(xs1200, item1202) + cond1201 = p.matchLookaheadTerminal("STRING", 0) } - strings1195 := xs1192 + strings1203 := xs1200 p.consumeLiteral("]") - _t1982 = strings1195 + _t1998 = strings1203 } else { - var _t1983 []string - if prediction1190 == 0 { - string1191 := p.consumeTerminal("STRING").Value.str - _ = string1191 - _t1983 = []string{string1191} + var _t1999 []string + if prediction1198 == 0 { + string1199 := p.consumeTerminal("STRING").Value.str + _ = string1199 + _t1999 = []string{string1199} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in gnf_column_path", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1982 = _t1983 + _t1998 = _t1999 } - return _t1982 + return _t1998 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string1196 := p.consumeTerminal("STRING").Value.str + string1204 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1196 + return string1204 } func (p *Parser) parse_iceberg_data() *pb.IcebergData { - span_start1203 := int64(p.spanStart()) + span_start1212 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_data") - _t1984 := p.parse_iceberg_locator() - iceberg_locator1197 := _t1984 - _t1985 := p.parse_iceberg_catalog_config() - iceberg_catalog_config1198 := _t1985 - _t1986 := p.parse_gnf_columns() - gnf_columns1199 := _t1986 - var _t1987 *string + _t2000 := p.parse_iceberg_locator() + iceberg_locator1205 := _t2000 + _t2001 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1206 := _t2001 + var _t2002 []*pb.GNFColumn + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("columns", 1)) { + _t2003 := p.parse_gnf_columns() + _t2002 = _t2003 + } + gnf_columns1207 := _t2002 + var _t2004 *pb.IcebergTarget + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("full_table", 1)) { + _t2005 := p.parse_full_table() + _t2004 = _t2005 + } + full_table1208 := _t2004 + var _t2006 *string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("from_snapshot", 1)) { - _t1988 := p.parse_iceberg_from_snapshot() - _t1987 = ptr(_t1988) + _t2007 := p.parse_iceberg_from_snapshot() + _t2006 = ptr(_t2007) } - iceberg_from_snapshot1200 := _t1987 - var _t1989 *string + iceberg_from_snapshot1209 := _t2006 + var _t2008 *string if p.matchLookaheadLiteral("(", 0) { - _t1990 := p.parse_iceberg_to_snapshot() - _t1989 = ptr(_t1990) + _t2009 := p.parse_iceberg_to_snapshot() + _t2008 = ptr(_t2009) } - iceberg_to_snapshot1201 := _t1989 - _t1991 := p.parse_boolean_value() - boolean_value1202 := _t1991 + iceberg_to_snapshot1210 := _t2008 + _t2010 := p.parse_boolean_value() + boolean_value1211 := _t2010 p.consumeLiteral(")") - _t1992 := p.construct_iceberg_data(iceberg_locator1197, iceberg_catalog_config1198, gnf_columns1199, iceberg_from_snapshot1200, iceberg_to_snapshot1201, boolean_value1202) - result1204 := _t1992 - p.recordSpan(int(span_start1203), "IcebergData") - return result1204 + _t2011 := p.construct_iceberg_data(iceberg_locator1205, iceberg_catalog_config1206, gnf_columns1207, full_table1208, iceberg_from_snapshot1209, iceberg_to_snapshot1210, boolean_value1211) + result1213 := _t2011 + p.recordSpan(int(span_start1212), "IcebergData") + return result1213 } func (p *Parser) parse_iceberg_locator() *pb.IcebergLocator { - span_start1208 := int64(p.spanStart()) + span_start1217 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_locator") - _t1993 := p.parse_iceberg_locator_table_name() - iceberg_locator_table_name1205 := _t1993 - _t1994 := p.parse_iceberg_locator_namespace() - iceberg_locator_namespace1206 := _t1994 - _t1995 := p.parse_iceberg_locator_warehouse() - iceberg_locator_warehouse1207 := _t1995 + _t2012 := p.parse_iceberg_locator_table_name() + iceberg_locator_table_name1214 := _t2012 + _t2013 := p.parse_iceberg_locator_namespace() + iceberg_locator_namespace1215 := _t2013 + _t2014 := p.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1216 := _t2014 p.consumeLiteral(")") - _t1996 := &pb.IcebergLocator{TableName: iceberg_locator_table_name1205, Namespace: iceberg_locator_namespace1206, Warehouse: iceberg_locator_warehouse1207} - result1209 := _t1996 - p.recordSpan(int(span_start1208), "IcebergLocator") - return result1209 + _t2015 := &pb.IcebergLocator{TableName: iceberg_locator_table_name1214, Namespace: iceberg_locator_namespace1215, Warehouse: iceberg_locator_warehouse1216} + result1218 := _t2015 + p.recordSpan(int(span_start1217), "IcebergLocator") + return result1218 } func (p *Parser) parse_iceberg_locator_table_name() string { p.consumeLiteral("(") p.consumeLiteral("table_name") - string1210 := p.consumeTerminal("STRING").Value.str + string1219 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1210 + return string1219 } func (p *Parser) parse_iceberg_locator_namespace() []string { p.consumeLiteral("(") p.consumeLiteral("namespace") - xs1211 := []string{} - cond1212 := p.matchLookaheadTerminal("STRING", 0) - for cond1212 { - item1213 := p.consumeTerminal("STRING").Value.str - xs1211 = append(xs1211, item1213) - cond1212 = p.matchLookaheadTerminal("STRING", 0) - } - strings1214 := xs1211 + xs1220 := []string{} + cond1221 := p.matchLookaheadTerminal("STRING", 0) + for cond1221 { + item1222 := p.consumeTerminal("STRING").Value.str + xs1220 = append(xs1220, item1222) + cond1221 = p.matchLookaheadTerminal("STRING", 0) + } + strings1223 := xs1220 p.consumeLiteral(")") - return strings1214 + return strings1223 } func (p *Parser) parse_iceberg_locator_warehouse() string { p.consumeLiteral("(") p.consumeLiteral("warehouse") - string1215 := p.consumeTerminal("STRING").Value.str + string1224 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1215 + return string1224 } func (p *Parser) parse_iceberg_catalog_config() *pb.IcebergCatalogConfig { - span_start1220 := int64(p.spanStart()) + span_start1229 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_catalog_config") - _t1997 := p.parse_iceberg_catalog_uri() - iceberg_catalog_uri1216 := _t1997 - var _t1998 *string + _t2016 := p.parse_iceberg_catalog_uri() + iceberg_catalog_uri1225 := _t2016 + var _t2017 *string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("scope", 1)) { - _t1999 := p.parse_iceberg_catalog_config_scope() - _t1998 = ptr(_t1999) - } - iceberg_catalog_config_scope1217 := _t1998 - _t2000 := p.parse_iceberg_properties() - iceberg_properties1218 := _t2000 - _t2001 := p.parse_iceberg_auth_properties() - iceberg_auth_properties1219 := _t2001 + _t2018 := p.parse_iceberg_catalog_config_scope() + _t2017 = ptr(_t2018) + } + iceberg_catalog_config_scope1226 := _t2017 + _t2019 := p.parse_iceberg_properties() + iceberg_properties1227 := _t2019 + _t2020 := p.parse_iceberg_auth_properties() + iceberg_auth_properties1228 := _t2020 p.consumeLiteral(")") - _t2002 := p.construct_iceberg_catalog_config(iceberg_catalog_uri1216, iceberg_catalog_config_scope1217, iceberg_properties1218, iceberg_auth_properties1219) - result1221 := _t2002 - p.recordSpan(int(span_start1220), "IcebergCatalogConfig") - return result1221 + _t2021 := p.construct_iceberg_catalog_config(iceberg_catalog_uri1225, iceberg_catalog_config_scope1226, iceberg_properties1227, iceberg_auth_properties1228) + result1230 := _t2021 + p.recordSpan(int(span_start1229), "IcebergCatalogConfig") + return result1230 } func (p *Parser) parse_iceberg_catalog_uri() string { p.consumeLiteral("(") p.consumeLiteral("catalog_uri") - string1222 := p.consumeTerminal("STRING").Value.str + string1231 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1222 + return string1231 } func (p *Parser) parse_iceberg_catalog_config_scope() string { p.consumeLiteral("(") p.consumeLiteral("scope") - string1223 := p.consumeTerminal("STRING").Value.str + string1232 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1223 + return string1232 } func (p *Parser) parse_iceberg_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("properties") - xs1224 := [][]interface{}{} - cond1225 := p.matchLookaheadLiteral("(", 0) - for cond1225 { - _t2003 := p.parse_iceberg_property_entry() - item1226 := _t2003 - xs1224 = append(xs1224, item1226) - cond1225 = p.matchLookaheadLiteral("(", 0) - } - iceberg_property_entrys1227 := xs1224 + xs1233 := [][]interface{}{} + cond1234 := p.matchLookaheadLiteral("(", 0) + for cond1234 { + _t2022 := p.parse_iceberg_property_entry() + item1235 := _t2022 + xs1233 = append(xs1233, item1235) + cond1234 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1236 := xs1233 p.consumeLiteral(")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1236 } func (p *Parser) parse_iceberg_property_entry() []interface{} { p.consumeLiteral("(") p.consumeLiteral("prop") - string1228 := p.consumeTerminal("STRING").Value.str - string_31229 := p.consumeTerminal("STRING").Value.str + string1237 := p.consumeTerminal("STRING").Value.str + string_31238 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1228, string_31229} + return []interface{}{string1237, string_31238} } func (p *Parser) parse_iceberg_auth_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("auth_properties") - xs1230 := [][]interface{}{} - cond1231 := p.matchLookaheadLiteral("(", 0) - for cond1231 { - _t2004 := p.parse_iceberg_masked_property_entry() - item1232 := _t2004 - xs1230 = append(xs1230, item1232) - cond1231 = p.matchLookaheadLiteral("(", 0) - } - iceberg_masked_property_entrys1233 := xs1230 + xs1239 := [][]interface{}{} + cond1240 := p.matchLookaheadLiteral("(", 0) + for cond1240 { + _t2023 := p.parse_iceberg_masked_property_entry() + item1241 := _t2023 + xs1239 = append(xs1239, item1241) + cond1240 = p.matchLookaheadLiteral("(", 0) + } + iceberg_masked_property_entrys1242 := xs1239 p.consumeLiteral(")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1242 } func (p *Parser) parse_iceberg_masked_property_entry() []interface{} { p.consumeLiteral("(") p.consumeLiteral("prop") - string1234 := p.consumeTerminal("STRING").Value.str - string_31235 := p.consumeTerminal("STRING").Value.str + string1243 := p.consumeTerminal("STRING").Value.str + string_31244 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1234, string_31235} + return []interface{}{string1243, string_31244} +} + +func (p *Parser) parse_full_table() *pb.IcebergTarget { + span_start1250 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("full_table") + _t2024 := p.parse_relation_id() + relation_id1245 := _t2024 + p.consumeLiteral("[") + xs1246 := []*pb.Type{} + cond1247 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1247 { + _t2025 := p.parse_type() + item1248 := _t2025 + xs1246 = append(xs1246, item1248) + cond1247 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1249 := xs1246 + p.consumeLiteral("]") + p.consumeLiteral(")") + _t2026 := &pb.IcebergTarget{TargetId: relation_id1245, Types: types1249} + result1251 := _t2026 + p.recordSpan(int(span_start1250), "IcebergTarget") + return result1251 } func (p *Parser) parse_iceberg_from_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("from_snapshot") - string1236 := p.consumeTerminal("STRING").Value.str + string1252 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1236 + return string1252 } func (p *Parser) parse_iceberg_to_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("to_snapshot") - string1237 := p.consumeTerminal("STRING").Value.str + string1253 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1237 + return string1253 } func (p *Parser) parse_undefine() *pb.Undefine { - span_start1239 := int64(p.spanStart()) + span_start1255 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("undefine") - _t2005 := p.parse_fragment_id() - fragment_id1238 := _t2005 + _t2027 := p.parse_fragment_id() + fragment_id1254 := _t2027 p.consumeLiteral(")") - _t2006 := &pb.Undefine{FragmentId: fragment_id1238} - result1240 := _t2006 - p.recordSpan(int(span_start1239), "Undefine") - return result1240 + _t2028 := &pb.Undefine{FragmentId: fragment_id1254} + result1256 := _t2028 + p.recordSpan(int(span_start1255), "Undefine") + return result1256 } func (p *Parser) parse_context() *pb.Context { - span_start1245 := int64(p.spanStart()) + span_start1261 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("context") - xs1241 := []*pb.RelationId{} - cond1242 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond1242 { - _t2007 := p.parse_relation_id() - item1243 := _t2007 - xs1241 = append(xs1241, item1243) - cond1242 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids1244 := xs1241 + xs1257 := []*pb.RelationId{} + cond1258 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1258 { + _t2029 := p.parse_relation_id() + item1259 := _t2029 + xs1257 = append(xs1257, item1259) + cond1258 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1260 := xs1257 p.consumeLiteral(")") - _t2008 := &pb.Context{Relations: relation_ids1244} - result1246 := _t2008 - p.recordSpan(int(span_start1245), "Context") - return result1246 + _t2030 := &pb.Context{Relations: relation_ids1260} + result1262 := _t2030 + p.recordSpan(int(span_start1261), "Context") + return result1262 } func (p *Parser) parse_snapshot() *pb.Snapshot { - span_start1252 := int64(p.spanStart()) + span_start1268 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("snapshot") - _t2009 := p.parse_edb_path() - edb_path1247 := _t2009 - xs1248 := []*pb.SnapshotMapping{} - cond1249 := p.matchLookaheadLiteral("[", 0) - for cond1249 { - _t2010 := p.parse_snapshot_mapping() - item1250 := _t2010 - xs1248 = append(xs1248, item1250) - cond1249 = p.matchLookaheadLiteral("[", 0) - } - snapshot_mappings1251 := xs1248 + _t2031 := p.parse_edb_path() + edb_path1263 := _t2031 + xs1264 := []*pb.SnapshotMapping{} + cond1265 := p.matchLookaheadLiteral("[", 0) + for cond1265 { + _t2032 := p.parse_snapshot_mapping() + item1266 := _t2032 + xs1264 = append(xs1264, item1266) + cond1265 = p.matchLookaheadLiteral("[", 0) + } + snapshot_mappings1267 := xs1264 p.consumeLiteral(")") - _t2011 := &pb.Snapshot{Prefix: edb_path1247, Mappings: snapshot_mappings1251} - result1253 := _t2011 - p.recordSpan(int(span_start1252), "Snapshot") - return result1253 + _t2033 := &pb.Snapshot{Prefix: edb_path1263, Mappings: snapshot_mappings1267} + result1269 := _t2033 + p.recordSpan(int(span_start1268), "Snapshot") + return result1269 } func (p *Parser) parse_snapshot_mapping() *pb.SnapshotMapping { - span_start1256 := int64(p.spanStart()) - _t2012 := p.parse_edb_path() - edb_path1254 := _t2012 - _t2013 := p.parse_relation_id() - relation_id1255 := _t2013 - _t2014 := &pb.SnapshotMapping{DestinationPath: edb_path1254, SourceRelation: relation_id1255} - result1257 := _t2014 - p.recordSpan(int(span_start1256), "SnapshotMapping") - return result1257 + span_start1272 := int64(p.spanStart()) + _t2034 := p.parse_edb_path() + edb_path1270 := _t2034 + _t2035 := p.parse_relation_id() + relation_id1271 := _t2035 + _t2036 := &pb.SnapshotMapping{DestinationPath: edb_path1270, SourceRelation: relation_id1271} + result1273 := _t2036 + p.recordSpan(int(span_start1272), "SnapshotMapping") + return result1273 } func (p *Parser) parse_epoch_reads() []*pb.Read { p.consumeLiteral("(") p.consumeLiteral("reads") - xs1258 := []*pb.Read{} - cond1259 := p.matchLookaheadLiteral("(", 0) - for cond1259 { - _t2015 := p.parse_read() - item1260 := _t2015 - xs1258 = append(xs1258, item1260) - cond1259 = p.matchLookaheadLiteral("(", 0) - } - reads1261 := xs1258 + xs1274 := []*pb.Read{} + cond1275 := p.matchLookaheadLiteral("(", 0) + for cond1275 { + _t2037 := p.parse_read() + item1276 := _t2037 + xs1274 = append(xs1274, item1276) + cond1275 = p.matchLookaheadLiteral("(", 0) + } + reads1277 := xs1274 p.consumeLiteral(")") - return reads1261 + return reads1277 } func (p *Parser) parse_read() *pb.Read { - span_start1268 := int64(p.spanStart()) - var _t2016 int64 + span_start1284 := int64(p.spanStart()) + var _t2038 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2017 int64 + var _t2039 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t2017 = 2 + _t2039 = 2 } else { - var _t2018 int64 + var _t2040 int64 if p.matchLookaheadLiteral("output", 1) { - _t2018 = 1 + _t2040 = 1 } else { - var _t2019 int64 + var _t2041 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2019 = 4 + _t2041 = 4 } else { - var _t2020 int64 + var _t2042 int64 if p.matchLookaheadLiteral("export", 1) { - _t2020 = 4 + _t2042 = 4 } else { - var _t2021 int64 + var _t2043 int64 if p.matchLookaheadLiteral("demand", 1) { - _t2021 = 0 + _t2043 = 0 } else { - var _t2022 int64 + var _t2044 int64 if p.matchLookaheadLiteral("abort", 1) { - _t2022 = 3 + _t2044 = 3 } else { - _t2022 = -1 + _t2044 = -1 } - _t2021 = _t2022 + _t2043 = _t2044 } - _t2020 = _t2021 + _t2042 = _t2043 } - _t2019 = _t2020 + _t2041 = _t2042 } - _t2018 = _t2019 + _t2040 = _t2041 } - _t2017 = _t2018 + _t2039 = _t2040 } - _t2016 = _t2017 + _t2038 = _t2039 } else { - _t2016 = -1 - } - prediction1262 := _t2016 - var _t2023 *pb.Read - if prediction1262 == 4 { - _t2024 := p.parse_export() - export1267 := _t2024 - _t2025 := &pb.Read{} - _t2025.ReadType = &pb.Read_Export{Export: export1267} - _t2023 = _t2025 + _t2038 = -1 + } + prediction1278 := _t2038 + var _t2045 *pb.Read + if prediction1278 == 4 { + _t2046 := p.parse_export() + export1283 := _t2046 + _t2047 := &pb.Read{} + _t2047.ReadType = &pb.Read_Export{Export: export1283} + _t2045 = _t2047 } else { - var _t2026 *pb.Read - if prediction1262 == 3 { - _t2027 := p.parse_abort() - abort1266 := _t2027 - _t2028 := &pb.Read{} - _t2028.ReadType = &pb.Read_Abort{Abort: abort1266} - _t2026 = _t2028 + var _t2048 *pb.Read + if prediction1278 == 3 { + _t2049 := p.parse_abort() + abort1282 := _t2049 + _t2050 := &pb.Read{} + _t2050.ReadType = &pb.Read_Abort{Abort: abort1282} + _t2048 = _t2050 } else { - var _t2029 *pb.Read - if prediction1262 == 2 { - _t2030 := p.parse_what_if() - what_if1265 := _t2030 - _t2031 := &pb.Read{} - _t2031.ReadType = &pb.Read_WhatIf{WhatIf: what_if1265} - _t2029 = _t2031 + var _t2051 *pb.Read + if prediction1278 == 2 { + _t2052 := p.parse_what_if() + what_if1281 := _t2052 + _t2053 := &pb.Read{} + _t2053.ReadType = &pb.Read_WhatIf{WhatIf: what_if1281} + _t2051 = _t2053 } else { - var _t2032 *pb.Read - if prediction1262 == 1 { - _t2033 := p.parse_output() - output1264 := _t2033 - _t2034 := &pb.Read{} - _t2034.ReadType = &pb.Read_Output{Output: output1264} - _t2032 = _t2034 + var _t2054 *pb.Read + if prediction1278 == 1 { + _t2055 := p.parse_output() + output1280 := _t2055 + _t2056 := &pb.Read{} + _t2056.ReadType = &pb.Read_Output{Output: output1280} + _t2054 = _t2056 } else { - var _t2035 *pb.Read - if prediction1262 == 0 { - _t2036 := p.parse_demand() - demand1263 := _t2036 - _t2037 := &pb.Read{} - _t2037.ReadType = &pb.Read_Demand{Demand: demand1263} - _t2035 = _t2037 + var _t2057 *pb.Read + if prediction1278 == 0 { + _t2058 := p.parse_demand() + demand1279 := _t2058 + _t2059 := &pb.Read{} + _t2059.ReadType = &pb.Read_Demand{Demand: demand1279} + _t2057 = _t2059 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2032 = _t2035 + _t2054 = _t2057 } - _t2029 = _t2032 + _t2051 = _t2054 } - _t2026 = _t2029 + _t2048 = _t2051 } - _t2023 = _t2026 + _t2045 = _t2048 } - result1269 := _t2023 - p.recordSpan(int(span_start1268), "Read") - return result1269 + result1285 := _t2045 + p.recordSpan(int(span_start1284), "Read") + return result1285 } func (p *Parser) parse_demand() *pb.Demand { - span_start1271 := int64(p.spanStart()) + span_start1287 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("demand") - _t2038 := p.parse_relation_id() - relation_id1270 := _t2038 + _t2060 := p.parse_relation_id() + relation_id1286 := _t2060 p.consumeLiteral(")") - _t2039 := &pb.Demand{RelationId: relation_id1270} - result1272 := _t2039 - p.recordSpan(int(span_start1271), "Demand") - return result1272 + _t2061 := &pb.Demand{RelationId: relation_id1286} + result1288 := _t2061 + p.recordSpan(int(span_start1287), "Demand") + return result1288 } func (p *Parser) parse_output() *pb.Output { - span_start1275 := int64(p.spanStart()) + span_start1291 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("output") - _t2040 := p.parse_name() - name1273 := _t2040 - _t2041 := p.parse_relation_id() - relation_id1274 := _t2041 + _t2062 := p.parse_name() + name1289 := _t2062 + _t2063 := p.parse_relation_id() + relation_id1290 := _t2063 p.consumeLiteral(")") - _t2042 := &pb.Output{Name: name1273, RelationId: relation_id1274} - result1276 := _t2042 - p.recordSpan(int(span_start1275), "Output") - return result1276 + _t2064 := &pb.Output{Name: name1289, RelationId: relation_id1290} + result1292 := _t2064 + p.recordSpan(int(span_start1291), "Output") + return result1292 } func (p *Parser) parse_what_if() *pb.WhatIf { - span_start1279 := int64(p.spanStart()) + span_start1295 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("what_if") - _t2043 := p.parse_name() - name1277 := _t2043 - _t2044 := p.parse_epoch() - epoch1278 := _t2044 + _t2065 := p.parse_name() + name1293 := _t2065 + _t2066 := p.parse_epoch() + epoch1294 := _t2066 p.consumeLiteral(")") - _t2045 := &pb.WhatIf{Branch: name1277, Epoch: epoch1278} - result1280 := _t2045 - p.recordSpan(int(span_start1279), "WhatIf") - return result1280 + _t2067 := &pb.WhatIf{Branch: name1293, Epoch: epoch1294} + result1296 := _t2067 + p.recordSpan(int(span_start1295), "WhatIf") + return result1296 } func (p *Parser) parse_abort() *pb.Abort { - span_start1283 := int64(p.spanStart()) + span_start1299 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("abort") - var _t2046 *string + var _t2068 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t2047 := p.parse_name() - _t2046 = ptr(_t2047) + _t2069 := p.parse_name() + _t2068 = ptr(_t2069) } - name1281 := _t2046 - _t2048 := p.parse_relation_id() - relation_id1282 := _t2048 + name1297 := _t2068 + _t2070 := p.parse_relation_id() + relation_id1298 := _t2070 p.consumeLiteral(")") - _t2049 := &pb.Abort{Name: deref(name1281, "abort"), RelationId: relation_id1282} - result1284 := _t2049 - p.recordSpan(int(span_start1283), "Abort") - return result1284 + _t2071 := &pb.Abort{Name: deref(name1297, "abort"), RelationId: relation_id1298} + result1300 := _t2071 + p.recordSpan(int(span_start1299), "Abort") + return result1300 } func (p *Parser) parse_export() *pb.Export { - span_start1288 := int64(p.spanStart()) - var _t2050 int64 + span_start1304 := int64(p.spanStart()) + var _t2072 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2051 int64 + var _t2073 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2051 = 1 + _t2073 = 1 } else { - var _t2052 int64 + var _t2074 int64 if p.matchLookaheadLiteral("export", 1) { - _t2052 = 0 + _t2074 = 0 } else { - _t2052 = -1 + _t2074 = -1 } - _t2051 = _t2052 + _t2073 = _t2074 } - _t2050 = _t2051 + _t2072 = _t2073 } else { - _t2050 = -1 + _t2072 = -1 } - prediction1285 := _t2050 - var _t2053 *pb.Export - if prediction1285 == 1 { + prediction1301 := _t2072 + var _t2075 *pb.Export + if prediction1301 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_iceberg") - _t2054 := p.parse_export_iceberg_config() - export_iceberg_config1287 := _t2054 + _t2076 := p.parse_export_iceberg_config() + export_iceberg_config1303 := _t2076 p.consumeLiteral(")") - _t2055 := &pb.Export{} - _t2055.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1287} - _t2053 = _t2055 + _t2077 := &pb.Export{} + _t2077.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1303} + _t2075 = _t2077 } else { - var _t2056 *pb.Export - if prediction1285 == 0 { + var _t2078 *pb.Export + if prediction1301 == 0 { p.consumeLiteral("(") p.consumeLiteral("export") - _t2057 := p.parse_export_csv_config() - export_csv_config1286 := _t2057 + _t2079 := p.parse_export_csv_config() + export_csv_config1302 := _t2079 p.consumeLiteral(")") - _t2058 := &pb.Export{} - _t2058.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1286} - _t2056 = _t2058 + _t2080 := &pb.Export{} + _t2080.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1302} + _t2078 = _t2080 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2053 = _t2056 + _t2075 = _t2078 } - result1289 := _t2053 - p.recordSpan(int(span_start1288), "Export") - return result1289 + result1305 := _t2075 + p.recordSpan(int(span_start1304), "Export") + return result1305 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - span_start1297 := int64(p.spanStart()) - var _t2059 int64 + span_start1313 := int64(p.spanStart()) + var _t2081 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2060 int64 + var _t2082 int64 if p.matchLookaheadLiteral("export_csv_config_v2", 1) { - _t2060 = 0 + _t2082 = 0 } else { - var _t2061 int64 + var _t2083 int64 if p.matchLookaheadLiteral("export_csv_config", 1) { - _t2061 = 1 + _t2083 = 1 } else { - _t2061 = -1 + _t2083 = -1 } - _t2060 = _t2061 + _t2082 = _t2083 } - _t2059 = _t2060 + _t2081 = _t2082 } else { - _t2059 = -1 + _t2081 = -1 } - prediction1290 := _t2059 - var _t2062 *pb.ExportCSVConfig - if prediction1290 == 1 { + prediction1306 := _t2081 + var _t2084 *pb.ExportCSVConfig + if prediction1306 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config") - _t2063 := p.parse_export_csv_path() - export_csv_path1294 := _t2063 - _t2064 := p.parse_export_csv_columns_list() - export_csv_columns_list1295 := _t2064 - _t2065 := p.parse_config_dict() - config_dict1296 := _t2065 + _t2085 := p.parse_export_csv_path() + export_csv_path1310 := _t2085 + _t2086 := p.parse_export_csv_columns_list() + export_csv_columns_list1311 := _t2086 + _t2087 := p.parse_config_dict() + config_dict1312 := _t2087 p.consumeLiteral(")") - _t2066 := p.construct_export_csv_config(export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2062 = _t2066 + _t2088 := p.construct_export_csv_config(export_csv_path1310, export_csv_columns_list1311, config_dict1312) + _t2084 = _t2088 } else { - var _t2067 *pb.ExportCSVConfig - if prediction1290 == 0 { + var _t2089 *pb.ExportCSVConfig + if prediction1306 == 0 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config_v2") - _t2068 := p.parse_export_csv_path() - export_csv_path1291 := _t2068 - _t2069 := p.parse_export_csv_source() - export_csv_source1292 := _t2069 - _t2070 := p.parse_csv_config() - csv_config1293 := _t2070 + _t2090 := p.parse_export_csv_path() + export_csv_path1307 := _t2090 + _t2091 := p.parse_export_csv_source() + export_csv_source1308 := _t2091 + _t2092 := p.parse_csv_config() + csv_config1309 := _t2092 p.consumeLiteral(")") - _t2071 := p.construct_export_csv_config_with_source(export_csv_path1291, export_csv_source1292, csv_config1293) - _t2067 = _t2071 + _t2093 := p.construct_export_csv_config_with_source(export_csv_path1307, export_csv_source1308, csv_config1309) + _t2089 = _t2093 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_config", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2062 = _t2067 + _t2084 = _t2089 } - result1298 := _t2062 - p.recordSpan(int(span_start1297), "ExportCSVConfig") - return result1298 + result1314 := _t2084 + p.recordSpan(int(span_start1313), "ExportCSVConfig") + return result1314 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string1299 := p.consumeTerminal("STRING").Value.str + string1315 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1299 + return string1315 } func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { - span_start1306 := int64(p.spanStart()) - var _t2072 int64 + span_start1322 := int64(p.spanStart()) + var _t2094 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2073 int64 + var _t2095 int64 if p.matchLookaheadLiteral("table_def", 1) { - _t2073 = 1 + _t2095 = 1 } else { - var _t2074 int64 + var _t2096 int64 if p.matchLookaheadLiteral("gnf_columns", 1) { - _t2074 = 0 + _t2096 = 0 } else { - _t2074 = -1 + _t2096 = -1 } - _t2073 = _t2074 + _t2095 = _t2096 } - _t2072 = _t2073 + _t2094 = _t2095 } else { - _t2072 = -1 + _t2094 = -1 } - prediction1300 := _t2072 - var _t2075 *pb.ExportCSVSource - if prediction1300 == 1 { + prediction1316 := _t2094 + var _t2097 *pb.ExportCSVSource + if prediction1316 == 1 { p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2076 := p.parse_relation_id() - relation_id1305 := _t2076 + _t2098 := p.parse_relation_id() + relation_id1321 := _t2098 p.consumeLiteral(")") - _t2077 := &pb.ExportCSVSource{} - _t2077.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1305} - _t2075 = _t2077 + _t2099 := &pb.ExportCSVSource{} + _t2099.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1321} + _t2097 = _t2099 } else { - var _t2078 *pb.ExportCSVSource - if prediction1300 == 0 { + var _t2100 *pb.ExportCSVSource + if prediction1316 == 0 { p.consumeLiteral("(") p.consumeLiteral("gnf_columns") - xs1301 := []*pb.ExportCSVColumn{} - cond1302 := p.matchLookaheadLiteral("(", 0) - for cond1302 { - _t2079 := p.parse_export_csv_column() - item1303 := _t2079 - xs1301 = append(xs1301, item1303) - cond1302 = p.matchLookaheadLiteral("(", 0) + xs1317 := []*pb.ExportCSVColumn{} + cond1318 := p.matchLookaheadLiteral("(", 0) + for cond1318 { + _t2101 := p.parse_export_csv_column() + item1319 := _t2101 + xs1317 = append(xs1317, item1319) + cond1318 = p.matchLookaheadLiteral("(", 0) } - export_csv_columns1304 := xs1301 + export_csv_columns1320 := xs1317 p.consumeLiteral(")") - _t2080 := &pb.ExportCSVColumns{Columns: export_csv_columns1304} - _t2081 := &pb.ExportCSVSource{} - _t2081.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2080} - _t2078 = _t2081 + _t2102 := &pb.ExportCSVColumns{Columns: export_csv_columns1320} + _t2103 := &pb.ExportCSVSource{} + _t2103.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2102} + _t2100 = _t2103 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_source", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2075 = _t2078 + _t2097 = _t2100 } - result1307 := _t2075 - p.recordSpan(int(span_start1306), "ExportCSVSource") - return result1307 + result1323 := _t2097 + p.recordSpan(int(span_start1322), "ExportCSVSource") + return result1323 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { - span_start1310 := int64(p.spanStart()) + span_start1326 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - string1308 := p.consumeTerminal("STRING").Value.str - _t2082 := p.parse_relation_id() - relation_id1309 := _t2082 + string1324 := p.consumeTerminal("STRING").Value.str + _t2104 := p.parse_relation_id() + relation_id1325 := _t2104 p.consumeLiteral(")") - _t2083 := &pb.ExportCSVColumn{ColumnName: string1308, ColumnData: relation_id1309} - result1311 := _t2083 - p.recordSpan(int(span_start1310), "ExportCSVColumn") - return result1311 + _t2105 := &pb.ExportCSVColumn{ColumnName: string1324, ColumnData: relation_id1325} + result1327 := _t2105 + p.recordSpan(int(span_start1326), "ExportCSVColumn") + return result1327 } func (p *Parser) parse_export_csv_columns_list() []*pb.ExportCSVColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1312 := []*pb.ExportCSVColumn{} - cond1313 := p.matchLookaheadLiteral("(", 0) - for cond1313 { - _t2084 := p.parse_export_csv_column() - item1314 := _t2084 - xs1312 = append(xs1312, item1314) - cond1313 = p.matchLookaheadLiteral("(", 0) - } - export_csv_columns1315 := xs1312 + xs1328 := []*pb.ExportCSVColumn{} + cond1329 := p.matchLookaheadLiteral("(", 0) + for cond1329 { + _t2106 := p.parse_export_csv_column() + item1330 := _t2106 + xs1328 = append(xs1328, item1330) + cond1329 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns1331 := xs1328 p.consumeLiteral(")") - return export_csv_columns1315 + return export_csv_columns1331 } func (p *Parser) parse_export_iceberg_config() *pb.ExportIcebergConfig { - span_start1321 := int64(p.spanStart()) + span_start1337 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("export_iceberg_config") - _t2085 := p.parse_iceberg_locator() - iceberg_locator1316 := _t2085 - _t2086 := p.parse_iceberg_catalog_config() - iceberg_catalog_config1317 := _t2086 - _t2087 := p.parse_export_iceberg_table_def() - export_iceberg_table_def1318 := _t2087 - _t2088 := p.parse_iceberg_table_properties() - iceberg_table_properties1319 := _t2088 - var _t2089 [][]interface{} + _t2107 := p.parse_iceberg_locator() + iceberg_locator1332 := _t2107 + _t2108 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1333 := _t2108 + _t2109 := p.parse_export_iceberg_table_def() + export_iceberg_table_def1334 := _t2109 + _t2110 := p.parse_iceberg_table_properties() + iceberg_table_properties1335 := _t2110 + var _t2111 [][]interface{} if p.matchLookaheadLiteral("{", 0) { - _t2090 := p.parse_config_dict() - _t2089 = _t2090 + _t2112 := p.parse_config_dict() + _t2111 = _t2112 } - config_dict1320 := _t2089 + config_dict1336 := _t2111 p.consumeLiteral(")") - _t2091 := p.construct_export_iceberg_config_full(iceberg_locator1316, iceberg_catalog_config1317, export_iceberg_table_def1318, iceberg_table_properties1319, config_dict1320) - result1322 := _t2091 - p.recordSpan(int(span_start1321), "ExportIcebergConfig") - return result1322 + _t2113 := p.construct_export_iceberg_config_full(iceberg_locator1332, iceberg_catalog_config1333, export_iceberg_table_def1334, iceberg_table_properties1335, config_dict1336) + result1338 := _t2113 + p.recordSpan(int(span_start1337), "ExportIcebergConfig") + return result1338 } func (p *Parser) parse_export_iceberg_table_def() *pb.RelationId { - span_start1324 := int64(p.spanStart()) + span_start1340 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2092 := p.parse_relation_id() - relation_id1323 := _t2092 + _t2114 := p.parse_relation_id() + relation_id1339 := _t2114 p.consumeLiteral(")") - result1325 := relation_id1323 - p.recordSpan(int(span_start1324), "RelationId") - return result1325 + result1341 := relation_id1339 + p.recordSpan(int(span_start1340), "RelationId") + return result1341 } func (p *Parser) parse_iceberg_table_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("table_properties") - xs1326 := [][]interface{}{} - cond1327 := p.matchLookaheadLiteral("(", 0) - for cond1327 { - _t2093 := p.parse_iceberg_property_entry() - item1328 := _t2093 - xs1326 = append(xs1326, item1328) - cond1327 = p.matchLookaheadLiteral("(", 0) - } - iceberg_property_entrys1329 := xs1326 + xs1342 := [][]interface{}{} + cond1343 := p.matchLookaheadLiteral("(", 0) + for cond1343 { + _t2115 := p.parse_iceberg_property_entry() + item1344 := _t2115 + xs1342 = append(xs1342, item1344) + cond1343 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1345 := xs1342 p.consumeLiteral(")") - return iceberg_property_entrys1329 + return iceberg_property_entrys1345 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index a23112f6..6afc4149 100644 --- a/sdks/go/src/pretty.go +++ b/sdks/go/src/pretty.go @@ -343,157 +343,157 @@ func formatBool(b bool) string { // --- Helper functions --- func (p *PrettyPrinter) _make_value_int32(v int32) *pb.Value { - _t1731 := &pb.Value{} - _t1731.Value = &pb.Value_Int32Value{Int32Value: v} - return _t1731 + _t1753 := &pb.Value{} + _t1753.Value = &pb.Value_Int32Value{Int32Value: v} + return _t1753 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1732 := &pb.Value{} - _t1732.Value = &pb.Value_IntValue{IntValue: v} - return _t1732 + _t1754 := &pb.Value{} + _t1754.Value = &pb.Value_IntValue{IntValue: v} + return _t1754 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1733 := &pb.Value{} - _t1733.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1733 + _t1755 := &pb.Value{} + _t1755.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1755 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1734 := &pb.Value{} - _t1734.Value = &pb.Value_StringValue{StringValue: v} - return _t1734 + _t1756 := &pb.Value{} + _t1756.Value = &pb.Value_StringValue{StringValue: v} + return _t1756 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1735 := &pb.Value{} - _t1735.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1735 + _t1757 := &pb.Value{} + _t1757.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1757 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1736 := &pb.Value{} - _t1736.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1736 + _t1758 := &pb.Value{} + _t1758.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1758 } func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} { result := [][]interface{}{} if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_AUTO { - _t1737 := p._make_value_string("auto") - result = append(result, []interface{}{"ivm.maintenance_level", _t1737}) + _t1759 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1759}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1738 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1738}) + _t1760 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1760}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1739 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1739}) + _t1761 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1761}) } } } - _t1740 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1740}) + _t1762 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1762}) return listSort(result) } func (p *PrettyPrinter) deconstruct_csv_config(msg *pb.CSVConfig) [][]interface{} { result := [][]interface{}{} - _t1741 := p._make_value_int32(msg.GetHeaderRow()) - result = append(result, []interface{}{"csv_header_row", _t1741}) - _t1742 := p._make_value_int64(msg.GetSkip()) - result = append(result, []interface{}{"csv_skip", _t1742}) + _t1763 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1763}) + _t1764 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1764}) if msg.GetNewLine() != "" { - _t1743 := p._make_value_string(msg.GetNewLine()) - result = append(result, []interface{}{"csv_new_line", _t1743}) - } - _t1744 := p._make_value_string(msg.GetDelimiter()) - result = append(result, []interface{}{"csv_delimiter", _t1744}) - _t1745 := p._make_value_string(msg.GetQuotechar()) - result = append(result, []interface{}{"csv_quotechar", _t1745}) - _t1746 := p._make_value_string(msg.GetEscapechar()) - result = append(result, []interface{}{"csv_escapechar", _t1746}) + _t1765 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1765}) + } + _t1766 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1766}) + _t1767 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1767}) + _t1768 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1768}) if msg.GetComment() != "" { - _t1747 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1747}) + _t1769 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1769}) } for _, missing_string := range msg.GetMissingStrings() { - _t1748 := p._make_value_string(missing_string) - result = append(result, []interface{}{"csv_missing_strings", _t1748}) - } - _t1749 := p._make_value_string(msg.GetDecimalSeparator()) - result = append(result, []interface{}{"csv_decimal_separator", _t1749}) - _t1750 := p._make_value_string(msg.GetEncoding()) - result = append(result, []interface{}{"csv_encoding", _t1750}) - _t1751 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"csv_compression", _t1751}) + _t1770 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1770}) + } + _t1771 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1771}) + _t1772 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1772}) + _t1773 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1773}) if msg.GetPartitionSizeMb() != 0 { - _t1752 := p._make_value_int64(msg.GetPartitionSizeMb()) - result = append(result, []interface{}{"csv_partition_size_mb", _t1752}) + _t1774 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1774}) } return listSort(result) } func (p *PrettyPrinter) deconstruct_betree_info_config(msg *pb.BeTreeInfo) [][]interface{} { result := [][]interface{}{} - _t1753 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) - result = append(result, []interface{}{"betree_config_epsilon", _t1753}) - _t1754 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) - result = append(result, []interface{}{"betree_config_max_pivots", _t1754}) - _t1755 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) - result = append(result, []interface{}{"betree_config_max_deltas", _t1755}) - _t1756 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) - result = append(result, []interface{}{"betree_config_max_leaf", _t1756}) + _t1775 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1775}) + _t1776 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1776}) + _t1777 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1777}) + _t1778 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1778}) if hasProtoField(msg.GetRelationLocator(), "root_pageid") { if msg.GetRelationLocator().GetRootPageid() != nil { - _t1757 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) - result = append(result, []interface{}{"betree_locator_root_pageid", _t1757}) + _t1779 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1779}) } } if hasProtoField(msg.GetRelationLocator(), "inline_data") { if msg.GetRelationLocator().GetInlineData() != nil { - _t1758 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) - result = append(result, []interface{}{"betree_locator_inline_data", _t1758}) + _t1780 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1780}) } } - _t1759 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) - result = append(result, []interface{}{"betree_locator_element_count", _t1759}) - _t1760 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) - result = append(result, []interface{}{"betree_locator_tree_height", _t1760}) + _t1781 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1781}) + _t1782 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1782}) return listSort(result) } func (p *PrettyPrinter) deconstruct_export_csv_config(msg *pb.ExportCSVConfig) [][]interface{} { result := [][]interface{}{} if msg.PartitionSize != nil { - _t1761 := p._make_value_int64(*msg.PartitionSize) - result = append(result, []interface{}{"partition_size", _t1761}) + _t1783 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1783}) } if msg.Compression != nil { - _t1762 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1762}) + _t1784 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1784}) } if msg.SyntaxHeaderRow != nil { - _t1763 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1763}) + _t1785 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1785}) } if msg.SyntaxMissingString != nil { - _t1764 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1764}) + _t1786 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1786}) } if msg.SyntaxDelim != nil { - _t1765 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1765}) + _t1787 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1787}) } if msg.SyntaxQuotechar != nil { - _t1766 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1766}) + _t1788 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1788}) } if msg.SyntaxEscapechar != nil { - _t1767 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1767}) + _t1789 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1789}) } return listSort(result) } @@ -503,51 +503,51 @@ func (p *PrettyPrinter) mask_secret_value(pair []interface{}) string { } func (p *PrettyPrinter) deconstruct_iceberg_catalog_config_scope_optional(msg *pb.IcebergCatalogConfig) *string { - var _t1768 interface{} + var _t1790 interface{} if *msg.Scope != "" { return ptr(*msg.Scope) } - _ = _t1768 + _ = _t1790 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_from_snapshot_optional(msg *pb.IcebergData) *string { - var _t1769 interface{} + var _t1791 interface{} if *msg.FromSnapshot != "" { return ptr(*msg.FromSnapshot) } - _ = _t1769 + _ = _t1791 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_to_snapshot_optional(msg *pb.IcebergData) *string { - var _t1770 interface{} + var _t1792 interface{} if *msg.ToSnapshot != "" { return ptr(*msg.ToSnapshot) } - _ = _t1770 + _ = _t1792 return nil } func (p *PrettyPrinter) deconstruct_export_iceberg_config_optional(msg *pb.ExportIcebergConfig) [][]interface{} { result := [][]interface{}{} if *msg.Prefix != "" { - _t1771 := p._make_value_string(*msg.Prefix) - result = append(result, []interface{}{"prefix", _t1771}) + _t1793 := p._make_value_string(*msg.Prefix) + result = append(result, []interface{}{"prefix", _t1793}) } if *msg.TargetFileSizeBytes != 0 { - _t1772 := p._make_value_int64(*msg.TargetFileSizeBytes) - result = append(result, []interface{}{"target_file_size_bytes", _t1772}) + _t1794 := p._make_value_int64(*msg.TargetFileSizeBytes) + result = append(result, []interface{}{"target_file_size_bytes", _t1794}) } if msg.GetCompression() != "" { - _t1773 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"compression", _t1773}) + _t1795 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"compression", _t1795}) } - var _t1774 interface{} + var _t1796 interface{} if int64(len(result)) == 0 { return nil } - _ = _t1774 + _ = _t1796 return listSort(result) } @@ -558,11 +558,11 @@ func (p *PrettyPrinter) deconstruct_relation_id_string(msg *pb.RelationId) strin func (p *PrettyPrinter) deconstruct_relation_id_uint128(msg *pb.RelationId) *pb.UInt128Value { name := p.relationIdToString(msg) - var _t1775 interface{} + var _t1797 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1775 + _ = _t1797 return nil } @@ -580,45 +580,45 @@ func (p *PrettyPrinter) deconstruct_bindings_with_arity(abs *pb.Abstraction, val // --- Pretty-print methods --- func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { - flat803 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) - if flat803 != nil { - p.write(*flat803) + flat813 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat813 != nil { + p.write(*flat813) return nil } else { _dollar_dollar := msg - var _t1588 *pb.Configure + var _t1608 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1588 = _dollar_dollar.GetConfigure() + _t1608 = _dollar_dollar.GetConfigure() } - var _t1589 *pb.Sync + var _t1609 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1589 = _dollar_dollar.GetSync() + _t1609 = _dollar_dollar.GetSync() } - fields794 := []interface{}{_t1588, _t1589, _dollar_dollar.GetEpochs()} - unwrapped_fields795 := fields794 + fields804 := []interface{}{_t1608, _t1609, _dollar_dollar.GetEpochs()} + unwrapped_fields805 := fields804 p.write("(") p.write("transaction") p.indentSexp() - field796 := unwrapped_fields795[0].(*pb.Configure) - if field796 != nil { + field806 := unwrapped_fields805[0].(*pb.Configure) + if field806 != nil { p.newline() - opt_val797 := field796 - p.pretty_configure(opt_val797) + opt_val807 := field806 + p.pretty_configure(opt_val807) } - field798 := unwrapped_fields795[1].(*pb.Sync) - if field798 != nil { + field808 := unwrapped_fields805[1].(*pb.Sync) + if field808 != nil { p.newline() - opt_val799 := field798 - p.pretty_sync(opt_val799) + opt_val809 := field808 + p.pretty_sync(opt_val809) } - field800 := unwrapped_fields795[2].([]*pb.Epoch) - if !(len(field800) == 0) { + field810 := unwrapped_fields805[2].([]*pb.Epoch) + if !(len(field810) == 0) { p.newline() - for i802, elem801 := range field800 { - if (i802 > 0) { + for i812, elem811 := range field810 { + if (i812 > 0) { p.newline() } - p.pretty_epoch(elem801) + p.pretty_epoch(elem811) } } p.dedent() @@ -628,20 +628,20 @@ func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { } func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { - flat806 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) - if flat806 != nil { - p.write(*flat806) + flat816 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat816 != nil { + p.write(*flat816) return nil } else { _dollar_dollar := msg - _t1590 := p.deconstruct_configure(_dollar_dollar) - fields804 := _t1590 - unwrapped_fields805 := fields804 + _t1610 := p.deconstruct_configure(_dollar_dollar) + fields814 := _t1610 + unwrapped_fields815 := fields814 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields805) + p.pretty_config_dict(unwrapped_fields815) p.dedent() p.write(")") } @@ -649,21 +649,21 @@ func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { } func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { - flat810 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) - if flat810 != nil { - p.write(*flat810) + flat820 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat820 != nil { + p.write(*flat820) return nil } else { - fields807 := msg + fields817 := msg p.write("{") p.indent() - if !(len(fields807) == 0) { + if !(len(fields817) == 0) { p.newline() - for i809, elem808 := range fields807 { - if (i809 > 0) { + for i819, elem818 := range fields817 { + if (i819 > 0) { p.newline() } - p.pretty_config_key_value(elem808) + p.pretty_config_key_value(elem818) } } p.dedent() @@ -673,152 +673,152 @@ func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { } func (p *PrettyPrinter) pretty_config_key_value(msg []interface{}) interface{} { - flat815 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) - if flat815 != nil { - p.write(*flat815) + flat825 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat825 != nil { + p.write(*flat825) return nil } else { _dollar_dollar := msg - fields811 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} - unwrapped_fields812 := fields811 + fields821 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} + unwrapped_fields822 := fields821 p.write(":") - field813 := unwrapped_fields812[0].(string) - p.write(field813) + field823 := unwrapped_fields822[0].(string) + p.write(field823) p.write(" ") - field814 := unwrapped_fields812[1].(*pb.Value) - p.pretty_raw_value(field814) + field824 := unwrapped_fields822[1].(*pb.Value) + p.pretty_raw_value(field824) } return nil } func (p *PrettyPrinter) pretty_raw_value(msg *pb.Value) interface{} { - flat841 := p.tryFlat(msg, func() { p.pretty_raw_value(msg) }) - if flat841 != nil { - p.write(*flat841) + flat851 := p.tryFlat(msg, func() { p.pretty_raw_value(msg) }) + if flat851 != nil { + p.write(*flat851) return nil } else { _dollar_dollar := msg - var _t1591 *pb.DateValue + var _t1611 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1591 = _dollar_dollar.GetDateValue() + _t1611 = _dollar_dollar.GetDateValue() } - deconstruct_result839 := _t1591 - if deconstruct_result839 != nil { - unwrapped840 := deconstruct_result839 - p.pretty_raw_date(unwrapped840) + deconstruct_result849 := _t1611 + if deconstruct_result849 != nil { + unwrapped850 := deconstruct_result849 + p.pretty_raw_date(unwrapped850) } else { _dollar_dollar := msg - var _t1592 *pb.DateTimeValue + var _t1612 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1592 = _dollar_dollar.GetDatetimeValue() + _t1612 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result837 := _t1592 - if deconstruct_result837 != nil { - unwrapped838 := deconstruct_result837 - p.pretty_raw_datetime(unwrapped838) + deconstruct_result847 := _t1612 + if deconstruct_result847 != nil { + unwrapped848 := deconstruct_result847 + p.pretty_raw_datetime(unwrapped848) } else { _dollar_dollar := msg - var _t1593 *string + var _t1613 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1593 = ptr(_dollar_dollar.GetStringValue()) + _t1613 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result835 := _t1593 - if deconstruct_result835 != nil { - unwrapped836 := *deconstruct_result835 - p.write(p.formatStringValue(unwrapped836)) + deconstruct_result845 := _t1613 + if deconstruct_result845 != nil { + unwrapped846 := *deconstruct_result845 + p.write(p.formatStringValue(unwrapped846)) } else { _dollar_dollar := msg - var _t1594 *int32 + var _t1614 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1594 = ptr(_dollar_dollar.GetInt32Value()) + _t1614 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result833 := _t1594 - if deconstruct_result833 != nil { - unwrapped834 := *deconstruct_result833 - p.write(fmt.Sprintf("%di32", unwrapped834)) + deconstruct_result843 := _t1614 + if deconstruct_result843 != nil { + unwrapped844 := *deconstruct_result843 + p.write(fmt.Sprintf("%di32", unwrapped844)) } else { _dollar_dollar := msg - var _t1595 *int64 + var _t1615 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1595 = ptr(_dollar_dollar.GetIntValue()) + _t1615 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result831 := _t1595 - if deconstruct_result831 != nil { - unwrapped832 := *deconstruct_result831 - p.write(fmt.Sprintf("%d", unwrapped832)) + deconstruct_result841 := _t1615 + if deconstruct_result841 != nil { + unwrapped842 := *deconstruct_result841 + p.write(fmt.Sprintf("%d", unwrapped842)) } else { _dollar_dollar := msg - var _t1596 *float32 + var _t1616 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1596 = ptr(_dollar_dollar.GetFloat32Value()) + _t1616 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result829 := _t1596 - if deconstruct_result829 != nil { - unwrapped830 := *deconstruct_result829 - p.write(formatFloat32(unwrapped830)) + deconstruct_result839 := _t1616 + if deconstruct_result839 != nil { + unwrapped840 := *deconstruct_result839 + p.write(formatFloat32(unwrapped840)) } else { _dollar_dollar := msg - var _t1597 *float64 + var _t1617 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1597 = ptr(_dollar_dollar.GetFloatValue()) + _t1617 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result827 := _t1597 - if deconstruct_result827 != nil { - unwrapped828 := *deconstruct_result827 - p.write(formatFloat64(unwrapped828)) + deconstruct_result837 := _t1617 + if deconstruct_result837 != nil { + unwrapped838 := *deconstruct_result837 + p.write(formatFloat64(unwrapped838)) } else { _dollar_dollar := msg - var _t1598 *uint32 + var _t1618 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1598 = ptr(_dollar_dollar.GetUint32Value()) + _t1618 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result825 := _t1598 - if deconstruct_result825 != nil { - unwrapped826 := *deconstruct_result825 - p.write(fmt.Sprintf("%du32", unwrapped826)) + deconstruct_result835 := _t1618 + if deconstruct_result835 != nil { + unwrapped836 := *deconstruct_result835 + p.write(fmt.Sprintf("%du32", unwrapped836)) } else { _dollar_dollar := msg - var _t1599 *pb.UInt128Value + var _t1619 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1599 = _dollar_dollar.GetUint128Value() + _t1619 = _dollar_dollar.GetUint128Value() } - deconstruct_result823 := _t1599 - if deconstruct_result823 != nil { - unwrapped824 := deconstruct_result823 - p.write(p.formatUint128(unwrapped824)) + deconstruct_result833 := _t1619 + if deconstruct_result833 != nil { + unwrapped834 := deconstruct_result833 + p.write(p.formatUint128(unwrapped834)) } else { _dollar_dollar := msg - var _t1600 *pb.Int128Value + var _t1620 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1600 = _dollar_dollar.GetInt128Value() + _t1620 = _dollar_dollar.GetInt128Value() } - deconstruct_result821 := _t1600 - if deconstruct_result821 != nil { - unwrapped822 := deconstruct_result821 - p.write(p.formatInt128(unwrapped822)) + deconstruct_result831 := _t1620 + if deconstruct_result831 != nil { + unwrapped832 := deconstruct_result831 + p.write(p.formatInt128(unwrapped832)) } else { _dollar_dollar := msg - var _t1601 *pb.DecimalValue + var _t1621 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1601 = _dollar_dollar.GetDecimalValue() + _t1621 = _dollar_dollar.GetDecimalValue() } - deconstruct_result819 := _t1601 - if deconstruct_result819 != nil { - unwrapped820 := deconstruct_result819 - p.write(p.formatDecimal(unwrapped820)) + deconstruct_result829 := _t1621 + if deconstruct_result829 != nil { + unwrapped830 := deconstruct_result829 + p.write(p.formatDecimal(unwrapped830)) } else { _dollar_dollar := msg - var _t1602 *bool + var _t1622 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1602 = ptr(_dollar_dollar.GetBooleanValue()) + _t1622 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result817 := _t1602 - if deconstruct_result817 != nil { - unwrapped818 := *deconstruct_result817 - p.pretty_boolean_value(unwrapped818) + deconstruct_result827 := _t1622 + if deconstruct_result827 != nil { + unwrapped828 := *deconstruct_result827 + p.pretty_boolean_value(unwrapped828) } else { - fields816 := msg - _ = fields816 + fields826 := msg + _ = fields826 p.write("missing") } } @@ -837,26 +837,26 @@ func (p *PrettyPrinter) pretty_raw_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_raw_date(msg *pb.DateValue) interface{} { - flat847 := p.tryFlat(msg, func() { p.pretty_raw_date(msg) }) - if flat847 != nil { - p.write(*flat847) + flat857 := p.tryFlat(msg, func() { p.pretty_raw_date(msg) }) + if flat857 != nil { + p.write(*flat857) return nil } else { _dollar_dollar := msg - fields842 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields843 := fields842 + fields852 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields853 := fields852 p.write("(") p.write("date") p.indentSexp() p.newline() - field844 := unwrapped_fields843[0].(int64) - p.write(fmt.Sprintf("%d", field844)) + field854 := unwrapped_fields853[0].(int64) + p.write(fmt.Sprintf("%d", field854)) p.newline() - field845 := unwrapped_fields843[1].(int64) - p.write(fmt.Sprintf("%d", field845)) + field855 := unwrapped_fields853[1].(int64) + p.write(fmt.Sprintf("%d", field855)) p.newline() - field846 := unwrapped_fields843[2].(int64) - p.write(fmt.Sprintf("%d", field846)) + field856 := unwrapped_fields853[2].(int64) + p.write(fmt.Sprintf("%d", field856)) p.dedent() p.write(")") } @@ -864,40 +864,40 @@ func (p *PrettyPrinter) pretty_raw_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_raw_datetime(msg *pb.DateTimeValue) interface{} { - flat858 := p.tryFlat(msg, func() { p.pretty_raw_datetime(msg) }) - if flat858 != nil { - p.write(*flat858) + flat868 := p.tryFlat(msg, func() { p.pretty_raw_datetime(msg) }) + if flat868 != nil { + p.write(*flat868) return nil } else { _dollar_dollar := msg - fields848 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} - unwrapped_fields849 := fields848 + fields858 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} + unwrapped_fields859 := fields858 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field850 := unwrapped_fields849[0].(int64) - p.write(fmt.Sprintf("%d", field850)) + field860 := unwrapped_fields859[0].(int64) + p.write(fmt.Sprintf("%d", field860)) p.newline() - field851 := unwrapped_fields849[1].(int64) - p.write(fmt.Sprintf("%d", field851)) + field861 := unwrapped_fields859[1].(int64) + p.write(fmt.Sprintf("%d", field861)) p.newline() - field852 := unwrapped_fields849[2].(int64) - p.write(fmt.Sprintf("%d", field852)) + field862 := unwrapped_fields859[2].(int64) + p.write(fmt.Sprintf("%d", field862)) p.newline() - field853 := unwrapped_fields849[3].(int64) - p.write(fmt.Sprintf("%d", field853)) + field863 := unwrapped_fields859[3].(int64) + p.write(fmt.Sprintf("%d", field863)) p.newline() - field854 := unwrapped_fields849[4].(int64) - p.write(fmt.Sprintf("%d", field854)) + field864 := unwrapped_fields859[4].(int64) + p.write(fmt.Sprintf("%d", field864)) p.newline() - field855 := unwrapped_fields849[5].(int64) - p.write(fmt.Sprintf("%d", field855)) - field856 := unwrapped_fields849[6].(*int64) - if field856 != nil { + field865 := unwrapped_fields859[5].(int64) + p.write(fmt.Sprintf("%d", field865)) + field866 := unwrapped_fields859[6].(*int64) + if field866 != nil { p.newline() - opt_val857 := *field856 - p.write(fmt.Sprintf("%d", opt_val857)) + opt_val867 := *field866 + p.write(fmt.Sprintf("%d", opt_val867)) } p.dedent() p.write(")") @@ -907,25 +907,25 @@ func (p *PrettyPrinter) pretty_raw_datetime(msg *pb.DateTimeValue) interface{} { func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { _dollar_dollar := msg - var _t1603 []interface{} + var _t1623 []interface{} if _dollar_dollar { - _t1603 = []interface{}{} + _t1623 = []interface{}{} } - deconstruct_result861 := _t1603 - if deconstruct_result861 != nil { - unwrapped862 := deconstruct_result861 - _ = unwrapped862 + deconstruct_result871 := _t1623 + if deconstruct_result871 != nil { + unwrapped872 := deconstruct_result871 + _ = unwrapped872 p.write("true") } else { _dollar_dollar := msg - var _t1604 []interface{} + var _t1624 []interface{} if !(_dollar_dollar) { - _t1604 = []interface{}{} + _t1624 = []interface{}{} } - deconstruct_result859 := _t1604 - if deconstruct_result859 != nil { - unwrapped860 := deconstruct_result859 - _ = unwrapped860 + deconstruct_result869 := _t1624 + if deconstruct_result869 != nil { + unwrapped870 := deconstruct_result869 + _ = unwrapped870 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -935,24 +935,24 @@ func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { } func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { - flat867 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) - if flat867 != nil { - p.write(*flat867) + flat877 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat877 != nil { + p.write(*flat877) return nil } else { _dollar_dollar := msg - fields863 := _dollar_dollar.GetFragments() - unwrapped_fields864 := fields863 + fields873 := _dollar_dollar.GetFragments() + unwrapped_fields874 := fields873 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields864) == 0) { + if !(len(unwrapped_fields874) == 0) { p.newline() - for i866, elem865 := range unwrapped_fields864 { - if (i866 > 0) { + for i876, elem875 := range unwrapped_fields874 { + if (i876 > 0) { p.newline() } - p.pretty_fragment_id(elem865) + p.pretty_fragment_id(elem875) } } p.dedent() @@ -962,51 +962,51 @@ func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { } func (p *PrettyPrinter) pretty_fragment_id(msg *pb.FragmentId) interface{} { - flat870 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) - if flat870 != nil { - p.write(*flat870) + flat880 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat880 != nil { + p.write(*flat880) return nil } else { _dollar_dollar := msg - fields868 := p.fragmentIdToString(_dollar_dollar) - unwrapped_fields869 := fields868 + fields878 := p.fragmentIdToString(_dollar_dollar) + unwrapped_fields879 := fields878 p.write(":") - p.write(unwrapped_fields869) + p.write(unwrapped_fields879) } return nil } func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { - flat877 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) - if flat877 != nil { - p.write(*flat877) + flat887 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat887 != nil { + p.write(*flat887) return nil } else { _dollar_dollar := msg - var _t1605 []*pb.Write + var _t1625 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1605 = _dollar_dollar.GetWrites() + _t1625 = _dollar_dollar.GetWrites() } - var _t1606 []*pb.Read + var _t1626 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1606 = _dollar_dollar.GetReads() + _t1626 = _dollar_dollar.GetReads() } - fields871 := []interface{}{_t1605, _t1606} - unwrapped_fields872 := fields871 + fields881 := []interface{}{_t1625, _t1626} + unwrapped_fields882 := fields881 p.write("(") p.write("epoch") p.indentSexp() - field873 := unwrapped_fields872[0].([]*pb.Write) - if field873 != nil { + field883 := unwrapped_fields882[0].([]*pb.Write) + if field883 != nil { p.newline() - opt_val874 := field873 - p.pretty_epoch_writes(opt_val874) + opt_val884 := field883 + p.pretty_epoch_writes(opt_val884) } - field875 := unwrapped_fields872[1].([]*pb.Read) - if field875 != nil { + field885 := unwrapped_fields882[1].([]*pb.Read) + if field885 != nil { p.newline() - opt_val876 := field875 - p.pretty_epoch_reads(opt_val876) + opt_val886 := field885 + p.pretty_epoch_reads(opt_val886) } p.dedent() p.write(")") @@ -1015,22 +1015,22 @@ func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { } func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { - flat881 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) - if flat881 != nil { - p.write(*flat881) + flat891 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat891 != nil { + p.write(*flat891) return nil } else { - fields878 := msg + fields888 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields878) == 0) { + if !(len(fields888) == 0) { p.newline() - for i880, elem879 := range fields878 { - if (i880 > 0) { + for i890, elem889 := range fields888 { + if (i890 > 0) { p.newline() } - p.pretty_write(elem879) + p.pretty_write(elem889) } } p.dedent() @@ -1040,50 +1040,50 @@ func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { } func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { - flat890 := p.tryFlat(msg, func() { p.pretty_write(msg) }) - if flat890 != nil { - p.write(*flat890) + flat900 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat900 != nil { + p.write(*flat900) return nil } else { _dollar_dollar := msg - var _t1607 *pb.Define + var _t1627 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1607 = _dollar_dollar.GetDefine() + _t1627 = _dollar_dollar.GetDefine() } - deconstruct_result888 := _t1607 - if deconstruct_result888 != nil { - unwrapped889 := deconstruct_result888 - p.pretty_define(unwrapped889) + deconstruct_result898 := _t1627 + if deconstruct_result898 != nil { + unwrapped899 := deconstruct_result898 + p.pretty_define(unwrapped899) } else { _dollar_dollar := msg - var _t1608 *pb.Undefine + var _t1628 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1608 = _dollar_dollar.GetUndefine() + _t1628 = _dollar_dollar.GetUndefine() } - deconstruct_result886 := _t1608 - if deconstruct_result886 != nil { - unwrapped887 := deconstruct_result886 - p.pretty_undefine(unwrapped887) + deconstruct_result896 := _t1628 + if deconstruct_result896 != nil { + unwrapped897 := deconstruct_result896 + p.pretty_undefine(unwrapped897) } else { _dollar_dollar := msg - var _t1609 *pb.Context + var _t1629 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1609 = _dollar_dollar.GetContext() + _t1629 = _dollar_dollar.GetContext() } - deconstruct_result884 := _t1609 - if deconstruct_result884 != nil { - unwrapped885 := deconstruct_result884 - p.pretty_context(unwrapped885) + deconstruct_result894 := _t1629 + if deconstruct_result894 != nil { + unwrapped895 := deconstruct_result894 + p.pretty_context(unwrapped895) } else { _dollar_dollar := msg - var _t1610 *pb.Snapshot + var _t1630 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1610 = _dollar_dollar.GetSnapshot() + _t1630 = _dollar_dollar.GetSnapshot() } - deconstruct_result882 := _t1610 - if deconstruct_result882 != nil { - unwrapped883 := deconstruct_result882 - p.pretty_snapshot(unwrapped883) + deconstruct_result892 := _t1630 + if deconstruct_result892 != nil { + unwrapped893 := deconstruct_result892 + p.pretty_snapshot(unwrapped893) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -1095,19 +1095,19 @@ func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { } func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { - flat893 := p.tryFlat(msg, func() { p.pretty_define(msg) }) - if flat893 != nil { - p.write(*flat893) + flat903 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat903 != nil { + p.write(*flat903) return nil } else { _dollar_dollar := msg - fields891 := _dollar_dollar.GetFragment() - unwrapped_fields892 := fields891 + fields901 := _dollar_dollar.GetFragment() + unwrapped_fields902 := fields901 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields892) + p.pretty_fragment(unwrapped_fields902) p.dedent() p.write(")") } @@ -1115,29 +1115,29 @@ func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { } func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { - flat900 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) - if flat900 != nil { - p.write(*flat900) + flat910 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat910 != nil { + p.write(*flat910) return nil } else { _dollar_dollar := msg p.startPrettyFragment(_dollar_dollar) - fields894 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} - unwrapped_fields895 := fields894 + fields904 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} + unwrapped_fields905 := fields904 p.write("(") p.write("fragment") p.indentSexp() p.newline() - field896 := unwrapped_fields895[0].(*pb.FragmentId) - p.pretty_new_fragment_id(field896) - field897 := unwrapped_fields895[1].([]*pb.Declaration) - if !(len(field897) == 0) { + field906 := unwrapped_fields905[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field906) + field907 := unwrapped_fields905[1].([]*pb.Declaration) + if !(len(field907) == 0) { p.newline() - for i899, elem898 := range field897 { - if (i899 > 0) { + for i909, elem908 := range field907 { + if (i909 > 0) { p.newline() } - p.pretty_declaration(elem898) + p.pretty_declaration(elem908) } } p.dedent() @@ -1147,62 +1147,62 @@ func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { } func (p *PrettyPrinter) pretty_new_fragment_id(msg *pb.FragmentId) interface{} { - flat902 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) - if flat902 != nil { - p.write(*flat902) + flat912 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat912 != nil { + p.write(*flat912) return nil } else { - fields901 := msg - p.pretty_fragment_id(fields901) + fields911 := msg + p.pretty_fragment_id(fields911) } return nil } func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { - flat911 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) - if flat911 != nil { - p.write(*flat911) + flat921 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat921 != nil { + p.write(*flat921) return nil } else { _dollar_dollar := msg - var _t1611 *pb.Def + var _t1631 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1611 = _dollar_dollar.GetDef() + _t1631 = _dollar_dollar.GetDef() } - deconstruct_result909 := _t1611 - if deconstruct_result909 != nil { - unwrapped910 := deconstruct_result909 - p.pretty_def(unwrapped910) + deconstruct_result919 := _t1631 + if deconstruct_result919 != nil { + unwrapped920 := deconstruct_result919 + p.pretty_def(unwrapped920) } else { _dollar_dollar := msg - var _t1612 *pb.Algorithm + var _t1632 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1612 = _dollar_dollar.GetAlgorithm() + _t1632 = _dollar_dollar.GetAlgorithm() } - deconstruct_result907 := _t1612 - if deconstruct_result907 != nil { - unwrapped908 := deconstruct_result907 - p.pretty_algorithm(unwrapped908) + deconstruct_result917 := _t1632 + if deconstruct_result917 != nil { + unwrapped918 := deconstruct_result917 + p.pretty_algorithm(unwrapped918) } else { _dollar_dollar := msg - var _t1613 *pb.Constraint + var _t1633 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1613 = _dollar_dollar.GetConstraint() + _t1633 = _dollar_dollar.GetConstraint() } - deconstruct_result905 := _t1613 - if deconstruct_result905 != nil { - unwrapped906 := deconstruct_result905 - p.pretty_constraint(unwrapped906) + deconstruct_result915 := _t1633 + if deconstruct_result915 != nil { + unwrapped916 := deconstruct_result915 + p.pretty_constraint(unwrapped916) } else { _dollar_dollar := msg - var _t1614 *pb.Data + var _t1634 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1614 = _dollar_dollar.GetData() + _t1634 = _dollar_dollar.GetData() } - deconstruct_result903 := _t1614 - if deconstruct_result903 != nil { - unwrapped904 := deconstruct_result903 - p.pretty_data(unwrapped904) + deconstruct_result913 := _t1634 + if deconstruct_result913 != nil { + unwrapped914 := deconstruct_result913 + p.pretty_data(unwrapped914) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1214,32 +1214,32 @@ func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { } func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { - flat918 := p.tryFlat(msg, func() { p.pretty_def(msg) }) - if flat918 != nil { - p.write(*flat918) + flat928 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat928 != nil { + p.write(*flat928) return nil } else { _dollar_dollar := msg - var _t1615 []*pb.Attribute + var _t1635 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1615 = _dollar_dollar.GetAttrs() + _t1635 = _dollar_dollar.GetAttrs() } - fields912 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1615} - unwrapped_fields913 := fields912 + fields922 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1635} + unwrapped_fields923 := fields922 p.write("(") p.write("def") p.indentSexp() p.newline() - field914 := unwrapped_fields913[0].(*pb.RelationId) - p.pretty_relation_id(field914) + field924 := unwrapped_fields923[0].(*pb.RelationId) + p.pretty_relation_id(field924) p.newline() - field915 := unwrapped_fields913[1].(*pb.Abstraction) - p.pretty_abstraction(field915) - field916 := unwrapped_fields913[2].([]*pb.Attribute) - if field916 != nil { + field925 := unwrapped_fields923[1].(*pb.Abstraction) + p.pretty_abstraction(field925) + field926 := unwrapped_fields923[2].([]*pb.Attribute) + if field926 != nil { p.newline() - opt_val917 := field916 - p.pretty_attrs(opt_val917) + opt_val927 := field926 + p.pretty_attrs(opt_val927) } p.dedent() p.write(")") @@ -1248,29 +1248,29 @@ func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { } func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { - flat923 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) - if flat923 != nil { - p.write(*flat923) + flat933 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat933 != nil { + p.write(*flat933) return nil } else { _dollar_dollar := msg - var _t1616 *string + var _t1636 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1617 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1616 = ptr(_t1617) + _t1637 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1636 = ptr(_t1637) } - deconstruct_result921 := _t1616 - if deconstruct_result921 != nil { - unwrapped922 := *deconstruct_result921 + deconstruct_result931 := _t1636 + if deconstruct_result931 != nil { + unwrapped932 := *deconstruct_result931 p.write(":") - p.write(unwrapped922) + p.write(unwrapped932) } else { _dollar_dollar := msg - _t1618 := p.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result919 := _t1618 - if deconstruct_result919 != nil { - unwrapped920 := deconstruct_result919 - p.write(p.formatUint128(unwrapped920)) + _t1638 := p.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result929 := _t1638 + if deconstruct_result929 != nil { + unwrapped930 := deconstruct_result929 + p.write(p.formatUint128(unwrapped930)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1280,22 +1280,22 @@ func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { } func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { - flat928 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) - if flat928 != nil { - p.write(*flat928) + flat938 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat938 != nil { + p.write(*flat938) return nil } else { _dollar_dollar := msg - _t1619 := p.deconstruct_bindings(_dollar_dollar) - fields924 := []interface{}{_t1619, _dollar_dollar.GetValue()} - unwrapped_fields925 := fields924 + _t1639 := p.deconstruct_bindings(_dollar_dollar) + fields934 := []interface{}{_t1639, _dollar_dollar.GetValue()} + unwrapped_fields935 := fields934 p.write("(") p.indent() - field926 := unwrapped_fields925[0].([]interface{}) - p.pretty_bindings(field926) + field936 := unwrapped_fields935[0].([]interface{}) + p.pretty_bindings(field936) p.newline() - field927 := unwrapped_fields925[1].(*pb.Formula) - p.pretty_formula(field927) + field937 := unwrapped_fields935[1].(*pb.Formula) + p.pretty_formula(field937) p.dedent() p.write(")") } @@ -1303,32 +1303,32 @@ func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { - flat936 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) - if flat936 != nil { - p.write(*flat936) + flat946 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat946 != nil { + p.write(*flat946) return nil } else { _dollar_dollar := msg - var _t1620 []*pb.Binding + var _t1640 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1620 = _dollar_dollar[1].([]*pb.Binding) + _t1640 = _dollar_dollar[1].([]*pb.Binding) } - fields929 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1620} - unwrapped_fields930 := fields929 + fields939 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1640} + unwrapped_fields940 := fields939 p.write("[") p.indent() - field931 := unwrapped_fields930[0].([]*pb.Binding) - for i933, elem932 := range field931 { - if (i933 > 0) { + field941 := unwrapped_fields940[0].([]*pb.Binding) + for i943, elem942 := range field941 { + if (i943 > 0) { p.newline() } - p.pretty_binding(elem932) + p.pretty_binding(elem942) } - field934 := unwrapped_fields930[1].([]*pb.Binding) - if field934 != nil { + field944 := unwrapped_fields940[1].([]*pb.Binding) + if field944 != nil { p.newline() - opt_val935 := field934 - p.pretty_value_bindings(opt_val935) + opt_val945 := field944 + p.pretty_value_bindings(opt_val945) } p.dedent() p.write("]") @@ -1337,168 +1337,168 @@ func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_binding(msg *pb.Binding) interface{} { - flat941 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) - if flat941 != nil { - p.write(*flat941) + flat951 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat951 != nil { + p.write(*flat951) return nil } else { _dollar_dollar := msg - fields937 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} - unwrapped_fields938 := fields937 - field939 := unwrapped_fields938[0].(string) - p.write(field939) + fields947 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} + unwrapped_fields948 := fields947 + field949 := unwrapped_fields948[0].(string) + p.write(field949) p.write("::") - field940 := unwrapped_fields938[1].(*pb.Type) - p.pretty_type(field940) + field950 := unwrapped_fields948[1].(*pb.Type) + p.pretty_type(field950) } return nil } func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { - flat970 := p.tryFlat(msg, func() { p.pretty_type(msg) }) - if flat970 != nil { - p.write(*flat970) + flat980 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat980 != nil { + p.write(*flat980) return nil } else { _dollar_dollar := msg - var _t1621 *pb.UnspecifiedType + var _t1641 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1621 = _dollar_dollar.GetUnspecifiedType() + _t1641 = _dollar_dollar.GetUnspecifiedType() } - deconstruct_result968 := _t1621 - if deconstruct_result968 != nil { - unwrapped969 := deconstruct_result968 - p.pretty_unspecified_type(unwrapped969) + deconstruct_result978 := _t1641 + if deconstruct_result978 != nil { + unwrapped979 := deconstruct_result978 + p.pretty_unspecified_type(unwrapped979) } else { _dollar_dollar := msg - var _t1622 *pb.StringType + var _t1642 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1622 = _dollar_dollar.GetStringType() + _t1642 = _dollar_dollar.GetStringType() } - deconstruct_result966 := _t1622 - if deconstruct_result966 != nil { - unwrapped967 := deconstruct_result966 - p.pretty_string_type(unwrapped967) + deconstruct_result976 := _t1642 + if deconstruct_result976 != nil { + unwrapped977 := deconstruct_result976 + p.pretty_string_type(unwrapped977) } else { _dollar_dollar := msg - var _t1623 *pb.IntType + var _t1643 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1623 = _dollar_dollar.GetIntType() + _t1643 = _dollar_dollar.GetIntType() } - deconstruct_result964 := _t1623 - if deconstruct_result964 != nil { - unwrapped965 := deconstruct_result964 - p.pretty_int_type(unwrapped965) + deconstruct_result974 := _t1643 + if deconstruct_result974 != nil { + unwrapped975 := deconstruct_result974 + p.pretty_int_type(unwrapped975) } else { _dollar_dollar := msg - var _t1624 *pb.FloatType + var _t1644 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1624 = _dollar_dollar.GetFloatType() + _t1644 = _dollar_dollar.GetFloatType() } - deconstruct_result962 := _t1624 - if deconstruct_result962 != nil { - unwrapped963 := deconstruct_result962 - p.pretty_float_type(unwrapped963) + deconstruct_result972 := _t1644 + if deconstruct_result972 != nil { + unwrapped973 := deconstruct_result972 + p.pretty_float_type(unwrapped973) } else { _dollar_dollar := msg - var _t1625 *pb.UInt128Type + var _t1645 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1625 = _dollar_dollar.GetUint128Type() + _t1645 = _dollar_dollar.GetUint128Type() } - deconstruct_result960 := _t1625 - if deconstruct_result960 != nil { - unwrapped961 := deconstruct_result960 - p.pretty_uint128_type(unwrapped961) + deconstruct_result970 := _t1645 + if deconstruct_result970 != nil { + unwrapped971 := deconstruct_result970 + p.pretty_uint128_type(unwrapped971) } else { _dollar_dollar := msg - var _t1626 *pb.Int128Type + var _t1646 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1626 = _dollar_dollar.GetInt128Type() + _t1646 = _dollar_dollar.GetInt128Type() } - deconstruct_result958 := _t1626 - if deconstruct_result958 != nil { - unwrapped959 := deconstruct_result958 - p.pretty_int128_type(unwrapped959) + deconstruct_result968 := _t1646 + if deconstruct_result968 != nil { + unwrapped969 := deconstruct_result968 + p.pretty_int128_type(unwrapped969) } else { _dollar_dollar := msg - var _t1627 *pb.DateType + var _t1647 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1627 = _dollar_dollar.GetDateType() + _t1647 = _dollar_dollar.GetDateType() } - deconstruct_result956 := _t1627 - if deconstruct_result956 != nil { - unwrapped957 := deconstruct_result956 - p.pretty_date_type(unwrapped957) + deconstruct_result966 := _t1647 + if deconstruct_result966 != nil { + unwrapped967 := deconstruct_result966 + p.pretty_date_type(unwrapped967) } else { _dollar_dollar := msg - var _t1628 *pb.DateTimeType + var _t1648 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1628 = _dollar_dollar.GetDatetimeType() + _t1648 = _dollar_dollar.GetDatetimeType() } - deconstruct_result954 := _t1628 - if deconstruct_result954 != nil { - unwrapped955 := deconstruct_result954 - p.pretty_datetime_type(unwrapped955) + deconstruct_result964 := _t1648 + if deconstruct_result964 != nil { + unwrapped965 := deconstruct_result964 + p.pretty_datetime_type(unwrapped965) } else { _dollar_dollar := msg - var _t1629 *pb.MissingType + var _t1649 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1629 = _dollar_dollar.GetMissingType() + _t1649 = _dollar_dollar.GetMissingType() } - deconstruct_result952 := _t1629 - if deconstruct_result952 != nil { - unwrapped953 := deconstruct_result952 - p.pretty_missing_type(unwrapped953) + deconstruct_result962 := _t1649 + if deconstruct_result962 != nil { + unwrapped963 := deconstruct_result962 + p.pretty_missing_type(unwrapped963) } else { _dollar_dollar := msg - var _t1630 *pb.DecimalType + var _t1650 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1630 = _dollar_dollar.GetDecimalType() + _t1650 = _dollar_dollar.GetDecimalType() } - deconstruct_result950 := _t1630 - if deconstruct_result950 != nil { - unwrapped951 := deconstruct_result950 - p.pretty_decimal_type(unwrapped951) + deconstruct_result960 := _t1650 + if deconstruct_result960 != nil { + unwrapped961 := deconstruct_result960 + p.pretty_decimal_type(unwrapped961) } else { _dollar_dollar := msg - var _t1631 *pb.BooleanType + var _t1651 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1631 = _dollar_dollar.GetBooleanType() + _t1651 = _dollar_dollar.GetBooleanType() } - deconstruct_result948 := _t1631 - if deconstruct_result948 != nil { - unwrapped949 := deconstruct_result948 - p.pretty_boolean_type(unwrapped949) + deconstruct_result958 := _t1651 + if deconstruct_result958 != nil { + unwrapped959 := deconstruct_result958 + p.pretty_boolean_type(unwrapped959) } else { _dollar_dollar := msg - var _t1632 *pb.Int32Type + var _t1652 *pb.Int32Type if hasProtoField(_dollar_dollar, "int32_type") { - _t1632 = _dollar_dollar.GetInt32Type() + _t1652 = _dollar_dollar.GetInt32Type() } - deconstruct_result946 := _t1632 - if deconstruct_result946 != nil { - unwrapped947 := deconstruct_result946 - p.pretty_int32_type(unwrapped947) + deconstruct_result956 := _t1652 + if deconstruct_result956 != nil { + unwrapped957 := deconstruct_result956 + p.pretty_int32_type(unwrapped957) } else { _dollar_dollar := msg - var _t1633 *pb.Float32Type + var _t1653 *pb.Float32Type if hasProtoField(_dollar_dollar, "float32_type") { - _t1633 = _dollar_dollar.GetFloat32Type() + _t1653 = _dollar_dollar.GetFloat32Type() } - deconstruct_result944 := _t1633 - if deconstruct_result944 != nil { - unwrapped945 := deconstruct_result944 - p.pretty_float32_type(unwrapped945) + deconstruct_result954 := _t1653 + if deconstruct_result954 != nil { + unwrapped955 := deconstruct_result954 + p.pretty_float32_type(unwrapped955) } else { _dollar_dollar := msg - var _t1634 *pb.UInt32Type + var _t1654 *pb.UInt32Type if hasProtoField(_dollar_dollar, "uint32_type") { - _t1634 = _dollar_dollar.GetUint32Type() + _t1654 = _dollar_dollar.GetUint32Type() } - deconstruct_result942 := _t1634 - if deconstruct_result942 != nil { - unwrapped943 := deconstruct_result942 - p.pretty_uint32_type(unwrapped943) + deconstruct_result952 := _t1654 + if deconstruct_result952 != nil { + unwrapped953 := deconstruct_result952 + p.pretty_uint32_type(unwrapped953) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1520,86 +1520,86 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields971 := msg - _ = fields971 + fields981 := msg + _ = fields981 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields972 := msg - _ = fields972 + fields982 := msg + _ = fields982 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields973 := msg - _ = fields973 + fields983 := msg + _ = fields983 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields974 := msg - _ = fields974 + fields984 := msg + _ = fields984 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields975 := msg - _ = fields975 + fields985 := msg + _ = fields985 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields976 := msg - _ = fields976 + fields986 := msg + _ = fields986 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields977 := msg - _ = fields977 + fields987 := msg + _ = fields987 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields978 := msg - _ = fields978 + fields988 := msg + _ = fields988 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields979 := msg - _ = fields979 + fields989 := msg + _ = fields989 p.write("MISSING") return nil } func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { - flat984 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) - if flat984 != nil { - p.write(*flat984) + flat994 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat994 != nil { + p.write(*flat994) return nil } else { _dollar_dollar := msg - fields980 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} - unwrapped_fields981 := fields980 + fields990 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} + unwrapped_fields991 := fields990 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field982 := unwrapped_fields981[0].(int64) - p.write(fmt.Sprintf("%d", field982)) + field992 := unwrapped_fields991[0].(int64) + p.write(fmt.Sprintf("%d", field992)) p.newline() - field983 := unwrapped_fields981[1].(int64) - p.write(fmt.Sprintf("%d", field983)) + field993 := unwrapped_fields991[1].(int64) + p.write(fmt.Sprintf("%d", field993)) p.dedent() p.write(")") } @@ -1607,48 +1607,48 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields985 := msg - _ = fields985 + fields995 := msg + _ = fields995 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_int32_type(msg *pb.Int32Type) interface{} { - fields986 := msg - _ = fields986 + fields996 := msg + _ = fields996 p.write("INT32") return nil } func (p *PrettyPrinter) pretty_float32_type(msg *pb.Float32Type) interface{} { - fields987 := msg - _ = fields987 + fields997 := msg + _ = fields997 p.write("FLOAT32") return nil } func (p *PrettyPrinter) pretty_uint32_type(msg *pb.UInt32Type) interface{} { - fields988 := msg - _ = fields988 + fields998 := msg + _ = fields998 p.write("UINT32") return nil } func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { - flat992 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) - if flat992 != nil { - p.write(*flat992) + flat1002 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat1002 != nil { + p.write(*flat1002) return nil } else { - fields989 := msg + fields999 := msg p.write("|") - if !(len(fields989) == 0) { + if !(len(fields999) == 0) { p.write(" ") - for i991, elem990 := range fields989 { - if (i991 > 0) { + for i1001, elem1000 := range fields999 { + if (i1001 > 0) { p.newline() } - p.pretty_binding(elem990) + p.pretty_binding(elem1000) } } } @@ -1656,140 +1656,140 @@ func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { } func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { - flat1019 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) - if flat1019 != nil { - p.write(*flat1019) + flat1029 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat1029 != nil { + p.write(*flat1029) return nil } else { _dollar_dollar := msg - var _t1635 *pb.Conjunction + var _t1655 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1635 = _dollar_dollar.GetConjunction() + _t1655 = _dollar_dollar.GetConjunction() } - deconstruct_result1017 := _t1635 - if deconstruct_result1017 != nil { - unwrapped1018 := deconstruct_result1017 - p.pretty_true(unwrapped1018) + deconstruct_result1027 := _t1655 + if deconstruct_result1027 != nil { + unwrapped1028 := deconstruct_result1027 + p.pretty_true(unwrapped1028) } else { _dollar_dollar := msg - var _t1636 *pb.Disjunction + var _t1656 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1636 = _dollar_dollar.GetDisjunction() + _t1656 = _dollar_dollar.GetDisjunction() } - deconstruct_result1015 := _t1636 - if deconstruct_result1015 != nil { - unwrapped1016 := deconstruct_result1015 - p.pretty_false(unwrapped1016) + deconstruct_result1025 := _t1656 + if deconstruct_result1025 != nil { + unwrapped1026 := deconstruct_result1025 + p.pretty_false(unwrapped1026) } else { _dollar_dollar := msg - var _t1637 *pb.Exists + var _t1657 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1637 = _dollar_dollar.GetExists() + _t1657 = _dollar_dollar.GetExists() } - deconstruct_result1013 := _t1637 - if deconstruct_result1013 != nil { - unwrapped1014 := deconstruct_result1013 - p.pretty_exists(unwrapped1014) + deconstruct_result1023 := _t1657 + if deconstruct_result1023 != nil { + unwrapped1024 := deconstruct_result1023 + p.pretty_exists(unwrapped1024) } else { _dollar_dollar := msg - var _t1638 *pb.Reduce + var _t1658 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1638 = _dollar_dollar.GetReduce() + _t1658 = _dollar_dollar.GetReduce() } - deconstruct_result1011 := _t1638 - if deconstruct_result1011 != nil { - unwrapped1012 := deconstruct_result1011 - p.pretty_reduce(unwrapped1012) + deconstruct_result1021 := _t1658 + if deconstruct_result1021 != nil { + unwrapped1022 := deconstruct_result1021 + p.pretty_reduce(unwrapped1022) } else { _dollar_dollar := msg - var _t1639 *pb.Conjunction + var _t1659 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1639 = _dollar_dollar.GetConjunction() + _t1659 = _dollar_dollar.GetConjunction() } - deconstruct_result1009 := _t1639 - if deconstruct_result1009 != nil { - unwrapped1010 := deconstruct_result1009 - p.pretty_conjunction(unwrapped1010) + deconstruct_result1019 := _t1659 + if deconstruct_result1019 != nil { + unwrapped1020 := deconstruct_result1019 + p.pretty_conjunction(unwrapped1020) } else { _dollar_dollar := msg - var _t1640 *pb.Disjunction + var _t1660 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1640 = _dollar_dollar.GetDisjunction() + _t1660 = _dollar_dollar.GetDisjunction() } - deconstruct_result1007 := _t1640 - if deconstruct_result1007 != nil { - unwrapped1008 := deconstruct_result1007 - p.pretty_disjunction(unwrapped1008) + deconstruct_result1017 := _t1660 + if deconstruct_result1017 != nil { + unwrapped1018 := deconstruct_result1017 + p.pretty_disjunction(unwrapped1018) } else { _dollar_dollar := msg - var _t1641 *pb.Not + var _t1661 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1641 = _dollar_dollar.GetNot() + _t1661 = _dollar_dollar.GetNot() } - deconstruct_result1005 := _t1641 - if deconstruct_result1005 != nil { - unwrapped1006 := deconstruct_result1005 - p.pretty_not(unwrapped1006) + deconstruct_result1015 := _t1661 + if deconstruct_result1015 != nil { + unwrapped1016 := deconstruct_result1015 + p.pretty_not(unwrapped1016) } else { _dollar_dollar := msg - var _t1642 *pb.FFI + var _t1662 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1642 = _dollar_dollar.GetFfi() + _t1662 = _dollar_dollar.GetFfi() } - deconstruct_result1003 := _t1642 - if deconstruct_result1003 != nil { - unwrapped1004 := deconstruct_result1003 - p.pretty_ffi(unwrapped1004) + deconstruct_result1013 := _t1662 + if deconstruct_result1013 != nil { + unwrapped1014 := deconstruct_result1013 + p.pretty_ffi(unwrapped1014) } else { _dollar_dollar := msg - var _t1643 *pb.Atom + var _t1663 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1643 = _dollar_dollar.GetAtom() + _t1663 = _dollar_dollar.GetAtom() } - deconstruct_result1001 := _t1643 - if deconstruct_result1001 != nil { - unwrapped1002 := deconstruct_result1001 - p.pretty_atom(unwrapped1002) + deconstruct_result1011 := _t1663 + if deconstruct_result1011 != nil { + unwrapped1012 := deconstruct_result1011 + p.pretty_atom(unwrapped1012) } else { _dollar_dollar := msg - var _t1644 *pb.Pragma + var _t1664 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1644 = _dollar_dollar.GetPragma() + _t1664 = _dollar_dollar.GetPragma() } - deconstruct_result999 := _t1644 - if deconstruct_result999 != nil { - unwrapped1000 := deconstruct_result999 - p.pretty_pragma(unwrapped1000) + deconstruct_result1009 := _t1664 + if deconstruct_result1009 != nil { + unwrapped1010 := deconstruct_result1009 + p.pretty_pragma(unwrapped1010) } else { _dollar_dollar := msg - var _t1645 *pb.Primitive + var _t1665 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1645 = _dollar_dollar.GetPrimitive() + _t1665 = _dollar_dollar.GetPrimitive() } - deconstruct_result997 := _t1645 - if deconstruct_result997 != nil { - unwrapped998 := deconstruct_result997 - p.pretty_primitive(unwrapped998) + deconstruct_result1007 := _t1665 + if deconstruct_result1007 != nil { + unwrapped1008 := deconstruct_result1007 + p.pretty_primitive(unwrapped1008) } else { _dollar_dollar := msg - var _t1646 *pb.RelAtom + var _t1666 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1646 = _dollar_dollar.GetRelAtom() + _t1666 = _dollar_dollar.GetRelAtom() } - deconstruct_result995 := _t1646 - if deconstruct_result995 != nil { - unwrapped996 := deconstruct_result995 - p.pretty_rel_atom(unwrapped996) + deconstruct_result1005 := _t1666 + if deconstruct_result1005 != nil { + unwrapped1006 := deconstruct_result1005 + p.pretty_rel_atom(unwrapped1006) } else { _dollar_dollar := msg - var _t1647 *pb.Cast + var _t1667 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1647 = _dollar_dollar.GetCast() + _t1667 = _dollar_dollar.GetCast() } - deconstruct_result993 := _t1647 - if deconstruct_result993 != nil { - unwrapped994 := deconstruct_result993 - p.pretty_cast(unwrapped994) + deconstruct_result1003 := _t1667 + if deconstruct_result1003 != nil { + unwrapped1004 := deconstruct_result1003 + p.pretty_cast(unwrapped1004) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1810,8 +1810,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields1020 := msg - _ = fields1020 + fields1030 := msg + _ = fields1030 p.write("(") p.write("true") p.write(")") @@ -1819,8 +1819,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields1021 := msg - _ = fields1021 + fields1031 := msg + _ = fields1031 p.write("(") p.write("false") p.write(")") @@ -1828,24 +1828,24 @@ func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { - flat1026 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) - if flat1026 != nil { - p.write(*flat1026) + flat1036 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat1036 != nil { + p.write(*flat1036) return nil } else { _dollar_dollar := msg - _t1648 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - fields1022 := []interface{}{_t1648, _dollar_dollar.GetBody().GetValue()} - unwrapped_fields1023 := fields1022 + _t1668 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + fields1032 := []interface{}{_t1668, _dollar_dollar.GetBody().GetValue()} + unwrapped_fields1033 := fields1032 p.write("(") p.write("exists") p.indentSexp() p.newline() - field1024 := unwrapped_fields1023[0].([]interface{}) - p.pretty_bindings(field1024) + field1034 := unwrapped_fields1033[0].([]interface{}) + p.pretty_bindings(field1034) p.newline() - field1025 := unwrapped_fields1023[1].(*pb.Formula) - p.pretty_formula(field1025) + field1035 := unwrapped_fields1033[1].(*pb.Formula) + p.pretty_formula(field1035) p.dedent() p.write(")") } @@ -1853,26 +1853,26 @@ func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { } func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { - flat1032 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) - if flat1032 != nil { - p.write(*flat1032) + flat1042 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat1042 != nil { + p.write(*flat1042) return nil } else { _dollar_dollar := msg - fields1027 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} - unwrapped_fields1028 := fields1027 + fields1037 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} + unwrapped_fields1038 := fields1037 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field1029 := unwrapped_fields1028[0].(*pb.Abstraction) - p.pretty_abstraction(field1029) + field1039 := unwrapped_fields1038[0].(*pb.Abstraction) + p.pretty_abstraction(field1039) p.newline() - field1030 := unwrapped_fields1028[1].(*pb.Abstraction) - p.pretty_abstraction(field1030) + field1040 := unwrapped_fields1038[1].(*pb.Abstraction) + p.pretty_abstraction(field1040) p.newline() - field1031 := unwrapped_fields1028[2].([]*pb.Term) - p.pretty_terms(field1031) + field1041 := unwrapped_fields1038[2].([]*pb.Term) + p.pretty_terms(field1041) p.dedent() p.write(")") } @@ -1880,22 +1880,22 @@ func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { } func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { - flat1036 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) - if flat1036 != nil { - p.write(*flat1036) + flat1046 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat1046 != nil { + p.write(*flat1046) return nil } else { - fields1033 := msg + fields1043 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields1033) == 0) { + if !(len(fields1043) == 0) { p.newline() - for i1035, elem1034 := range fields1033 { - if (i1035 > 0) { + for i1045, elem1044 := range fields1043 { + if (i1045 > 0) { p.newline() } - p.pretty_term(elem1034) + p.pretty_term(elem1044) } } p.dedent() @@ -1905,30 +1905,30 @@ func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { } func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { - flat1041 := p.tryFlat(msg, func() { p.pretty_term(msg) }) - if flat1041 != nil { - p.write(*flat1041) + flat1051 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat1051 != nil { + p.write(*flat1051) return nil } else { _dollar_dollar := msg - var _t1649 *pb.Var + var _t1669 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1649 = _dollar_dollar.GetVar() + _t1669 = _dollar_dollar.GetVar() } - deconstruct_result1039 := _t1649 - if deconstruct_result1039 != nil { - unwrapped1040 := deconstruct_result1039 - p.pretty_var(unwrapped1040) + deconstruct_result1049 := _t1669 + if deconstruct_result1049 != nil { + unwrapped1050 := deconstruct_result1049 + p.pretty_var(unwrapped1050) } else { _dollar_dollar := msg - var _t1650 *pb.Value + var _t1670 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1650 = _dollar_dollar.GetConstant() + _t1670 = _dollar_dollar.GetConstant() } - deconstruct_result1037 := _t1650 - if deconstruct_result1037 != nil { - unwrapped1038 := deconstruct_result1037 - p.pretty_value(unwrapped1038) + deconstruct_result1047 := _t1670 + if deconstruct_result1047 != nil { + unwrapped1048 := deconstruct_result1047 + p.pretty_value(unwrapped1048) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -1938,147 +1938,147 @@ func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { } func (p *PrettyPrinter) pretty_var(msg *pb.Var) interface{} { - flat1044 := p.tryFlat(msg, func() { p.pretty_var(msg) }) - if flat1044 != nil { - p.write(*flat1044) + flat1054 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat1054 != nil { + p.write(*flat1054) return nil } else { _dollar_dollar := msg - fields1042 := _dollar_dollar.GetName() - unwrapped_fields1043 := fields1042 - p.write(unwrapped_fields1043) + fields1052 := _dollar_dollar.GetName() + unwrapped_fields1053 := fields1052 + p.write(unwrapped_fields1053) } return nil } func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { - flat1070 := p.tryFlat(msg, func() { p.pretty_value(msg) }) - if flat1070 != nil { - p.write(*flat1070) + flat1080 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat1080 != nil { + p.write(*flat1080) return nil } else { _dollar_dollar := msg - var _t1651 *pb.DateValue + var _t1671 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1651 = _dollar_dollar.GetDateValue() + _t1671 = _dollar_dollar.GetDateValue() } - deconstruct_result1068 := _t1651 - if deconstruct_result1068 != nil { - unwrapped1069 := deconstruct_result1068 - p.pretty_date(unwrapped1069) + deconstruct_result1078 := _t1671 + if deconstruct_result1078 != nil { + unwrapped1079 := deconstruct_result1078 + p.pretty_date(unwrapped1079) } else { _dollar_dollar := msg - var _t1652 *pb.DateTimeValue + var _t1672 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1652 = _dollar_dollar.GetDatetimeValue() + _t1672 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result1066 := _t1652 - if deconstruct_result1066 != nil { - unwrapped1067 := deconstruct_result1066 - p.pretty_datetime(unwrapped1067) + deconstruct_result1076 := _t1672 + if deconstruct_result1076 != nil { + unwrapped1077 := deconstruct_result1076 + p.pretty_datetime(unwrapped1077) } else { _dollar_dollar := msg - var _t1653 *string + var _t1673 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1653 = ptr(_dollar_dollar.GetStringValue()) + _t1673 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result1064 := _t1653 - if deconstruct_result1064 != nil { - unwrapped1065 := *deconstruct_result1064 - p.write(p.formatStringValue(unwrapped1065)) + deconstruct_result1074 := _t1673 + if deconstruct_result1074 != nil { + unwrapped1075 := *deconstruct_result1074 + p.write(p.formatStringValue(unwrapped1075)) } else { _dollar_dollar := msg - var _t1654 *int32 + var _t1674 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1654 = ptr(_dollar_dollar.GetInt32Value()) + _t1674 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result1062 := _t1654 - if deconstruct_result1062 != nil { - unwrapped1063 := *deconstruct_result1062 - p.write(fmt.Sprintf("%di32", unwrapped1063)) + deconstruct_result1072 := _t1674 + if deconstruct_result1072 != nil { + unwrapped1073 := *deconstruct_result1072 + p.write(fmt.Sprintf("%di32", unwrapped1073)) } else { _dollar_dollar := msg - var _t1655 *int64 + var _t1675 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1655 = ptr(_dollar_dollar.GetIntValue()) + _t1675 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result1060 := _t1655 - if deconstruct_result1060 != nil { - unwrapped1061 := *deconstruct_result1060 - p.write(fmt.Sprintf("%d", unwrapped1061)) + deconstruct_result1070 := _t1675 + if deconstruct_result1070 != nil { + unwrapped1071 := *deconstruct_result1070 + p.write(fmt.Sprintf("%d", unwrapped1071)) } else { _dollar_dollar := msg - var _t1656 *float32 + var _t1676 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1656 = ptr(_dollar_dollar.GetFloat32Value()) + _t1676 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result1058 := _t1656 - if deconstruct_result1058 != nil { - unwrapped1059 := *deconstruct_result1058 - p.write(formatFloat32(unwrapped1059)) + deconstruct_result1068 := _t1676 + if deconstruct_result1068 != nil { + unwrapped1069 := *deconstruct_result1068 + p.write(formatFloat32(unwrapped1069)) } else { _dollar_dollar := msg - var _t1657 *float64 + var _t1677 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1657 = ptr(_dollar_dollar.GetFloatValue()) + _t1677 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result1056 := _t1657 - if deconstruct_result1056 != nil { - unwrapped1057 := *deconstruct_result1056 - p.write(formatFloat64(unwrapped1057)) + deconstruct_result1066 := _t1677 + if deconstruct_result1066 != nil { + unwrapped1067 := *deconstruct_result1066 + p.write(formatFloat64(unwrapped1067)) } else { _dollar_dollar := msg - var _t1658 *uint32 + var _t1678 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1658 = ptr(_dollar_dollar.GetUint32Value()) + _t1678 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result1054 := _t1658 - if deconstruct_result1054 != nil { - unwrapped1055 := *deconstruct_result1054 - p.write(fmt.Sprintf("%du32", unwrapped1055)) + deconstruct_result1064 := _t1678 + if deconstruct_result1064 != nil { + unwrapped1065 := *deconstruct_result1064 + p.write(fmt.Sprintf("%du32", unwrapped1065)) } else { _dollar_dollar := msg - var _t1659 *pb.UInt128Value + var _t1679 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1659 = _dollar_dollar.GetUint128Value() + _t1679 = _dollar_dollar.GetUint128Value() } - deconstruct_result1052 := _t1659 - if deconstruct_result1052 != nil { - unwrapped1053 := deconstruct_result1052 - p.write(p.formatUint128(unwrapped1053)) + deconstruct_result1062 := _t1679 + if deconstruct_result1062 != nil { + unwrapped1063 := deconstruct_result1062 + p.write(p.formatUint128(unwrapped1063)) } else { _dollar_dollar := msg - var _t1660 *pb.Int128Value + var _t1680 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1660 = _dollar_dollar.GetInt128Value() + _t1680 = _dollar_dollar.GetInt128Value() } - deconstruct_result1050 := _t1660 - if deconstruct_result1050 != nil { - unwrapped1051 := deconstruct_result1050 - p.write(p.formatInt128(unwrapped1051)) + deconstruct_result1060 := _t1680 + if deconstruct_result1060 != nil { + unwrapped1061 := deconstruct_result1060 + p.write(p.formatInt128(unwrapped1061)) } else { _dollar_dollar := msg - var _t1661 *pb.DecimalValue + var _t1681 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1661 = _dollar_dollar.GetDecimalValue() + _t1681 = _dollar_dollar.GetDecimalValue() } - deconstruct_result1048 := _t1661 - if deconstruct_result1048 != nil { - unwrapped1049 := deconstruct_result1048 - p.write(p.formatDecimal(unwrapped1049)) + deconstruct_result1058 := _t1681 + if deconstruct_result1058 != nil { + unwrapped1059 := deconstruct_result1058 + p.write(p.formatDecimal(unwrapped1059)) } else { _dollar_dollar := msg - var _t1662 *bool + var _t1682 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1662 = ptr(_dollar_dollar.GetBooleanValue()) + _t1682 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result1046 := _t1662 - if deconstruct_result1046 != nil { - unwrapped1047 := *deconstruct_result1046 - p.pretty_boolean_value(unwrapped1047) + deconstruct_result1056 := _t1682 + if deconstruct_result1056 != nil { + unwrapped1057 := *deconstruct_result1056 + p.pretty_boolean_value(unwrapped1057) } else { - fields1045 := msg - _ = fields1045 + fields1055 := msg + _ = fields1055 p.write("missing") } } @@ -2097,26 +2097,26 @@ func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { - flat1076 := p.tryFlat(msg, func() { p.pretty_date(msg) }) - if flat1076 != nil { - p.write(*flat1076) + flat1086 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat1086 != nil { + p.write(*flat1086) return nil } else { _dollar_dollar := msg - fields1071 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields1072 := fields1071 + fields1081 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields1082 := fields1081 p.write("(") p.write("date") p.indentSexp() p.newline() - field1073 := unwrapped_fields1072[0].(int64) - p.write(fmt.Sprintf("%d", field1073)) + field1083 := unwrapped_fields1082[0].(int64) + p.write(fmt.Sprintf("%d", field1083)) p.newline() - field1074 := unwrapped_fields1072[1].(int64) - p.write(fmt.Sprintf("%d", field1074)) + field1084 := unwrapped_fields1082[1].(int64) + p.write(fmt.Sprintf("%d", field1084)) p.newline() - field1075 := unwrapped_fields1072[2].(int64) - p.write(fmt.Sprintf("%d", field1075)) + field1085 := unwrapped_fields1082[2].(int64) + p.write(fmt.Sprintf("%d", field1085)) p.dedent() p.write(")") } @@ -2124,40 +2124,40 @@ func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { - flat1087 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) - if flat1087 != nil { - p.write(*flat1087) + flat1097 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat1097 != nil { + p.write(*flat1097) return nil } else { _dollar_dollar := msg - fields1077 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} - unwrapped_fields1078 := fields1077 + fields1087 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} + unwrapped_fields1088 := fields1087 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field1079 := unwrapped_fields1078[0].(int64) - p.write(fmt.Sprintf("%d", field1079)) + field1089 := unwrapped_fields1088[0].(int64) + p.write(fmt.Sprintf("%d", field1089)) p.newline() - field1080 := unwrapped_fields1078[1].(int64) - p.write(fmt.Sprintf("%d", field1080)) + field1090 := unwrapped_fields1088[1].(int64) + p.write(fmt.Sprintf("%d", field1090)) p.newline() - field1081 := unwrapped_fields1078[2].(int64) - p.write(fmt.Sprintf("%d", field1081)) + field1091 := unwrapped_fields1088[2].(int64) + p.write(fmt.Sprintf("%d", field1091)) p.newline() - field1082 := unwrapped_fields1078[3].(int64) - p.write(fmt.Sprintf("%d", field1082)) + field1092 := unwrapped_fields1088[3].(int64) + p.write(fmt.Sprintf("%d", field1092)) p.newline() - field1083 := unwrapped_fields1078[4].(int64) - p.write(fmt.Sprintf("%d", field1083)) + field1093 := unwrapped_fields1088[4].(int64) + p.write(fmt.Sprintf("%d", field1093)) p.newline() - field1084 := unwrapped_fields1078[5].(int64) - p.write(fmt.Sprintf("%d", field1084)) - field1085 := unwrapped_fields1078[6].(*int64) - if field1085 != nil { + field1094 := unwrapped_fields1088[5].(int64) + p.write(fmt.Sprintf("%d", field1094)) + field1095 := unwrapped_fields1088[6].(*int64) + if field1095 != nil { p.newline() - opt_val1086 := *field1085 - p.write(fmt.Sprintf("%d", opt_val1086)) + opt_val1096 := *field1095 + p.write(fmt.Sprintf("%d", opt_val1096)) } p.dedent() p.write(")") @@ -2166,24 +2166,24 @@ func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { } func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { - flat1092 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) - if flat1092 != nil { - p.write(*flat1092) + flat1102 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat1102 != nil { + p.write(*flat1102) return nil } else { _dollar_dollar := msg - fields1088 := _dollar_dollar.GetArgs() - unwrapped_fields1089 := fields1088 + fields1098 := _dollar_dollar.GetArgs() + unwrapped_fields1099 := fields1098 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields1089) == 0) { + if !(len(unwrapped_fields1099) == 0) { p.newline() - for i1091, elem1090 := range unwrapped_fields1089 { - if (i1091 > 0) { + for i1101, elem1100 := range unwrapped_fields1099 { + if (i1101 > 0) { p.newline() } - p.pretty_formula(elem1090) + p.pretty_formula(elem1100) } } p.dedent() @@ -2193,24 +2193,24 @@ func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { - flat1097 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) - if flat1097 != nil { - p.write(*flat1097) + flat1107 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat1107 != nil { + p.write(*flat1107) return nil } else { _dollar_dollar := msg - fields1093 := _dollar_dollar.GetArgs() - unwrapped_fields1094 := fields1093 + fields1103 := _dollar_dollar.GetArgs() + unwrapped_fields1104 := fields1103 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields1094) == 0) { + if !(len(unwrapped_fields1104) == 0) { p.newline() - for i1096, elem1095 := range unwrapped_fields1094 { - if (i1096 > 0) { + for i1106, elem1105 := range unwrapped_fields1104 { + if (i1106 > 0) { p.newline() } - p.pretty_formula(elem1095) + p.pretty_formula(elem1105) } } p.dedent() @@ -2220,19 +2220,19 @@ func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { - flat1100 := p.tryFlat(msg, func() { p.pretty_not(msg) }) - if flat1100 != nil { - p.write(*flat1100) + flat1110 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat1110 != nil { + p.write(*flat1110) return nil } else { _dollar_dollar := msg - fields1098 := _dollar_dollar.GetArg() - unwrapped_fields1099 := fields1098 + fields1108 := _dollar_dollar.GetArg() + unwrapped_fields1109 := fields1108 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields1099) + p.pretty_formula(unwrapped_fields1109) p.dedent() p.write(")") } @@ -2240,26 +2240,26 @@ func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { } func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { - flat1106 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) - if flat1106 != nil { - p.write(*flat1106) + flat1116 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat1116 != nil { + p.write(*flat1116) return nil } else { _dollar_dollar := msg - fields1101 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} - unwrapped_fields1102 := fields1101 + fields1111 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} + unwrapped_fields1112 := fields1111 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field1103 := unwrapped_fields1102[0].(string) - p.pretty_name(field1103) + field1113 := unwrapped_fields1112[0].(string) + p.pretty_name(field1113) p.newline() - field1104 := unwrapped_fields1102[1].([]*pb.Abstraction) - p.pretty_ffi_args(field1104) + field1114 := unwrapped_fields1112[1].([]*pb.Abstraction) + p.pretty_ffi_args(field1114) p.newline() - field1105 := unwrapped_fields1102[2].([]*pb.Term) - p.pretty_terms(field1105) + field1115 := unwrapped_fields1112[2].([]*pb.Term) + p.pretty_terms(field1115) p.dedent() p.write(")") } @@ -2267,35 +2267,35 @@ func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { } func (p *PrettyPrinter) pretty_name(msg string) interface{} { - flat1108 := p.tryFlat(msg, func() { p.pretty_name(msg) }) - if flat1108 != nil { - p.write(*flat1108) + flat1118 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat1118 != nil { + p.write(*flat1118) return nil } else { - fields1107 := msg + fields1117 := msg p.write(":") - p.write(fields1107) + p.write(fields1117) } return nil } func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { - flat1112 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) - if flat1112 != nil { - p.write(*flat1112) + flat1122 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat1122 != nil { + p.write(*flat1122) return nil } else { - fields1109 := msg + fields1119 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields1109) == 0) { + if !(len(fields1119) == 0) { p.newline() - for i1111, elem1110 := range fields1109 { - if (i1111 > 0) { + for i1121, elem1120 := range fields1119 { + if (i1121 > 0) { p.newline() } - p.pretty_abstraction(elem1110) + p.pretty_abstraction(elem1120) } } p.dedent() @@ -2305,28 +2305,28 @@ func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { - flat1119 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) - if flat1119 != nil { - p.write(*flat1119) + flat1129 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat1129 != nil { + p.write(*flat1129) return nil } else { _dollar_dollar := msg - fields1113 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1114 := fields1113 + fields1123 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1124 := fields1123 p.write("(") p.write("atom") p.indentSexp() p.newline() - field1115 := unwrapped_fields1114[0].(*pb.RelationId) - p.pretty_relation_id(field1115) - field1116 := unwrapped_fields1114[1].([]*pb.Term) - if !(len(field1116) == 0) { + field1125 := unwrapped_fields1124[0].(*pb.RelationId) + p.pretty_relation_id(field1125) + field1126 := unwrapped_fields1124[1].([]*pb.Term) + if !(len(field1126) == 0) { p.newline() - for i1118, elem1117 := range field1116 { - if (i1118 > 0) { + for i1128, elem1127 := range field1126 { + if (i1128 > 0) { p.newline() } - p.pretty_term(elem1117) + p.pretty_term(elem1127) } } p.dedent() @@ -2336,28 +2336,28 @@ func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { } func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { - flat1126 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) - if flat1126 != nil { - p.write(*flat1126) + flat1136 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat1136 != nil { + p.write(*flat1136) return nil } else { _dollar_dollar := msg - fields1120 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1121 := fields1120 + fields1130 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1131 := fields1130 p.write("(") p.write("pragma") p.indentSexp() p.newline() - field1122 := unwrapped_fields1121[0].(string) - p.pretty_name(field1122) - field1123 := unwrapped_fields1121[1].([]*pb.Term) - if !(len(field1123) == 0) { + field1132 := unwrapped_fields1131[0].(string) + p.pretty_name(field1132) + field1133 := unwrapped_fields1131[1].([]*pb.Term) + if !(len(field1133) == 0) { p.newline() - for i1125, elem1124 := range field1123 { - if (i1125 > 0) { + for i1135, elem1134 := range field1133 { + if (i1135 > 0) { p.newline() } - p.pretty_term(elem1124) + p.pretty_term(elem1134) } } p.dedent() @@ -2367,109 +2367,109 @@ func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { } func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { - flat1142 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) - if flat1142 != nil { - p.write(*flat1142) + flat1152 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat1152 != nil { + p.write(*flat1152) return nil } else { _dollar_dollar := msg - var _t1663 []interface{} + var _t1683 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1663 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1683 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1141 := _t1663 - if guard_result1141 != nil { + guard_result1151 := _t1683 + if guard_result1151 != nil { p.pretty_eq(msg) } else { _dollar_dollar := msg - var _t1664 []interface{} + var _t1684 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1664 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1684 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1140 := _t1664 - if guard_result1140 != nil { + guard_result1150 := _t1684 + if guard_result1150 != nil { p.pretty_lt(msg) } else { _dollar_dollar := msg - var _t1665 []interface{} + var _t1685 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1665 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1685 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1139 := _t1665 - if guard_result1139 != nil { + guard_result1149 := _t1685 + if guard_result1149 != nil { p.pretty_lt_eq(msg) } else { _dollar_dollar := msg - var _t1666 []interface{} + var _t1686 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1666 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1686 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1138 := _t1666 - if guard_result1138 != nil { + guard_result1148 := _t1686 + if guard_result1148 != nil { p.pretty_gt(msg) } else { _dollar_dollar := msg - var _t1667 []interface{} + var _t1687 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1667 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1687 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1137 := _t1667 - if guard_result1137 != nil { + guard_result1147 := _t1687 + if guard_result1147 != nil { p.pretty_gt_eq(msg) } else { _dollar_dollar := msg - var _t1668 []interface{} + var _t1688 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1668 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1688 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1136 := _t1668 - if guard_result1136 != nil { + guard_result1146 := _t1688 + if guard_result1146 != nil { p.pretty_add(msg) } else { _dollar_dollar := msg - var _t1669 []interface{} + var _t1689 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1669 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1689 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1135 := _t1669 - if guard_result1135 != nil { + guard_result1145 := _t1689 + if guard_result1145 != nil { p.pretty_minus(msg) } else { _dollar_dollar := msg - var _t1670 []interface{} + var _t1690 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1670 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1690 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1134 := _t1670 - if guard_result1134 != nil { + guard_result1144 := _t1690 + if guard_result1144 != nil { p.pretty_multiply(msg) } else { _dollar_dollar := msg - var _t1671 []interface{} + var _t1691 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1671 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1691 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1133 := _t1671 - if guard_result1133 != nil { + guard_result1143 := _t1691 + if guard_result1143 != nil { p.pretty_divide(msg) } else { _dollar_dollar := msg - fields1127 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1128 := fields1127 + fields1137 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1138 := fields1137 p.write("(") p.write("primitive") p.indentSexp() p.newline() - field1129 := unwrapped_fields1128[0].(string) - p.pretty_name(field1129) - field1130 := unwrapped_fields1128[1].([]*pb.RelTerm) - if !(len(field1130) == 0) { + field1139 := unwrapped_fields1138[0].(string) + p.pretty_name(field1139) + field1140 := unwrapped_fields1138[1].([]*pb.RelTerm) + if !(len(field1140) == 0) { p.newline() - for i1132, elem1131 := range field1130 { - if (i1132 > 0) { + for i1142, elem1141 := range field1140 { + if (i1142 > 0) { p.newline() } - p.pretty_rel_term(elem1131) + p.pretty_rel_term(elem1141) } } p.dedent() @@ -2488,27 +2488,27 @@ func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { - flat1147 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) - if flat1147 != nil { - p.write(*flat1147) + flat1157 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat1157 != nil { + p.write(*flat1157) return nil } else { _dollar_dollar := msg - var _t1672 []interface{} + var _t1692 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1672 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1692 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1143 := _t1672 - unwrapped_fields1144 := fields1143 + fields1153 := _t1692 + unwrapped_fields1154 := fields1153 p.write("(") p.write("=") p.indentSexp() p.newline() - field1145 := unwrapped_fields1144[0].(*pb.Term) - p.pretty_term(field1145) + field1155 := unwrapped_fields1154[0].(*pb.Term) + p.pretty_term(field1155) p.newline() - field1146 := unwrapped_fields1144[1].(*pb.Term) - p.pretty_term(field1146) + field1156 := unwrapped_fields1154[1].(*pb.Term) + p.pretty_term(field1156) p.dedent() p.write(")") } @@ -2516,27 +2516,27 @@ func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { - flat1152 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) - if flat1152 != nil { - p.write(*flat1152) + flat1162 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat1162 != nil { + p.write(*flat1162) return nil } else { _dollar_dollar := msg - var _t1673 []interface{} + var _t1693 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1673 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1693 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1148 := _t1673 - unwrapped_fields1149 := fields1148 + fields1158 := _t1693 + unwrapped_fields1159 := fields1158 p.write("(") p.write("<") p.indentSexp() p.newline() - field1150 := unwrapped_fields1149[0].(*pb.Term) - p.pretty_term(field1150) + field1160 := unwrapped_fields1159[0].(*pb.Term) + p.pretty_term(field1160) p.newline() - field1151 := unwrapped_fields1149[1].(*pb.Term) - p.pretty_term(field1151) + field1161 := unwrapped_fields1159[1].(*pb.Term) + p.pretty_term(field1161) p.dedent() p.write(")") } @@ -2544,27 +2544,27 @@ func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { - flat1157 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) - if flat1157 != nil { - p.write(*flat1157) + flat1167 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat1167 != nil { + p.write(*flat1167) return nil } else { _dollar_dollar := msg - var _t1674 []interface{} + var _t1694 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1674 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1694 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1153 := _t1674 - unwrapped_fields1154 := fields1153 + fields1163 := _t1694 + unwrapped_fields1164 := fields1163 p.write("(") p.write("<=") p.indentSexp() p.newline() - field1155 := unwrapped_fields1154[0].(*pb.Term) - p.pretty_term(field1155) + field1165 := unwrapped_fields1164[0].(*pb.Term) + p.pretty_term(field1165) p.newline() - field1156 := unwrapped_fields1154[1].(*pb.Term) - p.pretty_term(field1156) + field1166 := unwrapped_fields1164[1].(*pb.Term) + p.pretty_term(field1166) p.dedent() p.write(")") } @@ -2572,27 +2572,27 @@ func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { - flat1162 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) - if flat1162 != nil { - p.write(*flat1162) + flat1172 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat1172 != nil { + p.write(*flat1172) return nil } else { _dollar_dollar := msg - var _t1675 []interface{} + var _t1695 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1675 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1695 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1158 := _t1675 - unwrapped_fields1159 := fields1158 + fields1168 := _t1695 + unwrapped_fields1169 := fields1168 p.write("(") p.write(">") p.indentSexp() p.newline() - field1160 := unwrapped_fields1159[0].(*pb.Term) - p.pretty_term(field1160) + field1170 := unwrapped_fields1169[0].(*pb.Term) + p.pretty_term(field1170) p.newline() - field1161 := unwrapped_fields1159[1].(*pb.Term) - p.pretty_term(field1161) + field1171 := unwrapped_fields1169[1].(*pb.Term) + p.pretty_term(field1171) p.dedent() p.write(")") } @@ -2600,27 +2600,27 @@ func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { - flat1167 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) - if flat1167 != nil { - p.write(*flat1167) + flat1177 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat1177 != nil { + p.write(*flat1177) return nil } else { _dollar_dollar := msg - var _t1676 []interface{} + var _t1696 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1676 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1696 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1163 := _t1676 - unwrapped_fields1164 := fields1163 + fields1173 := _t1696 + unwrapped_fields1174 := fields1173 p.write("(") p.write(">=") p.indentSexp() p.newline() - field1165 := unwrapped_fields1164[0].(*pb.Term) - p.pretty_term(field1165) + field1175 := unwrapped_fields1174[0].(*pb.Term) + p.pretty_term(field1175) p.newline() - field1166 := unwrapped_fields1164[1].(*pb.Term) - p.pretty_term(field1166) + field1176 := unwrapped_fields1174[1].(*pb.Term) + p.pretty_term(field1176) p.dedent() p.write(")") } @@ -2628,30 +2628,30 @@ func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { - flat1173 := p.tryFlat(msg, func() { p.pretty_add(msg) }) - if flat1173 != nil { - p.write(*flat1173) + flat1183 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat1183 != nil { + p.write(*flat1183) return nil } else { _dollar_dollar := msg - var _t1677 []interface{} + var _t1697 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1677 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1697 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1168 := _t1677 - unwrapped_fields1169 := fields1168 + fields1178 := _t1697 + unwrapped_fields1179 := fields1178 p.write("(") p.write("+") p.indentSexp() p.newline() - field1170 := unwrapped_fields1169[0].(*pb.Term) - p.pretty_term(field1170) + field1180 := unwrapped_fields1179[0].(*pb.Term) + p.pretty_term(field1180) p.newline() - field1171 := unwrapped_fields1169[1].(*pb.Term) - p.pretty_term(field1171) + field1181 := unwrapped_fields1179[1].(*pb.Term) + p.pretty_term(field1181) p.newline() - field1172 := unwrapped_fields1169[2].(*pb.Term) - p.pretty_term(field1172) + field1182 := unwrapped_fields1179[2].(*pb.Term) + p.pretty_term(field1182) p.dedent() p.write(")") } @@ -2659,30 +2659,30 @@ func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { - flat1179 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) - if flat1179 != nil { - p.write(*flat1179) + flat1189 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat1189 != nil { + p.write(*flat1189) return nil } else { _dollar_dollar := msg - var _t1678 []interface{} + var _t1698 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1678 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1698 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1174 := _t1678 - unwrapped_fields1175 := fields1174 + fields1184 := _t1698 + unwrapped_fields1185 := fields1184 p.write("(") p.write("-") p.indentSexp() p.newline() - field1176 := unwrapped_fields1175[0].(*pb.Term) - p.pretty_term(field1176) + field1186 := unwrapped_fields1185[0].(*pb.Term) + p.pretty_term(field1186) p.newline() - field1177 := unwrapped_fields1175[1].(*pb.Term) - p.pretty_term(field1177) + field1187 := unwrapped_fields1185[1].(*pb.Term) + p.pretty_term(field1187) p.newline() - field1178 := unwrapped_fields1175[2].(*pb.Term) - p.pretty_term(field1178) + field1188 := unwrapped_fields1185[2].(*pb.Term) + p.pretty_term(field1188) p.dedent() p.write(")") } @@ -2690,30 +2690,30 @@ func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { - flat1185 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) - if flat1185 != nil { - p.write(*flat1185) + flat1195 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat1195 != nil { + p.write(*flat1195) return nil } else { _dollar_dollar := msg - var _t1679 []interface{} + var _t1699 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1679 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1699 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1180 := _t1679 - unwrapped_fields1181 := fields1180 + fields1190 := _t1699 + unwrapped_fields1191 := fields1190 p.write("(") p.write("*") p.indentSexp() p.newline() - field1182 := unwrapped_fields1181[0].(*pb.Term) - p.pretty_term(field1182) + field1192 := unwrapped_fields1191[0].(*pb.Term) + p.pretty_term(field1192) p.newline() - field1183 := unwrapped_fields1181[1].(*pb.Term) - p.pretty_term(field1183) + field1193 := unwrapped_fields1191[1].(*pb.Term) + p.pretty_term(field1193) p.newline() - field1184 := unwrapped_fields1181[2].(*pb.Term) - p.pretty_term(field1184) + field1194 := unwrapped_fields1191[2].(*pb.Term) + p.pretty_term(field1194) p.dedent() p.write(")") } @@ -2721,30 +2721,30 @@ func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { - flat1191 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) - if flat1191 != nil { - p.write(*flat1191) + flat1201 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat1201 != nil { + p.write(*flat1201) return nil } else { _dollar_dollar := msg - var _t1680 []interface{} + var _t1700 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1680 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1700 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1186 := _t1680 - unwrapped_fields1187 := fields1186 + fields1196 := _t1700 + unwrapped_fields1197 := fields1196 p.write("(") p.write("/") p.indentSexp() p.newline() - field1188 := unwrapped_fields1187[0].(*pb.Term) - p.pretty_term(field1188) + field1198 := unwrapped_fields1197[0].(*pb.Term) + p.pretty_term(field1198) p.newline() - field1189 := unwrapped_fields1187[1].(*pb.Term) - p.pretty_term(field1189) + field1199 := unwrapped_fields1197[1].(*pb.Term) + p.pretty_term(field1199) p.newline() - field1190 := unwrapped_fields1187[2].(*pb.Term) - p.pretty_term(field1190) + field1200 := unwrapped_fields1197[2].(*pb.Term) + p.pretty_term(field1200) p.dedent() p.write(")") } @@ -2752,30 +2752,30 @@ func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { - flat1196 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) - if flat1196 != nil { - p.write(*flat1196) + flat1206 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat1206 != nil { + p.write(*flat1206) return nil } else { _dollar_dollar := msg - var _t1681 *pb.Value + var _t1701 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1681 = _dollar_dollar.GetSpecializedValue() + _t1701 = _dollar_dollar.GetSpecializedValue() } - deconstruct_result1194 := _t1681 - if deconstruct_result1194 != nil { - unwrapped1195 := deconstruct_result1194 - p.pretty_specialized_value(unwrapped1195) + deconstruct_result1204 := _t1701 + if deconstruct_result1204 != nil { + unwrapped1205 := deconstruct_result1204 + p.pretty_specialized_value(unwrapped1205) } else { _dollar_dollar := msg - var _t1682 *pb.Term + var _t1702 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1682 = _dollar_dollar.GetTerm() + _t1702 = _dollar_dollar.GetTerm() } - deconstruct_result1192 := _t1682 - if deconstruct_result1192 != nil { - unwrapped1193 := deconstruct_result1192 - p.pretty_term(unwrapped1193) + deconstruct_result1202 := _t1702 + if deconstruct_result1202 != nil { + unwrapped1203 := deconstruct_result1202 + p.pretty_term(unwrapped1203) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2785,41 +2785,41 @@ func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { } func (p *PrettyPrinter) pretty_specialized_value(msg *pb.Value) interface{} { - flat1198 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) - if flat1198 != nil { - p.write(*flat1198) + flat1208 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat1208 != nil { + p.write(*flat1208) return nil } else { - fields1197 := msg + fields1207 := msg p.write("#") - p.pretty_raw_value(fields1197) + p.pretty_raw_value(fields1207) } return nil } func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { - flat1205 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) - if flat1205 != nil { - p.write(*flat1205) + flat1215 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat1215 != nil { + p.write(*flat1215) return nil } else { _dollar_dollar := msg - fields1199 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1200 := fields1199 + fields1209 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1210 := fields1209 p.write("(") p.write("relatom") p.indentSexp() p.newline() - field1201 := unwrapped_fields1200[0].(string) - p.pretty_name(field1201) - field1202 := unwrapped_fields1200[1].([]*pb.RelTerm) - if !(len(field1202) == 0) { + field1211 := unwrapped_fields1210[0].(string) + p.pretty_name(field1211) + field1212 := unwrapped_fields1210[1].([]*pb.RelTerm) + if !(len(field1212) == 0) { p.newline() - for i1204, elem1203 := range field1202 { - if (i1204 > 0) { + for i1214, elem1213 := range field1212 { + if (i1214 > 0) { p.newline() } - p.pretty_rel_term(elem1203) + p.pretty_rel_term(elem1213) } } p.dedent() @@ -2829,23 +2829,23 @@ func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { } func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { - flat1210 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) - if flat1210 != nil { - p.write(*flat1210) + flat1220 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1220 != nil { + p.write(*flat1220) return nil } else { _dollar_dollar := msg - fields1206 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} - unwrapped_fields1207 := fields1206 + fields1216 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} + unwrapped_fields1217 := fields1216 p.write("(") p.write("cast") p.indentSexp() p.newline() - field1208 := unwrapped_fields1207[0].(*pb.Term) - p.pretty_term(field1208) + field1218 := unwrapped_fields1217[0].(*pb.Term) + p.pretty_term(field1218) p.newline() - field1209 := unwrapped_fields1207[1].(*pb.Term) - p.pretty_term(field1209) + field1219 := unwrapped_fields1217[1].(*pb.Term) + p.pretty_term(field1219) p.dedent() p.write(")") } @@ -2853,22 +2853,22 @@ func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { } func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { - flat1214 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) - if flat1214 != nil { - p.write(*flat1214) + flat1224 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1224 != nil { + p.write(*flat1224) return nil } else { - fields1211 := msg + fields1221 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields1211) == 0) { + if !(len(fields1221) == 0) { p.newline() - for i1213, elem1212 := range fields1211 { - if (i1213 > 0) { + for i1223, elem1222 := range fields1221 { + if (i1223 > 0) { p.newline() } - p.pretty_attribute(elem1212) + p.pretty_attribute(elem1222) } } p.dedent() @@ -2878,28 +2878,28 @@ func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { - flat1221 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) - if flat1221 != nil { - p.write(*flat1221) + flat1231 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1231 != nil { + p.write(*flat1231) return nil } else { _dollar_dollar := msg - fields1215 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} - unwrapped_fields1216 := fields1215 + fields1225 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} + unwrapped_fields1226 := fields1225 p.write("(") p.write("attribute") p.indentSexp() p.newline() - field1217 := unwrapped_fields1216[0].(string) - p.pretty_name(field1217) - field1218 := unwrapped_fields1216[1].([]*pb.Value) - if !(len(field1218) == 0) { + field1227 := unwrapped_fields1226[0].(string) + p.pretty_name(field1227) + field1228 := unwrapped_fields1226[1].([]*pb.Value) + if !(len(field1228) == 0) { p.newline() - for i1220, elem1219 := range field1218 { - if (i1220 > 0) { + for i1230, elem1229 := range field1228 { + if (i1230 > 0) { p.newline() } - p.pretty_raw_value(elem1219) + p.pretty_raw_value(elem1229) } } p.dedent() @@ -2909,39 +2909,39 @@ func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { - flat1230 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) - if flat1230 != nil { - p.write(*flat1230) + flat1240 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1240 != nil { + p.write(*flat1240) return nil } else { _dollar_dollar := msg - var _t1683 []*pb.Attribute + var _t1703 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1683 = _dollar_dollar.GetAttrs() + _t1703 = _dollar_dollar.GetAttrs() } - fields1222 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1683} - unwrapped_fields1223 := fields1222 + fields1232 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1703} + unwrapped_fields1233 := fields1232 p.write("(") p.write("algorithm") p.indentSexp() - field1224 := unwrapped_fields1223[0].([]*pb.RelationId) - if !(len(field1224) == 0) { + field1234 := unwrapped_fields1233[0].([]*pb.RelationId) + if !(len(field1234) == 0) { p.newline() - for i1226, elem1225 := range field1224 { - if (i1226 > 0) { + for i1236, elem1235 := range field1234 { + if (i1236 > 0) { p.newline() } - p.pretty_relation_id(elem1225) + p.pretty_relation_id(elem1235) } } p.newline() - field1227 := unwrapped_fields1223[1].(*pb.Script) - p.pretty_script(field1227) - field1228 := unwrapped_fields1223[2].([]*pb.Attribute) - if field1228 != nil { + field1237 := unwrapped_fields1233[1].(*pb.Script) + p.pretty_script(field1237) + field1238 := unwrapped_fields1233[2].([]*pb.Attribute) + if field1238 != nil { p.newline() - opt_val1229 := field1228 - p.pretty_attrs(opt_val1229) + opt_val1239 := field1238 + p.pretty_attrs(opt_val1239) } p.dedent() p.write(")") @@ -2950,24 +2950,24 @@ func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { } func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { - flat1235 := p.tryFlat(msg, func() { p.pretty_script(msg) }) - if flat1235 != nil { - p.write(*flat1235) + flat1245 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1245 != nil { + p.write(*flat1245) return nil } else { _dollar_dollar := msg - fields1231 := _dollar_dollar.GetConstructs() - unwrapped_fields1232 := fields1231 + fields1241 := _dollar_dollar.GetConstructs() + unwrapped_fields1242 := fields1241 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1232) == 0) { + if !(len(unwrapped_fields1242) == 0) { p.newline() - for i1234, elem1233 := range unwrapped_fields1232 { - if (i1234 > 0) { + for i1244, elem1243 := range unwrapped_fields1242 { + if (i1244 > 0) { p.newline() } - p.pretty_construct(elem1233) + p.pretty_construct(elem1243) } } p.dedent() @@ -2977,30 +2977,30 @@ func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { } func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { - flat1240 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) - if flat1240 != nil { - p.write(*flat1240) + flat1250 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1250 != nil { + p.write(*flat1250) return nil } else { _dollar_dollar := msg - var _t1684 *pb.Loop + var _t1704 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1684 = _dollar_dollar.GetLoop() + _t1704 = _dollar_dollar.GetLoop() } - deconstruct_result1238 := _t1684 - if deconstruct_result1238 != nil { - unwrapped1239 := deconstruct_result1238 - p.pretty_loop(unwrapped1239) + deconstruct_result1248 := _t1704 + if deconstruct_result1248 != nil { + unwrapped1249 := deconstruct_result1248 + p.pretty_loop(unwrapped1249) } else { _dollar_dollar := msg - var _t1685 *pb.Instruction + var _t1705 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1685 = _dollar_dollar.GetInstruction() + _t1705 = _dollar_dollar.GetInstruction() } - deconstruct_result1236 := _t1685 - if deconstruct_result1236 != nil { - unwrapped1237 := deconstruct_result1236 - p.pretty_instruction(unwrapped1237) + deconstruct_result1246 := _t1705 + if deconstruct_result1246 != nil { + unwrapped1247 := deconstruct_result1246 + p.pretty_instruction(unwrapped1247) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -3010,32 +3010,32 @@ func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { } func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { - flat1247 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) - if flat1247 != nil { - p.write(*flat1247) + flat1257 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1257 != nil { + p.write(*flat1257) return nil } else { _dollar_dollar := msg - var _t1686 []*pb.Attribute + var _t1706 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1686 = _dollar_dollar.GetAttrs() + _t1706 = _dollar_dollar.GetAttrs() } - fields1241 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1686} - unwrapped_fields1242 := fields1241 + fields1251 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1706} + unwrapped_fields1252 := fields1251 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1243 := unwrapped_fields1242[0].([]*pb.Instruction) - p.pretty_init(field1243) + field1253 := unwrapped_fields1252[0].([]*pb.Instruction) + p.pretty_init(field1253) p.newline() - field1244 := unwrapped_fields1242[1].(*pb.Script) - p.pretty_script(field1244) - field1245 := unwrapped_fields1242[2].([]*pb.Attribute) - if field1245 != nil { + field1254 := unwrapped_fields1252[1].(*pb.Script) + p.pretty_script(field1254) + field1255 := unwrapped_fields1252[2].([]*pb.Attribute) + if field1255 != nil { p.newline() - opt_val1246 := field1245 - p.pretty_attrs(opt_val1246) + opt_val1256 := field1255 + p.pretty_attrs(opt_val1256) } p.dedent() p.write(")") @@ -3044,22 +3044,22 @@ func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { } func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { - flat1251 := p.tryFlat(msg, func() { p.pretty_init(msg) }) - if flat1251 != nil { - p.write(*flat1251) + flat1261 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1261 != nil { + p.write(*flat1261) return nil } else { - fields1248 := msg + fields1258 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1248) == 0) { + if !(len(fields1258) == 0) { p.newline() - for i1250, elem1249 := range fields1248 { - if (i1250 > 0) { + for i1260, elem1259 := range fields1258 { + if (i1260 > 0) { p.newline() } - p.pretty_instruction(elem1249) + p.pretty_instruction(elem1259) } } p.dedent() @@ -3069,60 +3069,60 @@ func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { - flat1262 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) - if flat1262 != nil { - p.write(*flat1262) + flat1272 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1272 != nil { + p.write(*flat1272) return nil } else { _dollar_dollar := msg - var _t1687 *pb.Assign + var _t1707 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1687 = _dollar_dollar.GetAssign() + _t1707 = _dollar_dollar.GetAssign() } - deconstruct_result1260 := _t1687 - if deconstruct_result1260 != nil { - unwrapped1261 := deconstruct_result1260 - p.pretty_assign(unwrapped1261) + deconstruct_result1270 := _t1707 + if deconstruct_result1270 != nil { + unwrapped1271 := deconstruct_result1270 + p.pretty_assign(unwrapped1271) } else { _dollar_dollar := msg - var _t1688 *pb.Upsert + var _t1708 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1688 = _dollar_dollar.GetUpsert() + _t1708 = _dollar_dollar.GetUpsert() } - deconstruct_result1258 := _t1688 - if deconstruct_result1258 != nil { - unwrapped1259 := deconstruct_result1258 - p.pretty_upsert(unwrapped1259) + deconstruct_result1268 := _t1708 + if deconstruct_result1268 != nil { + unwrapped1269 := deconstruct_result1268 + p.pretty_upsert(unwrapped1269) } else { _dollar_dollar := msg - var _t1689 *pb.Break + var _t1709 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1689 = _dollar_dollar.GetBreak() + _t1709 = _dollar_dollar.GetBreak() } - deconstruct_result1256 := _t1689 - if deconstruct_result1256 != nil { - unwrapped1257 := deconstruct_result1256 - p.pretty_break(unwrapped1257) + deconstruct_result1266 := _t1709 + if deconstruct_result1266 != nil { + unwrapped1267 := deconstruct_result1266 + p.pretty_break(unwrapped1267) } else { _dollar_dollar := msg - var _t1690 *pb.MonoidDef + var _t1710 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1690 = _dollar_dollar.GetMonoidDef() + _t1710 = _dollar_dollar.GetMonoidDef() } - deconstruct_result1254 := _t1690 - if deconstruct_result1254 != nil { - unwrapped1255 := deconstruct_result1254 - p.pretty_monoid_def(unwrapped1255) + deconstruct_result1264 := _t1710 + if deconstruct_result1264 != nil { + unwrapped1265 := deconstruct_result1264 + p.pretty_monoid_def(unwrapped1265) } else { _dollar_dollar := msg - var _t1691 *pb.MonusDef + var _t1711 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1691 = _dollar_dollar.GetMonusDef() + _t1711 = _dollar_dollar.GetMonusDef() } - deconstruct_result1252 := _t1691 - if deconstruct_result1252 != nil { - unwrapped1253 := deconstruct_result1252 - p.pretty_monus_def(unwrapped1253) + deconstruct_result1262 := _t1711 + if deconstruct_result1262 != nil { + unwrapped1263 := deconstruct_result1262 + p.pretty_monus_def(unwrapped1263) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -3135,32 +3135,32 @@ func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { - flat1269 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) - if flat1269 != nil { - p.write(*flat1269) + flat1279 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1279 != nil { + p.write(*flat1279) return nil } else { _dollar_dollar := msg - var _t1692 []*pb.Attribute + var _t1712 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1692 = _dollar_dollar.GetAttrs() + _t1712 = _dollar_dollar.GetAttrs() } - fields1263 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1692} - unwrapped_fields1264 := fields1263 + fields1273 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1712} + unwrapped_fields1274 := fields1273 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1265 := unwrapped_fields1264[0].(*pb.RelationId) - p.pretty_relation_id(field1265) + field1275 := unwrapped_fields1274[0].(*pb.RelationId) + p.pretty_relation_id(field1275) p.newline() - field1266 := unwrapped_fields1264[1].(*pb.Abstraction) - p.pretty_abstraction(field1266) - field1267 := unwrapped_fields1264[2].([]*pb.Attribute) - if field1267 != nil { + field1276 := unwrapped_fields1274[1].(*pb.Abstraction) + p.pretty_abstraction(field1276) + field1277 := unwrapped_fields1274[2].([]*pb.Attribute) + if field1277 != nil { p.newline() - opt_val1268 := field1267 - p.pretty_attrs(opt_val1268) + opt_val1278 := field1277 + p.pretty_attrs(opt_val1278) } p.dedent() p.write(")") @@ -3169,32 +3169,32 @@ func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { } func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { - flat1276 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) - if flat1276 != nil { - p.write(*flat1276) + flat1286 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1286 != nil { + p.write(*flat1286) return nil } else { _dollar_dollar := msg - var _t1693 []*pb.Attribute + var _t1713 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1693 = _dollar_dollar.GetAttrs() + _t1713 = _dollar_dollar.GetAttrs() } - fields1270 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1693} - unwrapped_fields1271 := fields1270 + fields1280 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1713} + unwrapped_fields1281 := fields1280 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1272 := unwrapped_fields1271[0].(*pb.RelationId) - p.pretty_relation_id(field1272) + field1282 := unwrapped_fields1281[0].(*pb.RelationId) + p.pretty_relation_id(field1282) p.newline() - field1273 := unwrapped_fields1271[1].([]interface{}) - p.pretty_abstraction_with_arity(field1273) - field1274 := unwrapped_fields1271[2].([]*pb.Attribute) - if field1274 != nil { + field1283 := unwrapped_fields1281[1].([]interface{}) + p.pretty_abstraction_with_arity(field1283) + field1284 := unwrapped_fields1281[2].([]*pb.Attribute) + if field1284 != nil { p.newline() - opt_val1275 := field1274 - p.pretty_attrs(opt_val1275) + opt_val1285 := field1284 + p.pretty_attrs(opt_val1285) } p.dedent() p.write(")") @@ -3203,22 +3203,22 @@ func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { } func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interface{} { - flat1281 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) - if flat1281 != nil { - p.write(*flat1281) + flat1291 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1291 != nil { + p.write(*flat1291) return nil } else { _dollar_dollar := msg - _t1694 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) - fields1277 := []interface{}{_t1694, _dollar_dollar[0].(*pb.Abstraction).GetValue()} - unwrapped_fields1278 := fields1277 + _t1714 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + fields1287 := []interface{}{_t1714, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + unwrapped_fields1288 := fields1287 p.write("(") p.indent() - field1279 := unwrapped_fields1278[0].([]interface{}) - p.pretty_bindings(field1279) + field1289 := unwrapped_fields1288[0].([]interface{}) + p.pretty_bindings(field1289) p.newline() - field1280 := unwrapped_fields1278[1].(*pb.Formula) - p.pretty_formula(field1280) + field1290 := unwrapped_fields1288[1].(*pb.Formula) + p.pretty_formula(field1290) p.dedent() p.write(")") } @@ -3226,32 +3226,32 @@ func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { - flat1288 := p.tryFlat(msg, func() { p.pretty_break(msg) }) - if flat1288 != nil { - p.write(*flat1288) + flat1298 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1298 != nil { + p.write(*flat1298) return nil } else { _dollar_dollar := msg - var _t1695 []*pb.Attribute + var _t1715 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1695 = _dollar_dollar.GetAttrs() + _t1715 = _dollar_dollar.GetAttrs() } - fields1282 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1695} - unwrapped_fields1283 := fields1282 + fields1292 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1715} + unwrapped_fields1293 := fields1292 p.write("(") p.write("break") p.indentSexp() p.newline() - field1284 := unwrapped_fields1283[0].(*pb.RelationId) - p.pretty_relation_id(field1284) + field1294 := unwrapped_fields1293[0].(*pb.RelationId) + p.pretty_relation_id(field1294) p.newline() - field1285 := unwrapped_fields1283[1].(*pb.Abstraction) - p.pretty_abstraction(field1285) - field1286 := unwrapped_fields1283[2].([]*pb.Attribute) - if field1286 != nil { + field1295 := unwrapped_fields1293[1].(*pb.Abstraction) + p.pretty_abstraction(field1295) + field1296 := unwrapped_fields1293[2].([]*pb.Attribute) + if field1296 != nil { p.newline() - opt_val1287 := field1286 - p.pretty_attrs(opt_val1287) + opt_val1297 := field1296 + p.pretty_attrs(opt_val1297) } p.dedent() p.write(")") @@ -3260,35 +3260,35 @@ func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { } func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { - flat1296 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) - if flat1296 != nil { - p.write(*flat1296) + flat1306 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1306 != nil { + p.write(*flat1306) return nil } else { _dollar_dollar := msg - var _t1696 []*pb.Attribute + var _t1716 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1696 = _dollar_dollar.GetAttrs() + _t1716 = _dollar_dollar.GetAttrs() } - fields1289 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1696} - unwrapped_fields1290 := fields1289 + fields1299 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1716} + unwrapped_fields1300 := fields1299 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1291 := unwrapped_fields1290[0].(*pb.Monoid) - p.pretty_monoid(field1291) + field1301 := unwrapped_fields1300[0].(*pb.Monoid) + p.pretty_monoid(field1301) p.newline() - field1292 := unwrapped_fields1290[1].(*pb.RelationId) - p.pretty_relation_id(field1292) + field1302 := unwrapped_fields1300[1].(*pb.RelationId) + p.pretty_relation_id(field1302) p.newline() - field1293 := unwrapped_fields1290[2].([]interface{}) - p.pretty_abstraction_with_arity(field1293) - field1294 := unwrapped_fields1290[3].([]*pb.Attribute) - if field1294 != nil { + field1303 := unwrapped_fields1300[2].([]interface{}) + p.pretty_abstraction_with_arity(field1303) + field1304 := unwrapped_fields1300[3].([]*pb.Attribute) + if field1304 != nil { p.newline() - opt_val1295 := field1294 - p.pretty_attrs(opt_val1295) + opt_val1305 := field1304 + p.pretty_attrs(opt_val1305) } p.dedent() p.write(")") @@ -3297,50 +3297,50 @@ func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { } func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { - flat1305 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) - if flat1305 != nil { - p.write(*flat1305) + flat1315 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1315 != nil { + p.write(*flat1315) return nil } else { _dollar_dollar := msg - var _t1697 *pb.OrMonoid + var _t1717 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1697 = _dollar_dollar.GetOrMonoid() + _t1717 = _dollar_dollar.GetOrMonoid() } - deconstruct_result1303 := _t1697 - if deconstruct_result1303 != nil { - unwrapped1304 := deconstruct_result1303 - p.pretty_or_monoid(unwrapped1304) + deconstruct_result1313 := _t1717 + if deconstruct_result1313 != nil { + unwrapped1314 := deconstruct_result1313 + p.pretty_or_monoid(unwrapped1314) } else { _dollar_dollar := msg - var _t1698 *pb.MinMonoid + var _t1718 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1698 = _dollar_dollar.GetMinMonoid() + _t1718 = _dollar_dollar.GetMinMonoid() } - deconstruct_result1301 := _t1698 - if deconstruct_result1301 != nil { - unwrapped1302 := deconstruct_result1301 - p.pretty_min_monoid(unwrapped1302) + deconstruct_result1311 := _t1718 + if deconstruct_result1311 != nil { + unwrapped1312 := deconstruct_result1311 + p.pretty_min_monoid(unwrapped1312) } else { _dollar_dollar := msg - var _t1699 *pb.MaxMonoid + var _t1719 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1699 = _dollar_dollar.GetMaxMonoid() + _t1719 = _dollar_dollar.GetMaxMonoid() } - deconstruct_result1299 := _t1699 - if deconstruct_result1299 != nil { - unwrapped1300 := deconstruct_result1299 - p.pretty_max_monoid(unwrapped1300) + deconstruct_result1309 := _t1719 + if deconstruct_result1309 != nil { + unwrapped1310 := deconstruct_result1309 + p.pretty_max_monoid(unwrapped1310) } else { _dollar_dollar := msg - var _t1700 *pb.SumMonoid + var _t1720 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1700 = _dollar_dollar.GetSumMonoid() + _t1720 = _dollar_dollar.GetSumMonoid() } - deconstruct_result1297 := _t1700 - if deconstruct_result1297 != nil { - unwrapped1298 := deconstruct_result1297 - p.pretty_sum_monoid(unwrapped1298) + deconstruct_result1307 := _t1720 + if deconstruct_result1307 != nil { + unwrapped1308 := deconstruct_result1307 + p.pretty_sum_monoid(unwrapped1308) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -3352,8 +3352,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1306 := msg - _ = fields1306 + fields1316 := msg + _ = fields1316 p.write("(") p.write("or") p.write(")") @@ -3361,19 +3361,19 @@ func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { } func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { - flat1309 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) - if flat1309 != nil { - p.write(*flat1309) + flat1319 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1319 != nil { + p.write(*flat1319) return nil } else { _dollar_dollar := msg - fields1307 := _dollar_dollar.GetType() - unwrapped_fields1308 := fields1307 + fields1317 := _dollar_dollar.GetType() + unwrapped_fields1318 := fields1317 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1308) + p.pretty_type(unwrapped_fields1318) p.dedent() p.write(")") } @@ -3381,19 +3381,19 @@ func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { } func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { - flat1312 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) - if flat1312 != nil { - p.write(*flat1312) + flat1322 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1322 != nil { + p.write(*flat1322) return nil } else { _dollar_dollar := msg - fields1310 := _dollar_dollar.GetType() - unwrapped_fields1311 := fields1310 + fields1320 := _dollar_dollar.GetType() + unwrapped_fields1321 := fields1320 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1311) + p.pretty_type(unwrapped_fields1321) p.dedent() p.write(")") } @@ -3401,19 +3401,19 @@ func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { } func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { - flat1315 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) - if flat1315 != nil { - p.write(*flat1315) + flat1325 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1325 != nil { + p.write(*flat1325) return nil } else { _dollar_dollar := msg - fields1313 := _dollar_dollar.GetType() - unwrapped_fields1314 := fields1313 + fields1323 := _dollar_dollar.GetType() + unwrapped_fields1324 := fields1323 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1314) + p.pretty_type(unwrapped_fields1324) p.dedent() p.write(")") } @@ -3421,35 +3421,35 @@ func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { } func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { - flat1323 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) - if flat1323 != nil { - p.write(*flat1323) + flat1333 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1333 != nil { + p.write(*flat1333) return nil } else { _dollar_dollar := msg - var _t1701 []*pb.Attribute + var _t1721 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1701 = _dollar_dollar.GetAttrs() + _t1721 = _dollar_dollar.GetAttrs() } - fields1316 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1701} - unwrapped_fields1317 := fields1316 + fields1326 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1721} + unwrapped_fields1327 := fields1326 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1318 := unwrapped_fields1317[0].(*pb.Monoid) - p.pretty_monoid(field1318) + field1328 := unwrapped_fields1327[0].(*pb.Monoid) + p.pretty_monoid(field1328) p.newline() - field1319 := unwrapped_fields1317[1].(*pb.RelationId) - p.pretty_relation_id(field1319) + field1329 := unwrapped_fields1327[1].(*pb.RelationId) + p.pretty_relation_id(field1329) p.newline() - field1320 := unwrapped_fields1317[2].([]interface{}) - p.pretty_abstraction_with_arity(field1320) - field1321 := unwrapped_fields1317[3].([]*pb.Attribute) - if field1321 != nil { + field1330 := unwrapped_fields1327[2].([]interface{}) + p.pretty_abstraction_with_arity(field1330) + field1331 := unwrapped_fields1327[3].([]*pb.Attribute) + if field1331 != nil { p.newline() - opt_val1322 := field1321 - p.pretty_attrs(opt_val1322) + opt_val1332 := field1331 + p.pretty_attrs(opt_val1332) } p.dedent() p.write(")") @@ -3458,29 +3458,29 @@ func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { } func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { - flat1330 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) - if flat1330 != nil { - p.write(*flat1330) + flat1340 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1340 != nil { + p.write(*flat1340) return nil } else { _dollar_dollar := msg - fields1324 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} - unwrapped_fields1325 := fields1324 + fields1334 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} + unwrapped_fields1335 := fields1334 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1326 := unwrapped_fields1325[0].(*pb.RelationId) - p.pretty_relation_id(field1326) + field1336 := unwrapped_fields1335[0].(*pb.RelationId) + p.pretty_relation_id(field1336) p.newline() - field1327 := unwrapped_fields1325[1].(*pb.Abstraction) - p.pretty_abstraction(field1327) + field1337 := unwrapped_fields1335[1].(*pb.Abstraction) + p.pretty_abstraction(field1337) p.newline() - field1328 := unwrapped_fields1325[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1328) + field1338 := unwrapped_fields1335[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1338) p.newline() - field1329 := unwrapped_fields1325[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1329) + field1339 := unwrapped_fields1335[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1339) p.dedent() p.write(")") } @@ -3488,22 +3488,22 @@ func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { } func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interface{} { - flat1334 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) - if flat1334 != nil { - p.write(*flat1334) + flat1344 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1344 != nil { + p.write(*flat1344) return nil } else { - fields1331 := msg + fields1341 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1331) == 0) { + if !(len(fields1341) == 0) { p.newline() - for i1333, elem1332 := range fields1331 { - if (i1333 > 0) { + for i1343, elem1342 := range fields1341 { + if (i1343 > 0) { p.newline() } - p.pretty_var(elem1332) + p.pretty_var(elem1342) } } p.dedent() @@ -3513,22 +3513,22 @@ func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interfa } func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) interface{} { - flat1338 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) - if flat1338 != nil { - p.write(*flat1338) + flat1348 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1348 != nil { + p.write(*flat1348) return nil } else { - fields1335 := msg + fields1345 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1335) == 0) { + if !(len(fields1345) == 0) { p.newline() - for i1337, elem1336 := range fields1335 { - if (i1337 > 0) { + for i1347, elem1346 := range fields1345 { + if (i1347 > 0) { p.newline() } - p.pretty_var(elem1336) + p.pretty_var(elem1346) } } p.dedent() @@ -3538,50 +3538,50 @@ func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) inter } func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { - flat1347 := p.tryFlat(msg, func() { p.pretty_data(msg) }) - if flat1347 != nil { - p.write(*flat1347) + flat1357 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1357 != nil { + p.write(*flat1357) return nil } else { _dollar_dollar := msg - var _t1702 *pb.EDB + var _t1722 *pb.EDB if hasProtoField(_dollar_dollar, "edb") { - _t1702 = _dollar_dollar.GetEdb() + _t1722 = _dollar_dollar.GetEdb() } - deconstruct_result1345 := _t1702 - if deconstruct_result1345 != nil { - unwrapped1346 := deconstruct_result1345 - p.pretty_edb(unwrapped1346) + deconstruct_result1355 := _t1722 + if deconstruct_result1355 != nil { + unwrapped1356 := deconstruct_result1355 + p.pretty_edb(unwrapped1356) } else { _dollar_dollar := msg - var _t1703 *pb.BeTreeRelation + var _t1723 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1703 = _dollar_dollar.GetBetreeRelation() + _t1723 = _dollar_dollar.GetBetreeRelation() } - deconstruct_result1343 := _t1703 - if deconstruct_result1343 != nil { - unwrapped1344 := deconstruct_result1343 - p.pretty_betree_relation(unwrapped1344) + deconstruct_result1353 := _t1723 + if deconstruct_result1353 != nil { + unwrapped1354 := deconstruct_result1353 + p.pretty_betree_relation(unwrapped1354) } else { _dollar_dollar := msg - var _t1704 *pb.CSVData + var _t1724 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1704 = _dollar_dollar.GetCsvData() + _t1724 = _dollar_dollar.GetCsvData() } - deconstruct_result1341 := _t1704 - if deconstruct_result1341 != nil { - unwrapped1342 := deconstruct_result1341 - p.pretty_csv_data(unwrapped1342) + deconstruct_result1351 := _t1724 + if deconstruct_result1351 != nil { + unwrapped1352 := deconstruct_result1351 + p.pretty_csv_data(unwrapped1352) } else { _dollar_dollar := msg - var _t1705 *pb.IcebergData + var _t1725 *pb.IcebergData if hasProtoField(_dollar_dollar, "iceberg_data") { - _t1705 = _dollar_dollar.GetIcebergData() + _t1725 = _dollar_dollar.GetIcebergData() } - deconstruct_result1339 := _t1705 - if deconstruct_result1339 != nil { - unwrapped1340 := deconstruct_result1339 - p.pretty_iceberg_data(unwrapped1340) + deconstruct_result1349 := _t1725 + if deconstruct_result1349 != nil { + unwrapped1350 := deconstruct_result1349 + p.pretty_iceberg_data(unwrapped1350) } else { panic(ParseError{msg: "No matching rule for data"}) } @@ -3593,26 +3593,26 @@ func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { } func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { - flat1353 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) - if flat1353 != nil { - p.write(*flat1353) + flat1363 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) + if flat1363 != nil { + p.write(*flat1363) return nil } else { _dollar_dollar := msg - fields1348 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} - unwrapped_fields1349 := fields1348 + fields1358 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} + unwrapped_fields1359 := fields1358 p.write("(") p.write("edb") p.indentSexp() p.newline() - field1350 := unwrapped_fields1349[0].(*pb.RelationId) - p.pretty_relation_id(field1350) + field1360 := unwrapped_fields1359[0].(*pb.RelationId) + p.pretty_relation_id(field1360) p.newline() - field1351 := unwrapped_fields1349[1].([]string) - p.pretty_edb_path(field1351) + field1361 := unwrapped_fields1359[1].([]string) + p.pretty_edb_path(field1361) p.newline() - field1352 := unwrapped_fields1349[2].([]*pb.Type) - p.pretty_edb_types(field1352) + field1362 := unwrapped_fields1359[2].([]*pb.Type) + p.pretty_edb_types(field1362) p.dedent() p.write(")") } @@ -3620,19 +3620,19 @@ func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { } func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { - flat1357 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) - if flat1357 != nil { - p.write(*flat1357) + flat1367 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) + if flat1367 != nil { + p.write(*flat1367) return nil } else { - fields1354 := msg + fields1364 := msg p.write("[") p.indent() - for i1356, elem1355 := range fields1354 { - if (i1356 > 0) { + for i1366, elem1365 := range fields1364 { + if (i1366 > 0) { p.newline() } - p.write(p.formatStringValue(elem1355)) + p.write(p.formatStringValue(elem1365)) } p.dedent() p.write("]") @@ -3641,19 +3641,19 @@ func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { - flat1361 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) - if flat1361 != nil { - p.write(*flat1361) + flat1371 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) + if flat1371 != nil { + p.write(*flat1371) return nil } else { - fields1358 := msg + fields1368 := msg p.write("[") p.indent() - for i1360, elem1359 := range fields1358 { - if (i1360 > 0) { + for i1370, elem1369 := range fields1368 { + if (i1370 > 0) { p.newline() } - p.pretty_type(elem1359) + p.pretty_type(elem1369) } p.dedent() p.write("]") @@ -3662,23 +3662,23 @@ func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { } func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface{} { - flat1366 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) - if flat1366 != nil { - p.write(*flat1366) + flat1376 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1376 != nil { + p.write(*flat1376) return nil } else { _dollar_dollar := msg - fields1362 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} - unwrapped_fields1363 := fields1362 + fields1372 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} + unwrapped_fields1373 := fields1372 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1364 := unwrapped_fields1363[0].(*pb.RelationId) - p.pretty_relation_id(field1364) + field1374 := unwrapped_fields1373[0].(*pb.RelationId) + p.pretty_relation_id(field1374) p.newline() - field1365 := unwrapped_fields1363[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1365) + field1375 := unwrapped_fields1373[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1375) p.dedent() p.write(")") } @@ -3686,27 +3686,27 @@ func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface } func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { - flat1372 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) - if flat1372 != nil { - p.write(*flat1372) + flat1382 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1382 != nil { + p.write(*flat1382) return nil } else { _dollar_dollar := msg - _t1706 := p.deconstruct_betree_info_config(_dollar_dollar) - fields1367 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1706} - unwrapped_fields1368 := fields1367 + _t1726 := p.deconstruct_betree_info_config(_dollar_dollar) + fields1377 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1726} + unwrapped_fields1378 := fields1377 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1369 := unwrapped_fields1368[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1369) + field1379 := unwrapped_fields1378[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1379) p.newline() - field1370 := unwrapped_fields1368[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1370) + field1380 := unwrapped_fields1378[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1380) p.newline() - field1371 := unwrapped_fields1368[2].([][]interface{}) - p.pretty_config_dict(field1371) + field1381 := unwrapped_fields1378[2].([][]interface{}) + p.pretty_config_dict(field1381) p.dedent() p.write(")") } @@ -3714,22 +3714,22 @@ func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { } func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} { - flat1376 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) - if flat1376 != nil { - p.write(*flat1376) + flat1386 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1386 != nil { + p.write(*flat1386) return nil } else { - fields1373 := msg + fields1383 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1373) == 0) { + if !(len(fields1383) == 0) { p.newline() - for i1375, elem1374 := range fields1373 { - if (i1375 > 0) { + for i1385, elem1384 := range fields1383 { + if (i1385 > 0) { p.newline() } - p.pretty_type(elem1374) + p.pretty_type(elem1384) } } p.dedent() @@ -3739,22 +3739,22 @@ func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} } func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface{} { - flat1380 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) - if flat1380 != nil { - p.write(*flat1380) + flat1390 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1390 != nil { + p.write(*flat1390) return nil } else { - fields1377 := msg + fields1387 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1377) == 0) { + if !(len(fields1387) == 0) { p.newline() - for i1379, elem1378 := range fields1377 { - if (i1379 > 0) { + for i1389, elem1388 := range fields1387 { + if (i1389 > 0) { p.newline() } - p.pretty_type(elem1378) + p.pretty_type(elem1388) } } p.dedent() @@ -3764,29 +3764,29 @@ func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface } func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { - flat1387 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) - if flat1387 != nil { - p.write(*flat1387) + flat1397 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1397 != nil { + p.write(*flat1397) return nil } else { _dollar_dollar := msg - fields1381 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} - unwrapped_fields1382 := fields1381 + fields1391 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} + unwrapped_fields1392 := fields1391 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1383 := unwrapped_fields1382[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1383) + field1393 := unwrapped_fields1392[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1393) p.newline() - field1384 := unwrapped_fields1382[1].(*pb.CSVConfig) - p.pretty_csv_config(field1384) + field1394 := unwrapped_fields1392[1].(*pb.CSVConfig) + p.pretty_csv_config(field1394) p.newline() - field1385 := unwrapped_fields1382[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1385) + field1395 := unwrapped_fields1392[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1395) p.newline() - field1386 := unwrapped_fields1382[3].(string) - p.pretty_csv_asof(field1386) + field1396 := unwrapped_fields1392[3].(string) + p.pretty_csv_asof(field1396) p.dedent() p.write(")") } @@ -3794,36 +3794,36 @@ func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { } func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { - flat1394 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) - if flat1394 != nil { - p.write(*flat1394) + flat1404 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1404 != nil { + p.write(*flat1404) return nil } else { _dollar_dollar := msg - var _t1707 []string + var _t1727 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1707 = _dollar_dollar.GetPaths() + _t1727 = _dollar_dollar.GetPaths() } - var _t1708 *string + var _t1728 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1708 = ptr(string(_dollar_dollar.GetInlineData())) + _t1728 = ptr(string(_dollar_dollar.GetInlineData())) } - fields1388 := []interface{}{_t1707, _t1708} - unwrapped_fields1389 := fields1388 + fields1398 := []interface{}{_t1727, _t1728} + unwrapped_fields1399 := fields1398 p.write("(") p.write("csv_locator") p.indentSexp() - field1390 := unwrapped_fields1389[0].([]string) - if field1390 != nil { + field1400 := unwrapped_fields1399[0].([]string) + if field1400 != nil { p.newline() - opt_val1391 := field1390 - p.pretty_csv_locator_paths(opt_val1391) + opt_val1401 := field1400 + p.pretty_csv_locator_paths(opt_val1401) } - field1392 := unwrapped_fields1389[1].(*string) - if field1392 != nil { + field1402 := unwrapped_fields1399[1].(*string) + if field1402 != nil { p.newline() - opt_val1393 := *field1392 - p.pretty_csv_locator_inline_data(opt_val1393) + opt_val1403 := *field1402 + p.pretty_csv_locator_inline_data(opt_val1403) } p.dedent() p.write(")") @@ -3832,22 +3832,22 @@ func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { - flat1398 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) - if flat1398 != nil { - p.write(*flat1398) + flat1408 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1408 != nil { + p.write(*flat1408) return nil } else { - fields1395 := msg + fields1405 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1395) == 0) { + if !(len(fields1405) == 0) { p.newline() - for i1397, elem1396 := range fields1395 { - if (i1397 > 0) { + for i1407, elem1406 := range fields1405 { + if (i1407 > 0) { p.newline() } - p.write(p.formatStringValue(elem1396)) + p.write(p.formatStringValue(elem1406)) } } p.dedent() @@ -3857,17 +3857,17 @@ func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { - flat1400 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) - if flat1400 != nil { - p.write(*flat1400) + flat1410 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1410 != nil { + p.write(*flat1410) return nil } else { - fields1399 := msg + fields1409 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1399)) + p.write(p.formatStringValue(fields1409)) p.dedent() p.write(")") } @@ -3875,20 +3875,20 @@ func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { } func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { - flat1403 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) - if flat1403 != nil { - p.write(*flat1403) + flat1413 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1413 != nil { + p.write(*flat1413) return nil } else { _dollar_dollar := msg - _t1709 := p.deconstruct_csv_config(_dollar_dollar) - fields1401 := _t1709 - unwrapped_fields1402 := fields1401 + _t1729 := p.deconstruct_csv_config(_dollar_dollar) + fields1411 := _t1729 + unwrapped_fields1412 := fields1411 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields1402) + p.pretty_config_dict(unwrapped_fields1412) p.dedent() p.write(")") } @@ -3896,22 +3896,22 @@ func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { } func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { - flat1407 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) - if flat1407 != nil { - p.write(*flat1407) + flat1417 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) + if flat1417 != nil { + p.write(*flat1417) return nil } else { - fields1404 := msg + fields1414 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1404) == 0) { + if !(len(fields1414) == 0) { p.newline() - for i1406, elem1405 := range fields1404 { - if (i1406 > 0) { + for i1416, elem1415 := range fields1414 { + if (i1416 > 0) { p.newline() } - p.pretty_gnf_column(elem1405) + p.pretty_gnf_column(elem1415) } } p.dedent() @@ -3921,38 +3921,38 @@ func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { - flat1416 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) - if flat1416 != nil { - p.write(*flat1416) + flat1426 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) + if flat1426 != nil { + p.write(*flat1426) return nil } else { _dollar_dollar := msg - var _t1710 *pb.RelationId + var _t1730 *pb.RelationId if hasProtoField(_dollar_dollar, "target_id") { - _t1710 = _dollar_dollar.GetTargetId() + _t1730 = _dollar_dollar.GetTargetId() } - fields1408 := []interface{}{_dollar_dollar.GetColumnPath(), _t1710, _dollar_dollar.GetTypes()} - unwrapped_fields1409 := fields1408 + fields1418 := []interface{}{_dollar_dollar.GetColumnPath(), _t1730, _dollar_dollar.GetTypes()} + unwrapped_fields1419 := fields1418 p.write("(") p.write("column") p.indentSexp() p.newline() - field1410 := unwrapped_fields1409[0].([]string) - p.pretty_gnf_column_path(field1410) - field1411 := unwrapped_fields1409[1].(*pb.RelationId) - if field1411 != nil { + field1420 := unwrapped_fields1419[0].([]string) + p.pretty_gnf_column_path(field1420) + field1421 := unwrapped_fields1419[1].(*pb.RelationId) + if field1421 != nil { p.newline() - opt_val1412 := field1411 - p.pretty_relation_id(opt_val1412) + opt_val1422 := field1421 + p.pretty_relation_id(opt_val1422) } p.newline() p.write("[") - field1413 := unwrapped_fields1409[2].([]*pb.Type) - for i1415, elem1414 := range field1413 { - if (i1415 > 0) { + field1423 := unwrapped_fields1419[2].([]*pb.Type) + for i1425, elem1424 := range field1423 { + if (i1425 > 0) { p.newline() } - p.pretty_type(elem1414) + p.pretty_type(elem1424) } p.write("]") p.dedent() @@ -3962,36 +3962,36 @@ func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { - flat1423 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) - if flat1423 != nil { - p.write(*flat1423) + flat1433 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) + if flat1433 != nil { + p.write(*flat1433) return nil } else { _dollar_dollar := msg - var _t1711 *string + var _t1731 *string if int64(len(_dollar_dollar)) == 1 { - _t1711 = ptr(_dollar_dollar[0]) + _t1731 = ptr(_dollar_dollar[0]) } - deconstruct_result1421 := _t1711 - if deconstruct_result1421 != nil { - unwrapped1422 := *deconstruct_result1421 - p.write(p.formatStringValue(unwrapped1422)) + deconstruct_result1431 := _t1731 + if deconstruct_result1431 != nil { + unwrapped1432 := *deconstruct_result1431 + p.write(p.formatStringValue(unwrapped1432)) } else { _dollar_dollar := msg - var _t1712 []string + var _t1732 []string if int64(len(_dollar_dollar)) != 1 { - _t1712 = _dollar_dollar + _t1732 = _dollar_dollar } - deconstruct_result1417 := _t1712 - if deconstruct_result1417 != nil { - unwrapped1418 := deconstruct_result1417 + deconstruct_result1427 := _t1732 + if deconstruct_result1427 != nil { + unwrapped1428 := deconstruct_result1427 p.write("[") p.indent() - for i1420, elem1419 := range unwrapped1418 { - if (i1420 > 0) { + for i1430, elem1429 := range unwrapped1428 { + if (i1430 > 0) { p.newline() } - p.write(p.formatStringValue(elem1419)) + p.write(p.formatStringValue(elem1429)) } p.dedent() p.write("]") @@ -4004,17 +4004,17 @@ func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { - flat1425 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) - if flat1425 != nil { - p.write(*flat1425) + flat1435 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1435 != nil { + p.write(*flat1435) return nil } else { - fields1424 := msg + fields1434 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1424)) + p.write(p.formatStringValue(fields1434)) p.dedent() p.write(")") } @@ -4022,43 +4022,60 @@ func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_data(msg *pb.IcebergData) interface{} { - flat1436 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) - if flat1436 != nil { - p.write(*flat1436) + flat1449 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) + if flat1449 != nil { + p.write(*flat1449) return nil } else { _dollar_dollar := msg - _t1713 := p.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) - _t1714 := p.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) - fields1426 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _t1713, _t1714, _dollar_dollar.GetReturnsDelta()} - unwrapped_fields1427 := fields1426 + var _t1733 []*pb.GNFColumn + if !(len(_dollar_dollar.GetColumns()) == 0) { + _t1733 = _dollar_dollar.GetColumns() + } + var _t1734 *pb.IcebergTarget + if hasProtoField(_dollar_dollar, "target") { + _t1734 = _dollar_dollar.GetTarget() + } + _t1735 := p.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1736 := p.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1436 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _t1733, _t1734, _t1735, _t1736, _dollar_dollar.GetReturnsDelta()} + unwrapped_fields1437 := fields1436 p.write("(") p.write("iceberg_data") p.indentSexp() p.newline() - field1428 := unwrapped_fields1427[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1428) - p.newline() - field1429 := unwrapped_fields1427[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1429) + field1438 := unwrapped_fields1437[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1438) p.newline() - field1430 := unwrapped_fields1427[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1430) - field1431 := unwrapped_fields1427[3].(*string) - if field1431 != nil { + field1439 := unwrapped_fields1437[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1439) + field1440 := unwrapped_fields1437[2].([]*pb.GNFColumn) + if field1440 != nil { + p.newline() + opt_val1441 := field1440 + p.pretty_gnf_columns(opt_val1441) + } + field1442 := unwrapped_fields1437[3].(*pb.IcebergTarget) + if field1442 != nil { + p.newline() + opt_val1443 := field1442 + p.pretty_full_table(opt_val1443) + } + field1444 := unwrapped_fields1437[4].(*string) + if field1444 != nil { p.newline() - opt_val1432 := *field1431 - p.pretty_iceberg_from_snapshot(opt_val1432) + opt_val1445 := *field1444 + p.pretty_iceberg_from_snapshot(opt_val1445) } - field1433 := unwrapped_fields1427[4].(*string) - if field1433 != nil { + field1446 := unwrapped_fields1437[5].(*string) + if field1446 != nil { p.newline() - opt_val1434 := *field1433 - p.pretty_iceberg_to_snapshot(opt_val1434) + opt_val1447 := *field1446 + p.pretty_iceberg_to_snapshot(opt_val1447) } p.newline() - field1435 := unwrapped_fields1427[5].(bool) - p.pretty_boolean_value(field1435) + field1448 := unwrapped_fields1437[6].(bool) + p.pretty_boolean_value(field1448) p.dedent() p.write(")") } @@ -4066,26 +4083,26 @@ func (p *PrettyPrinter) pretty_iceberg_data(msg *pb.IcebergData) interface{} { } func (p *PrettyPrinter) pretty_iceberg_locator(msg *pb.IcebergLocator) interface{} { - flat1442 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) - if flat1442 != nil { - p.write(*flat1442) + flat1455 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) + if flat1455 != nil { + p.write(*flat1455) return nil } else { _dollar_dollar := msg - fields1437 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} - unwrapped_fields1438 := fields1437 + fields1450 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} + unwrapped_fields1451 := fields1450 p.write("(") p.write("iceberg_locator") p.indentSexp() p.newline() - field1439 := unwrapped_fields1438[0].(string) - p.pretty_iceberg_locator_table_name(field1439) + field1452 := unwrapped_fields1451[0].(string) + p.pretty_iceberg_locator_table_name(field1452) p.newline() - field1440 := unwrapped_fields1438[1].([]string) - p.pretty_iceberg_locator_namespace(field1440) + field1453 := unwrapped_fields1451[1].([]string) + p.pretty_iceberg_locator_namespace(field1453) p.newline() - field1441 := unwrapped_fields1438[2].(string) - p.pretty_iceberg_locator_warehouse(field1441) + field1454 := unwrapped_fields1451[2].(string) + p.pretty_iceberg_locator_warehouse(field1454) p.dedent() p.write(")") } @@ -4093,17 +4110,17 @@ func (p *PrettyPrinter) pretty_iceberg_locator(msg *pb.IcebergLocator) interface } func (p *PrettyPrinter) pretty_iceberg_locator_table_name(msg string) interface{} { - flat1444 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_table_name(msg) }) - if flat1444 != nil { - p.write(*flat1444) + flat1457 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_table_name(msg) }) + if flat1457 != nil { + p.write(*flat1457) return nil } else { - fields1443 := msg + fields1456 := msg p.write("(") p.write("table_name") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1443)) + p.write(p.formatStringValue(fields1456)) p.dedent() p.write(")") } @@ -4111,22 +4128,22 @@ func (p *PrettyPrinter) pretty_iceberg_locator_table_name(msg string) interface{ } func (p *PrettyPrinter) pretty_iceberg_locator_namespace(msg []string) interface{} { - flat1448 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) - if flat1448 != nil { - p.write(*flat1448) + flat1461 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) + if flat1461 != nil { + p.write(*flat1461) return nil } else { - fields1445 := msg + fields1458 := msg p.write("(") p.write("namespace") p.indentSexp() - if !(len(fields1445) == 0) { + if !(len(fields1458) == 0) { p.newline() - for i1447, elem1446 := range fields1445 { - if (i1447 > 0) { + for i1460, elem1459 := range fields1458 { + if (i1460 > 0) { p.newline() } - p.write(p.formatStringValue(elem1446)) + p.write(p.formatStringValue(elem1459)) } } p.dedent() @@ -4136,17 +4153,17 @@ func (p *PrettyPrinter) pretty_iceberg_locator_namespace(msg []string) interface } func (p *PrettyPrinter) pretty_iceberg_locator_warehouse(msg string) interface{} { - flat1450 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_warehouse(msg) }) - if flat1450 != nil { - p.write(*flat1450) + flat1463 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_warehouse(msg) }) + if flat1463 != nil { + p.write(*flat1463) return nil } else { - fields1449 := msg + fields1462 := msg p.write("(") p.write("warehouse") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1449)) + p.write(p.formatStringValue(fields1462)) p.dedent() p.write(")") } @@ -4154,33 +4171,33 @@ func (p *PrettyPrinter) pretty_iceberg_locator_warehouse(msg string) interface{} } func (p *PrettyPrinter) pretty_iceberg_catalog_config(msg *pb.IcebergCatalogConfig) interface{} { - flat1458 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config(msg) }) - if flat1458 != nil { - p.write(*flat1458) + flat1471 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config(msg) }) + if flat1471 != nil { + p.write(*flat1471) return nil } else { _dollar_dollar := msg - _t1715 := p.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) - fields1451 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1715, dictToPairs(_dollar_dollar.GetProperties()), dictToPairs(_dollar_dollar.GetAuthProperties())} - unwrapped_fields1452 := fields1451 + _t1737 := p.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1464 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1737, dictToPairs(_dollar_dollar.GetProperties()), dictToPairs(_dollar_dollar.GetAuthProperties())} + unwrapped_fields1465 := fields1464 p.write("(") p.write("iceberg_catalog_config") p.indentSexp() p.newline() - field1453 := unwrapped_fields1452[0].(string) - p.pretty_iceberg_catalog_uri(field1453) - field1454 := unwrapped_fields1452[1].(*string) - if field1454 != nil { + field1466 := unwrapped_fields1465[0].(string) + p.pretty_iceberg_catalog_uri(field1466) + field1467 := unwrapped_fields1465[1].(*string) + if field1467 != nil { p.newline() - opt_val1455 := *field1454 - p.pretty_iceberg_catalog_config_scope(opt_val1455) + opt_val1468 := *field1467 + p.pretty_iceberg_catalog_config_scope(opt_val1468) } p.newline() - field1456 := unwrapped_fields1452[2].([][]interface{}) - p.pretty_iceberg_properties(field1456) + field1469 := unwrapped_fields1465[2].([][]interface{}) + p.pretty_iceberg_properties(field1469) p.newline() - field1457 := unwrapped_fields1452[3].([][]interface{}) - p.pretty_iceberg_auth_properties(field1457) + field1470 := unwrapped_fields1465[3].([][]interface{}) + p.pretty_iceberg_auth_properties(field1470) p.dedent() p.write(")") } @@ -4188,17 +4205,17 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_config(msg *pb.IcebergCatalogConf } func (p *PrettyPrinter) pretty_iceberg_catalog_uri(msg string) interface{} { - flat1460 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_uri(msg) }) - if flat1460 != nil { - p.write(*flat1460) + flat1473 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_uri(msg) }) + if flat1473 != nil { + p.write(*flat1473) return nil } else { - fields1459 := msg + fields1472 := msg p.write("(") p.write("catalog_uri") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1459)) + p.write(p.formatStringValue(fields1472)) p.dedent() p.write(")") } @@ -4206,17 +4223,17 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_uri(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_catalog_config_scope(msg string) interface{} { - flat1462 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config_scope(msg) }) - if flat1462 != nil { - p.write(*flat1462) + flat1475 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config_scope(msg) }) + if flat1475 != nil { + p.write(*flat1475) return nil } else { - fields1461 := msg + fields1474 := msg p.write("(") p.write("scope") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1461)) + p.write(p.formatStringValue(fields1474)) p.dedent() p.write(")") } @@ -4224,22 +4241,22 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_config_scope(msg string) interfac } func (p *PrettyPrinter) pretty_iceberg_properties(msg [][]interface{}) interface{} { - flat1466 := p.tryFlat(msg, func() { p.pretty_iceberg_properties(msg) }) - if flat1466 != nil { - p.write(*flat1466) + flat1479 := p.tryFlat(msg, func() { p.pretty_iceberg_properties(msg) }) + if flat1479 != nil { + p.write(*flat1479) return nil } else { - fields1463 := msg + fields1476 := msg p.write("(") p.write("properties") p.indentSexp() - if !(len(fields1463) == 0) { + if !(len(fields1476) == 0) { p.newline() - for i1465, elem1464 := range fields1463 { - if (i1465 > 0) { + for i1478, elem1477 := range fields1476 { + if (i1478 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1464) + p.pretty_iceberg_property_entry(elem1477) } } p.dedent() @@ -4249,23 +4266,23 @@ func (p *PrettyPrinter) pretty_iceberg_properties(msg [][]interface{}) interface } func (p *PrettyPrinter) pretty_iceberg_property_entry(msg []interface{}) interface{} { - flat1471 := p.tryFlat(msg, func() { p.pretty_iceberg_property_entry(msg) }) - if flat1471 != nil { - p.write(*flat1471) + flat1484 := p.tryFlat(msg, func() { p.pretty_iceberg_property_entry(msg) }) + if flat1484 != nil { + p.write(*flat1484) return nil } else { _dollar_dollar := msg - fields1467 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} - unwrapped_fields1468 := fields1467 + fields1480 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} + unwrapped_fields1481 := fields1480 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1469 := unwrapped_fields1468[0].(string) - p.write(p.formatStringValue(field1469)) + field1482 := unwrapped_fields1481[0].(string) + p.write(p.formatStringValue(field1482)) p.newline() - field1470 := unwrapped_fields1468[1].(string) - p.write(p.formatStringValue(field1470)) + field1483 := unwrapped_fields1481[1].(string) + p.write(p.formatStringValue(field1483)) p.dedent() p.write(")") } @@ -4273,22 +4290,22 @@ func (p *PrettyPrinter) pretty_iceberg_property_entry(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_iceberg_auth_properties(msg [][]interface{}) interface{} { - flat1475 := p.tryFlat(msg, func() { p.pretty_iceberg_auth_properties(msg) }) - if flat1475 != nil { - p.write(*flat1475) + flat1488 := p.tryFlat(msg, func() { p.pretty_iceberg_auth_properties(msg) }) + if flat1488 != nil { + p.write(*flat1488) return nil } else { - fields1472 := msg + fields1485 := msg p.write("(") p.write("auth_properties") p.indentSexp() - if !(len(fields1472) == 0) { + if !(len(fields1485) == 0) { p.newline() - for i1474, elem1473 := range fields1472 { - if (i1474 > 0) { + for i1487, elem1486 := range fields1485 { + if (i1487 > 0) { p.newline() } - p.pretty_iceberg_masked_property_entry(elem1473) + p.pretty_iceberg_masked_property_entry(elem1486) } } p.dedent() @@ -4298,24 +4315,55 @@ func (p *PrettyPrinter) pretty_iceberg_auth_properties(msg [][]interface{}) inte } func (p *PrettyPrinter) pretty_iceberg_masked_property_entry(msg []interface{}) interface{} { - flat1480 := p.tryFlat(msg, func() { p.pretty_iceberg_masked_property_entry(msg) }) - if flat1480 != nil { - p.write(*flat1480) + flat1493 := p.tryFlat(msg, func() { p.pretty_iceberg_masked_property_entry(msg) }) + if flat1493 != nil { + p.write(*flat1493) return nil } else { _dollar_dollar := msg - _t1716 := p.mask_secret_value(_dollar_dollar) - fields1476 := []interface{}{_dollar_dollar[0].(string), _t1716} - unwrapped_fields1477 := fields1476 + _t1738 := p.mask_secret_value(_dollar_dollar) + fields1489 := []interface{}{_dollar_dollar[0].(string), _t1738} + unwrapped_fields1490 := fields1489 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1478 := unwrapped_fields1477[0].(string) - p.write(p.formatStringValue(field1478)) + field1491 := unwrapped_fields1490[0].(string) + p.write(p.formatStringValue(field1491)) p.newline() - field1479 := unwrapped_fields1477[1].(string) - p.write(p.formatStringValue(field1479)) + field1492 := unwrapped_fields1490[1].(string) + p.write(p.formatStringValue(field1492)) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_full_table(msg *pb.IcebergTarget) interface{} { + flat1500 := p.tryFlat(msg, func() { p.pretty_full_table(msg) }) + if flat1500 != nil { + p.write(*flat1500) + return nil + } else { + _dollar_dollar := msg + fields1494 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetTypes()} + unwrapped_fields1495 := fields1494 + p.write("(") + p.write("full_table") + p.indentSexp() + p.newline() + field1496 := unwrapped_fields1495[0].(*pb.RelationId) + p.pretty_relation_id(field1496) + p.newline() + p.write("[") + field1497 := unwrapped_fields1495[1].([]*pb.Type) + for i1499, elem1498 := range field1497 { + if (i1499 > 0) { + p.newline() + } + p.pretty_type(elem1498) + } + p.write("]") p.dedent() p.write(")") } @@ -4323,17 +4371,17 @@ func (p *PrettyPrinter) pretty_iceberg_masked_property_entry(msg []interface{}) } func (p *PrettyPrinter) pretty_iceberg_from_snapshot(msg string) interface{} { - flat1482 := p.tryFlat(msg, func() { p.pretty_iceberg_from_snapshot(msg) }) - if flat1482 != nil { - p.write(*flat1482) + flat1502 := p.tryFlat(msg, func() { p.pretty_iceberg_from_snapshot(msg) }) + if flat1502 != nil { + p.write(*flat1502) return nil } else { - fields1481 := msg + fields1501 := msg p.write("(") p.write("from_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1481)) + p.write(p.formatStringValue(fields1501)) p.dedent() p.write(")") } @@ -4341,17 +4389,17 @@ func (p *PrettyPrinter) pretty_iceberg_from_snapshot(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_to_snapshot(msg string) interface{} { - flat1484 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) - if flat1484 != nil { - p.write(*flat1484) + flat1504 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) + if flat1504 != nil { + p.write(*flat1504) return nil } else { - fields1483 := msg + fields1503 := msg p.write("(") p.write("to_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1483)) + p.write(p.formatStringValue(fields1503)) p.dedent() p.write(")") } @@ -4359,19 +4407,19 @@ func (p *PrettyPrinter) pretty_iceberg_to_snapshot(msg string) interface{} { } func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { - flat1487 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) - if flat1487 != nil { - p.write(*flat1487) + flat1507 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1507 != nil { + p.write(*flat1507) return nil } else { _dollar_dollar := msg - fields1485 := _dollar_dollar.GetFragmentId() - unwrapped_fields1486 := fields1485 + fields1505 := _dollar_dollar.GetFragmentId() + unwrapped_fields1506 := fields1505 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1486) + p.pretty_fragment_id(unwrapped_fields1506) p.dedent() p.write(")") } @@ -4379,24 +4427,24 @@ func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { } func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { - flat1492 := p.tryFlat(msg, func() { p.pretty_context(msg) }) - if flat1492 != nil { - p.write(*flat1492) + flat1512 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1512 != nil { + p.write(*flat1512) return nil } else { _dollar_dollar := msg - fields1488 := _dollar_dollar.GetRelations() - unwrapped_fields1489 := fields1488 + fields1508 := _dollar_dollar.GetRelations() + unwrapped_fields1509 := fields1508 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1489) == 0) { + if !(len(unwrapped_fields1509) == 0) { p.newline() - for i1491, elem1490 := range unwrapped_fields1489 { - if (i1491 > 0) { + for i1511, elem1510 := range unwrapped_fields1509 { + if (i1511 > 0) { p.newline() } - p.pretty_relation_id(elem1490) + p.pretty_relation_id(elem1510) } } p.dedent() @@ -4406,28 +4454,28 @@ func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { } func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { - flat1499 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) - if flat1499 != nil { - p.write(*flat1499) + flat1519 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1519 != nil { + p.write(*flat1519) return nil } else { _dollar_dollar := msg - fields1493 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} - unwrapped_fields1494 := fields1493 + fields1513 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} + unwrapped_fields1514 := fields1513 p.write("(") p.write("snapshot") p.indentSexp() p.newline() - field1495 := unwrapped_fields1494[0].([]string) - p.pretty_edb_path(field1495) - field1496 := unwrapped_fields1494[1].([]*pb.SnapshotMapping) - if !(len(field1496) == 0) { + field1515 := unwrapped_fields1514[0].([]string) + p.pretty_edb_path(field1515) + field1516 := unwrapped_fields1514[1].([]*pb.SnapshotMapping) + if !(len(field1516) == 0) { p.newline() - for i1498, elem1497 := range field1496 { - if (i1498 > 0) { + for i1518, elem1517 := range field1516 { + if (i1518 > 0) { p.newline() } - p.pretty_snapshot_mapping(elem1497) + p.pretty_snapshot_mapping(elem1517) } } p.dedent() @@ -4437,40 +4485,40 @@ func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { } func (p *PrettyPrinter) pretty_snapshot_mapping(msg *pb.SnapshotMapping) interface{} { - flat1504 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) - if flat1504 != nil { - p.write(*flat1504) + flat1524 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) + if flat1524 != nil { + p.write(*flat1524) return nil } else { _dollar_dollar := msg - fields1500 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} - unwrapped_fields1501 := fields1500 - field1502 := unwrapped_fields1501[0].([]string) - p.pretty_edb_path(field1502) + fields1520 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} + unwrapped_fields1521 := fields1520 + field1522 := unwrapped_fields1521[0].([]string) + p.pretty_edb_path(field1522) p.write(" ") - field1503 := unwrapped_fields1501[1].(*pb.RelationId) - p.pretty_relation_id(field1503) + field1523 := unwrapped_fields1521[1].(*pb.RelationId) + p.pretty_relation_id(field1523) } return nil } func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { - flat1508 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) - if flat1508 != nil { - p.write(*flat1508) + flat1528 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1528 != nil { + p.write(*flat1528) return nil } else { - fields1505 := msg + fields1525 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1505) == 0) { + if !(len(fields1525) == 0) { p.newline() - for i1507, elem1506 := range fields1505 { - if (i1507 > 0) { + for i1527, elem1526 := range fields1525 { + if (i1527 > 0) { p.newline() } - p.pretty_read(elem1506) + p.pretty_read(elem1526) } } p.dedent() @@ -4480,60 +4528,60 @@ func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { } func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { - flat1519 := p.tryFlat(msg, func() { p.pretty_read(msg) }) - if flat1519 != nil { - p.write(*flat1519) + flat1539 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1539 != nil { + p.write(*flat1539) return nil } else { _dollar_dollar := msg - var _t1717 *pb.Demand + var _t1739 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1717 = _dollar_dollar.GetDemand() + _t1739 = _dollar_dollar.GetDemand() } - deconstruct_result1517 := _t1717 - if deconstruct_result1517 != nil { - unwrapped1518 := deconstruct_result1517 - p.pretty_demand(unwrapped1518) + deconstruct_result1537 := _t1739 + if deconstruct_result1537 != nil { + unwrapped1538 := deconstruct_result1537 + p.pretty_demand(unwrapped1538) } else { _dollar_dollar := msg - var _t1718 *pb.Output + var _t1740 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1718 = _dollar_dollar.GetOutput() + _t1740 = _dollar_dollar.GetOutput() } - deconstruct_result1515 := _t1718 - if deconstruct_result1515 != nil { - unwrapped1516 := deconstruct_result1515 - p.pretty_output(unwrapped1516) + deconstruct_result1535 := _t1740 + if deconstruct_result1535 != nil { + unwrapped1536 := deconstruct_result1535 + p.pretty_output(unwrapped1536) } else { _dollar_dollar := msg - var _t1719 *pb.WhatIf + var _t1741 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1719 = _dollar_dollar.GetWhatIf() + _t1741 = _dollar_dollar.GetWhatIf() } - deconstruct_result1513 := _t1719 - if deconstruct_result1513 != nil { - unwrapped1514 := deconstruct_result1513 - p.pretty_what_if(unwrapped1514) + deconstruct_result1533 := _t1741 + if deconstruct_result1533 != nil { + unwrapped1534 := deconstruct_result1533 + p.pretty_what_if(unwrapped1534) } else { _dollar_dollar := msg - var _t1720 *pb.Abort + var _t1742 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1720 = _dollar_dollar.GetAbort() + _t1742 = _dollar_dollar.GetAbort() } - deconstruct_result1511 := _t1720 - if deconstruct_result1511 != nil { - unwrapped1512 := deconstruct_result1511 - p.pretty_abort(unwrapped1512) + deconstruct_result1531 := _t1742 + if deconstruct_result1531 != nil { + unwrapped1532 := deconstruct_result1531 + p.pretty_abort(unwrapped1532) } else { _dollar_dollar := msg - var _t1721 *pb.Export + var _t1743 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1721 = _dollar_dollar.GetExport() + _t1743 = _dollar_dollar.GetExport() } - deconstruct_result1509 := _t1721 - if deconstruct_result1509 != nil { - unwrapped1510 := deconstruct_result1509 - p.pretty_export(unwrapped1510) + deconstruct_result1529 := _t1743 + if deconstruct_result1529 != nil { + unwrapped1530 := deconstruct_result1529 + p.pretty_export(unwrapped1530) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -4546,19 +4594,19 @@ func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { } func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { - flat1522 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) - if flat1522 != nil { - p.write(*flat1522) + flat1542 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1542 != nil { + p.write(*flat1542) return nil } else { _dollar_dollar := msg - fields1520 := _dollar_dollar.GetRelationId() - unwrapped_fields1521 := fields1520 + fields1540 := _dollar_dollar.GetRelationId() + unwrapped_fields1541 := fields1540 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1521) + p.pretty_relation_id(unwrapped_fields1541) p.dedent() p.write(")") } @@ -4566,23 +4614,23 @@ func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { } func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { - flat1527 := p.tryFlat(msg, func() { p.pretty_output(msg) }) - if flat1527 != nil { - p.write(*flat1527) + flat1547 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1547 != nil { + p.write(*flat1547) return nil } else { _dollar_dollar := msg - fields1523 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} - unwrapped_fields1524 := fields1523 + fields1543 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} + unwrapped_fields1544 := fields1543 p.write("(") p.write("output") p.indentSexp() p.newline() - field1525 := unwrapped_fields1524[0].(string) - p.pretty_name(field1525) + field1545 := unwrapped_fields1544[0].(string) + p.pretty_name(field1545) p.newline() - field1526 := unwrapped_fields1524[1].(*pb.RelationId) - p.pretty_relation_id(field1526) + field1546 := unwrapped_fields1544[1].(*pb.RelationId) + p.pretty_relation_id(field1546) p.dedent() p.write(")") } @@ -4590,23 +4638,23 @@ func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { } func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { - flat1532 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) - if flat1532 != nil { - p.write(*flat1532) + flat1552 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1552 != nil { + p.write(*flat1552) return nil } else { _dollar_dollar := msg - fields1528 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} - unwrapped_fields1529 := fields1528 + fields1548 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} + unwrapped_fields1549 := fields1548 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1530 := unwrapped_fields1529[0].(string) - p.pretty_name(field1530) + field1550 := unwrapped_fields1549[0].(string) + p.pretty_name(field1550) p.newline() - field1531 := unwrapped_fields1529[1].(*pb.Epoch) - p.pretty_epoch(field1531) + field1551 := unwrapped_fields1549[1].(*pb.Epoch) + p.pretty_epoch(field1551) p.dedent() p.write(")") } @@ -4614,30 +4662,30 @@ func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { } func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { - flat1538 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) - if flat1538 != nil { - p.write(*flat1538) + flat1558 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1558 != nil { + p.write(*flat1558) return nil } else { _dollar_dollar := msg - var _t1722 *string + var _t1744 *string if _dollar_dollar.GetName() != "abort" { - _t1722 = ptr(_dollar_dollar.GetName()) + _t1744 = ptr(_dollar_dollar.GetName()) } - fields1533 := []interface{}{_t1722, _dollar_dollar.GetRelationId()} - unwrapped_fields1534 := fields1533 + fields1553 := []interface{}{_t1744, _dollar_dollar.GetRelationId()} + unwrapped_fields1554 := fields1553 p.write("(") p.write("abort") p.indentSexp() - field1535 := unwrapped_fields1534[0].(*string) - if field1535 != nil { + field1555 := unwrapped_fields1554[0].(*string) + if field1555 != nil { p.newline() - opt_val1536 := *field1535 - p.pretty_name(opt_val1536) + opt_val1556 := *field1555 + p.pretty_name(opt_val1556) } p.newline() - field1537 := unwrapped_fields1534[1].(*pb.RelationId) - p.pretty_relation_id(field1537) + field1557 := unwrapped_fields1554[1].(*pb.RelationId) + p.pretty_relation_id(field1557) p.dedent() p.write(")") } @@ -4645,40 +4693,40 @@ func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { } func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { - flat1543 := p.tryFlat(msg, func() { p.pretty_export(msg) }) - if flat1543 != nil { - p.write(*flat1543) + flat1563 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1563 != nil { + p.write(*flat1563) return nil } else { _dollar_dollar := msg - var _t1723 *pb.ExportCSVConfig + var _t1745 *pb.ExportCSVConfig if hasProtoField(_dollar_dollar, "csv_config") { - _t1723 = _dollar_dollar.GetCsvConfig() + _t1745 = _dollar_dollar.GetCsvConfig() } - deconstruct_result1541 := _t1723 - if deconstruct_result1541 != nil { - unwrapped1542 := deconstruct_result1541 + deconstruct_result1561 := _t1745 + if deconstruct_result1561 != nil { + unwrapped1562 := deconstruct_result1561 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped1542) + p.pretty_export_csv_config(unwrapped1562) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1724 *pb.ExportIcebergConfig + var _t1746 *pb.ExportIcebergConfig if hasProtoField(_dollar_dollar, "iceberg_config") { - _t1724 = _dollar_dollar.GetIcebergConfig() + _t1746 = _dollar_dollar.GetIcebergConfig() } - deconstruct_result1539 := _t1724 - if deconstruct_result1539 != nil { - unwrapped1540 := deconstruct_result1539 + deconstruct_result1559 := _t1746 + if deconstruct_result1559 != nil { + unwrapped1560 := deconstruct_result1559 p.write("(") p.write("export_iceberg") p.indentSexp() p.newline() - p.pretty_export_iceberg_config(unwrapped1540) + p.pretty_export_iceberg_config(unwrapped1560) p.dedent() p.write(")") } else { @@ -4690,55 +4738,55 @@ func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { } func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interface{} { - flat1554 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) - if flat1554 != nil { - p.write(*flat1554) + flat1574 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1574 != nil { + p.write(*flat1574) return nil } else { _dollar_dollar := msg - var _t1725 []interface{} + var _t1747 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) == 0 { - _t1725 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + _t1747 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} } - deconstruct_result1549 := _t1725 - if deconstruct_result1549 != nil { - unwrapped1550 := deconstruct_result1549 + deconstruct_result1569 := _t1747 + if deconstruct_result1569 != nil { + unwrapped1570 := deconstruct_result1569 p.write("(") p.write("export_csv_config_v2") p.indentSexp() p.newline() - field1551 := unwrapped1550[0].(string) - p.pretty_export_csv_path(field1551) + field1571 := unwrapped1570[0].(string) + p.pretty_export_csv_path(field1571) p.newline() - field1552 := unwrapped1550[1].(*pb.ExportCSVSource) - p.pretty_export_csv_source(field1552) + field1572 := unwrapped1570[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1572) p.newline() - field1553 := unwrapped1550[2].(*pb.CSVConfig) - p.pretty_csv_config(field1553) + field1573 := unwrapped1570[2].(*pb.CSVConfig) + p.pretty_csv_config(field1573) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1726 []interface{} + var _t1748 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) != 0 { - _t1727 := p.deconstruct_export_csv_config(_dollar_dollar) - _t1726 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1727} + _t1749 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1748 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1749} } - deconstruct_result1544 := _t1726 - if deconstruct_result1544 != nil { - unwrapped1545 := deconstruct_result1544 + deconstruct_result1564 := _t1748 + if deconstruct_result1564 != nil { + unwrapped1565 := deconstruct_result1564 p.write("(") p.write("export_csv_config") p.indentSexp() p.newline() - field1546 := unwrapped1545[0].(string) - p.pretty_export_csv_path(field1546) + field1566 := unwrapped1565[0].(string) + p.pretty_export_csv_path(field1566) p.newline() - field1547 := unwrapped1545[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns_list(field1547) + field1567 := unwrapped1565[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1567) p.newline() - field1548 := unwrapped1545[2].([][]interface{}) - p.pretty_config_dict(field1548) + field1568 := unwrapped1565[2].([][]interface{}) + p.pretty_config_dict(field1568) p.dedent() p.write(")") } else { @@ -4750,17 +4798,17 @@ func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interf } func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { - flat1556 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) - if flat1556 != nil { - p.write(*flat1556) + flat1576 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1576 != nil { + p.write(*flat1576) return nil } else { - fields1555 := msg + fields1575 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1555)) + p.write(p.formatStringValue(fields1575)) p.dedent() p.write(")") } @@ -4768,47 +4816,47 @@ func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { } func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interface{} { - flat1563 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) - if flat1563 != nil { - p.write(*flat1563) + flat1583 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1583 != nil { + p.write(*flat1583) return nil } else { _dollar_dollar := msg - var _t1728 []*pb.ExportCSVColumn + var _t1750 []*pb.ExportCSVColumn if hasProtoField(_dollar_dollar, "gnf_columns") { - _t1728 = _dollar_dollar.GetGnfColumns().GetColumns() + _t1750 = _dollar_dollar.GetGnfColumns().GetColumns() } - deconstruct_result1559 := _t1728 - if deconstruct_result1559 != nil { - unwrapped1560 := deconstruct_result1559 + deconstruct_result1579 := _t1750 + if deconstruct_result1579 != nil { + unwrapped1580 := deconstruct_result1579 p.write("(") p.write("gnf_columns") p.indentSexp() - if !(len(unwrapped1560) == 0) { + if !(len(unwrapped1580) == 0) { p.newline() - for i1562, elem1561 := range unwrapped1560 { - if (i1562 > 0) { + for i1582, elem1581 := range unwrapped1580 { + if (i1582 > 0) { p.newline() } - p.pretty_export_csv_column(elem1561) + p.pretty_export_csv_column(elem1581) } } p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1729 *pb.RelationId + var _t1751 *pb.RelationId if hasProtoField(_dollar_dollar, "table_def") { - _t1729 = _dollar_dollar.GetTableDef() + _t1751 = _dollar_dollar.GetTableDef() } - deconstruct_result1557 := _t1729 - if deconstruct_result1557 != nil { - unwrapped1558 := deconstruct_result1557 + deconstruct_result1577 := _t1751 + if deconstruct_result1577 != nil { + unwrapped1578 := deconstruct_result1577 p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped1558) + p.pretty_relation_id(unwrapped1578) p.dedent() p.write(")") } else { @@ -4820,23 +4868,23 @@ func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interf } func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interface{} { - flat1568 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) - if flat1568 != nil { - p.write(*flat1568) + flat1588 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1588 != nil { + p.write(*flat1588) return nil } else { _dollar_dollar := msg - fields1564 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} - unwrapped_fields1565 := fields1564 + fields1584 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} + unwrapped_fields1585 := fields1584 p.write("(") p.write("column") p.indentSexp() p.newline() - field1566 := unwrapped_fields1565[0].(string) - p.write(p.formatStringValue(field1566)) + field1586 := unwrapped_fields1585[0].(string) + p.write(p.formatStringValue(field1586)) p.newline() - field1567 := unwrapped_fields1565[1].(*pb.RelationId) - p.pretty_relation_id(field1567) + field1587 := unwrapped_fields1585[1].(*pb.RelationId) + p.pretty_relation_id(field1587) p.dedent() p.write(")") } @@ -4844,22 +4892,22 @@ func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interf } func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn) interface{} { - flat1572 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) - if flat1572 != nil { - p.write(*flat1572) + flat1592 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1592 != nil { + p.write(*flat1592) return nil } else { - fields1569 := msg + fields1589 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1569) == 0) { + if !(len(fields1589) == 0) { p.newline() - for i1571, elem1570 := range fields1569 { - if (i1571 > 0) { + for i1591, elem1590 := range fields1589 { + if (i1591 > 0) { p.newline() } - p.pretty_export_csv_column(elem1570) + p.pretty_export_csv_column(elem1590) } } p.dedent() @@ -4869,35 +4917,35 @@ func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn } func (p *PrettyPrinter) pretty_export_iceberg_config(msg *pb.ExportIcebergConfig) interface{} { - flat1581 := p.tryFlat(msg, func() { p.pretty_export_iceberg_config(msg) }) - if flat1581 != nil { - p.write(*flat1581) + flat1601 := p.tryFlat(msg, func() { p.pretty_export_iceberg_config(msg) }) + if flat1601 != nil { + p.write(*flat1601) return nil } else { _dollar_dollar := msg - _t1730 := p.deconstruct_export_iceberg_config_optional(_dollar_dollar) - fields1573 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetTableDef(), dictToPairs(_dollar_dollar.GetTableProperties()), _t1730} - unwrapped_fields1574 := fields1573 + _t1752 := p.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1593 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetTableDef(), dictToPairs(_dollar_dollar.GetTableProperties()), _t1752} + unwrapped_fields1594 := fields1593 p.write("(") p.write("export_iceberg_config") p.indentSexp() p.newline() - field1575 := unwrapped_fields1574[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1575) + field1595 := unwrapped_fields1594[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1595) p.newline() - field1576 := unwrapped_fields1574[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1576) + field1596 := unwrapped_fields1594[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1596) p.newline() - field1577 := unwrapped_fields1574[2].(*pb.RelationId) - p.pretty_export_iceberg_table_def(field1577) + field1597 := unwrapped_fields1594[2].(*pb.RelationId) + p.pretty_export_iceberg_table_def(field1597) p.newline() - field1578 := unwrapped_fields1574[3].([][]interface{}) - p.pretty_iceberg_table_properties(field1578) - field1579 := unwrapped_fields1574[4].([][]interface{}) - if field1579 != nil { + field1598 := unwrapped_fields1594[3].([][]interface{}) + p.pretty_iceberg_table_properties(field1598) + field1599 := unwrapped_fields1594[4].([][]interface{}) + if field1599 != nil { p.newline() - opt_val1580 := field1579 - p.pretty_config_dict(opt_val1580) + opt_val1600 := field1599 + p.pretty_config_dict(opt_val1600) } p.dedent() p.write(")") @@ -4906,17 +4954,17 @@ func (p *PrettyPrinter) pretty_export_iceberg_config(msg *pb.ExportIcebergConfig } func (p *PrettyPrinter) pretty_export_iceberg_table_def(msg *pb.RelationId) interface{} { - flat1583 := p.tryFlat(msg, func() { p.pretty_export_iceberg_table_def(msg) }) - if flat1583 != nil { - p.write(*flat1583) + flat1603 := p.tryFlat(msg, func() { p.pretty_export_iceberg_table_def(msg) }) + if flat1603 != nil { + p.write(*flat1603) return nil } else { - fields1582 := msg + fields1602 := msg p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(fields1582) + p.pretty_relation_id(fields1602) p.dedent() p.write(")") } @@ -4924,22 +4972,22 @@ func (p *PrettyPrinter) pretty_export_iceberg_table_def(msg *pb.RelationId) inte } func (p *PrettyPrinter) pretty_iceberg_table_properties(msg [][]interface{}) interface{} { - flat1587 := p.tryFlat(msg, func() { p.pretty_iceberg_table_properties(msg) }) - if flat1587 != nil { - p.write(*flat1587) + flat1607 := p.tryFlat(msg, func() { p.pretty_iceberg_table_properties(msg) }) + if flat1607 != nil { + p.write(*flat1607) return nil } else { - fields1584 := msg + fields1604 := msg p.write("(") p.write("table_properties") p.indentSexp() - if !(len(fields1584) == 0) { + if !(len(fields1604) == 0) { p.newline() - for i1586, elem1585 := range fields1584 { - if (i1586 > 0) { + for i1606, elem1605 := range fields1604 { + if (i1606 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1585) + p.pretty_iceberg_property_entry(elem1605) } } p.dedent() @@ -4957,8 +5005,8 @@ func (p *PrettyPrinter) pretty_debug_info(msg *pb.DebugInfo) interface{} { for _idx, _rid := range msg.GetIds() { p.newline() p.write("(") - _t1776 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} - p.pprintDispatch(_t1776) + _t1798 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1798) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") @@ -5295,6 +5343,8 @@ func (p *PrettyPrinter) pprintDispatch(msg interface{}) { p.pretty_iceberg_locator(m) case *pb.IcebergCatalogConfig: p.pretty_iceberg_catalog_config(m) + case *pb.IcebergTarget: + p.pretty_full_table(m) case *pb.Undefine: p.pretty_undefine(m) case *pb.Context: diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl index eaa480d8..29f5fffd 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl @@ -10,11 +10,11 @@ export Int32Type, Float32Type, BeTreeConfig, DateTimeValue, IcebergLocator, Date export OrMonoid, CSVLocator, Int128Type, DecimalType, UnspecifiedType, DateType export MissingType, MissingValue, CSVConfig, IntType, StringType, Int128Value, UInt128Value export BooleanType, UInt32Type, DecimalValue, BeTreeLocator, var"#Type", Value, GNFColumn -export MinMonoid, SumMonoid, MaxMonoid, BeTreeInfo, Binding, EDB, Attribute, Term, CSVData -export IcebergData, Monoid, BeTreeRelation, Cast, Pragma, Atom, RelTerm, Data, Primitive -export RelAtom, Abstraction, Algorithm, Assign, Break, Conjunction, Constraint, Def -export Disjunction, Exists, FFI, FunctionalDependency, MonoidDef, MonusDef, Not, Reduce -export Script, Upsert, Construct, Loop, Declaration, Instruction, Formula +export IcebergTarget, MinMonoid, SumMonoid, MaxMonoid, BeTreeInfo, Binding, EDB, Attribute +export Term, CSVData, IcebergData, Monoid, BeTreeRelation, Cast, Pragma, Atom, RelTerm +export Data, Primitive, RelAtom, Abstraction, Algorithm, Assign, Break, Conjunction +export Constraint, Def, Disjunction, Exists, FFI, FunctionalDependency, MonoidDef, MonusDef +export Not, Reduce, Script, Upsert, Construct, Loop, Declaration, Instruction, Formula abstract type var"##Abstract#Abstraction" end abstract type var"##Abstract#Not" end abstract type var"##Abstract#Break" end @@ -1262,6 +1262,43 @@ function PB._encoded_size(x::GNFColumn) return encoded_size end +struct IcebergTarget + target_id::Union{Nothing,RelationId} + types::Vector{var"#Type"} +end +IcebergTarget(;target_id = nothing, types = Vector{var"#Type"}()) = IcebergTarget(target_id, types) +PB.default_values(::Type{IcebergTarget}) = (;target_id = nothing, types = Vector{var"#Type"}()) +PB.field_numbers(::Type{IcebergTarget}) = (;target_id = 1, types = 2) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergTarget}, _endpos::Int=0, _group::Bool=false) + target_id = Ref{Union{Nothing,RelationId}}(nothing) + types = PB.BufferedVector{var"#Type"}() + while !PB.message_done(d, _endpos, _group) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + PB.decode!(d, target_id) + elseif field_number == 2 + PB.decode!(d, types) + else + Base.skip(d, wire_type) + end + end + return IcebergTarget(target_id[], types[]) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergTarget) + initpos = position(e.io) + !isnothing(x.target_id) && PB.encode(e, 1, x.target_id) + !isempty(x.types) && PB.encode(e, 2, x.types) + return position(e.io) - initpos +end +function PB._encoded_size(x::IcebergTarget) + encoded_size = 0 + !isnothing(x.target_id) && (encoded_size += PB._encoded_size(x.target_id, 1)) + !isempty(x.types) && (encoded_size += PB._encoded_size(x.types, 2)) + return encoded_size +end + struct MinMonoid var"#type"::Union{Nothing,var"#Type"} end @@ -1624,10 +1661,11 @@ struct IcebergData from_snapshot::String to_snapshot::String returns_delta::Bool + target::Union{Nothing,IcebergTarget} end -IcebergData(;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), from_snapshot = "", to_snapshot = "", returns_delta = false) = IcebergData(locator, config, columns, from_snapshot, to_snapshot, returns_delta) -PB.default_values(::Type{IcebergData}) = (;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), from_snapshot = "", to_snapshot = "", returns_delta = false) -PB.field_numbers(::Type{IcebergData}) = (;locator = 1, config = 2, columns = 3, from_snapshot = 4, to_snapshot = 5, returns_delta = 6) +IcebergData(;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), from_snapshot = "", to_snapshot = "", returns_delta = false, target = nothing) = IcebergData(locator, config, columns, from_snapshot, to_snapshot, returns_delta, target) +PB.default_values(::Type{IcebergData}) = (;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), from_snapshot = "", to_snapshot = "", returns_delta = false, target = nothing) +PB.field_numbers(::Type{IcebergData}) = (;locator = 1, config = 2, columns = 3, from_snapshot = 4, to_snapshot = 5, returns_delta = 6, target = 7) function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::Int=0, _group::Bool=false) locator = Ref{Union{Nothing,IcebergLocator}}(nothing) @@ -1636,6 +1674,7 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::I from_snapshot = "" to_snapshot = "" returns_delta = false + target = Ref{Union{Nothing,IcebergTarget}}(nothing) while !PB.message_done(d, _endpos, _group) field_number, wire_type = PB.decode_tag(d) if field_number == 1 @@ -1650,11 +1689,13 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::I to_snapshot = PB.decode(d, String) elseif field_number == 6 returns_delta = PB.decode(d, Bool) + elseif field_number == 7 + PB.decode!(d, target) else Base.skip(d, wire_type) end end - return IcebergData(locator[], config[], columns[], from_snapshot, to_snapshot, returns_delta) + return IcebergData(locator[], config[], columns[], from_snapshot, to_snapshot, returns_delta, target[]) end function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergData) @@ -1665,6 +1706,7 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergData) !isempty(x.from_snapshot) && PB.encode(e, 4, x.from_snapshot) !isempty(x.to_snapshot) && PB.encode(e, 5, x.to_snapshot) x.returns_delta != false && PB.encode(e, 6, x.returns_delta) + !isnothing(x.target) && PB.encode(e, 7, x.target) return position(e.io) - initpos end function PB._encoded_size(x::IcebergData) @@ -1675,6 +1717,7 @@ function PB._encoded_size(x::IcebergData) !isempty(x.from_snapshot) && (encoded_size += PB._encoded_size(x.from_snapshot, 4)) !isempty(x.to_snapshot) && (encoded_size += PB._encoded_size(x.to_snapshot, 5)) x.returns_delta != false && (encoded_size += PB._encoded_size(x.returns_delta, 6)) + !isnothing(x.target) && (encoded_size += PB._encoded_size(x.target, 7)) return encoded_size end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl index 74b0eaa8..6e1bfc88 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl @@ -25,6 +25,7 @@ struct ExportIcebergConfig table_properties::Dict{String,String} end ExportIcebergConfig(;locator = nothing, config = nothing, table_def = nothing, prefix = "", target_file_size_bytes = zero(Int64), compression = "", table_properties = Dict{String,String}()) = ExportIcebergConfig(locator, config, table_def, prefix, target_file_size_bytes, compression, table_properties) +PB.reserved_fields(::Type{ExportIcebergConfig}) = (names = String[], numbers = Union{Int,UnitRange{Int}}[4]) PB.default_values(::Type{ExportIcebergConfig}) = (;locator = nothing, config = nothing, table_def = nothing, prefix = "", target_file_size_bytes = zero(Int64), compression = "", table_properties = Dict{String,String}()) PB.field_numbers(::Type{ExportIcebergConfig}) = (;locator = 1, config = 2, table_def = 3, prefix = 5, target_file_size_bytes = 6, compression = 7, table_properties = 8) diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl index 2586f519..004441f0 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl @@ -372,7 +372,7 @@ function _extract_value_int32(parser::ParserState, value::Union{Nothing, Proto.V if (!isnothing(value) && _has_proto_field(value, Symbol("int32_value"))) return _get_oneof_field(value, :int32_value) else - _t2081 = nothing + _t2103 = nothing end return Int32(default) end @@ -381,7 +381,7 @@ function _extract_value_int64(parser::ParserState, value::Union{Nothing, Proto.V if (!isnothing(value) && _has_proto_field(value, Symbol("int_value"))) return _get_oneof_field(value, :int_value) else - _t2082 = nothing + _t2104 = nothing end return default end @@ -390,7 +390,7 @@ function _extract_value_string(parser::ParserState, value::Union{Nothing, Proto. if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return _get_oneof_field(value, :string_value) else - _t2083 = nothing + _t2105 = nothing end return default end @@ -399,7 +399,7 @@ function _extract_value_boolean(parser::ParserState, value::Union{Nothing, Proto if (!isnothing(value) && _has_proto_field(value, Symbol("boolean_value"))) return _get_oneof_field(value, :boolean_value) else - _t2084 = nothing + _t2106 = nothing end return default end @@ -408,7 +408,7 @@ function _extract_value_string_list(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return String[_get_oneof_field(value, :string_value)] else - _t2085 = nothing + _t2107 = nothing end return default end @@ -417,7 +417,7 @@ function _try_extract_value_int64(parser::ParserState, value::Union{Nothing, Pro if (!isnothing(value) && _has_proto_field(value, Symbol("int_value"))) return _get_oneof_field(value, :int_value) else - _t2086 = nothing + _t2108 = nothing end return nothing end @@ -426,7 +426,7 @@ function _try_extract_value_float64(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("float_value"))) return _get_oneof_field(value, :float_value) else - _t2087 = nothing + _t2109 = nothing end return nothing end @@ -435,7 +435,7 @@ function _try_extract_value_bytes(parser::ParserState, value::Union{Nothing, Pro if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return Vector{UInt8}(_get_oneof_field(value, :string_value)) else - _t2088 = nothing + _t2110 = nothing end return nothing end @@ -444,72 +444,72 @@ function _try_extract_value_uint128(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("uint128_value"))) return _get_oneof_field(value, :uint128_value) else - _t2089 = nothing + _t2111 = nothing end return nothing end function construct_csv_config(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.CSVConfig config = Dict(config_dict) - _t2090 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) - header_row = _t2090 - _t2091 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) - skip = _t2091 - _t2092 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") - new_line = _t2092 - _t2093 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") - delimiter = _t2093 - _t2094 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") - quotechar = _t2094 - _t2095 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") - escapechar = _t2095 - _t2096 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") - comment = _t2096 - _t2097 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) - missing_strings = _t2097 - _t2098 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") - decimal_separator = _t2098 - _t2099 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") - encoding = _t2099 - _t2100 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") - compression = _t2100 - _t2101 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) - partition_size_mb = _t2101 - _t2102 = Proto.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) - return _t2102 + _t2112 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t2112 + _t2113 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t2113 + _t2114 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t2114 + _t2115 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t2115 + _t2116 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t2116 + _t2117 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t2117 + _t2118 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t2118 + _t2119 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t2119 + _t2120 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t2120 + _t2121 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t2121 + _t2122 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") + compression = _t2122 + _t2123 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t2123 + _t2124 = Proto.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) + return _t2124 end function construct_betree_info(parser::ParserState, key_types::Vector{Proto.var"#Type"}, value_types::Vector{Proto.var"#Type"}, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.BeTreeInfo config = Dict(config_dict) - _t2103 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) - epsilon = _t2103 - _t2104 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) - max_pivots = _t2104 - _t2105 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) - max_deltas = _t2105 - _t2106 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) - max_leaf = _t2106 - _t2107 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t2107 - _t2108 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) - root_pageid = _t2108 - _t2109 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) - inline_data = _t2109 - _t2110 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) - element_count = _t2110 - _t2111 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) - tree_height = _t2111 - _t2112 = Proto.BeTreeLocator(location=(!isnothing(root_pageid) ? OneOf(:root_pageid, root_pageid) : (!isnothing(inline_data) ? OneOf(:inline_data, inline_data) : nothing)), element_count=element_count, tree_height=tree_height) - relation_locator = _t2112 - _t2113 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t2113 + _t2125 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t2125 + _t2126 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t2126 + _t2127 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t2127 + _t2128 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t2128 + _t2129 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2129 + _t2130 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t2130 + _t2131 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t2131 + _t2132 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t2132 + _t2133 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t2133 + _t2134 = Proto.BeTreeLocator(location=(!isnothing(root_pageid) ? OneOf(:root_pageid, root_pageid) : (!isnothing(inline_data) ? OneOf(:inline_data, inline_data) : nothing)), element_count=element_count, tree_height=tree_height) + relation_locator = _t2134 + _t2135 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2135 end function default_configure(parser::ParserState)::Proto.Configure - _t2114 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t2114 - _t2115 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) - return _t2115 + _t2136 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2136 + _t2137 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2137 end function construct_configure(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.Configure @@ -531,3840 +531,3876 @@ function construct_configure(parser::ParserState, config_dict::Vector{Tuple{Stri end end end - _t2116 = Proto.IVMConfig(level=maintenance_level) - ivm_config = _t2116 - _t2117 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) - semantics_version = _t2117 - _t2118 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t2118 + _t2138 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t2138 + _t2139 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t2139 + _t2140 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t2140 end function construct_export_csv_config(parser::ParserState, path::String, columns::Vector{Proto.ExportCSVColumn}, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.ExportCSVConfig config = Dict(config_dict) - _t2119 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) - partition_size = _t2119 - _t2120 = _extract_value_string(parser, get(config, "compression", nothing), "") - compression = _t2120 - _t2121 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) - syntax_header_row = _t2121 - _t2122 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") - syntax_missing_string = _t2122 - _t2123 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") - syntax_delim = _t2123 - _t2124 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") - syntax_quotechar = _t2124 - _t2125 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") - syntax_escapechar = _t2125 - _t2126 = Proto.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) - return _t2126 + _t2141 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t2141 + _t2142 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t2142 + _t2143 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t2143 + _t2144 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t2144 + _t2145 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t2145 + _t2146 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t2146 + _t2147 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t2147 + _t2148 = Proto.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) + return _t2148 end function construct_export_csv_config_with_source(parser::ParserState, path::String, csv_source::Proto.ExportCSVSource, csv_config::Proto.CSVConfig)::Proto.ExportCSVConfig - _t2127 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) - return _t2127 + _t2149 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t2149 end function construct_iceberg_catalog_config(parser::ParserState, catalog_uri::String, scope_opt::Union{Nothing, String}, property_pairs::Vector{Tuple{String, String}}, auth_property_pairs::Vector{Tuple{String, String}})::Proto.IcebergCatalogConfig props = Dict(property_pairs) auth_props = Dict(auth_property_pairs) - _t2128 = Proto.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope_opt) ? scope_opt : ""), properties=props, auth_properties=auth_props) - return _t2128 + _t2150 = Proto.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope_opt) ? scope_opt : ""), properties=props, auth_properties=auth_props) + return _t2150 end -function construct_iceberg_data(parser::ParserState, locator::Proto.IcebergLocator, config::Proto.IcebergCatalogConfig, columns::Vector{Proto.GNFColumn}, from_snapshot_opt::Union{Nothing, String}, to_snapshot_opt::Union{Nothing, String}, returns_delta::Bool)::Proto.IcebergData - _t2129 = Proto.IcebergData(locator=locator, config=config, columns=columns, from_snapshot=(!isnothing(from_snapshot_opt) ? from_snapshot_opt : ""), to_snapshot=(!isnothing(to_snapshot_opt) ? to_snapshot_opt : ""), returns_delta=returns_delta) - return _t2129 +function construct_iceberg_data(parser::ParserState, locator::Proto.IcebergLocator, config::Proto.IcebergCatalogConfig, columns_opt::Union{Nothing, Vector{Proto.GNFColumn}}, target_opt::Union{Nothing, Proto.IcebergTarget}, from_snapshot_opt::Union{Nothing, String}, to_snapshot_opt::Union{Nothing, String}, returns_delta::Bool)::Proto.IcebergData + _t2151 = Proto.IcebergData(locator=locator, config=config, columns=(!isnothing(columns_opt) ? columns_opt : Proto.GNFColumn[]), from_snapshot=(!isnothing(from_snapshot_opt) ? from_snapshot_opt : ""), to_snapshot=(!isnothing(to_snapshot_opt) ? to_snapshot_opt : ""), returns_delta=returns_delta, target=target_opt) + return _t2151 end function construct_export_iceberg_config_full(parser::ParserState, locator::Proto.IcebergLocator, config::Proto.IcebergCatalogConfig, table_def::Proto.RelationId, table_property_pairs::Vector{Tuple{String, String}}, config_dict::Union{Nothing, Vector{Tuple{String, Proto.Value}}})::Proto.ExportIcebergConfig cfg = Dict((!isnothing(config_dict) ? config_dict : Tuple{String, Proto.Value}[])) - _t2130 = _extract_value_string(parser, get(cfg, "prefix", nothing), "") - prefix = _t2130 - _t2131 = _extract_value_int64(parser, get(cfg, "target_file_size_bytes", nothing), 0) - target_file_size_bytes = _t2131 - _t2132 = _extract_value_string(parser, get(cfg, "compression", nothing), "") - compression = _t2132 + _t2152 = _extract_value_string(parser, get(cfg, "prefix", nothing), "") + prefix = _t2152 + _t2153 = _extract_value_int64(parser, get(cfg, "target_file_size_bytes", nothing), 0) + target_file_size_bytes = _t2153 + _t2154 = _extract_value_string(parser, get(cfg, "compression", nothing), "") + compression = _t2154 table_props = Dict(table_property_pairs) - _t2133 = Proto.ExportIcebergConfig(locator=locator, config=config, table_def=table_def, prefix=prefix, target_file_size_bytes=target_file_size_bytes, compression=compression, table_properties=table_props) - return _t2133 + _t2155 = Proto.ExportIcebergConfig(locator=locator, config=config, table_def=table_def, prefix=prefix, target_file_size_bytes=target_file_size_bytes, compression=compression, table_properties=table_props) + return _t2155 end # --- Parse functions --- function parse_transaction(parser::ParserState)::Proto.Transaction - span_start671 = span_start(parser) + span_start679 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "transaction") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "configure", 1)) - _t1331 = parse_configure(parser) - _t1330 = _t1331 + _t1347 = parse_configure(parser) + _t1346 = _t1347 else - _t1330 = nothing + _t1346 = nothing end - configure665 = _t1330 + configure673 = _t1346 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t1333 = parse_sync(parser) - _t1332 = _t1333 + _t1349 = parse_sync(parser) + _t1348 = _t1349 else - _t1332 = nothing - end - sync666 = _t1332 - xs667 = Proto.Epoch[] - cond668 = match_lookahead_literal(parser, "(", 0) - while cond668 - _t1334 = parse_epoch(parser) - item669 = _t1334 - push!(xs667, item669) - cond668 = match_lookahead_literal(parser, "(", 0) - end - epochs670 = xs667 + _t1348 = nothing + end + sync674 = _t1348 + xs675 = Proto.Epoch[] + cond676 = match_lookahead_literal(parser, "(", 0) + while cond676 + _t1350 = parse_epoch(parser) + item677 = _t1350 + push!(xs675, item677) + cond676 = match_lookahead_literal(parser, "(", 0) + end + epochs678 = xs675 consume_literal!(parser, ")") - _t1335 = default_configure(parser) - _t1336 = Proto.Transaction(epochs=epochs670, configure=(!isnothing(configure665) ? configure665 : _t1335), sync=sync666) - result672 = _t1336 - record_span!(parser, span_start671, "Transaction") - return result672 + _t1351 = default_configure(parser) + _t1352 = Proto.Transaction(epochs=epochs678, configure=(!isnothing(configure673) ? configure673 : _t1351), sync=sync674) + result680 = _t1352 + record_span!(parser, span_start679, "Transaction") + return result680 end function parse_configure(parser::ParserState)::Proto.Configure - span_start674 = span_start(parser) + span_start682 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t1337 = parse_config_dict(parser) - config_dict673 = _t1337 + _t1353 = parse_config_dict(parser) + config_dict681 = _t1353 consume_literal!(parser, ")") - _t1338 = construct_configure(parser, config_dict673) - result675 = _t1338 - record_span!(parser, span_start674, "Configure") - return result675 + _t1354 = construct_configure(parser, config_dict681) + result683 = _t1354 + record_span!(parser, span_start682, "Configure") + return result683 end function parse_config_dict(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "{") - xs676 = Tuple{String, Proto.Value}[] - cond677 = match_lookahead_literal(parser, ":", 0) - while cond677 - _t1339 = parse_config_key_value(parser) - item678 = _t1339 - push!(xs676, item678) - cond677 = match_lookahead_literal(parser, ":", 0) - end - config_key_values679 = xs676 + xs684 = Tuple{String, Proto.Value}[] + cond685 = match_lookahead_literal(parser, ":", 0) + while cond685 + _t1355 = parse_config_key_value(parser) + item686 = _t1355 + push!(xs684, item686) + cond685 = match_lookahead_literal(parser, ":", 0) + end + config_key_values687 = xs684 consume_literal!(parser, "}") - return config_key_values679 + return config_key_values687 end function parse_config_key_value(parser::ParserState)::Tuple{String, Proto.Value} consume_literal!(parser, ":") - symbol680 = consume_terminal!(parser, "SYMBOL") - _t1340 = parse_raw_value(parser) - raw_value681 = _t1340 - return (symbol680, raw_value681,) + symbol688 = consume_terminal!(parser, "SYMBOL") + _t1356 = parse_raw_value(parser) + raw_value689 = _t1356 + return (symbol688, raw_value689,) end function parse_raw_value(parser::ParserState)::Proto.Value - span_start695 = span_start(parser) + span_start703 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1341 = 12 + _t1357 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1342 = 11 + _t1358 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1343 = 12 + _t1359 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1345 = 1 + _t1361 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1346 = 0 + _t1362 = 0 else - _t1346 = -1 + _t1362 = -1 end - _t1345 = _t1346 + _t1361 = _t1362 end - _t1344 = _t1345 + _t1360 = _t1361 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1347 = 7 + _t1363 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1348 = 8 + _t1364 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1349 = 2 + _t1365 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1350 = 3 + _t1366 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1351 = 9 + _t1367 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1352 = 4 + _t1368 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1353 = 5 + _t1369 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1354 = 6 + _t1370 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1355 = 10 + _t1371 = 10 else - _t1355 = -1 + _t1371 = -1 end - _t1354 = _t1355 + _t1370 = _t1371 end - _t1353 = _t1354 + _t1369 = _t1370 end - _t1352 = _t1353 + _t1368 = _t1369 end - _t1351 = _t1352 + _t1367 = _t1368 end - _t1350 = _t1351 + _t1366 = _t1367 end - _t1349 = _t1350 + _t1365 = _t1366 end - _t1348 = _t1349 + _t1364 = _t1365 end - _t1347 = _t1348 + _t1363 = _t1364 end - _t1344 = _t1347 + _t1360 = _t1363 end - _t1343 = _t1344 + _t1359 = _t1360 end - _t1342 = _t1343 + _t1358 = _t1359 end - _t1341 = _t1342 - end - prediction682 = _t1341 - if prediction682 == 12 - _t1357 = parse_boolean_value(parser) - boolean_value694 = _t1357 - _t1358 = Proto.Value(value=OneOf(:boolean_value, boolean_value694)) - _t1356 = _t1358 + _t1357 = _t1358 + end + prediction690 = _t1357 + if prediction690 == 12 + _t1373 = parse_boolean_value(parser) + boolean_value702 = _t1373 + _t1374 = Proto.Value(value=OneOf(:boolean_value, boolean_value702)) + _t1372 = _t1374 else - if prediction682 == 11 + if prediction690 == 11 consume_literal!(parser, "missing") - _t1360 = Proto.MissingValue() - _t1361 = Proto.Value(value=OneOf(:missing_value, _t1360)) - _t1359 = _t1361 + _t1376 = Proto.MissingValue() + _t1377 = Proto.Value(value=OneOf(:missing_value, _t1376)) + _t1375 = _t1377 else - if prediction682 == 10 - decimal693 = consume_terminal!(parser, "DECIMAL") - _t1363 = Proto.Value(value=OneOf(:decimal_value, decimal693)) - _t1362 = _t1363 + if prediction690 == 10 + decimal701 = consume_terminal!(parser, "DECIMAL") + _t1379 = Proto.Value(value=OneOf(:decimal_value, decimal701)) + _t1378 = _t1379 else - if prediction682 == 9 - int128692 = consume_terminal!(parser, "INT128") - _t1365 = Proto.Value(value=OneOf(:int128_value, int128692)) - _t1364 = _t1365 + if prediction690 == 9 + int128700 = consume_terminal!(parser, "INT128") + _t1381 = Proto.Value(value=OneOf(:int128_value, int128700)) + _t1380 = _t1381 else - if prediction682 == 8 - uint128691 = consume_terminal!(parser, "UINT128") - _t1367 = Proto.Value(value=OneOf(:uint128_value, uint128691)) - _t1366 = _t1367 + if prediction690 == 8 + uint128699 = consume_terminal!(parser, "UINT128") + _t1383 = Proto.Value(value=OneOf(:uint128_value, uint128699)) + _t1382 = _t1383 else - if prediction682 == 7 - uint32690 = consume_terminal!(parser, "UINT32") - _t1369 = Proto.Value(value=OneOf(:uint32_value, uint32690)) - _t1368 = _t1369 + if prediction690 == 7 + uint32698 = consume_terminal!(parser, "UINT32") + _t1385 = Proto.Value(value=OneOf(:uint32_value, uint32698)) + _t1384 = _t1385 else - if prediction682 == 6 - float689 = consume_terminal!(parser, "FLOAT") - _t1371 = Proto.Value(value=OneOf(:float_value, float689)) - _t1370 = _t1371 + if prediction690 == 6 + float697 = consume_terminal!(parser, "FLOAT") + _t1387 = Proto.Value(value=OneOf(:float_value, float697)) + _t1386 = _t1387 else - if prediction682 == 5 - float32688 = consume_terminal!(parser, "FLOAT32") - _t1373 = Proto.Value(value=OneOf(:float32_value, float32688)) - _t1372 = _t1373 + if prediction690 == 5 + float32696 = consume_terminal!(parser, "FLOAT32") + _t1389 = Proto.Value(value=OneOf(:float32_value, float32696)) + _t1388 = _t1389 else - if prediction682 == 4 - int687 = consume_terminal!(parser, "INT") - _t1375 = Proto.Value(value=OneOf(:int_value, int687)) - _t1374 = _t1375 + if prediction690 == 4 + int695 = consume_terminal!(parser, "INT") + _t1391 = Proto.Value(value=OneOf(:int_value, int695)) + _t1390 = _t1391 else - if prediction682 == 3 - int32686 = consume_terminal!(parser, "INT32") - _t1377 = Proto.Value(value=OneOf(:int32_value, int32686)) - _t1376 = _t1377 + if prediction690 == 3 + int32694 = consume_terminal!(parser, "INT32") + _t1393 = Proto.Value(value=OneOf(:int32_value, int32694)) + _t1392 = _t1393 else - if prediction682 == 2 - string685 = consume_terminal!(parser, "STRING") - _t1379 = Proto.Value(value=OneOf(:string_value, string685)) - _t1378 = _t1379 + if prediction690 == 2 + string693 = consume_terminal!(parser, "STRING") + _t1395 = Proto.Value(value=OneOf(:string_value, string693)) + _t1394 = _t1395 else - if prediction682 == 1 - _t1381 = parse_raw_datetime(parser) - raw_datetime684 = _t1381 - _t1382 = Proto.Value(value=OneOf(:datetime_value, raw_datetime684)) - _t1380 = _t1382 + if prediction690 == 1 + _t1397 = parse_raw_datetime(parser) + raw_datetime692 = _t1397 + _t1398 = Proto.Value(value=OneOf(:datetime_value, raw_datetime692)) + _t1396 = _t1398 else - if prediction682 == 0 - _t1384 = parse_raw_date(parser) - raw_date683 = _t1384 - _t1385 = Proto.Value(value=OneOf(:date_value, raw_date683)) - _t1383 = _t1385 + if prediction690 == 0 + _t1400 = parse_raw_date(parser) + raw_date691 = _t1400 + _t1401 = Proto.Value(value=OneOf(:date_value, raw_date691)) + _t1399 = _t1401 else throw(ParseError("Unexpected token in raw_value" * ": " * string(lookahead(parser, 0)))) end - _t1380 = _t1383 + _t1396 = _t1399 end - _t1378 = _t1380 + _t1394 = _t1396 end - _t1376 = _t1378 + _t1392 = _t1394 end - _t1374 = _t1376 + _t1390 = _t1392 end - _t1372 = _t1374 + _t1388 = _t1390 end - _t1370 = _t1372 + _t1386 = _t1388 end - _t1368 = _t1370 + _t1384 = _t1386 end - _t1366 = _t1368 + _t1382 = _t1384 end - _t1364 = _t1366 + _t1380 = _t1382 end - _t1362 = _t1364 + _t1378 = _t1380 end - _t1359 = _t1362 + _t1375 = _t1378 end - _t1356 = _t1359 + _t1372 = _t1375 end - result696 = _t1356 - record_span!(parser, span_start695, "Value") - return result696 + result704 = _t1372 + record_span!(parser, span_start703, "Value") + return result704 end function parse_raw_date(parser::ParserState)::Proto.DateValue - span_start700 = span_start(parser) + span_start708 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "date") - int697 = consume_terminal!(parser, "INT") - int_3698 = consume_terminal!(parser, "INT") - int_4699 = consume_terminal!(parser, "INT") + int705 = consume_terminal!(parser, "INT") + int_3706 = consume_terminal!(parser, "INT") + int_4707 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1386 = Proto.DateValue(year=Int32(int697), month=Int32(int_3698), day=Int32(int_4699)) - result701 = _t1386 - record_span!(parser, span_start700, "DateValue") - return result701 + _t1402 = Proto.DateValue(year=Int32(int705), month=Int32(int_3706), day=Int32(int_4707)) + result709 = _t1402 + record_span!(parser, span_start708, "DateValue") + return result709 end function parse_raw_datetime(parser::ParserState)::Proto.DateTimeValue - span_start709 = span_start(parser) + span_start717 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "datetime") - int702 = consume_terminal!(parser, "INT") - int_3703 = consume_terminal!(parser, "INT") - int_4704 = consume_terminal!(parser, "INT") - int_5705 = consume_terminal!(parser, "INT") - int_6706 = consume_terminal!(parser, "INT") - int_7707 = consume_terminal!(parser, "INT") + int710 = consume_terminal!(parser, "INT") + int_3711 = consume_terminal!(parser, "INT") + int_4712 = consume_terminal!(parser, "INT") + int_5713 = consume_terminal!(parser, "INT") + int_6714 = consume_terminal!(parser, "INT") + int_7715 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1387 = consume_terminal!(parser, "INT") + _t1403 = consume_terminal!(parser, "INT") else - _t1387 = nothing + _t1403 = nothing end - int_8708 = _t1387 + int_8716 = _t1403 consume_literal!(parser, ")") - _t1388 = Proto.DateTimeValue(year=Int32(int702), month=Int32(int_3703), day=Int32(int_4704), hour=Int32(int_5705), minute=Int32(int_6706), second=Int32(int_7707), microsecond=Int32((!isnothing(int_8708) ? int_8708 : 0))) - result710 = _t1388 - record_span!(parser, span_start709, "DateTimeValue") - return result710 + _t1404 = Proto.DateTimeValue(year=Int32(int710), month=Int32(int_3711), day=Int32(int_4712), hour=Int32(int_5713), minute=Int32(int_6714), second=Int32(int_7715), microsecond=Int32((!isnothing(int_8716) ? int_8716 : 0))) + result718 = _t1404 + record_span!(parser, span_start717, "DateTimeValue") + return result718 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t1389 = 0 + _t1405 = 0 else if match_lookahead_literal(parser, "false", 0) - _t1390 = 1 + _t1406 = 1 else - _t1390 = -1 + _t1406 = -1 end - _t1389 = _t1390 + _t1405 = _t1406 end - prediction711 = _t1389 - if prediction711 == 1 + prediction719 = _t1405 + if prediction719 == 1 consume_literal!(parser, "false") - _t1391 = false + _t1407 = false else - if prediction711 == 0 + if prediction719 == 0 consume_literal!(parser, "true") - _t1392 = true + _t1408 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t1391 = _t1392 + _t1407 = _t1408 end - return _t1391 + return _t1407 end function parse_sync(parser::ParserState)::Proto.Sync - span_start716 = span_start(parser) + span_start724 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sync") - xs712 = Proto.FragmentId[] - cond713 = match_lookahead_literal(parser, ":", 0) - while cond713 - _t1393 = parse_fragment_id(parser) - item714 = _t1393 - push!(xs712, item714) - cond713 = match_lookahead_literal(parser, ":", 0) - end - fragment_ids715 = xs712 + xs720 = Proto.FragmentId[] + cond721 = match_lookahead_literal(parser, ":", 0) + while cond721 + _t1409 = parse_fragment_id(parser) + item722 = _t1409 + push!(xs720, item722) + cond721 = match_lookahead_literal(parser, ":", 0) + end + fragment_ids723 = xs720 consume_literal!(parser, ")") - _t1394 = Proto.Sync(fragments=fragment_ids715) - result717 = _t1394 - record_span!(parser, span_start716, "Sync") - return result717 + _t1410 = Proto.Sync(fragments=fragment_ids723) + result725 = _t1410 + record_span!(parser, span_start724, "Sync") + return result725 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId - span_start719 = span_start(parser) + span_start727 = span_start(parser) consume_literal!(parser, ":") - symbol718 = consume_terminal!(parser, "SYMBOL") - result720 = Proto.FragmentId(Vector{UInt8}(symbol718)) - record_span!(parser, span_start719, "FragmentId") - return result720 + symbol726 = consume_terminal!(parser, "SYMBOL") + result728 = Proto.FragmentId(Vector{UInt8}(symbol726)) + record_span!(parser, span_start727, "FragmentId") + return result728 end function parse_epoch(parser::ParserState)::Proto.Epoch - span_start723 = span_start(parser) + span_start731 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "epoch") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "writes", 1)) - _t1396 = parse_epoch_writes(parser) - _t1395 = _t1396 + _t1412 = parse_epoch_writes(parser) + _t1411 = _t1412 else - _t1395 = nothing + _t1411 = nothing end - epoch_writes721 = _t1395 + epoch_writes729 = _t1411 if match_lookahead_literal(parser, "(", 0) - _t1398 = parse_epoch_reads(parser) - _t1397 = _t1398 + _t1414 = parse_epoch_reads(parser) + _t1413 = _t1414 else - _t1397 = nothing + _t1413 = nothing end - epoch_reads722 = _t1397 + epoch_reads730 = _t1413 consume_literal!(parser, ")") - _t1399 = Proto.Epoch(writes=(!isnothing(epoch_writes721) ? epoch_writes721 : Proto.Write[]), reads=(!isnothing(epoch_reads722) ? epoch_reads722 : Proto.Read[])) - result724 = _t1399 - record_span!(parser, span_start723, "Epoch") - return result724 + _t1415 = Proto.Epoch(writes=(!isnothing(epoch_writes729) ? epoch_writes729 : Proto.Write[]), reads=(!isnothing(epoch_reads730) ? epoch_reads730 : Proto.Read[])) + result732 = _t1415 + record_span!(parser, span_start731, "Epoch") + return result732 end function parse_epoch_writes(parser::ParserState)::Vector{Proto.Write} consume_literal!(parser, "(") consume_literal!(parser, "writes") - xs725 = Proto.Write[] - cond726 = match_lookahead_literal(parser, "(", 0) - while cond726 - _t1400 = parse_write(parser) - item727 = _t1400 - push!(xs725, item727) - cond726 = match_lookahead_literal(parser, "(", 0) - end - writes728 = xs725 + xs733 = Proto.Write[] + cond734 = match_lookahead_literal(parser, "(", 0) + while cond734 + _t1416 = parse_write(parser) + item735 = _t1416 + push!(xs733, item735) + cond734 = match_lookahead_literal(parser, "(", 0) + end + writes736 = xs733 consume_literal!(parser, ")") - return writes728 + return writes736 end function parse_write(parser::ParserState)::Proto.Write - span_start734 = span_start(parser) + span_start742 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t1402 = 1 + _t1418 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t1403 = 3 + _t1419 = 3 else if match_lookahead_literal(parser, "define", 1) - _t1404 = 0 + _t1420 = 0 else if match_lookahead_literal(parser, "context", 1) - _t1405 = 2 + _t1421 = 2 else - _t1405 = -1 + _t1421 = -1 end - _t1404 = _t1405 + _t1420 = _t1421 end - _t1403 = _t1404 + _t1419 = _t1420 end - _t1402 = _t1403 + _t1418 = _t1419 end - _t1401 = _t1402 + _t1417 = _t1418 else - _t1401 = -1 - end - prediction729 = _t1401 - if prediction729 == 3 - _t1407 = parse_snapshot(parser) - snapshot733 = _t1407 - _t1408 = Proto.Write(write_type=OneOf(:snapshot, snapshot733)) - _t1406 = _t1408 + _t1417 = -1 + end + prediction737 = _t1417 + if prediction737 == 3 + _t1423 = parse_snapshot(parser) + snapshot741 = _t1423 + _t1424 = Proto.Write(write_type=OneOf(:snapshot, snapshot741)) + _t1422 = _t1424 else - if prediction729 == 2 - _t1410 = parse_context(parser) - context732 = _t1410 - _t1411 = Proto.Write(write_type=OneOf(:context, context732)) - _t1409 = _t1411 + if prediction737 == 2 + _t1426 = parse_context(parser) + context740 = _t1426 + _t1427 = Proto.Write(write_type=OneOf(:context, context740)) + _t1425 = _t1427 else - if prediction729 == 1 - _t1413 = parse_undefine(parser) - undefine731 = _t1413 - _t1414 = Proto.Write(write_type=OneOf(:undefine, undefine731)) - _t1412 = _t1414 + if prediction737 == 1 + _t1429 = parse_undefine(parser) + undefine739 = _t1429 + _t1430 = Proto.Write(write_type=OneOf(:undefine, undefine739)) + _t1428 = _t1430 else - if prediction729 == 0 - _t1416 = parse_define(parser) - define730 = _t1416 - _t1417 = Proto.Write(write_type=OneOf(:define, define730)) - _t1415 = _t1417 + if prediction737 == 0 + _t1432 = parse_define(parser) + define738 = _t1432 + _t1433 = Proto.Write(write_type=OneOf(:define, define738)) + _t1431 = _t1433 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t1412 = _t1415 + _t1428 = _t1431 end - _t1409 = _t1412 + _t1425 = _t1428 end - _t1406 = _t1409 + _t1422 = _t1425 end - result735 = _t1406 - record_span!(parser, span_start734, "Write") - return result735 + result743 = _t1422 + record_span!(parser, span_start742, "Write") + return result743 end function parse_define(parser::ParserState)::Proto.Define - span_start737 = span_start(parser) + span_start745 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "define") - _t1418 = parse_fragment(parser) - fragment736 = _t1418 + _t1434 = parse_fragment(parser) + fragment744 = _t1434 consume_literal!(parser, ")") - _t1419 = Proto.Define(fragment=fragment736) - result738 = _t1419 - record_span!(parser, span_start737, "Define") - return result738 + _t1435 = Proto.Define(fragment=fragment744) + result746 = _t1435 + record_span!(parser, span_start745, "Define") + return result746 end function parse_fragment(parser::ParserState)::Proto.Fragment - span_start744 = span_start(parser) + span_start752 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "fragment") - _t1420 = parse_new_fragment_id(parser) - new_fragment_id739 = _t1420 - xs740 = Proto.Declaration[] - cond741 = match_lookahead_literal(parser, "(", 0) - while cond741 - _t1421 = parse_declaration(parser) - item742 = _t1421 - push!(xs740, item742) - cond741 = match_lookahead_literal(parser, "(", 0) - end - declarations743 = xs740 + _t1436 = parse_new_fragment_id(parser) + new_fragment_id747 = _t1436 + xs748 = Proto.Declaration[] + cond749 = match_lookahead_literal(parser, "(", 0) + while cond749 + _t1437 = parse_declaration(parser) + item750 = _t1437 + push!(xs748, item750) + cond749 = match_lookahead_literal(parser, "(", 0) + end + declarations751 = xs748 consume_literal!(parser, ")") - result745 = construct_fragment(parser, new_fragment_id739, declarations743) - record_span!(parser, span_start744, "Fragment") - return result745 + result753 = construct_fragment(parser, new_fragment_id747, declarations751) + record_span!(parser, span_start752, "Fragment") + return result753 end function parse_new_fragment_id(parser::ParserState)::Proto.FragmentId - span_start747 = span_start(parser) - _t1422 = parse_fragment_id(parser) - fragment_id746 = _t1422 - start_fragment!(parser, fragment_id746) - result748 = fragment_id746 - record_span!(parser, span_start747, "FragmentId") - return result748 + span_start755 = span_start(parser) + _t1438 = parse_fragment_id(parser) + fragment_id754 = _t1438 + start_fragment!(parser, fragment_id754) + result756 = fragment_id754 + record_span!(parser, span_start755, "FragmentId") + return result756 end function parse_declaration(parser::ParserState)::Proto.Declaration - span_start754 = span_start(parser) + span_start762 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t1424 = 3 + _t1440 = 3 else if match_lookahead_literal(parser, "functional_dependency", 1) - _t1425 = 2 + _t1441 = 2 else if match_lookahead_literal(parser, "edb", 1) - _t1426 = 3 + _t1442 = 3 else if match_lookahead_literal(parser, "def", 1) - _t1427 = 0 + _t1443 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1428 = 3 + _t1444 = 3 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1429 = 3 + _t1445 = 3 else if match_lookahead_literal(parser, "algorithm", 1) - _t1430 = 1 + _t1446 = 1 else - _t1430 = -1 + _t1446 = -1 end - _t1429 = _t1430 + _t1445 = _t1446 end - _t1428 = _t1429 + _t1444 = _t1445 end - _t1427 = _t1428 + _t1443 = _t1444 end - _t1426 = _t1427 + _t1442 = _t1443 end - _t1425 = _t1426 + _t1441 = _t1442 end - _t1424 = _t1425 + _t1440 = _t1441 end - _t1423 = _t1424 + _t1439 = _t1440 else - _t1423 = -1 - end - prediction749 = _t1423 - if prediction749 == 3 - _t1432 = parse_data(parser) - data753 = _t1432 - _t1433 = Proto.Declaration(declaration_type=OneOf(:data, data753)) - _t1431 = _t1433 + _t1439 = -1 + end + prediction757 = _t1439 + if prediction757 == 3 + _t1448 = parse_data(parser) + data761 = _t1448 + _t1449 = Proto.Declaration(declaration_type=OneOf(:data, data761)) + _t1447 = _t1449 else - if prediction749 == 2 - _t1435 = parse_constraint(parser) - constraint752 = _t1435 - _t1436 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint752)) - _t1434 = _t1436 + if prediction757 == 2 + _t1451 = parse_constraint(parser) + constraint760 = _t1451 + _t1452 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint760)) + _t1450 = _t1452 else - if prediction749 == 1 - _t1438 = parse_algorithm(parser) - algorithm751 = _t1438 - _t1439 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm751)) - _t1437 = _t1439 + if prediction757 == 1 + _t1454 = parse_algorithm(parser) + algorithm759 = _t1454 + _t1455 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm759)) + _t1453 = _t1455 else - if prediction749 == 0 - _t1441 = parse_def(parser) - def750 = _t1441 - _t1442 = Proto.Declaration(declaration_type=OneOf(:def, def750)) - _t1440 = _t1442 + if prediction757 == 0 + _t1457 = parse_def(parser) + def758 = _t1457 + _t1458 = Proto.Declaration(declaration_type=OneOf(:def, def758)) + _t1456 = _t1458 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t1437 = _t1440 + _t1453 = _t1456 end - _t1434 = _t1437 + _t1450 = _t1453 end - _t1431 = _t1434 + _t1447 = _t1450 end - result755 = _t1431 - record_span!(parser, span_start754, "Declaration") - return result755 + result763 = _t1447 + record_span!(parser, span_start762, "Declaration") + return result763 end function parse_def(parser::ParserState)::Proto.Def - span_start759 = span_start(parser) + span_start767 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "def") - _t1443 = parse_relation_id(parser) - relation_id756 = _t1443 - _t1444 = parse_abstraction(parser) - abstraction757 = _t1444 + _t1459 = parse_relation_id(parser) + relation_id764 = _t1459 + _t1460 = parse_abstraction(parser) + abstraction765 = _t1460 if match_lookahead_literal(parser, "(", 0) - _t1446 = parse_attrs(parser) - _t1445 = _t1446 + _t1462 = parse_attrs(parser) + _t1461 = _t1462 else - _t1445 = nothing + _t1461 = nothing end - attrs758 = _t1445 + attrs766 = _t1461 consume_literal!(parser, ")") - _t1447 = Proto.Def(name=relation_id756, body=abstraction757, attrs=(!isnothing(attrs758) ? attrs758 : Proto.Attribute[])) - result760 = _t1447 - record_span!(parser, span_start759, "Def") - return result760 + _t1463 = Proto.Def(name=relation_id764, body=abstraction765, attrs=(!isnothing(attrs766) ? attrs766 : Proto.Attribute[])) + result768 = _t1463 + record_span!(parser, span_start767, "Def") + return result768 end function parse_relation_id(parser::ParserState)::Proto.RelationId - span_start764 = span_start(parser) + span_start772 = span_start(parser) if match_lookahead_literal(parser, ":", 0) - _t1448 = 0 + _t1464 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1449 = 1 + _t1465 = 1 else - _t1449 = -1 + _t1465 = -1 end - _t1448 = _t1449 + _t1464 = _t1465 end - prediction761 = _t1448 - if prediction761 == 1 - uint128763 = consume_terminal!(parser, "UINT128") - _t1450 = Proto.RelationId(uint128763.low, uint128763.high) + prediction769 = _t1464 + if prediction769 == 1 + uint128771 = consume_terminal!(parser, "UINT128") + _t1466 = Proto.RelationId(uint128771.low, uint128771.high) else - if prediction761 == 0 + if prediction769 == 0 consume_literal!(parser, ":") - symbol762 = consume_terminal!(parser, "SYMBOL") - _t1451 = relation_id_from_string(parser, symbol762) + symbol770 = consume_terminal!(parser, "SYMBOL") + _t1467 = relation_id_from_string(parser, symbol770) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t1450 = _t1451 + _t1466 = _t1467 end - result765 = _t1450 - record_span!(parser, span_start764, "RelationId") - return result765 + result773 = _t1466 + record_span!(parser, span_start772, "RelationId") + return result773 end function parse_abstraction(parser::ParserState)::Proto.Abstraction - span_start768 = span_start(parser) + span_start776 = span_start(parser) consume_literal!(parser, "(") - _t1452 = parse_bindings(parser) - bindings766 = _t1452 - _t1453 = parse_formula(parser) - formula767 = _t1453 + _t1468 = parse_bindings(parser) + bindings774 = _t1468 + _t1469 = parse_formula(parser) + formula775 = _t1469 consume_literal!(parser, ")") - _t1454 = Proto.Abstraction(vars=vcat(bindings766[1], !isnothing(bindings766[2]) ? bindings766[2] : []), value=formula767) - result769 = _t1454 - record_span!(parser, span_start768, "Abstraction") - return result769 + _t1470 = Proto.Abstraction(vars=vcat(bindings774[1], !isnothing(bindings774[2]) ? bindings774[2] : []), value=formula775) + result777 = _t1470 + record_span!(parser, span_start776, "Abstraction") + return result777 end function parse_bindings(parser::ParserState)::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}} consume_literal!(parser, "[") - xs770 = Proto.Binding[] - cond771 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond771 - _t1455 = parse_binding(parser) - item772 = _t1455 - push!(xs770, item772) - cond771 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - bindings773 = xs770 + xs778 = Proto.Binding[] + cond779 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond779 + _t1471 = parse_binding(parser) + item780 = _t1471 + push!(xs778, item780) + cond779 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + bindings781 = xs778 if match_lookahead_literal(parser, "|", 0) - _t1457 = parse_value_bindings(parser) - _t1456 = _t1457 + _t1473 = parse_value_bindings(parser) + _t1472 = _t1473 else - _t1456 = nothing + _t1472 = nothing end - value_bindings774 = _t1456 + value_bindings782 = _t1472 consume_literal!(parser, "]") - return (bindings773, (!isnothing(value_bindings774) ? value_bindings774 : Proto.Binding[]),) + return (bindings781, (!isnothing(value_bindings782) ? value_bindings782 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - span_start777 = span_start(parser) - symbol775 = consume_terminal!(parser, "SYMBOL") + span_start785 = span_start(parser) + symbol783 = consume_terminal!(parser, "SYMBOL") consume_literal!(parser, "::") - _t1458 = parse_type(parser) - type776 = _t1458 - _t1459 = Proto.Var(name=symbol775) - _t1460 = Proto.Binding(var=_t1459, var"#type"=type776) - result778 = _t1460 - record_span!(parser, span_start777, "Binding") - return result778 + _t1474 = parse_type(parser) + type784 = _t1474 + _t1475 = Proto.Var(name=symbol783) + _t1476 = Proto.Binding(var=_t1475, var"#type"=type784) + result786 = _t1476 + record_span!(parser, span_start785, "Binding") + return result786 end function parse_type(parser::ParserState)::Proto.var"#Type" - span_start794 = span_start(parser) + span_start802 = span_start(parser) if match_lookahead_literal(parser, "UNKNOWN", 0) - _t1461 = 0 + _t1477 = 0 else if match_lookahead_literal(parser, "UINT32", 0) - _t1462 = 13 + _t1478 = 13 else if match_lookahead_literal(parser, "UINT128", 0) - _t1463 = 4 + _t1479 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t1464 = 1 + _t1480 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t1465 = 8 + _t1481 = 8 else if match_lookahead_literal(parser, "INT32", 0) - _t1466 = 11 + _t1482 = 11 else if match_lookahead_literal(parser, "INT128", 0) - _t1467 = 5 + _t1483 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t1468 = 2 + _t1484 = 2 else if match_lookahead_literal(parser, "FLOAT32", 0) - _t1469 = 12 + _t1485 = 12 else if match_lookahead_literal(parser, "FLOAT", 0) - _t1470 = 3 + _t1486 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t1471 = 7 + _t1487 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t1472 = 6 + _t1488 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t1473 = 10 + _t1489 = 10 else if match_lookahead_literal(parser, "(", 0) - _t1474 = 9 + _t1490 = 9 else - _t1474 = -1 + _t1490 = -1 end - _t1473 = _t1474 + _t1489 = _t1490 end - _t1472 = _t1473 + _t1488 = _t1489 end - _t1471 = _t1472 + _t1487 = _t1488 end - _t1470 = _t1471 + _t1486 = _t1487 end - _t1469 = _t1470 + _t1485 = _t1486 end - _t1468 = _t1469 + _t1484 = _t1485 end - _t1467 = _t1468 + _t1483 = _t1484 end - _t1466 = _t1467 + _t1482 = _t1483 end - _t1465 = _t1466 + _t1481 = _t1482 end - _t1464 = _t1465 + _t1480 = _t1481 end - _t1463 = _t1464 + _t1479 = _t1480 end - _t1462 = _t1463 + _t1478 = _t1479 end - _t1461 = _t1462 + _t1477 = _t1478 end - prediction779 = _t1461 - if prediction779 == 13 - _t1476 = parse_uint32_type(parser) - uint32_type793 = _t1476 - _t1477 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type793)) - _t1475 = _t1477 + prediction787 = _t1477 + if prediction787 == 13 + _t1492 = parse_uint32_type(parser) + uint32_type801 = _t1492 + _t1493 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type801)) + _t1491 = _t1493 else - if prediction779 == 12 - _t1479 = parse_float32_type(parser) - float32_type792 = _t1479 - _t1480 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type792)) - _t1478 = _t1480 + if prediction787 == 12 + _t1495 = parse_float32_type(parser) + float32_type800 = _t1495 + _t1496 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type800)) + _t1494 = _t1496 else - if prediction779 == 11 - _t1482 = parse_int32_type(parser) - int32_type791 = _t1482 - _t1483 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type791)) - _t1481 = _t1483 + if prediction787 == 11 + _t1498 = parse_int32_type(parser) + int32_type799 = _t1498 + _t1499 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type799)) + _t1497 = _t1499 else - if prediction779 == 10 - _t1485 = parse_boolean_type(parser) - boolean_type790 = _t1485 - _t1486 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type790)) - _t1484 = _t1486 + if prediction787 == 10 + _t1501 = parse_boolean_type(parser) + boolean_type798 = _t1501 + _t1502 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type798)) + _t1500 = _t1502 else - if prediction779 == 9 - _t1488 = parse_decimal_type(parser) - decimal_type789 = _t1488 - _t1489 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type789)) - _t1487 = _t1489 + if prediction787 == 9 + _t1504 = parse_decimal_type(parser) + decimal_type797 = _t1504 + _t1505 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type797)) + _t1503 = _t1505 else - if prediction779 == 8 - _t1491 = parse_missing_type(parser) - missing_type788 = _t1491 - _t1492 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type788)) - _t1490 = _t1492 + if prediction787 == 8 + _t1507 = parse_missing_type(parser) + missing_type796 = _t1507 + _t1508 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type796)) + _t1506 = _t1508 else - if prediction779 == 7 - _t1494 = parse_datetime_type(parser) - datetime_type787 = _t1494 - _t1495 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type787)) - _t1493 = _t1495 + if prediction787 == 7 + _t1510 = parse_datetime_type(parser) + datetime_type795 = _t1510 + _t1511 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type795)) + _t1509 = _t1511 else - if prediction779 == 6 - _t1497 = parse_date_type(parser) - date_type786 = _t1497 - _t1498 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type786)) - _t1496 = _t1498 + if prediction787 == 6 + _t1513 = parse_date_type(parser) + date_type794 = _t1513 + _t1514 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type794)) + _t1512 = _t1514 else - if prediction779 == 5 - _t1500 = parse_int128_type(parser) - int128_type785 = _t1500 - _t1501 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type785)) - _t1499 = _t1501 + if prediction787 == 5 + _t1516 = parse_int128_type(parser) + int128_type793 = _t1516 + _t1517 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type793)) + _t1515 = _t1517 else - if prediction779 == 4 - _t1503 = parse_uint128_type(parser) - uint128_type784 = _t1503 - _t1504 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type784)) - _t1502 = _t1504 + if prediction787 == 4 + _t1519 = parse_uint128_type(parser) + uint128_type792 = _t1519 + _t1520 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type792)) + _t1518 = _t1520 else - if prediction779 == 3 - _t1506 = parse_float_type(parser) - float_type783 = _t1506 - _t1507 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type783)) - _t1505 = _t1507 + if prediction787 == 3 + _t1522 = parse_float_type(parser) + float_type791 = _t1522 + _t1523 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type791)) + _t1521 = _t1523 else - if prediction779 == 2 - _t1509 = parse_int_type(parser) - int_type782 = _t1509 - _t1510 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type782)) - _t1508 = _t1510 + if prediction787 == 2 + _t1525 = parse_int_type(parser) + int_type790 = _t1525 + _t1526 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type790)) + _t1524 = _t1526 else - if prediction779 == 1 - _t1512 = parse_string_type(parser) - string_type781 = _t1512 - _t1513 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type781)) - _t1511 = _t1513 + if prediction787 == 1 + _t1528 = parse_string_type(parser) + string_type789 = _t1528 + _t1529 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type789)) + _t1527 = _t1529 else - if prediction779 == 0 - _t1515 = parse_unspecified_type(parser) - unspecified_type780 = _t1515 - _t1516 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type780)) - _t1514 = _t1516 + if prediction787 == 0 + _t1531 = parse_unspecified_type(parser) + unspecified_type788 = _t1531 + _t1532 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type788)) + _t1530 = _t1532 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t1511 = _t1514 + _t1527 = _t1530 end - _t1508 = _t1511 + _t1524 = _t1527 end - _t1505 = _t1508 + _t1521 = _t1524 end - _t1502 = _t1505 + _t1518 = _t1521 end - _t1499 = _t1502 + _t1515 = _t1518 end - _t1496 = _t1499 + _t1512 = _t1515 end - _t1493 = _t1496 + _t1509 = _t1512 end - _t1490 = _t1493 + _t1506 = _t1509 end - _t1487 = _t1490 + _t1503 = _t1506 end - _t1484 = _t1487 + _t1500 = _t1503 end - _t1481 = _t1484 + _t1497 = _t1500 end - _t1478 = _t1481 + _t1494 = _t1497 end - _t1475 = _t1478 + _t1491 = _t1494 end - result795 = _t1475 - record_span!(parser, span_start794, "Type") - return result795 + result803 = _t1491 + record_span!(parser, span_start802, "Type") + return result803 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType - span_start796 = span_start(parser) + span_start804 = span_start(parser) consume_literal!(parser, "UNKNOWN") - _t1517 = Proto.UnspecifiedType() - result797 = _t1517 - record_span!(parser, span_start796, "UnspecifiedType") - return result797 + _t1533 = Proto.UnspecifiedType() + result805 = _t1533 + record_span!(parser, span_start804, "UnspecifiedType") + return result805 end function parse_string_type(parser::ParserState)::Proto.StringType - span_start798 = span_start(parser) + span_start806 = span_start(parser) consume_literal!(parser, "STRING") - _t1518 = Proto.StringType() - result799 = _t1518 - record_span!(parser, span_start798, "StringType") - return result799 + _t1534 = Proto.StringType() + result807 = _t1534 + record_span!(parser, span_start806, "StringType") + return result807 end function parse_int_type(parser::ParserState)::Proto.IntType - span_start800 = span_start(parser) + span_start808 = span_start(parser) consume_literal!(parser, "INT") - _t1519 = Proto.IntType() - result801 = _t1519 - record_span!(parser, span_start800, "IntType") - return result801 + _t1535 = Proto.IntType() + result809 = _t1535 + record_span!(parser, span_start808, "IntType") + return result809 end function parse_float_type(parser::ParserState)::Proto.FloatType - span_start802 = span_start(parser) + span_start810 = span_start(parser) consume_literal!(parser, "FLOAT") - _t1520 = Proto.FloatType() - result803 = _t1520 - record_span!(parser, span_start802, "FloatType") - return result803 + _t1536 = Proto.FloatType() + result811 = _t1536 + record_span!(parser, span_start810, "FloatType") + return result811 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type - span_start804 = span_start(parser) + span_start812 = span_start(parser) consume_literal!(parser, "UINT128") - _t1521 = Proto.UInt128Type() - result805 = _t1521 - record_span!(parser, span_start804, "UInt128Type") - return result805 + _t1537 = Proto.UInt128Type() + result813 = _t1537 + record_span!(parser, span_start812, "UInt128Type") + return result813 end function parse_int128_type(parser::ParserState)::Proto.Int128Type - span_start806 = span_start(parser) + span_start814 = span_start(parser) consume_literal!(parser, "INT128") - _t1522 = Proto.Int128Type() - result807 = _t1522 - record_span!(parser, span_start806, "Int128Type") - return result807 + _t1538 = Proto.Int128Type() + result815 = _t1538 + record_span!(parser, span_start814, "Int128Type") + return result815 end function parse_date_type(parser::ParserState)::Proto.DateType - span_start808 = span_start(parser) + span_start816 = span_start(parser) consume_literal!(parser, "DATE") - _t1523 = Proto.DateType() - result809 = _t1523 - record_span!(parser, span_start808, "DateType") - return result809 + _t1539 = Proto.DateType() + result817 = _t1539 + record_span!(parser, span_start816, "DateType") + return result817 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType - span_start810 = span_start(parser) + span_start818 = span_start(parser) consume_literal!(parser, "DATETIME") - _t1524 = Proto.DateTimeType() - result811 = _t1524 - record_span!(parser, span_start810, "DateTimeType") - return result811 + _t1540 = Proto.DateTimeType() + result819 = _t1540 + record_span!(parser, span_start818, "DateTimeType") + return result819 end function parse_missing_type(parser::ParserState)::Proto.MissingType - span_start812 = span_start(parser) + span_start820 = span_start(parser) consume_literal!(parser, "MISSING") - _t1525 = Proto.MissingType() - result813 = _t1525 - record_span!(parser, span_start812, "MissingType") - return result813 + _t1541 = Proto.MissingType() + result821 = _t1541 + record_span!(parser, span_start820, "MissingType") + return result821 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType - span_start816 = span_start(parser) + span_start824 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int814 = consume_terminal!(parser, "INT") - int_3815 = consume_terminal!(parser, "INT") + int822 = consume_terminal!(parser, "INT") + int_3823 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1526 = Proto.DecimalType(precision=Int32(int814), scale=Int32(int_3815)) - result817 = _t1526 - record_span!(parser, span_start816, "DecimalType") - return result817 + _t1542 = Proto.DecimalType(precision=Int32(int822), scale=Int32(int_3823)) + result825 = _t1542 + record_span!(parser, span_start824, "DecimalType") + return result825 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType - span_start818 = span_start(parser) + span_start826 = span_start(parser) consume_literal!(parser, "BOOLEAN") - _t1527 = Proto.BooleanType() - result819 = _t1527 - record_span!(parser, span_start818, "BooleanType") - return result819 + _t1543 = Proto.BooleanType() + result827 = _t1543 + record_span!(parser, span_start826, "BooleanType") + return result827 end function parse_int32_type(parser::ParserState)::Proto.Int32Type - span_start820 = span_start(parser) + span_start828 = span_start(parser) consume_literal!(parser, "INT32") - _t1528 = Proto.Int32Type() - result821 = _t1528 - record_span!(parser, span_start820, "Int32Type") - return result821 + _t1544 = Proto.Int32Type() + result829 = _t1544 + record_span!(parser, span_start828, "Int32Type") + return result829 end function parse_float32_type(parser::ParserState)::Proto.Float32Type - span_start822 = span_start(parser) + span_start830 = span_start(parser) consume_literal!(parser, "FLOAT32") - _t1529 = Proto.Float32Type() - result823 = _t1529 - record_span!(parser, span_start822, "Float32Type") - return result823 + _t1545 = Proto.Float32Type() + result831 = _t1545 + record_span!(parser, span_start830, "Float32Type") + return result831 end function parse_uint32_type(parser::ParserState)::Proto.UInt32Type - span_start824 = span_start(parser) + span_start832 = span_start(parser) consume_literal!(parser, "UINT32") - _t1530 = Proto.UInt32Type() - result825 = _t1530 - record_span!(parser, span_start824, "UInt32Type") - return result825 + _t1546 = Proto.UInt32Type() + result833 = _t1546 + record_span!(parser, span_start832, "UInt32Type") + return result833 end function parse_value_bindings(parser::ParserState)::Vector{Proto.Binding} consume_literal!(parser, "|") - xs826 = Proto.Binding[] - cond827 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond827 - _t1531 = parse_binding(parser) - item828 = _t1531 - push!(xs826, item828) - cond827 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs834 = Proto.Binding[] + cond835 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond835 + _t1547 = parse_binding(parser) + item836 = _t1547 + push!(xs834, item836) + cond835 = match_lookahead_terminal(parser, "SYMBOL", 0) end - bindings829 = xs826 - return bindings829 + bindings837 = xs834 + return bindings837 end function parse_formula(parser::ParserState)::Proto.Formula - span_start844 = span_start(parser) + span_start852 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t1533 = 0 + _t1549 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t1534 = 11 + _t1550 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t1535 = 3 + _t1551 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t1536 = 10 + _t1552 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t1537 = 9 + _t1553 = 9 else if match_lookahead_literal(parser, "or", 1) - _t1538 = 5 + _t1554 = 5 else if match_lookahead_literal(parser, "not", 1) - _t1539 = 6 + _t1555 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t1540 = 7 + _t1556 = 7 else if match_lookahead_literal(parser, "false", 1) - _t1541 = 1 + _t1557 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t1542 = 2 + _t1558 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t1543 = 12 + _t1559 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t1544 = 8 + _t1560 = 8 else if match_lookahead_literal(parser, "and", 1) - _t1545 = 4 + _t1561 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t1546 = 10 + _t1562 = 10 else if match_lookahead_literal(parser, ">", 1) - _t1547 = 10 + _t1563 = 10 else if match_lookahead_literal(parser, "=", 1) - _t1548 = 10 + _t1564 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t1549 = 10 + _t1565 = 10 else if match_lookahead_literal(parser, "<", 1) - _t1550 = 10 + _t1566 = 10 else if match_lookahead_literal(parser, "/", 1) - _t1551 = 10 + _t1567 = 10 else if match_lookahead_literal(parser, "-", 1) - _t1552 = 10 + _t1568 = 10 else if match_lookahead_literal(parser, "+", 1) - _t1553 = 10 + _t1569 = 10 else if match_lookahead_literal(parser, "*", 1) - _t1554 = 10 + _t1570 = 10 else - _t1554 = -1 + _t1570 = -1 end - _t1553 = _t1554 + _t1569 = _t1570 end - _t1552 = _t1553 + _t1568 = _t1569 end - _t1551 = _t1552 + _t1567 = _t1568 end - _t1550 = _t1551 + _t1566 = _t1567 end - _t1549 = _t1550 + _t1565 = _t1566 end - _t1548 = _t1549 + _t1564 = _t1565 end - _t1547 = _t1548 + _t1563 = _t1564 end - _t1546 = _t1547 + _t1562 = _t1563 end - _t1545 = _t1546 + _t1561 = _t1562 end - _t1544 = _t1545 + _t1560 = _t1561 end - _t1543 = _t1544 + _t1559 = _t1560 end - _t1542 = _t1543 + _t1558 = _t1559 end - _t1541 = _t1542 + _t1557 = _t1558 end - _t1540 = _t1541 + _t1556 = _t1557 end - _t1539 = _t1540 + _t1555 = _t1556 end - _t1538 = _t1539 + _t1554 = _t1555 end - _t1537 = _t1538 + _t1553 = _t1554 end - _t1536 = _t1537 + _t1552 = _t1553 end - _t1535 = _t1536 + _t1551 = _t1552 end - _t1534 = _t1535 + _t1550 = _t1551 end - _t1533 = _t1534 + _t1549 = _t1550 end - _t1532 = _t1533 + _t1548 = _t1549 else - _t1532 = -1 - end - prediction830 = _t1532 - if prediction830 == 12 - _t1556 = parse_cast(parser) - cast843 = _t1556 - _t1557 = Proto.Formula(formula_type=OneOf(:cast, cast843)) - _t1555 = _t1557 + _t1548 = -1 + end + prediction838 = _t1548 + if prediction838 == 12 + _t1572 = parse_cast(parser) + cast851 = _t1572 + _t1573 = Proto.Formula(formula_type=OneOf(:cast, cast851)) + _t1571 = _t1573 else - if prediction830 == 11 - _t1559 = parse_rel_atom(parser) - rel_atom842 = _t1559 - _t1560 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom842)) - _t1558 = _t1560 + if prediction838 == 11 + _t1575 = parse_rel_atom(parser) + rel_atom850 = _t1575 + _t1576 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom850)) + _t1574 = _t1576 else - if prediction830 == 10 - _t1562 = parse_primitive(parser) - primitive841 = _t1562 - _t1563 = Proto.Formula(formula_type=OneOf(:primitive, primitive841)) - _t1561 = _t1563 + if prediction838 == 10 + _t1578 = parse_primitive(parser) + primitive849 = _t1578 + _t1579 = Proto.Formula(formula_type=OneOf(:primitive, primitive849)) + _t1577 = _t1579 else - if prediction830 == 9 - _t1565 = parse_pragma(parser) - pragma840 = _t1565 - _t1566 = Proto.Formula(formula_type=OneOf(:pragma, pragma840)) - _t1564 = _t1566 + if prediction838 == 9 + _t1581 = parse_pragma(parser) + pragma848 = _t1581 + _t1582 = Proto.Formula(formula_type=OneOf(:pragma, pragma848)) + _t1580 = _t1582 else - if prediction830 == 8 - _t1568 = parse_atom(parser) - atom839 = _t1568 - _t1569 = Proto.Formula(formula_type=OneOf(:atom, atom839)) - _t1567 = _t1569 + if prediction838 == 8 + _t1584 = parse_atom(parser) + atom847 = _t1584 + _t1585 = Proto.Formula(formula_type=OneOf(:atom, atom847)) + _t1583 = _t1585 else - if prediction830 == 7 - _t1571 = parse_ffi(parser) - ffi838 = _t1571 - _t1572 = Proto.Formula(formula_type=OneOf(:ffi, ffi838)) - _t1570 = _t1572 + if prediction838 == 7 + _t1587 = parse_ffi(parser) + ffi846 = _t1587 + _t1588 = Proto.Formula(formula_type=OneOf(:ffi, ffi846)) + _t1586 = _t1588 else - if prediction830 == 6 - _t1574 = parse_not(parser) - not837 = _t1574 - _t1575 = Proto.Formula(formula_type=OneOf(:not, not837)) - _t1573 = _t1575 + if prediction838 == 6 + _t1590 = parse_not(parser) + not845 = _t1590 + _t1591 = Proto.Formula(formula_type=OneOf(:not, not845)) + _t1589 = _t1591 else - if prediction830 == 5 - _t1577 = parse_disjunction(parser) - disjunction836 = _t1577 - _t1578 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction836)) - _t1576 = _t1578 + if prediction838 == 5 + _t1593 = parse_disjunction(parser) + disjunction844 = _t1593 + _t1594 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction844)) + _t1592 = _t1594 else - if prediction830 == 4 - _t1580 = parse_conjunction(parser) - conjunction835 = _t1580 - _t1581 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction835)) - _t1579 = _t1581 + if prediction838 == 4 + _t1596 = parse_conjunction(parser) + conjunction843 = _t1596 + _t1597 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction843)) + _t1595 = _t1597 else - if prediction830 == 3 - _t1583 = parse_reduce(parser) - reduce834 = _t1583 - _t1584 = Proto.Formula(formula_type=OneOf(:reduce, reduce834)) - _t1582 = _t1584 + if prediction838 == 3 + _t1599 = parse_reduce(parser) + reduce842 = _t1599 + _t1600 = Proto.Formula(formula_type=OneOf(:reduce, reduce842)) + _t1598 = _t1600 else - if prediction830 == 2 - _t1586 = parse_exists(parser) - exists833 = _t1586 - _t1587 = Proto.Formula(formula_type=OneOf(:exists, exists833)) - _t1585 = _t1587 + if prediction838 == 2 + _t1602 = parse_exists(parser) + exists841 = _t1602 + _t1603 = Proto.Formula(formula_type=OneOf(:exists, exists841)) + _t1601 = _t1603 else - if prediction830 == 1 - _t1589 = parse_false(parser) - false832 = _t1589 - _t1590 = Proto.Formula(formula_type=OneOf(:disjunction, false832)) - _t1588 = _t1590 + if prediction838 == 1 + _t1605 = parse_false(parser) + false840 = _t1605 + _t1606 = Proto.Formula(formula_type=OneOf(:disjunction, false840)) + _t1604 = _t1606 else - if prediction830 == 0 - _t1592 = parse_true(parser) - true831 = _t1592 - _t1593 = Proto.Formula(formula_type=OneOf(:conjunction, true831)) - _t1591 = _t1593 + if prediction838 == 0 + _t1608 = parse_true(parser) + true839 = _t1608 + _t1609 = Proto.Formula(formula_type=OneOf(:conjunction, true839)) + _t1607 = _t1609 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t1588 = _t1591 + _t1604 = _t1607 end - _t1585 = _t1588 + _t1601 = _t1604 end - _t1582 = _t1585 + _t1598 = _t1601 end - _t1579 = _t1582 + _t1595 = _t1598 end - _t1576 = _t1579 + _t1592 = _t1595 end - _t1573 = _t1576 + _t1589 = _t1592 end - _t1570 = _t1573 + _t1586 = _t1589 end - _t1567 = _t1570 + _t1583 = _t1586 end - _t1564 = _t1567 + _t1580 = _t1583 end - _t1561 = _t1564 + _t1577 = _t1580 end - _t1558 = _t1561 + _t1574 = _t1577 end - _t1555 = _t1558 + _t1571 = _t1574 end - result845 = _t1555 - record_span!(parser, span_start844, "Formula") - return result845 + result853 = _t1571 + record_span!(parser, span_start852, "Formula") + return result853 end function parse_true(parser::ParserState)::Proto.Conjunction - span_start846 = span_start(parser) + span_start854 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "true") consume_literal!(parser, ")") - _t1594 = Proto.Conjunction(args=Proto.Formula[]) - result847 = _t1594 - record_span!(parser, span_start846, "Conjunction") - return result847 + _t1610 = Proto.Conjunction(args=Proto.Formula[]) + result855 = _t1610 + record_span!(parser, span_start854, "Conjunction") + return result855 end function parse_false(parser::ParserState)::Proto.Disjunction - span_start848 = span_start(parser) + span_start856 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "false") consume_literal!(parser, ")") - _t1595 = Proto.Disjunction(args=Proto.Formula[]) - result849 = _t1595 - record_span!(parser, span_start848, "Disjunction") - return result849 + _t1611 = Proto.Disjunction(args=Proto.Formula[]) + result857 = _t1611 + record_span!(parser, span_start856, "Disjunction") + return result857 end function parse_exists(parser::ParserState)::Proto.Exists - span_start852 = span_start(parser) + span_start860 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t1596 = parse_bindings(parser) - bindings850 = _t1596 - _t1597 = parse_formula(parser) - formula851 = _t1597 + _t1612 = parse_bindings(parser) + bindings858 = _t1612 + _t1613 = parse_formula(parser) + formula859 = _t1613 consume_literal!(parser, ")") - _t1598 = Proto.Abstraction(vars=vcat(bindings850[1], !isnothing(bindings850[2]) ? bindings850[2] : []), value=formula851) - _t1599 = Proto.Exists(body=_t1598) - result853 = _t1599 - record_span!(parser, span_start852, "Exists") - return result853 + _t1614 = Proto.Abstraction(vars=vcat(bindings858[1], !isnothing(bindings858[2]) ? bindings858[2] : []), value=formula859) + _t1615 = Proto.Exists(body=_t1614) + result861 = _t1615 + record_span!(parser, span_start860, "Exists") + return result861 end function parse_reduce(parser::ParserState)::Proto.Reduce - span_start857 = span_start(parser) + span_start865 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "reduce") - _t1600 = parse_abstraction(parser) - abstraction854 = _t1600 - _t1601 = parse_abstraction(parser) - abstraction_3855 = _t1601 - _t1602 = parse_terms(parser) - terms856 = _t1602 + _t1616 = parse_abstraction(parser) + abstraction862 = _t1616 + _t1617 = parse_abstraction(parser) + abstraction_3863 = _t1617 + _t1618 = parse_terms(parser) + terms864 = _t1618 consume_literal!(parser, ")") - _t1603 = Proto.Reduce(op=abstraction854, body=abstraction_3855, terms=terms856) - result858 = _t1603 - record_span!(parser, span_start857, "Reduce") - return result858 + _t1619 = Proto.Reduce(op=abstraction862, body=abstraction_3863, terms=terms864) + result866 = _t1619 + record_span!(parser, span_start865, "Reduce") + return result866 end function parse_terms(parser::ParserState)::Vector{Proto.Term} consume_literal!(parser, "(") consume_literal!(parser, "terms") - xs859 = Proto.Term[] - cond860 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - while cond860 - _t1604 = parse_term(parser) - item861 = _t1604 - push!(xs859, item861) - cond860 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - end - terms862 = xs859 + xs867 = Proto.Term[] + cond868 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + while cond868 + _t1620 = parse_term(parser) + item869 = _t1620 + push!(xs867, item869) + cond868 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + end + terms870 = xs867 consume_literal!(parser, ")") - return terms862 + return terms870 end function parse_term(parser::ParserState)::Proto.Term - span_start866 = span_start(parser) + span_start874 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1605 = 1 + _t1621 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1606 = 1 + _t1622 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1607 = 1 + _t1623 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1608 = 1 + _t1624 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1609 = 0 + _t1625 = 0 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1610 = 1 + _t1626 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1611 = 1 + _t1627 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1612 = 1 + _t1628 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1613 = 1 + _t1629 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1614 = 1 + _t1630 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1615 = 1 + _t1631 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1616 = 1 + _t1632 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1617 = 1 + _t1633 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1618 = 1 + _t1634 = 1 else - _t1618 = -1 + _t1634 = -1 end - _t1617 = _t1618 + _t1633 = _t1634 end - _t1616 = _t1617 + _t1632 = _t1633 end - _t1615 = _t1616 + _t1631 = _t1632 end - _t1614 = _t1615 + _t1630 = _t1631 end - _t1613 = _t1614 + _t1629 = _t1630 end - _t1612 = _t1613 + _t1628 = _t1629 end - _t1611 = _t1612 + _t1627 = _t1628 end - _t1610 = _t1611 + _t1626 = _t1627 end - _t1609 = _t1610 + _t1625 = _t1626 end - _t1608 = _t1609 + _t1624 = _t1625 end - _t1607 = _t1608 + _t1623 = _t1624 end - _t1606 = _t1607 + _t1622 = _t1623 end - _t1605 = _t1606 - end - prediction863 = _t1605 - if prediction863 == 1 - _t1620 = parse_value(parser) - value865 = _t1620 - _t1621 = Proto.Term(term_type=OneOf(:constant, value865)) - _t1619 = _t1621 + _t1621 = _t1622 + end + prediction871 = _t1621 + if prediction871 == 1 + _t1636 = parse_value(parser) + value873 = _t1636 + _t1637 = Proto.Term(term_type=OneOf(:constant, value873)) + _t1635 = _t1637 else - if prediction863 == 0 - _t1623 = parse_var(parser) - var864 = _t1623 - _t1624 = Proto.Term(term_type=OneOf(:var, var864)) - _t1622 = _t1624 + if prediction871 == 0 + _t1639 = parse_var(parser) + var872 = _t1639 + _t1640 = Proto.Term(term_type=OneOf(:var, var872)) + _t1638 = _t1640 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t1619 = _t1622 + _t1635 = _t1638 end - result867 = _t1619 - record_span!(parser, span_start866, "Term") - return result867 + result875 = _t1635 + record_span!(parser, span_start874, "Term") + return result875 end function parse_var(parser::ParserState)::Proto.Var - span_start869 = span_start(parser) - symbol868 = consume_terminal!(parser, "SYMBOL") - _t1625 = Proto.Var(name=symbol868) - result870 = _t1625 - record_span!(parser, span_start869, "Var") - return result870 + span_start877 = span_start(parser) + symbol876 = consume_terminal!(parser, "SYMBOL") + _t1641 = Proto.Var(name=symbol876) + result878 = _t1641 + record_span!(parser, span_start877, "Var") + return result878 end function parse_value(parser::ParserState)::Proto.Value - span_start884 = span_start(parser) + span_start892 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1626 = 12 + _t1642 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1627 = 11 + _t1643 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1628 = 12 + _t1644 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1630 = 1 + _t1646 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1631 = 0 + _t1647 = 0 else - _t1631 = -1 + _t1647 = -1 end - _t1630 = _t1631 + _t1646 = _t1647 end - _t1629 = _t1630 + _t1645 = _t1646 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1632 = 7 + _t1648 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1633 = 8 + _t1649 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1634 = 2 + _t1650 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1635 = 3 + _t1651 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1636 = 9 + _t1652 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1637 = 4 + _t1653 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1638 = 5 + _t1654 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1639 = 6 + _t1655 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1640 = 10 + _t1656 = 10 else - _t1640 = -1 + _t1656 = -1 end - _t1639 = _t1640 + _t1655 = _t1656 end - _t1638 = _t1639 + _t1654 = _t1655 end - _t1637 = _t1638 + _t1653 = _t1654 end - _t1636 = _t1637 + _t1652 = _t1653 end - _t1635 = _t1636 + _t1651 = _t1652 end - _t1634 = _t1635 + _t1650 = _t1651 end - _t1633 = _t1634 + _t1649 = _t1650 end - _t1632 = _t1633 + _t1648 = _t1649 end - _t1629 = _t1632 + _t1645 = _t1648 end - _t1628 = _t1629 + _t1644 = _t1645 end - _t1627 = _t1628 + _t1643 = _t1644 end - _t1626 = _t1627 - end - prediction871 = _t1626 - if prediction871 == 12 - _t1642 = parse_boolean_value(parser) - boolean_value883 = _t1642 - _t1643 = Proto.Value(value=OneOf(:boolean_value, boolean_value883)) - _t1641 = _t1643 + _t1642 = _t1643 + end + prediction879 = _t1642 + if prediction879 == 12 + _t1658 = parse_boolean_value(parser) + boolean_value891 = _t1658 + _t1659 = Proto.Value(value=OneOf(:boolean_value, boolean_value891)) + _t1657 = _t1659 else - if prediction871 == 11 + if prediction879 == 11 consume_literal!(parser, "missing") - _t1645 = Proto.MissingValue() - _t1646 = Proto.Value(value=OneOf(:missing_value, _t1645)) - _t1644 = _t1646 + _t1661 = Proto.MissingValue() + _t1662 = Proto.Value(value=OneOf(:missing_value, _t1661)) + _t1660 = _t1662 else - if prediction871 == 10 - formatted_decimal882 = consume_terminal!(parser, "DECIMAL") - _t1648 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal882)) - _t1647 = _t1648 + if prediction879 == 10 + formatted_decimal890 = consume_terminal!(parser, "DECIMAL") + _t1664 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal890)) + _t1663 = _t1664 else - if prediction871 == 9 - formatted_int128881 = consume_terminal!(parser, "INT128") - _t1650 = Proto.Value(value=OneOf(:int128_value, formatted_int128881)) - _t1649 = _t1650 + if prediction879 == 9 + formatted_int128889 = consume_terminal!(parser, "INT128") + _t1666 = Proto.Value(value=OneOf(:int128_value, formatted_int128889)) + _t1665 = _t1666 else - if prediction871 == 8 - formatted_uint128880 = consume_terminal!(parser, "UINT128") - _t1652 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128880)) - _t1651 = _t1652 + if prediction879 == 8 + formatted_uint128888 = consume_terminal!(parser, "UINT128") + _t1668 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128888)) + _t1667 = _t1668 else - if prediction871 == 7 - formatted_uint32879 = consume_terminal!(parser, "UINT32") - _t1654 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32879)) - _t1653 = _t1654 + if prediction879 == 7 + formatted_uint32887 = consume_terminal!(parser, "UINT32") + _t1670 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32887)) + _t1669 = _t1670 else - if prediction871 == 6 - formatted_float878 = consume_terminal!(parser, "FLOAT") - _t1656 = Proto.Value(value=OneOf(:float_value, formatted_float878)) - _t1655 = _t1656 + if prediction879 == 6 + formatted_float886 = consume_terminal!(parser, "FLOAT") + _t1672 = Proto.Value(value=OneOf(:float_value, formatted_float886)) + _t1671 = _t1672 else - if prediction871 == 5 - formatted_float32877 = consume_terminal!(parser, "FLOAT32") - _t1658 = Proto.Value(value=OneOf(:float32_value, formatted_float32877)) - _t1657 = _t1658 + if prediction879 == 5 + formatted_float32885 = consume_terminal!(parser, "FLOAT32") + _t1674 = Proto.Value(value=OneOf(:float32_value, formatted_float32885)) + _t1673 = _t1674 else - if prediction871 == 4 - formatted_int876 = consume_terminal!(parser, "INT") - _t1660 = Proto.Value(value=OneOf(:int_value, formatted_int876)) - _t1659 = _t1660 + if prediction879 == 4 + formatted_int884 = consume_terminal!(parser, "INT") + _t1676 = Proto.Value(value=OneOf(:int_value, formatted_int884)) + _t1675 = _t1676 else - if prediction871 == 3 - formatted_int32875 = consume_terminal!(parser, "INT32") - _t1662 = Proto.Value(value=OneOf(:int32_value, formatted_int32875)) - _t1661 = _t1662 + if prediction879 == 3 + formatted_int32883 = consume_terminal!(parser, "INT32") + _t1678 = Proto.Value(value=OneOf(:int32_value, formatted_int32883)) + _t1677 = _t1678 else - if prediction871 == 2 - formatted_string874 = consume_terminal!(parser, "STRING") - _t1664 = Proto.Value(value=OneOf(:string_value, formatted_string874)) - _t1663 = _t1664 + if prediction879 == 2 + formatted_string882 = consume_terminal!(parser, "STRING") + _t1680 = Proto.Value(value=OneOf(:string_value, formatted_string882)) + _t1679 = _t1680 else - if prediction871 == 1 - _t1666 = parse_datetime(parser) - datetime873 = _t1666 - _t1667 = Proto.Value(value=OneOf(:datetime_value, datetime873)) - _t1665 = _t1667 + if prediction879 == 1 + _t1682 = parse_datetime(parser) + datetime881 = _t1682 + _t1683 = Proto.Value(value=OneOf(:datetime_value, datetime881)) + _t1681 = _t1683 else - if prediction871 == 0 - _t1669 = parse_date(parser) - date872 = _t1669 - _t1670 = Proto.Value(value=OneOf(:date_value, date872)) - _t1668 = _t1670 + if prediction879 == 0 + _t1685 = parse_date(parser) + date880 = _t1685 + _t1686 = Proto.Value(value=OneOf(:date_value, date880)) + _t1684 = _t1686 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t1665 = _t1668 + _t1681 = _t1684 end - _t1663 = _t1665 + _t1679 = _t1681 end - _t1661 = _t1663 + _t1677 = _t1679 end - _t1659 = _t1661 + _t1675 = _t1677 end - _t1657 = _t1659 + _t1673 = _t1675 end - _t1655 = _t1657 + _t1671 = _t1673 end - _t1653 = _t1655 + _t1669 = _t1671 end - _t1651 = _t1653 + _t1667 = _t1669 end - _t1649 = _t1651 + _t1665 = _t1667 end - _t1647 = _t1649 + _t1663 = _t1665 end - _t1644 = _t1647 + _t1660 = _t1663 end - _t1641 = _t1644 + _t1657 = _t1660 end - result885 = _t1641 - record_span!(parser, span_start884, "Value") - return result885 + result893 = _t1657 + record_span!(parser, span_start892, "Value") + return result893 end function parse_date(parser::ParserState)::Proto.DateValue - span_start889 = span_start(parser) + span_start897 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "date") - formatted_int886 = consume_terminal!(parser, "INT") - formatted_int_3887 = consume_terminal!(parser, "INT") - formatted_int_4888 = consume_terminal!(parser, "INT") + formatted_int894 = consume_terminal!(parser, "INT") + formatted_int_3895 = consume_terminal!(parser, "INT") + formatted_int_4896 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1671 = Proto.DateValue(year=Int32(formatted_int886), month=Int32(formatted_int_3887), day=Int32(formatted_int_4888)) - result890 = _t1671 - record_span!(parser, span_start889, "DateValue") - return result890 + _t1687 = Proto.DateValue(year=Int32(formatted_int894), month=Int32(formatted_int_3895), day=Int32(formatted_int_4896)) + result898 = _t1687 + record_span!(parser, span_start897, "DateValue") + return result898 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue - span_start898 = span_start(parser) + span_start906 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "datetime") - formatted_int891 = consume_terminal!(parser, "INT") - formatted_int_3892 = consume_terminal!(parser, "INT") - formatted_int_4893 = consume_terminal!(parser, "INT") - formatted_int_5894 = consume_terminal!(parser, "INT") - formatted_int_6895 = consume_terminal!(parser, "INT") - formatted_int_7896 = consume_terminal!(parser, "INT") + formatted_int899 = consume_terminal!(parser, "INT") + formatted_int_3900 = consume_terminal!(parser, "INT") + formatted_int_4901 = consume_terminal!(parser, "INT") + formatted_int_5902 = consume_terminal!(parser, "INT") + formatted_int_6903 = consume_terminal!(parser, "INT") + formatted_int_7904 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1672 = consume_terminal!(parser, "INT") + _t1688 = consume_terminal!(parser, "INT") else - _t1672 = nothing + _t1688 = nothing end - formatted_int_8897 = _t1672 + formatted_int_8905 = _t1688 consume_literal!(parser, ")") - _t1673 = Proto.DateTimeValue(year=Int32(formatted_int891), month=Int32(formatted_int_3892), day=Int32(formatted_int_4893), hour=Int32(formatted_int_5894), minute=Int32(formatted_int_6895), second=Int32(formatted_int_7896), microsecond=Int32((!isnothing(formatted_int_8897) ? formatted_int_8897 : 0))) - result899 = _t1673 - record_span!(parser, span_start898, "DateTimeValue") - return result899 + _t1689 = Proto.DateTimeValue(year=Int32(formatted_int899), month=Int32(formatted_int_3900), day=Int32(formatted_int_4901), hour=Int32(formatted_int_5902), minute=Int32(formatted_int_6903), second=Int32(formatted_int_7904), microsecond=Int32((!isnothing(formatted_int_8905) ? formatted_int_8905 : 0))) + result907 = _t1689 + record_span!(parser, span_start906, "DateTimeValue") + return result907 end function parse_conjunction(parser::ParserState)::Proto.Conjunction - span_start904 = span_start(parser) + span_start912 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "and") - xs900 = Proto.Formula[] - cond901 = match_lookahead_literal(parser, "(", 0) - while cond901 - _t1674 = parse_formula(parser) - item902 = _t1674 - push!(xs900, item902) - cond901 = match_lookahead_literal(parser, "(", 0) - end - formulas903 = xs900 + xs908 = Proto.Formula[] + cond909 = match_lookahead_literal(parser, "(", 0) + while cond909 + _t1690 = parse_formula(parser) + item910 = _t1690 + push!(xs908, item910) + cond909 = match_lookahead_literal(parser, "(", 0) + end + formulas911 = xs908 consume_literal!(parser, ")") - _t1675 = Proto.Conjunction(args=formulas903) - result905 = _t1675 - record_span!(parser, span_start904, "Conjunction") - return result905 + _t1691 = Proto.Conjunction(args=formulas911) + result913 = _t1691 + record_span!(parser, span_start912, "Conjunction") + return result913 end function parse_disjunction(parser::ParserState)::Proto.Disjunction - span_start910 = span_start(parser) + span_start918 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") - xs906 = Proto.Formula[] - cond907 = match_lookahead_literal(parser, "(", 0) - while cond907 - _t1676 = parse_formula(parser) - item908 = _t1676 - push!(xs906, item908) - cond907 = match_lookahead_literal(parser, "(", 0) - end - formulas909 = xs906 + xs914 = Proto.Formula[] + cond915 = match_lookahead_literal(parser, "(", 0) + while cond915 + _t1692 = parse_formula(parser) + item916 = _t1692 + push!(xs914, item916) + cond915 = match_lookahead_literal(parser, "(", 0) + end + formulas917 = xs914 consume_literal!(parser, ")") - _t1677 = Proto.Disjunction(args=formulas909) - result911 = _t1677 - record_span!(parser, span_start910, "Disjunction") - return result911 + _t1693 = Proto.Disjunction(args=formulas917) + result919 = _t1693 + record_span!(parser, span_start918, "Disjunction") + return result919 end function parse_not(parser::ParserState)::Proto.Not - span_start913 = span_start(parser) + span_start921 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "not") - _t1678 = parse_formula(parser) - formula912 = _t1678 + _t1694 = parse_formula(parser) + formula920 = _t1694 consume_literal!(parser, ")") - _t1679 = Proto.Not(arg=formula912) - result914 = _t1679 - record_span!(parser, span_start913, "Not") - return result914 + _t1695 = Proto.Not(arg=formula920) + result922 = _t1695 + record_span!(parser, span_start921, "Not") + return result922 end function parse_ffi(parser::ParserState)::Proto.FFI - span_start918 = span_start(parser) + span_start926 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "ffi") - _t1680 = parse_name(parser) - name915 = _t1680 - _t1681 = parse_ffi_args(parser) - ffi_args916 = _t1681 - _t1682 = parse_terms(parser) - terms917 = _t1682 + _t1696 = parse_name(parser) + name923 = _t1696 + _t1697 = parse_ffi_args(parser) + ffi_args924 = _t1697 + _t1698 = parse_terms(parser) + terms925 = _t1698 consume_literal!(parser, ")") - _t1683 = Proto.FFI(name=name915, args=ffi_args916, terms=terms917) - result919 = _t1683 - record_span!(parser, span_start918, "FFI") - return result919 + _t1699 = Proto.FFI(name=name923, args=ffi_args924, terms=terms925) + result927 = _t1699 + record_span!(parser, span_start926, "FFI") + return result927 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol920 = consume_terminal!(parser, "SYMBOL") - return symbol920 + symbol928 = consume_terminal!(parser, "SYMBOL") + return symbol928 end function parse_ffi_args(parser::ParserState)::Vector{Proto.Abstraction} consume_literal!(parser, "(") consume_literal!(parser, "args") - xs921 = Proto.Abstraction[] - cond922 = match_lookahead_literal(parser, "(", 0) - while cond922 - _t1684 = parse_abstraction(parser) - item923 = _t1684 - push!(xs921, item923) - cond922 = match_lookahead_literal(parser, "(", 0) - end - abstractions924 = xs921 + xs929 = Proto.Abstraction[] + cond930 = match_lookahead_literal(parser, "(", 0) + while cond930 + _t1700 = parse_abstraction(parser) + item931 = _t1700 + push!(xs929, item931) + cond930 = match_lookahead_literal(parser, "(", 0) + end + abstractions932 = xs929 consume_literal!(parser, ")") - return abstractions924 + return abstractions932 end function parse_atom(parser::ParserState)::Proto.Atom - span_start930 = span_start(parser) + span_start938 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "atom") - _t1685 = parse_relation_id(parser) - relation_id925 = _t1685 - xs926 = Proto.Term[] - cond927 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - while cond927 - _t1686 = parse_term(parser) - item928 = _t1686 - push!(xs926, item928) - cond927 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - end - terms929 = xs926 + _t1701 = parse_relation_id(parser) + relation_id933 = _t1701 + xs934 = Proto.Term[] + cond935 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + while cond935 + _t1702 = parse_term(parser) + item936 = _t1702 + push!(xs934, item936) + cond935 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + end + terms937 = xs934 consume_literal!(parser, ")") - _t1687 = Proto.Atom(name=relation_id925, terms=terms929) - result931 = _t1687 - record_span!(parser, span_start930, "Atom") - return result931 + _t1703 = Proto.Atom(name=relation_id933, terms=terms937) + result939 = _t1703 + record_span!(parser, span_start938, "Atom") + return result939 end function parse_pragma(parser::ParserState)::Proto.Pragma - span_start937 = span_start(parser) + span_start945 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "pragma") - _t1688 = parse_name(parser) - name932 = _t1688 - xs933 = Proto.Term[] - cond934 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - while cond934 - _t1689 = parse_term(parser) - item935 = _t1689 - push!(xs933, item935) - cond934 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - end - terms936 = xs933 + _t1704 = parse_name(parser) + name940 = _t1704 + xs941 = Proto.Term[] + cond942 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + while cond942 + _t1705 = parse_term(parser) + item943 = _t1705 + push!(xs941, item943) + cond942 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + end + terms944 = xs941 consume_literal!(parser, ")") - _t1690 = Proto.Pragma(name=name932, terms=terms936) - result938 = _t1690 - record_span!(parser, span_start937, "Pragma") - return result938 + _t1706 = Proto.Pragma(name=name940, terms=terms944) + result946 = _t1706 + record_span!(parser, span_start945, "Pragma") + return result946 end function parse_primitive(parser::ParserState)::Proto.Primitive - span_start954 = span_start(parser) + span_start962 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t1692 = 9 + _t1708 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1693 = 4 + _t1709 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1694 = 3 + _t1710 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1695 = 0 + _t1711 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1696 = 2 + _t1712 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1697 = 1 + _t1713 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1698 = 8 + _t1714 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1699 = 6 + _t1715 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1700 = 5 + _t1716 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1701 = 7 + _t1717 = 7 else - _t1701 = -1 + _t1717 = -1 end - _t1700 = _t1701 + _t1716 = _t1717 end - _t1699 = _t1700 + _t1715 = _t1716 end - _t1698 = _t1699 + _t1714 = _t1715 end - _t1697 = _t1698 + _t1713 = _t1714 end - _t1696 = _t1697 + _t1712 = _t1713 end - _t1695 = _t1696 + _t1711 = _t1712 end - _t1694 = _t1695 + _t1710 = _t1711 end - _t1693 = _t1694 + _t1709 = _t1710 end - _t1692 = _t1693 + _t1708 = _t1709 end - _t1691 = _t1692 + _t1707 = _t1708 else - _t1691 = -1 + _t1707 = -1 end - prediction939 = _t1691 - if prediction939 == 9 + prediction947 = _t1707 + if prediction947 == 9 consume_literal!(parser, "(") consume_literal!(parser, "primitive") - _t1703 = parse_name(parser) - name949 = _t1703 - xs950 = Proto.RelTerm[] - cond951 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - while cond951 - _t1704 = parse_rel_term(parser) - item952 = _t1704 - push!(xs950, item952) - cond951 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + _t1719 = parse_name(parser) + name957 = _t1719 + xs958 = Proto.RelTerm[] + cond959 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + while cond959 + _t1720 = parse_rel_term(parser) + item960 = _t1720 + push!(xs958, item960) + cond959 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) end - rel_terms953 = xs950 + rel_terms961 = xs958 consume_literal!(parser, ")") - _t1705 = Proto.Primitive(name=name949, terms=rel_terms953) - _t1702 = _t1705 + _t1721 = Proto.Primitive(name=name957, terms=rel_terms961) + _t1718 = _t1721 else - if prediction939 == 8 - _t1707 = parse_divide(parser) - divide948 = _t1707 - _t1706 = divide948 + if prediction947 == 8 + _t1723 = parse_divide(parser) + divide956 = _t1723 + _t1722 = divide956 else - if prediction939 == 7 - _t1709 = parse_multiply(parser) - multiply947 = _t1709 - _t1708 = multiply947 + if prediction947 == 7 + _t1725 = parse_multiply(parser) + multiply955 = _t1725 + _t1724 = multiply955 else - if prediction939 == 6 - _t1711 = parse_minus(parser) - minus946 = _t1711 - _t1710 = minus946 + if prediction947 == 6 + _t1727 = parse_minus(parser) + minus954 = _t1727 + _t1726 = minus954 else - if prediction939 == 5 - _t1713 = parse_add(parser) - add945 = _t1713 - _t1712 = add945 + if prediction947 == 5 + _t1729 = parse_add(parser) + add953 = _t1729 + _t1728 = add953 else - if prediction939 == 4 - _t1715 = parse_gt_eq(parser) - gt_eq944 = _t1715 - _t1714 = gt_eq944 + if prediction947 == 4 + _t1731 = parse_gt_eq(parser) + gt_eq952 = _t1731 + _t1730 = gt_eq952 else - if prediction939 == 3 - _t1717 = parse_gt(parser) - gt943 = _t1717 - _t1716 = gt943 + if prediction947 == 3 + _t1733 = parse_gt(parser) + gt951 = _t1733 + _t1732 = gt951 else - if prediction939 == 2 - _t1719 = parse_lt_eq(parser) - lt_eq942 = _t1719 - _t1718 = lt_eq942 + if prediction947 == 2 + _t1735 = parse_lt_eq(parser) + lt_eq950 = _t1735 + _t1734 = lt_eq950 else - if prediction939 == 1 - _t1721 = parse_lt(parser) - lt941 = _t1721 - _t1720 = lt941 + if prediction947 == 1 + _t1737 = parse_lt(parser) + lt949 = _t1737 + _t1736 = lt949 else - if prediction939 == 0 - _t1723 = parse_eq(parser) - eq940 = _t1723 - _t1722 = eq940 + if prediction947 == 0 + _t1739 = parse_eq(parser) + eq948 = _t1739 + _t1738 = eq948 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1720 = _t1722 + _t1736 = _t1738 end - _t1718 = _t1720 + _t1734 = _t1736 end - _t1716 = _t1718 + _t1732 = _t1734 end - _t1714 = _t1716 + _t1730 = _t1732 end - _t1712 = _t1714 + _t1728 = _t1730 end - _t1710 = _t1712 + _t1726 = _t1728 end - _t1708 = _t1710 + _t1724 = _t1726 end - _t1706 = _t1708 + _t1722 = _t1724 end - _t1702 = _t1706 + _t1718 = _t1722 end - result955 = _t1702 - record_span!(parser, span_start954, "Primitive") - return result955 + result963 = _t1718 + record_span!(parser, span_start962, "Primitive") + return result963 end function parse_eq(parser::ParserState)::Proto.Primitive - span_start958 = span_start(parser) + span_start966 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "=") - _t1724 = parse_term(parser) - term956 = _t1724 - _t1725 = parse_term(parser) - term_3957 = _t1725 + _t1740 = parse_term(parser) + term964 = _t1740 + _t1741 = parse_term(parser) + term_3965 = _t1741 consume_literal!(parser, ")") - _t1726 = Proto.RelTerm(rel_term_type=OneOf(:term, term956)) - _t1727 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3957)) - _t1728 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1726, _t1727]) - result959 = _t1728 - record_span!(parser, span_start958, "Primitive") - return result959 + _t1742 = Proto.RelTerm(rel_term_type=OneOf(:term, term964)) + _t1743 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3965)) + _t1744 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1742, _t1743]) + result967 = _t1744 + record_span!(parser, span_start966, "Primitive") + return result967 end function parse_lt(parser::ParserState)::Proto.Primitive - span_start962 = span_start(parser) + span_start970 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<") - _t1729 = parse_term(parser) - term960 = _t1729 - _t1730 = parse_term(parser) - term_3961 = _t1730 + _t1745 = parse_term(parser) + term968 = _t1745 + _t1746 = parse_term(parser) + term_3969 = _t1746 consume_literal!(parser, ")") - _t1731 = Proto.RelTerm(rel_term_type=OneOf(:term, term960)) - _t1732 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3961)) - _t1733 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1731, _t1732]) - result963 = _t1733 - record_span!(parser, span_start962, "Primitive") - return result963 + _t1747 = Proto.RelTerm(rel_term_type=OneOf(:term, term968)) + _t1748 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3969)) + _t1749 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1747, _t1748]) + result971 = _t1749 + record_span!(parser, span_start970, "Primitive") + return result971 end function parse_lt_eq(parser::ParserState)::Proto.Primitive - span_start966 = span_start(parser) + span_start974 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<=") - _t1734 = parse_term(parser) - term964 = _t1734 - _t1735 = parse_term(parser) - term_3965 = _t1735 + _t1750 = parse_term(parser) + term972 = _t1750 + _t1751 = parse_term(parser) + term_3973 = _t1751 consume_literal!(parser, ")") - _t1736 = Proto.RelTerm(rel_term_type=OneOf(:term, term964)) - _t1737 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3965)) - _t1738 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1736, _t1737]) - result967 = _t1738 - record_span!(parser, span_start966, "Primitive") - return result967 + _t1752 = Proto.RelTerm(rel_term_type=OneOf(:term, term972)) + _t1753 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3973)) + _t1754 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1752, _t1753]) + result975 = _t1754 + record_span!(parser, span_start974, "Primitive") + return result975 end function parse_gt(parser::ParserState)::Proto.Primitive - span_start970 = span_start(parser) + span_start978 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">") - _t1739 = parse_term(parser) - term968 = _t1739 - _t1740 = parse_term(parser) - term_3969 = _t1740 + _t1755 = parse_term(parser) + term976 = _t1755 + _t1756 = parse_term(parser) + term_3977 = _t1756 consume_literal!(parser, ")") - _t1741 = Proto.RelTerm(rel_term_type=OneOf(:term, term968)) - _t1742 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3969)) - _t1743 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1741, _t1742]) - result971 = _t1743 - record_span!(parser, span_start970, "Primitive") - return result971 + _t1757 = Proto.RelTerm(rel_term_type=OneOf(:term, term976)) + _t1758 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3977)) + _t1759 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1757, _t1758]) + result979 = _t1759 + record_span!(parser, span_start978, "Primitive") + return result979 end function parse_gt_eq(parser::ParserState)::Proto.Primitive - span_start974 = span_start(parser) + span_start982 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">=") - _t1744 = parse_term(parser) - term972 = _t1744 - _t1745 = parse_term(parser) - term_3973 = _t1745 + _t1760 = parse_term(parser) + term980 = _t1760 + _t1761 = parse_term(parser) + term_3981 = _t1761 consume_literal!(parser, ")") - _t1746 = Proto.RelTerm(rel_term_type=OneOf(:term, term972)) - _t1747 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3973)) - _t1748 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1746, _t1747]) - result975 = _t1748 - record_span!(parser, span_start974, "Primitive") - return result975 + _t1762 = Proto.RelTerm(rel_term_type=OneOf(:term, term980)) + _t1763 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3981)) + _t1764 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1762, _t1763]) + result983 = _t1764 + record_span!(parser, span_start982, "Primitive") + return result983 end function parse_add(parser::ParserState)::Proto.Primitive - span_start979 = span_start(parser) + span_start987 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "+") - _t1749 = parse_term(parser) - term976 = _t1749 - _t1750 = parse_term(parser) - term_3977 = _t1750 - _t1751 = parse_term(parser) - term_4978 = _t1751 + _t1765 = parse_term(parser) + term984 = _t1765 + _t1766 = parse_term(parser) + term_3985 = _t1766 + _t1767 = parse_term(parser) + term_4986 = _t1767 consume_literal!(parser, ")") - _t1752 = Proto.RelTerm(rel_term_type=OneOf(:term, term976)) - _t1753 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3977)) - _t1754 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4978)) - _t1755 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1752, _t1753, _t1754]) - result980 = _t1755 - record_span!(parser, span_start979, "Primitive") - return result980 + _t1768 = Proto.RelTerm(rel_term_type=OneOf(:term, term984)) + _t1769 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3985)) + _t1770 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4986)) + _t1771 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1768, _t1769, _t1770]) + result988 = _t1771 + record_span!(parser, span_start987, "Primitive") + return result988 end function parse_minus(parser::ParserState)::Proto.Primitive - span_start984 = span_start(parser) + span_start992 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "-") - _t1756 = parse_term(parser) - term981 = _t1756 - _t1757 = parse_term(parser) - term_3982 = _t1757 - _t1758 = parse_term(parser) - term_4983 = _t1758 + _t1772 = parse_term(parser) + term989 = _t1772 + _t1773 = parse_term(parser) + term_3990 = _t1773 + _t1774 = parse_term(parser) + term_4991 = _t1774 consume_literal!(parser, ")") - _t1759 = Proto.RelTerm(rel_term_type=OneOf(:term, term981)) - _t1760 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3982)) - _t1761 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4983)) - _t1762 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1759, _t1760, _t1761]) - result985 = _t1762 - record_span!(parser, span_start984, "Primitive") - return result985 + _t1775 = Proto.RelTerm(rel_term_type=OneOf(:term, term989)) + _t1776 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3990)) + _t1777 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4991)) + _t1778 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1775, _t1776, _t1777]) + result993 = _t1778 + record_span!(parser, span_start992, "Primitive") + return result993 end function parse_multiply(parser::ParserState)::Proto.Primitive - span_start989 = span_start(parser) + span_start997 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "*") - _t1763 = parse_term(parser) - term986 = _t1763 - _t1764 = parse_term(parser) - term_3987 = _t1764 - _t1765 = parse_term(parser) - term_4988 = _t1765 + _t1779 = parse_term(parser) + term994 = _t1779 + _t1780 = parse_term(parser) + term_3995 = _t1780 + _t1781 = parse_term(parser) + term_4996 = _t1781 consume_literal!(parser, ")") - _t1766 = Proto.RelTerm(rel_term_type=OneOf(:term, term986)) - _t1767 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3987)) - _t1768 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4988)) - _t1769 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1766, _t1767, _t1768]) - result990 = _t1769 - record_span!(parser, span_start989, "Primitive") - return result990 + _t1782 = Proto.RelTerm(rel_term_type=OneOf(:term, term994)) + _t1783 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3995)) + _t1784 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4996)) + _t1785 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1782, _t1783, _t1784]) + result998 = _t1785 + record_span!(parser, span_start997, "Primitive") + return result998 end function parse_divide(parser::ParserState)::Proto.Primitive - span_start994 = span_start(parser) + span_start1002 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "/") - _t1770 = parse_term(parser) - term991 = _t1770 - _t1771 = parse_term(parser) - term_3992 = _t1771 - _t1772 = parse_term(parser) - term_4993 = _t1772 + _t1786 = parse_term(parser) + term999 = _t1786 + _t1787 = parse_term(parser) + term_31000 = _t1787 + _t1788 = parse_term(parser) + term_41001 = _t1788 consume_literal!(parser, ")") - _t1773 = Proto.RelTerm(rel_term_type=OneOf(:term, term991)) - _t1774 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3992)) - _t1775 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4993)) - _t1776 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1773, _t1774, _t1775]) - result995 = _t1776 - record_span!(parser, span_start994, "Primitive") - return result995 + _t1789 = Proto.RelTerm(rel_term_type=OneOf(:term, term999)) + _t1790 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31000)) + _t1791 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41001)) + _t1792 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1789, _t1790, _t1791]) + result1003 = _t1792 + record_span!(parser, span_start1002, "Primitive") + return result1003 end function parse_rel_term(parser::ParserState)::Proto.RelTerm - span_start999 = span_start(parser) + span_start1007 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1777 = 1 + _t1793 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1778 = 1 + _t1794 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1779 = 1 + _t1795 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1780 = 1 + _t1796 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1781 = 0 + _t1797 = 0 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1782 = 1 + _t1798 = 1 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1783 = 1 + _t1799 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1784 = 1 + _t1800 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1785 = 1 + _t1801 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1786 = 1 + _t1802 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1787 = 1 + _t1803 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1788 = 1 + _t1804 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1789 = 1 + _t1805 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1790 = 1 + _t1806 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1791 = 1 + _t1807 = 1 else - _t1791 = -1 + _t1807 = -1 end - _t1790 = _t1791 + _t1806 = _t1807 end - _t1789 = _t1790 + _t1805 = _t1806 end - _t1788 = _t1789 + _t1804 = _t1805 end - _t1787 = _t1788 + _t1803 = _t1804 end - _t1786 = _t1787 + _t1802 = _t1803 end - _t1785 = _t1786 + _t1801 = _t1802 end - _t1784 = _t1785 + _t1800 = _t1801 end - _t1783 = _t1784 + _t1799 = _t1800 end - _t1782 = _t1783 + _t1798 = _t1799 end - _t1781 = _t1782 + _t1797 = _t1798 end - _t1780 = _t1781 + _t1796 = _t1797 end - _t1779 = _t1780 + _t1795 = _t1796 end - _t1778 = _t1779 + _t1794 = _t1795 end - _t1777 = _t1778 - end - prediction996 = _t1777 - if prediction996 == 1 - _t1793 = parse_term(parser) - term998 = _t1793 - _t1794 = Proto.RelTerm(rel_term_type=OneOf(:term, term998)) - _t1792 = _t1794 + _t1793 = _t1794 + end + prediction1004 = _t1793 + if prediction1004 == 1 + _t1809 = parse_term(parser) + term1006 = _t1809 + _t1810 = Proto.RelTerm(rel_term_type=OneOf(:term, term1006)) + _t1808 = _t1810 else - if prediction996 == 0 - _t1796 = parse_specialized_value(parser) - specialized_value997 = _t1796 - _t1797 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value997)) - _t1795 = _t1797 + if prediction1004 == 0 + _t1812 = parse_specialized_value(parser) + specialized_value1005 = _t1812 + _t1813 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value1005)) + _t1811 = _t1813 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1792 = _t1795 + _t1808 = _t1811 end - result1000 = _t1792 - record_span!(parser, span_start999, "RelTerm") - return result1000 + result1008 = _t1808 + record_span!(parser, span_start1007, "RelTerm") + return result1008 end function parse_specialized_value(parser::ParserState)::Proto.Value - span_start1002 = span_start(parser) + span_start1010 = span_start(parser) consume_literal!(parser, "#") - _t1798 = parse_raw_value(parser) - raw_value1001 = _t1798 - result1003 = raw_value1001 - record_span!(parser, span_start1002, "Value") - return result1003 + _t1814 = parse_raw_value(parser) + raw_value1009 = _t1814 + result1011 = raw_value1009 + record_span!(parser, span_start1010, "Value") + return result1011 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom - span_start1009 = span_start(parser) + span_start1017 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "relatom") - _t1799 = parse_name(parser) - name1004 = _t1799 - xs1005 = Proto.RelTerm[] - cond1006 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - while cond1006 - _t1800 = parse_rel_term(parser) - item1007 = _t1800 - push!(xs1005, item1007) - cond1006 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) - end - rel_terms1008 = xs1005 + _t1815 = parse_name(parser) + name1012 = _t1815 + xs1013 = Proto.RelTerm[] + cond1014 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + while cond1014 + _t1816 = parse_rel_term(parser) + item1015 = _t1816 + push!(xs1013, item1015) + cond1014 = ((((((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) + end + rel_terms1016 = xs1013 consume_literal!(parser, ")") - _t1801 = Proto.RelAtom(name=name1004, terms=rel_terms1008) - result1010 = _t1801 - record_span!(parser, span_start1009, "RelAtom") - return result1010 + _t1817 = Proto.RelAtom(name=name1012, terms=rel_terms1016) + result1018 = _t1817 + record_span!(parser, span_start1017, "RelAtom") + return result1018 end function parse_cast(parser::ParserState)::Proto.Cast - span_start1013 = span_start(parser) + span_start1021 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1802 = parse_term(parser) - term1011 = _t1802 - _t1803 = parse_term(parser) - term_31012 = _t1803 + _t1818 = parse_term(parser) + term1019 = _t1818 + _t1819 = parse_term(parser) + term_31020 = _t1819 consume_literal!(parser, ")") - _t1804 = Proto.Cast(input=term1011, result=term_31012) - result1014 = _t1804 - record_span!(parser, span_start1013, "Cast") - return result1014 + _t1820 = Proto.Cast(input=term1019, result=term_31020) + result1022 = _t1820 + record_span!(parser, span_start1021, "Cast") + return result1022 end function parse_attrs(parser::ParserState)::Vector{Proto.Attribute} consume_literal!(parser, "(") consume_literal!(parser, "attrs") - xs1015 = Proto.Attribute[] - cond1016 = match_lookahead_literal(parser, "(", 0) - while cond1016 - _t1805 = parse_attribute(parser) - item1017 = _t1805 - push!(xs1015, item1017) - cond1016 = match_lookahead_literal(parser, "(", 0) - end - attributes1018 = xs1015 + xs1023 = Proto.Attribute[] + cond1024 = match_lookahead_literal(parser, "(", 0) + while cond1024 + _t1821 = parse_attribute(parser) + item1025 = _t1821 + push!(xs1023, item1025) + cond1024 = match_lookahead_literal(parser, "(", 0) + end + attributes1026 = xs1023 consume_literal!(parser, ")") - return attributes1018 + return attributes1026 end function parse_attribute(parser::ParserState)::Proto.Attribute - span_start1024 = span_start(parser) + span_start1032 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "attribute") - _t1806 = parse_name(parser) - name1019 = _t1806 - xs1020 = Proto.Value[] - cond1021 = ((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond1021 - _t1807 = parse_raw_value(parser) - item1022 = _t1807 - push!(xs1020, item1022) - cond1021 = ((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - end - raw_values1023 = xs1020 + _t1822 = parse_name(parser) + name1027 = _t1822 + xs1028 = Proto.Value[] + cond1029 = ((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond1029 + _t1823 = parse_raw_value(parser) + item1030 = _t1823 + push!(xs1028, item1030) + cond1029 = ((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + end + raw_values1031 = xs1028 consume_literal!(parser, ")") - _t1808 = Proto.Attribute(name=name1019, args=raw_values1023) - result1025 = _t1808 - record_span!(parser, span_start1024, "Attribute") - return result1025 + _t1824 = Proto.Attribute(name=name1027, args=raw_values1031) + result1033 = _t1824 + record_span!(parser, span_start1032, "Attribute") + return result1033 end function parse_algorithm(parser::ParserState)::Proto.Algorithm - span_start1032 = span_start(parser) + span_start1040 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "algorithm") - xs1026 = Proto.RelationId[] - cond1027 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond1027 - _t1809 = parse_relation_id(parser) - item1028 = _t1809 - push!(xs1026, item1028) - cond1027 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - end - relation_ids1029 = xs1026 - _t1810 = parse_script(parser) - script1030 = _t1810 + xs1034 = Proto.RelationId[] + cond1035 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1035 + _t1825 = parse_relation_id(parser) + item1036 = _t1825 + push!(xs1034, item1036) + cond1035 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1037 = xs1034 + _t1826 = parse_script(parser) + script1038 = _t1826 if match_lookahead_literal(parser, "(", 0) - _t1812 = parse_attrs(parser) - _t1811 = _t1812 + _t1828 = parse_attrs(parser) + _t1827 = _t1828 else - _t1811 = nothing + _t1827 = nothing end - attrs1031 = _t1811 + attrs1039 = _t1827 consume_literal!(parser, ")") - _t1813 = Proto.Algorithm(var"#global"=relation_ids1029, body=script1030, attrs=(!isnothing(attrs1031) ? attrs1031 : Proto.Attribute[])) - result1033 = _t1813 - record_span!(parser, span_start1032, "Algorithm") - return result1033 + _t1829 = Proto.Algorithm(var"#global"=relation_ids1037, body=script1038, attrs=(!isnothing(attrs1039) ? attrs1039 : Proto.Attribute[])) + result1041 = _t1829 + record_span!(parser, span_start1040, "Algorithm") + return result1041 end function parse_script(parser::ParserState)::Proto.Script - span_start1038 = span_start(parser) + span_start1046 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "script") - xs1034 = Proto.Construct[] - cond1035 = match_lookahead_literal(parser, "(", 0) - while cond1035 - _t1814 = parse_construct(parser) - item1036 = _t1814 - push!(xs1034, item1036) - cond1035 = match_lookahead_literal(parser, "(", 0) + xs1042 = Proto.Construct[] + cond1043 = match_lookahead_literal(parser, "(", 0) + while cond1043 + _t1830 = parse_construct(parser) + item1044 = _t1830 + push!(xs1042, item1044) + cond1043 = match_lookahead_literal(parser, "(", 0) end - constructs1037 = xs1034 + constructs1045 = xs1042 consume_literal!(parser, ")") - _t1815 = Proto.Script(constructs=constructs1037) - result1039 = _t1815 - record_span!(parser, span_start1038, "Script") - return result1039 + _t1831 = Proto.Script(constructs=constructs1045) + result1047 = _t1831 + record_span!(parser, span_start1046, "Script") + return result1047 end function parse_construct(parser::ParserState)::Proto.Construct - span_start1043 = span_start(parser) + span_start1051 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1817 = 1 + _t1833 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1818 = 1 + _t1834 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1819 = 1 + _t1835 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1820 = 0 + _t1836 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1821 = 1 + _t1837 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1822 = 1 + _t1838 = 1 else - _t1822 = -1 + _t1838 = -1 end - _t1821 = _t1822 + _t1837 = _t1838 end - _t1820 = _t1821 + _t1836 = _t1837 end - _t1819 = _t1820 + _t1835 = _t1836 end - _t1818 = _t1819 + _t1834 = _t1835 end - _t1817 = _t1818 + _t1833 = _t1834 end - _t1816 = _t1817 + _t1832 = _t1833 else - _t1816 = -1 - end - prediction1040 = _t1816 - if prediction1040 == 1 - _t1824 = parse_instruction(parser) - instruction1042 = _t1824 - _t1825 = Proto.Construct(construct_type=OneOf(:instruction, instruction1042)) - _t1823 = _t1825 + _t1832 = -1 + end + prediction1048 = _t1832 + if prediction1048 == 1 + _t1840 = parse_instruction(parser) + instruction1050 = _t1840 + _t1841 = Proto.Construct(construct_type=OneOf(:instruction, instruction1050)) + _t1839 = _t1841 else - if prediction1040 == 0 - _t1827 = parse_loop(parser) - loop1041 = _t1827 - _t1828 = Proto.Construct(construct_type=OneOf(:loop, loop1041)) - _t1826 = _t1828 + if prediction1048 == 0 + _t1843 = parse_loop(parser) + loop1049 = _t1843 + _t1844 = Proto.Construct(construct_type=OneOf(:loop, loop1049)) + _t1842 = _t1844 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1823 = _t1826 + _t1839 = _t1842 end - result1044 = _t1823 - record_span!(parser, span_start1043, "Construct") - return result1044 + result1052 = _t1839 + record_span!(parser, span_start1051, "Construct") + return result1052 end function parse_loop(parser::ParserState)::Proto.Loop - span_start1048 = span_start(parser) + span_start1056 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1829 = parse_init(parser) - init1045 = _t1829 - _t1830 = parse_script(parser) - script1046 = _t1830 + _t1845 = parse_init(parser) + init1053 = _t1845 + _t1846 = parse_script(parser) + script1054 = _t1846 if match_lookahead_literal(parser, "(", 0) - _t1832 = parse_attrs(parser) - _t1831 = _t1832 + _t1848 = parse_attrs(parser) + _t1847 = _t1848 else - _t1831 = nothing + _t1847 = nothing end - attrs1047 = _t1831 + attrs1055 = _t1847 consume_literal!(parser, ")") - _t1833 = Proto.Loop(init=init1045, body=script1046, attrs=(!isnothing(attrs1047) ? attrs1047 : Proto.Attribute[])) - result1049 = _t1833 - record_span!(parser, span_start1048, "Loop") - return result1049 + _t1849 = Proto.Loop(init=init1053, body=script1054, attrs=(!isnothing(attrs1055) ? attrs1055 : Proto.Attribute[])) + result1057 = _t1849 + record_span!(parser, span_start1056, "Loop") + return result1057 end function parse_init(parser::ParserState)::Vector{Proto.Instruction} consume_literal!(parser, "(") consume_literal!(parser, "init") - xs1050 = Proto.Instruction[] - cond1051 = match_lookahead_literal(parser, "(", 0) - while cond1051 - _t1834 = parse_instruction(parser) - item1052 = _t1834 - push!(xs1050, item1052) - cond1051 = match_lookahead_literal(parser, "(", 0) - end - instructions1053 = xs1050 + xs1058 = Proto.Instruction[] + cond1059 = match_lookahead_literal(parser, "(", 0) + while cond1059 + _t1850 = parse_instruction(parser) + item1060 = _t1850 + push!(xs1058, item1060) + cond1059 = match_lookahead_literal(parser, "(", 0) + end + instructions1061 = xs1058 consume_literal!(parser, ")") - return instructions1053 + return instructions1061 end function parse_instruction(parser::ParserState)::Proto.Instruction - span_start1060 = span_start(parser) + span_start1068 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1836 = 1 + _t1852 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1837 = 4 + _t1853 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1838 = 3 + _t1854 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1839 = 2 + _t1855 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1840 = 0 + _t1856 = 0 else - _t1840 = -1 + _t1856 = -1 end - _t1839 = _t1840 + _t1855 = _t1856 end - _t1838 = _t1839 + _t1854 = _t1855 end - _t1837 = _t1838 + _t1853 = _t1854 end - _t1836 = _t1837 + _t1852 = _t1853 end - _t1835 = _t1836 + _t1851 = _t1852 else - _t1835 = -1 - end - prediction1054 = _t1835 - if prediction1054 == 4 - _t1842 = parse_monus_def(parser) - monus_def1059 = _t1842 - _t1843 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def1059)) - _t1841 = _t1843 + _t1851 = -1 + end + prediction1062 = _t1851 + if prediction1062 == 4 + _t1858 = parse_monus_def(parser) + monus_def1067 = _t1858 + _t1859 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def1067)) + _t1857 = _t1859 else - if prediction1054 == 3 - _t1845 = parse_monoid_def(parser) - monoid_def1058 = _t1845 - _t1846 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def1058)) - _t1844 = _t1846 + if prediction1062 == 3 + _t1861 = parse_monoid_def(parser) + monoid_def1066 = _t1861 + _t1862 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def1066)) + _t1860 = _t1862 else - if prediction1054 == 2 - _t1848 = parse_break(parser) - break1057 = _t1848 - _t1849 = Proto.Instruction(instr_type=OneOf(:var"#break", break1057)) - _t1847 = _t1849 + if prediction1062 == 2 + _t1864 = parse_break(parser) + break1065 = _t1864 + _t1865 = Proto.Instruction(instr_type=OneOf(:var"#break", break1065)) + _t1863 = _t1865 else - if prediction1054 == 1 - _t1851 = parse_upsert(parser) - upsert1056 = _t1851 - _t1852 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1056)) - _t1850 = _t1852 + if prediction1062 == 1 + _t1867 = parse_upsert(parser) + upsert1064 = _t1867 + _t1868 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1064)) + _t1866 = _t1868 else - if prediction1054 == 0 - _t1854 = parse_assign(parser) - assign1055 = _t1854 - _t1855 = Proto.Instruction(instr_type=OneOf(:assign, assign1055)) - _t1853 = _t1855 + if prediction1062 == 0 + _t1870 = parse_assign(parser) + assign1063 = _t1870 + _t1871 = Proto.Instruction(instr_type=OneOf(:assign, assign1063)) + _t1869 = _t1871 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1850 = _t1853 + _t1866 = _t1869 end - _t1847 = _t1850 + _t1863 = _t1866 end - _t1844 = _t1847 + _t1860 = _t1863 end - _t1841 = _t1844 + _t1857 = _t1860 end - result1061 = _t1841 - record_span!(parser, span_start1060, "Instruction") - return result1061 + result1069 = _t1857 + record_span!(parser, span_start1068, "Instruction") + return result1069 end function parse_assign(parser::ParserState)::Proto.Assign - span_start1065 = span_start(parser) + span_start1073 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1856 = parse_relation_id(parser) - relation_id1062 = _t1856 - _t1857 = parse_abstraction(parser) - abstraction1063 = _t1857 + _t1872 = parse_relation_id(parser) + relation_id1070 = _t1872 + _t1873 = parse_abstraction(parser) + abstraction1071 = _t1873 if match_lookahead_literal(parser, "(", 0) - _t1859 = parse_attrs(parser) - _t1858 = _t1859 + _t1875 = parse_attrs(parser) + _t1874 = _t1875 else - _t1858 = nothing + _t1874 = nothing end - attrs1064 = _t1858 + attrs1072 = _t1874 consume_literal!(parser, ")") - _t1860 = Proto.Assign(name=relation_id1062, body=abstraction1063, attrs=(!isnothing(attrs1064) ? attrs1064 : Proto.Attribute[])) - result1066 = _t1860 - record_span!(parser, span_start1065, "Assign") - return result1066 + _t1876 = Proto.Assign(name=relation_id1070, body=abstraction1071, attrs=(!isnothing(attrs1072) ? attrs1072 : Proto.Attribute[])) + result1074 = _t1876 + record_span!(parser, span_start1073, "Assign") + return result1074 end function parse_upsert(parser::ParserState)::Proto.Upsert - span_start1070 = span_start(parser) + span_start1078 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "upsert") - _t1861 = parse_relation_id(parser) - relation_id1067 = _t1861 - _t1862 = parse_abstraction_with_arity(parser) - abstraction_with_arity1068 = _t1862 + _t1877 = parse_relation_id(parser) + relation_id1075 = _t1877 + _t1878 = parse_abstraction_with_arity(parser) + abstraction_with_arity1076 = _t1878 if match_lookahead_literal(parser, "(", 0) - _t1864 = parse_attrs(parser) - _t1863 = _t1864 + _t1880 = parse_attrs(parser) + _t1879 = _t1880 else - _t1863 = nothing + _t1879 = nothing end - attrs1069 = _t1863 + attrs1077 = _t1879 consume_literal!(parser, ")") - _t1865 = Proto.Upsert(name=relation_id1067, body=abstraction_with_arity1068[1], attrs=(!isnothing(attrs1069) ? attrs1069 : Proto.Attribute[]), value_arity=abstraction_with_arity1068[2]) - result1071 = _t1865 - record_span!(parser, span_start1070, "Upsert") - return result1071 + _t1881 = Proto.Upsert(name=relation_id1075, body=abstraction_with_arity1076[1], attrs=(!isnothing(attrs1077) ? attrs1077 : Proto.Attribute[]), value_arity=abstraction_with_arity1076[2]) + result1079 = _t1881 + record_span!(parser, span_start1078, "Upsert") + return result1079 end function parse_abstraction_with_arity(parser::ParserState)::Tuple{Proto.Abstraction, Int64} consume_literal!(parser, "(") - _t1866 = parse_bindings(parser) - bindings1072 = _t1866 - _t1867 = parse_formula(parser) - formula1073 = _t1867 + _t1882 = parse_bindings(parser) + bindings1080 = _t1882 + _t1883 = parse_formula(parser) + formula1081 = _t1883 consume_literal!(parser, ")") - _t1868 = Proto.Abstraction(vars=vcat(bindings1072[1], !isnothing(bindings1072[2]) ? bindings1072[2] : []), value=formula1073) - return (_t1868, length(bindings1072[2]),) + _t1884 = Proto.Abstraction(vars=vcat(bindings1080[1], !isnothing(bindings1080[2]) ? bindings1080[2] : []), value=formula1081) + return (_t1884, length(bindings1080[2]),) end function parse_break(parser::ParserState)::Proto.Break - span_start1077 = span_start(parser) + span_start1085 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1869 = parse_relation_id(parser) - relation_id1074 = _t1869 - _t1870 = parse_abstraction(parser) - abstraction1075 = _t1870 + _t1885 = parse_relation_id(parser) + relation_id1082 = _t1885 + _t1886 = parse_abstraction(parser) + abstraction1083 = _t1886 if match_lookahead_literal(parser, "(", 0) - _t1872 = parse_attrs(parser) - _t1871 = _t1872 + _t1888 = parse_attrs(parser) + _t1887 = _t1888 else - _t1871 = nothing + _t1887 = nothing end - attrs1076 = _t1871 + attrs1084 = _t1887 consume_literal!(parser, ")") - _t1873 = Proto.Break(name=relation_id1074, body=abstraction1075, attrs=(!isnothing(attrs1076) ? attrs1076 : Proto.Attribute[])) - result1078 = _t1873 - record_span!(parser, span_start1077, "Break") - return result1078 + _t1889 = Proto.Break(name=relation_id1082, body=abstraction1083, attrs=(!isnothing(attrs1084) ? attrs1084 : Proto.Attribute[])) + result1086 = _t1889 + record_span!(parser, span_start1085, "Break") + return result1086 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef - span_start1083 = span_start(parser) + span_start1091 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monoid") - _t1874 = parse_monoid(parser) - monoid1079 = _t1874 - _t1875 = parse_relation_id(parser) - relation_id1080 = _t1875 - _t1876 = parse_abstraction_with_arity(parser) - abstraction_with_arity1081 = _t1876 + _t1890 = parse_monoid(parser) + monoid1087 = _t1890 + _t1891 = parse_relation_id(parser) + relation_id1088 = _t1891 + _t1892 = parse_abstraction_with_arity(parser) + abstraction_with_arity1089 = _t1892 if match_lookahead_literal(parser, "(", 0) - _t1878 = parse_attrs(parser) - _t1877 = _t1878 + _t1894 = parse_attrs(parser) + _t1893 = _t1894 else - _t1877 = nothing + _t1893 = nothing end - attrs1082 = _t1877 + attrs1090 = _t1893 consume_literal!(parser, ")") - _t1879 = Proto.MonoidDef(monoid=monoid1079, name=relation_id1080, body=abstraction_with_arity1081[1], attrs=(!isnothing(attrs1082) ? attrs1082 : Proto.Attribute[]), value_arity=abstraction_with_arity1081[2]) - result1084 = _t1879 - record_span!(parser, span_start1083, "MonoidDef") - return result1084 + _t1895 = Proto.MonoidDef(monoid=monoid1087, name=relation_id1088, body=abstraction_with_arity1089[1], attrs=(!isnothing(attrs1090) ? attrs1090 : Proto.Attribute[]), value_arity=abstraction_with_arity1089[2]) + result1092 = _t1895 + record_span!(parser, span_start1091, "MonoidDef") + return result1092 end function parse_monoid(parser::ParserState)::Proto.Monoid - span_start1090 = span_start(parser) + span_start1098 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1881 = 3 + _t1897 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1882 = 0 + _t1898 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1883 = 1 + _t1899 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1884 = 2 + _t1900 = 2 else - _t1884 = -1 + _t1900 = -1 end - _t1883 = _t1884 + _t1899 = _t1900 end - _t1882 = _t1883 + _t1898 = _t1899 end - _t1881 = _t1882 + _t1897 = _t1898 end - _t1880 = _t1881 + _t1896 = _t1897 else - _t1880 = -1 - end - prediction1085 = _t1880 - if prediction1085 == 3 - _t1886 = parse_sum_monoid(parser) - sum_monoid1089 = _t1886 - _t1887 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1089)) - _t1885 = _t1887 + _t1896 = -1 + end + prediction1093 = _t1896 + if prediction1093 == 3 + _t1902 = parse_sum_monoid(parser) + sum_monoid1097 = _t1902 + _t1903 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1097)) + _t1901 = _t1903 else - if prediction1085 == 2 - _t1889 = parse_max_monoid(parser) - max_monoid1088 = _t1889 - _t1890 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1088)) - _t1888 = _t1890 + if prediction1093 == 2 + _t1905 = parse_max_monoid(parser) + max_monoid1096 = _t1905 + _t1906 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1096)) + _t1904 = _t1906 else - if prediction1085 == 1 - _t1892 = parse_min_monoid(parser) - min_monoid1087 = _t1892 - _t1893 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1087)) - _t1891 = _t1893 + if prediction1093 == 1 + _t1908 = parse_min_monoid(parser) + min_monoid1095 = _t1908 + _t1909 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1095)) + _t1907 = _t1909 else - if prediction1085 == 0 - _t1895 = parse_or_monoid(parser) - or_monoid1086 = _t1895 - _t1896 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1086)) - _t1894 = _t1896 + if prediction1093 == 0 + _t1911 = parse_or_monoid(parser) + or_monoid1094 = _t1911 + _t1912 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1094)) + _t1910 = _t1912 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1891 = _t1894 + _t1907 = _t1910 end - _t1888 = _t1891 + _t1904 = _t1907 end - _t1885 = _t1888 + _t1901 = _t1904 end - result1091 = _t1885 - record_span!(parser, span_start1090, "Monoid") - return result1091 + result1099 = _t1901 + record_span!(parser, span_start1098, "Monoid") + return result1099 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid - span_start1092 = span_start(parser) + span_start1100 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") consume_literal!(parser, ")") - _t1897 = Proto.OrMonoid() - result1093 = _t1897 - record_span!(parser, span_start1092, "OrMonoid") - return result1093 + _t1913 = Proto.OrMonoid() + result1101 = _t1913 + record_span!(parser, span_start1100, "OrMonoid") + return result1101 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid - span_start1095 = span_start(parser) + span_start1103 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1898 = parse_type(parser) - type1094 = _t1898 + _t1914 = parse_type(parser) + type1102 = _t1914 consume_literal!(parser, ")") - _t1899 = Proto.MinMonoid(var"#type"=type1094) - result1096 = _t1899 - record_span!(parser, span_start1095, "MinMonoid") - return result1096 + _t1915 = Proto.MinMonoid(var"#type"=type1102) + result1104 = _t1915 + record_span!(parser, span_start1103, "MinMonoid") + return result1104 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid - span_start1098 = span_start(parser) + span_start1106 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1900 = parse_type(parser) - type1097 = _t1900 + _t1916 = parse_type(parser) + type1105 = _t1916 consume_literal!(parser, ")") - _t1901 = Proto.MaxMonoid(var"#type"=type1097) - result1099 = _t1901 - record_span!(parser, span_start1098, "MaxMonoid") - return result1099 + _t1917 = Proto.MaxMonoid(var"#type"=type1105) + result1107 = _t1917 + record_span!(parser, span_start1106, "MaxMonoid") + return result1107 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid - span_start1101 = span_start(parser) + span_start1109 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1902 = parse_type(parser) - type1100 = _t1902 + _t1918 = parse_type(parser) + type1108 = _t1918 consume_literal!(parser, ")") - _t1903 = Proto.SumMonoid(var"#type"=type1100) - result1102 = _t1903 - record_span!(parser, span_start1101, "SumMonoid") - return result1102 + _t1919 = Proto.SumMonoid(var"#type"=type1108) + result1110 = _t1919 + record_span!(parser, span_start1109, "SumMonoid") + return result1110 end function parse_monus_def(parser::ParserState)::Proto.MonusDef - span_start1107 = span_start(parser) + span_start1115 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monus") - _t1904 = parse_monoid(parser) - monoid1103 = _t1904 - _t1905 = parse_relation_id(parser) - relation_id1104 = _t1905 - _t1906 = parse_abstraction_with_arity(parser) - abstraction_with_arity1105 = _t1906 + _t1920 = parse_monoid(parser) + monoid1111 = _t1920 + _t1921 = parse_relation_id(parser) + relation_id1112 = _t1921 + _t1922 = parse_abstraction_with_arity(parser) + abstraction_with_arity1113 = _t1922 if match_lookahead_literal(parser, "(", 0) - _t1908 = parse_attrs(parser) - _t1907 = _t1908 + _t1924 = parse_attrs(parser) + _t1923 = _t1924 else - _t1907 = nothing + _t1923 = nothing end - attrs1106 = _t1907 + attrs1114 = _t1923 consume_literal!(parser, ")") - _t1909 = Proto.MonusDef(monoid=monoid1103, name=relation_id1104, body=abstraction_with_arity1105[1], attrs=(!isnothing(attrs1106) ? attrs1106 : Proto.Attribute[]), value_arity=abstraction_with_arity1105[2]) - result1108 = _t1909 - record_span!(parser, span_start1107, "MonusDef") - return result1108 + _t1925 = Proto.MonusDef(monoid=monoid1111, name=relation_id1112, body=abstraction_with_arity1113[1], attrs=(!isnothing(attrs1114) ? attrs1114 : Proto.Attribute[]), value_arity=abstraction_with_arity1113[2]) + result1116 = _t1925 + record_span!(parser, span_start1115, "MonusDef") + return result1116 end function parse_constraint(parser::ParserState)::Proto.Constraint - span_start1113 = span_start(parser) + span_start1121 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "functional_dependency") - _t1910 = parse_relation_id(parser) - relation_id1109 = _t1910 - _t1911 = parse_abstraction(parser) - abstraction1110 = _t1911 - _t1912 = parse_functional_dependency_keys(parser) - functional_dependency_keys1111 = _t1912 - _t1913 = parse_functional_dependency_values(parser) - functional_dependency_values1112 = _t1913 + _t1926 = parse_relation_id(parser) + relation_id1117 = _t1926 + _t1927 = parse_abstraction(parser) + abstraction1118 = _t1927 + _t1928 = parse_functional_dependency_keys(parser) + functional_dependency_keys1119 = _t1928 + _t1929 = parse_functional_dependency_values(parser) + functional_dependency_values1120 = _t1929 consume_literal!(parser, ")") - _t1914 = Proto.FunctionalDependency(guard=abstraction1110, keys=functional_dependency_keys1111, values=functional_dependency_values1112) - _t1915 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1914), name=relation_id1109) - result1114 = _t1915 - record_span!(parser, span_start1113, "Constraint") - return result1114 + _t1930 = Proto.FunctionalDependency(guard=abstraction1118, keys=functional_dependency_keys1119, values=functional_dependency_values1120) + _t1931 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1930), name=relation_id1117) + result1122 = _t1931 + record_span!(parser, span_start1121, "Constraint") + return result1122 end function parse_functional_dependency_keys(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs1115 = Proto.Var[] - cond1116 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond1116 - _t1916 = parse_var(parser) - item1117 = _t1916 - push!(xs1115, item1117) - cond1116 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - vars1118 = xs1115 + xs1123 = Proto.Var[] + cond1124 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1124 + _t1932 = parse_var(parser) + item1125 = _t1932 + push!(xs1123, item1125) + cond1124 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + vars1126 = xs1123 consume_literal!(parser, ")") - return vars1118 + return vars1126 end function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "values") - xs1119 = Proto.Var[] - cond1120 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond1120 - _t1917 = parse_var(parser) - item1121 = _t1917 - push!(xs1119, item1121) - cond1120 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - vars1122 = xs1119 + xs1127 = Proto.Var[] + cond1128 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1128 + _t1933 = parse_var(parser) + item1129 = _t1933 + push!(xs1127, item1129) + cond1128 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + vars1130 = xs1127 consume_literal!(parser, ")") - return vars1122 + return vars1130 end function parse_data(parser::ParserState)::Proto.Data - span_start1128 = span_start(parser) + span_start1136 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t1919 = 3 + _t1935 = 3 else if match_lookahead_literal(parser, "edb", 1) - _t1920 = 0 + _t1936 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1921 = 2 + _t1937 = 2 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1922 = 1 + _t1938 = 1 else - _t1922 = -1 + _t1938 = -1 end - _t1921 = _t1922 + _t1937 = _t1938 end - _t1920 = _t1921 + _t1936 = _t1937 end - _t1919 = _t1920 + _t1935 = _t1936 end - _t1918 = _t1919 + _t1934 = _t1935 else - _t1918 = -1 - end - prediction1123 = _t1918 - if prediction1123 == 3 - _t1924 = parse_iceberg_data(parser) - iceberg_data1127 = _t1924 - _t1925 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1127)) - _t1923 = _t1925 + _t1934 = -1 + end + prediction1131 = _t1934 + if prediction1131 == 3 + _t1940 = parse_iceberg_data(parser) + iceberg_data1135 = _t1940 + _t1941 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1135)) + _t1939 = _t1941 else - if prediction1123 == 2 - _t1927 = parse_csv_data(parser) - csv_data1126 = _t1927 - _t1928 = Proto.Data(data_type=OneOf(:csv_data, csv_data1126)) - _t1926 = _t1928 + if prediction1131 == 2 + _t1943 = parse_csv_data(parser) + csv_data1134 = _t1943 + _t1944 = Proto.Data(data_type=OneOf(:csv_data, csv_data1134)) + _t1942 = _t1944 else - if prediction1123 == 1 - _t1930 = parse_betree_relation(parser) - betree_relation1125 = _t1930 - _t1931 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1125)) - _t1929 = _t1931 + if prediction1131 == 1 + _t1946 = parse_betree_relation(parser) + betree_relation1133 = _t1946 + _t1947 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1133)) + _t1945 = _t1947 else - if prediction1123 == 0 - _t1933 = parse_edb(parser) - edb1124 = _t1933 - _t1934 = Proto.Data(data_type=OneOf(:edb, edb1124)) - _t1932 = _t1934 + if prediction1131 == 0 + _t1949 = parse_edb(parser) + edb1132 = _t1949 + _t1950 = Proto.Data(data_type=OneOf(:edb, edb1132)) + _t1948 = _t1950 else throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) end - _t1929 = _t1932 + _t1945 = _t1948 end - _t1926 = _t1929 + _t1942 = _t1945 end - _t1923 = _t1926 + _t1939 = _t1942 end - result1129 = _t1923 - record_span!(parser, span_start1128, "Data") - return result1129 + result1137 = _t1939 + record_span!(parser, span_start1136, "Data") + return result1137 end function parse_edb(parser::ParserState)::Proto.EDB - span_start1133 = span_start(parser) + span_start1141 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "edb") - _t1935 = parse_relation_id(parser) - relation_id1130 = _t1935 - _t1936 = parse_edb_path(parser) - edb_path1131 = _t1936 - _t1937 = parse_edb_types(parser) - edb_types1132 = _t1937 + _t1951 = parse_relation_id(parser) + relation_id1138 = _t1951 + _t1952 = parse_edb_path(parser) + edb_path1139 = _t1952 + _t1953 = parse_edb_types(parser) + edb_types1140 = _t1953 consume_literal!(parser, ")") - _t1938 = Proto.EDB(target_id=relation_id1130, path=edb_path1131, types=edb_types1132) - result1134 = _t1938 - record_span!(parser, span_start1133, "EDB") - return result1134 + _t1954 = Proto.EDB(target_id=relation_id1138, path=edb_path1139, types=edb_types1140) + result1142 = _t1954 + record_span!(parser, span_start1141, "EDB") + return result1142 end function parse_edb_path(parser::ParserState)::Vector{String} consume_literal!(parser, "[") - xs1135 = String[] - cond1136 = match_lookahead_terminal(parser, "STRING", 0) - while cond1136 - item1137 = consume_terminal!(parser, "STRING") - push!(xs1135, item1137) - cond1136 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1138 = xs1135 + xs1143 = String[] + cond1144 = match_lookahead_terminal(parser, "STRING", 0) + while cond1144 + item1145 = consume_terminal!(parser, "STRING") + push!(xs1143, item1145) + cond1144 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1146 = xs1143 consume_literal!(parser, "]") - return strings1138 + return strings1146 end function parse_edb_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "[") - xs1139 = Proto.var"#Type"[] - cond1140 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1140 - _t1939 = parse_type(parser) - item1141 = _t1939 - push!(xs1139, item1141) - cond1140 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1142 = xs1139 + xs1147 = Proto.var"#Type"[] + cond1148 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1148 + _t1955 = parse_type(parser) + item1149 = _t1955 + push!(xs1147, item1149) + cond1148 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1150 = xs1147 consume_literal!(parser, "]") - return types1142 + return types1150 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation - span_start1145 = span_start(parser) + span_start1153 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_relation") - _t1940 = parse_relation_id(parser) - relation_id1143 = _t1940 - _t1941 = parse_betree_info(parser) - betree_info1144 = _t1941 + _t1956 = parse_relation_id(parser) + relation_id1151 = _t1956 + _t1957 = parse_betree_info(parser) + betree_info1152 = _t1957 consume_literal!(parser, ")") - _t1942 = Proto.BeTreeRelation(name=relation_id1143, relation_info=betree_info1144) - result1146 = _t1942 - record_span!(parser, span_start1145, "BeTreeRelation") - return result1146 + _t1958 = Proto.BeTreeRelation(name=relation_id1151, relation_info=betree_info1152) + result1154 = _t1958 + record_span!(parser, span_start1153, "BeTreeRelation") + return result1154 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo - span_start1150 = span_start(parser) + span_start1158 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_info") - _t1943 = parse_betree_info_key_types(parser) - betree_info_key_types1147 = _t1943 - _t1944 = parse_betree_info_value_types(parser) - betree_info_value_types1148 = _t1944 - _t1945 = parse_config_dict(parser) - config_dict1149 = _t1945 + _t1959 = parse_betree_info_key_types(parser) + betree_info_key_types1155 = _t1959 + _t1960 = parse_betree_info_value_types(parser) + betree_info_value_types1156 = _t1960 + _t1961 = parse_config_dict(parser) + config_dict1157 = _t1961 consume_literal!(parser, ")") - _t1946 = construct_betree_info(parser, betree_info_key_types1147, betree_info_value_types1148, config_dict1149) - result1151 = _t1946 - record_span!(parser, span_start1150, "BeTreeInfo") - return result1151 + _t1962 = construct_betree_info(parser, betree_info_key_types1155, betree_info_value_types1156, config_dict1157) + result1159 = _t1962 + record_span!(parser, span_start1158, "BeTreeInfo") + return result1159 end function parse_betree_info_key_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "key_types") - xs1152 = Proto.var"#Type"[] - cond1153 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1153 - _t1947 = parse_type(parser) - item1154 = _t1947 - push!(xs1152, item1154) - cond1153 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1155 = xs1152 + xs1160 = Proto.var"#Type"[] + cond1161 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1161 + _t1963 = parse_type(parser) + item1162 = _t1963 + push!(xs1160, item1162) + cond1161 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1163 = xs1160 consume_literal!(parser, ")") - return types1155 + return types1163 end function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "value_types") - xs1156 = Proto.var"#Type"[] - cond1157 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1157 - _t1948 = parse_type(parser) - item1158 = _t1948 - push!(xs1156, item1158) - cond1157 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1159 = xs1156 + xs1164 = Proto.var"#Type"[] + cond1165 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1165 + _t1964 = parse_type(parser) + item1166 = _t1964 + push!(xs1164, item1166) + cond1165 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1167 = xs1164 consume_literal!(parser, ")") - return types1159 + return types1167 end function parse_csv_data(parser::ParserState)::Proto.CSVData - span_start1164 = span_start(parser) + span_start1172 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_data") - _t1949 = parse_csvlocator(parser) - csvlocator1160 = _t1949 - _t1950 = parse_csv_config(parser) - csv_config1161 = _t1950 - _t1951 = parse_gnf_columns(parser) - gnf_columns1162 = _t1951 - _t1952 = parse_csv_asof(parser) - csv_asof1163 = _t1952 + _t1965 = parse_csvlocator(parser) + csvlocator1168 = _t1965 + _t1966 = parse_csv_config(parser) + csv_config1169 = _t1966 + _t1967 = parse_gnf_columns(parser) + gnf_columns1170 = _t1967 + _t1968 = parse_csv_asof(parser) + csv_asof1171 = _t1968 consume_literal!(parser, ")") - _t1953 = Proto.CSVData(locator=csvlocator1160, config=csv_config1161, columns=gnf_columns1162, asof=csv_asof1163) - result1165 = _t1953 - record_span!(parser, span_start1164, "CSVData") - return result1165 + _t1969 = Proto.CSVData(locator=csvlocator1168, config=csv_config1169, columns=gnf_columns1170, asof=csv_asof1171) + result1173 = _t1969 + record_span!(parser, span_start1172, "CSVData") + return result1173 end function parse_csvlocator(parser::ParserState)::Proto.CSVLocator - span_start1168 = span_start(parser) + span_start1176 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_locator") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "paths", 1)) - _t1955 = parse_csv_locator_paths(parser) - _t1954 = _t1955 + _t1971 = parse_csv_locator_paths(parser) + _t1970 = _t1971 else - _t1954 = nothing + _t1970 = nothing end - csv_locator_paths1166 = _t1954 + csv_locator_paths1174 = _t1970 if match_lookahead_literal(parser, "(", 0) - _t1957 = parse_csv_locator_inline_data(parser) - _t1956 = _t1957 + _t1973 = parse_csv_locator_inline_data(parser) + _t1972 = _t1973 else - _t1956 = nothing + _t1972 = nothing end - csv_locator_inline_data1167 = _t1956 + csv_locator_inline_data1175 = _t1972 consume_literal!(parser, ")") - _t1958 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1166) ? csv_locator_paths1166 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1167) ? csv_locator_inline_data1167 : ""))) - result1169 = _t1958 - record_span!(parser, span_start1168, "CSVLocator") - return result1169 + _t1974 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1174) ? csv_locator_paths1174 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1175) ? csv_locator_inline_data1175 : ""))) + result1177 = _t1974 + record_span!(parser, span_start1176, "CSVLocator") + return result1177 end function parse_csv_locator_paths(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "paths") - xs1170 = String[] - cond1171 = match_lookahead_terminal(parser, "STRING", 0) - while cond1171 - item1172 = consume_terminal!(parser, "STRING") - push!(xs1170, item1172) - cond1171 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1173 = xs1170 + xs1178 = String[] + cond1179 = match_lookahead_terminal(parser, "STRING", 0) + while cond1179 + item1180 = consume_terminal!(parser, "STRING") + push!(xs1178, item1180) + cond1179 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1181 = xs1178 consume_literal!(parser, ")") - return strings1173 + return strings1181 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - string1174 = consume_terminal!(parser, "STRING") + string1182 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1174 + return string1182 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig - span_start1176 = span_start(parser) + span_start1184 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t1959 = parse_config_dict(parser) - config_dict1175 = _t1959 + _t1975 = parse_config_dict(parser) + config_dict1183 = _t1975 consume_literal!(parser, ")") - _t1960 = construct_csv_config(parser, config_dict1175) - result1177 = _t1960 - record_span!(parser, span_start1176, "CSVConfig") - return result1177 + _t1976 = construct_csv_config(parser, config_dict1183) + result1185 = _t1976 + record_span!(parser, span_start1184, "CSVConfig") + return result1185 end function parse_gnf_columns(parser::ParserState)::Vector{Proto.GNFColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1178 = Proto.GNFColumn[] - cond1179 = match_lookahead_literal(parser, "(", 0) - while cond1179 - _t1961 = parse_gnf_column(parser) - item1180 = _t1961 - push!(xs1178, item1180) - cond1179 = match_lookahead_literal(parser, "(", 0) + xs1186 = Proto.GNFColumn[] + cond1187 = match_lookahead_literal(parser, "(", 0) + while cond1187 + _t1977 = parse_gnf_column(parser) + item1188 = _t1977 + push!(xs1186, item1188) + cond1187 = match_lookahead_literal(parser, "(", 0) end - gnf_columns1181 = xs1178 + gnf_columns1189 = xs1186 consume_literal!(parser, ")") - return gnf_columns1181 + return gnf_columns1189 end function parse_gnf_column(parser::ParserState)::Proto.GNFColumn - span_start1188 = span_start(parser) + span_start1196 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - _t1962 = parse_gnf_column_path(parser) - gnf_column_path1182 = _t1962 + _t1978 = parse_gnf_column_path(parser) + gnf_column_path1190 = _t1978 if (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - _t1964 = parse_relation_id(parser) - _t1963 = _t1964 + _t1980 = parse_relation_id(parser) + _t1979 = _t1980 else - _t1963 = nothing + _t1979 = nothing end - relation_id1183 = _t1963 + relation_id1191 = _t1979 consume_literal!(parser, "[") - xs1184 = Proto.var"#Type"[] - cond1185 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1185 - _t1965 = parse_type(parser) - item1186 = _t1965 - push!(xs1184, item1186) - cond1185 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1187 = xs1184 + xs1192 = Proto.var"#Type"[] + cond1193 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1193 + _t1981 = parse_type(parser) + item1194 = _t1981 + push!(xs1192, item1194) + cond1193 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1195 = xs1192 consume_literal!(parser, "]") consume_literal!(parser, ")") - _t1966 = Proto.GNFColumn(column_path=gnf_column_path1182, target_id=relation_id1183, types=types1187) - result1189 = _t1966 - record_span!(parser, span_start1188, "GNFColumn") - return result1189 + _t1982 = Proto.GNFColumn(column_path=gnf_column_path1190, target_id=relation_id1191, types=types1195) + result1197 = _t1982 + record_span!(parser, span_start1196, "GNFColumn") + return result1197 end function parse_gnf_column_path(parser::ParserState)::Vector{String} if match_lookahead_literal(parser, "[", 0) - _t1967 = 1 + _t1983 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1968 = 0 + _t1984 = 0 else - _t1968 = -1 + _t1984 = -1 end - _t1967 = _t1968 + _t1983 = _t1984 end - prediction1190 = _t1967 - if prediction1190 == 1 + prediction1198 = _t1983 + if prediction1198 == 1 consume_literal!(parser, "[") - xs1192 = String[] - cond1193 = match_lookahead_terminal(parser, "STRING", 0) - while cond1193 - item1194 = consume_terminal!(parser, "STRING") - push!(xs1192, item1194) - cond1193 = match_lookahead_terminal(parser, "STRING", 0) + xs1200 = String[] + cond1201 = match_lookahead_terminal(parser, "STRING", 0) + while cond1201 + item1202 = consume_terminal!(parser, "STRING") + push!(xs1200, item1202) + cond1201 = match_lookahead_terminal(parser, "STRING", 0) end - strings1195 = xs1192 + strings1203 = xs1200 consume_literal!(parser, "]") - _t1969 = strings1195 + _t1985 = strings1203 else - if prediction1190 == 0 - string1191 = consume_terminal!(parser, "STRING") - _t1970 = String[string1191] + if prediction1198 == 0 + string1199 = consume_terminal!(parser, "STRING") + _t1986 = String[string1199] else throw(ParseError("Unexpected token in gnf_column_path" * ": " * string(lookahead(parser, 0)))) end - _t1969 = _t1970 + _t1985 = _t1986 end - return _t1969 + return _t1985 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string1196 = consume_terminal!(parser, "STRING") + string1204 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1196 + return string1204 end function parse_iceberg_data(parser::ParserState)::Proto.IcebergData - span_start1203 = span_start(parser) + span_start1212 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_data") - _t1971 = parse_iceberg_locator(parser) - iceberg_locator1197 = _t1971 - _t1972 = parse_iceberg_catalog_config(parser) - iceberg_catalog_config1198 = _t1972 - _t1973 = parse_gnf_columns(parser) - gnf_columns1199 = _t1973 + _t1987 = parse_iceberg_locator(parser) + iceberg_locator1205 = _t1987 + _t1988 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1206 = _t1988 + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "columns", 1)) + _t1990 = parse_gnf_columns(parser) + _t1989 = _t1990 + else + _t1989 = nothing + end + gnf_columns1207 = _t1989 + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "full_table", 1)) + _t1992 = parse_full_table(parser) + _t1991 = _t1992 + else + _t1991 = nothing + end + full_table1208 = _t1991 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "from_snapshot", 1)) - _t1975 = parse_iceberg_from_snapshot(parser) - _t1974 = _t1975 + _t1994 = parse_iceberg_from_snapshot(parser) + _t1993 = _t1994 else - _t1974 = nothing + _t1993 = nothing end - iceberg_from_snapshot1200 = _t1974 + iceberg_from_snapshot1209 = _t1993 if match_lookahead_literal(parser, "(", 0) - _t1977 = parse_iceberg_to_snapshot(parser) - _t1976 = _t1977 + _t1996 = parse_iceberg_to_snapshot(parser) + _t1995 = _t1996 else - _t1976 = nothing + _t1995 = nothing end - iceberg_to_snapshot1201 = _t1976 - _t1978 = parse_boolean_value(parser) - boolean_value1202 = _t1978 + iceberg_to_snapshot1210 = _t1995 + _t1997 = parse_boolean_value(parser) + boolean_value1211 = _t1997 consume_literal!(parser, ")") - _t1979 = construct_iceberg_data(parser, iceberg_locator1197, iceberg_catalog_config1198, gnf_columns1199, iceberg_from_snapshot1200, iceberg_to_snapshot1201, boolean_value1202) - result1204 = _t1979 - record_span!(parser, span_start1203, "IcebergData") - return result1204 + _t1998 = construct_iceberg_data(parser, iceberg_locator1205, iceberg_catalog_config1206, gnf_columns1207, full_table1208, iceberg_from_snapshot1209, iceberg_to_snapshot1210, boolean_value1211) + result1213 = _t1998 + record_span!(parser, span_start1212, "IcebergData") + return result1213 end function parse_iceberg_locator(parser::ParserState)::Proto.IcebergLocator - span_start1208 = span_start(parser) + span_start1217 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_locator") - _t1980 = parse_iceberg_locator_table_name(parser) - iceberg_locator_table_name1205 = _t1980 - _t1981 = parse_iceberg_locator_namespace(parser) - iceberg_locator_namespace1206 = _t1981 - _t1982 = parse_iceberg_locator_warehouse(parser) - iceberg_locator_warehouse1207 = _t1982 + _t1999 = parse_iceberg_locator_table_name(parser) + iceberg_locator_table_name1214 = _t1999 + _t2000 = parse_iceberg_locator_namespace(parser) + iceberg_locator_namespace1215 = _t2000 + _t2001 = parse_iceberg_locator_warehouse(parser) + iceberg_locator_warehouse1216 = _t2001 consume_literal!(parser, ")") - _t1983 = Proto.IcebergLocator(table_name=iceberg_locator_table_name1205, namespace=iceberg_locator_namespace1206, warehouse=iceberg_locator_warehouse1207) - result1209 = _t1983 - record_span!(parser, span_start1208, "IcebergLocator") - return result1209 + _t2002 = Proto.IcebergLocator(table_name=iceberg_locator_table_name1214, namespace=iceberg_locator_namespace1215, warehouse=iceberg_locator_warehouse1216) + result1218 = _t2002 + record_span!(parser, span_start1217, "IcebergLocator") + return result1218 end function parse_iceberg_locator_table_name(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "table_name") - string1210 = consume_terminal!(parser, "STRING") + string1219 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1210 + return string1219 end function parse_iceberg_locator_namespace(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "namespace") - xs1211 = String[] - cond1212 = match_lookahead_terminal(parser, "STRING", 0) - while cond1212 - item1213 = consume_terminal!(parser, "STRING") - push!(xs1211, item1213) - cond1212 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1214 = xs1211 + xs1220 = String[] + cond1221 = match_lookahead_terminal(parser, "STRING", 0) + while cond1221 + item1222 = consume_terminal!(parser, "STRING") + push!(xs1220, item1222) + cond1221 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1223 = xs1220 consume_literal!(parser, ")") - return strings1214 + return strings1223 end function parse_iceberg_locator_warehouse(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "warehouse") - string1215 = consume_terminal!(parser, "STRING") + string1224 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1215 + return string1224 end function parse_iceberg_catalog_config(parser::ParserState)::Proto.IcebergCatalogConfig - span_start1220 = span_start(parser) + span_start1229 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_catalog_config") - _t1984 = parse_iceberg_catalog_uri(parser) - iceberg_catalog_uri1216 = _t1984 + _t2003 = parse_iceberg_catalog_uri(parser) + iceberg_catalog_uri1225 = _t2003 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "scope", 1)) - _t1986 = parse_iceberg_catalog_config_scope(parser) - _t1985 = _t1986 + _t2005 = parse_iceberg_catalog_config_scope(parser) + _t2004 = _t2005 else - _t1985 = nothing + _t2004 = nothing end - iceberg_catalog_config_scope1217 = _t1985 - _t1987 = parse_iceberg_properties(parser) - iceberg_properties1218 = _t1987 - _t1988 = parse_iceberg_auth_properties(parser) - iceberg_auth_properties1219 = _t1988 + iceberg_catalog_config_scope1226 = _t2004 + _t2006 = parse_iceberg_properties(parser) + iceberg_properties1227 = _t2006 + _t2007 = parse_iceberg_auth_properties(parser) + iceberg_auth_properties1228 = _t2007 consume_literal!(parser, ")") - _t1989 = construct_iceberg_catalog_config(parser, iceberg_catalog_uri1216, iceberg_catalog_config_scope1217, iceberg_properties1218, iceberg_auth_properties1219) - result1221 = _t1989 - record_span!(parser, span_start1220, "IcebergCatalogConfig") - return result1221 + _t2008 = construct_iceberg_catalog_config(parser, iceberg_catalog_uri1225, iceberg_catalog_config_scope1226, iceberg_properties1227, iceberg_auth_properties1228) + result1230 = _t2008 + record_span!(parser, span_start1229, "IcebergCatalogConfig") + return result1230 end function parse_iceberg_catalog_uri(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "catalog_uri") - string1222 = consume_terminal!(parser, "STRING") + string1231 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1222 + return string1231 end function parse_iceberg_catalog_config_scope(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "scope") - string1223 = consume_terminal!(parser, "STRING") + string1232 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1223 + return string1232 end function parse_iceberg_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "properties") - xs1224 = Tuple{String, String}[] - cond1225 = match_lookahead_literal(parser, "(", 0) - while cond1225 - _t1990 = parse_iceberg_property_entry(parser) - item1226 = _t1990 - push!(xs1224, item1226) - cond1225 = match_lookahead_literal(parser, "(", 0) - end - iceberg_property_entrys1227 = xs1224 + xs1233 = Tuple{String, String}[] + cond1234 = match_lookahead_literal(parser, "(", 0) + while cond1234 + _t2009 = parse_iceberg_property_entry(parser) + item1235 = _t2009 + push!(xs1233, item1235) + cond1234 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1236 = xs1233 consume_literal!(parser, ")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1236 end function parse_iceberg_property_entry(parser::ParserState)::Tuple{String, String} consume_literal!(parser, "(") consume_literal!(parser, "prop") - string1228 = consume_terminal!(parser, "STRING") - string_31229 = consume_terminal!(parser, "STRING") + string1237 = consume_terminal!(parser, "STRING") + string_31238 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return (string1228, string_31229,) + return (string1237, string_31238,) end function parse_iceberg_auth_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "auth_properties") - xs1230 = Tuple{String, String}[] - cond1231 = match_lookahead_literal(parser, "(", 0) - while cond1231 - _t1991 = parse_iceberg_masked_property_entry(parser) - item1232 = _t1991 - push!(xs1230, item1232) - cond1231 = match_lookahead_literal(parser, "(", 0) - end - iceberg_masked_property_entrys1233 = xs1230 + xs1239 = Tuple{String, String}[] + cond1240 = match_lookahead_literal(parser, "(", 0) + while cond1240 + _t2010 = parse_iceberg_masked_property_entry(parser) + item1241 = _t2010 + push!(xs1239, item1241) + cond1240 = match_lookahead_literal(parser, "(", 0) + end + iceberg_masked_property_entrys1242 = xs1239 consume_literal!(parser, ")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1242 end function parse_iceberg_masked_property_entry(parser::ParserState)::Tuple{String, String} consume_literal!(parser, "(") consume_literal!(parser, "prop") - string1234 = consume_terminal!(parser, "STRING") - string_31235 = consume_terminal!(parser, "STRING") + string1243 = consume_terminal!(parser, "STRING") + string_31244 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + return (string1243, string_31244,) +end + +function parse_full_table(parser::ParserState)::Proto.IcebergTarget + span_start1250 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "full_table") + _t2011 = parse_relation_id(parser) + relation_id1245 = _t2011 + consume_literal!(parser, "[") + xs1246 = Proto.var"#Type"[] + cond1247 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1247 + _t2012 = parse_type(parser) + item1248 = _t2012 + push!(xs1246, item1248) + cond1247 = (((((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1249 = xs1246 + consume_literal!(parser, "]") consume_literal!(parser, ")") - return (string1234, string_31235,) + _t2013 = Proto.IcebergTarget(target_id=relation_id1245, types=types1249) + result1251 = _t2013 + record_span!(parser, span_start1250, "IcebergTarget") + return result1251 end function parse_iceberg_from_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "from_snapshot") - string1236 = consume_terminal!(parser, "STRING") + string1252 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1236 + return string1252 end function parse_iceberg_to_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "to_snapshot") - string1237 = consume_terminal!(parser, "STRING") + string1253 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1237 + return string1253 end function parse_undefine(parser::ParserState)::Proto.Undefine - span_start1239 = span_start(parser) + span_start1255 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t1992 = parse_fragment_id(parser) - fragment_id1238 = _t1992 + _t2014 = parse_fragment_id(parser) + fragment_id1254 = _t2014 consume_literal!(parser, ")") - _t1993 = Proto.Undefine(fragment_id=fragment_id1238) - result1240 = _t1993 - record_span!(parser, span_start1239, "Undefine") - return result1240 + _t2015 = Proto.Undefine(fragment_id=fragment_id1254) + result1256 = _t2015 + record_span!(parser, span_start1255, "Undefine") + return result1256 end function parse_context(parser::ParserState)::Proto.Context - span_start1245 = span_start(parser) + span_start1261 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "context") - xs1241 = Proto.RelationId[] - cond1242 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond1242 - _t1994 = parse_relation_id(parser) - item1243 = _t1994 - push!(xs1241, item1243) - cond1242 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - end - relation_ids1244 = xs1241 + xs1257 = Proto.RelationId[] + cond1258 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1258 + _t2016 = parse_relation_id(parser) + item1259 = _t2016 + push!(xs1257, item1259) + cond1258 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1260 = xs1257 consume_literal!(parser, ")") - _t1995 = Proto.Context(relations=relation_ids1244) - result1246 = _t1995 - record_span!(parser, span_start1245, "Context") - return result1246 + _t2017 = Proto.Context(relations=relation_ids1260) + result1262 = _t2017 + record_span!(parser, span_start1261, "Context") + return result1262 end function parse_snapshot(parser::ParserState)::Proto.Snapshot - span_start1252 = span_start(parser) + span_start1268 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "snapshot") - _t1996 = parse_edb_path(parser) - edb_path1247 = _t1996 - xs1248 = Proto.SnapshotMapping[] - cond1249 = match_lookahead_literal(parser, "[", 0) - while cond1249 - _t1997 = parse_snapshot_mapping(parser) - item1250 = _t1997 - push!(xs1248, item1250) - cond1249 = match_lookahead_literal(parser, "[", 0) - end - snapshot_mappings1251 = xs1248 + _t2018 = parse_edb_path(parser) + edb_path1263 = _t2018 + xs1264 = Proto.SnapshotMapping[] + cond1265 = match_lookahead_literal(parser, "[", 0) + while cond1265 + _t2019 = parse_snapshot_mapping(parser) + item1266 = _t2019 + push!(xs1264, item1266) + cond1265 = match_lookahead_literal(parser, "[", 0) + end + snapshot_mappings1267 = xs1264 consume_literal!(parser, ")") - _t1998 = Proto.Snapshot(mappings=snapshot_mappings1251, prefix=edb_path1247) - result1253 = _t1998 - record_span!(parser, span_start1252, "Snapshot") - return result1253 + _t2020 = Proto.Snapshot(mappings=snapshot_mappings1267, prefix=edb_path1263) + result1269 = _t2020 + record_span!(parser, span_start1268, "Snapshot") + return result1269 end function parse_snapshot_mapping(parser::ParserState)::Proto.SnapshotMapping - span_start1256 = span_start(parser) - _t1999 = parse_edb_path(parser) - edb_path1254 = _t1999 - _t2000 = parse_relation_id(parser) - relation_id1255 = _t2000 - _t2001 = Proto.SnapshotMapping(destination_path=edb_path1254, source_relation=relation_id1255) - result1257 = _t2001 - record_span!(parser, span_start1256, "SnapshotMapping") - return result1257 + span_start1272 = span_start(parser) + _t2021 = parse_edb_path(parser) + edb_path1270 = _t2021 + _t2022 = parse_relation_id(parser) + relation_id1271 = _t2022 + _t2023 = Proto.SnapshotMapping(destination_path=edb_path1270, source_relation=relation_id1271) + result1273 = _t2023 + record_span!(parser, span_start1272, "SnapshotMapping") + return result1273 end function parse_epoch_reads(parser::ParserState)::Vector{Proto.Read} consume_literal!(parser, "(") consume_literal!(parser, "reads") - xs1258 = Proto.Read[] - cond1259 = match_lookahead_literal(parser, "(", 0) - while cond1259 - _t2002 = parse_read(parser) - item1260 = _t2002 - push!(xs1258, item1260) - cond1259 = match_lookahead_literal(parser, "(", 0) - end - reads1261 = xs1258 + xs1274 = Proto.Read[] + cond1275 = match_lookahead_literal(parser, "(", 0) + while cond1275 + _t2024 = parse_read(parser) + item1276 = _t2024 + push!(xs1274, item1276) + cond1275 = match_lookahead_literal(parser, "(", 0) + end + reads1277 = xs1274 consume_literal!(parser, ")") - return reads1261 + return reads1277 end function parse_read(parser::ParserState)::Proto.Read - span_start1268 = span_start(parser) + span_start1284 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t2004 = 2 + _t2026 = 2 else if match_lookahead_literal(parser, "output", 1) - _t2005 = 1 + _t2027 = 1 else if match_lookahead_literal(parser, "export_iceberg", 1) - _t2006 = 4 + _t2028 = 4 else if match_lookahead_literal(parser, "export", 1) - _t2007 = 4 + _t2029 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t2008 = 0 + _t2030 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t2009 = 3 + _t2031 = 3 else - _t2009 = -1 + _t2031 = -1 end - _t2008 = _t2009 + _t2030 = _t2031 end - _t2007 = _t2008 + _t2029 = _t2030 end - _t2006 = _t2007 + _t2028 = _t2029 end - _t2005 = _t2006 + _t2027 = _t2028 end - _t2004 = _t2005 + _t2026 = _t2027 end - _t2003 = _t2004 + _t2025 = _t2026 else - _t2003 = -1 - end - prediction1262 = _t2003 - if prediction1262 == 4 - _t2011 = parse_export(parser) - export1267 = _t2011 - _t2012 = Proto.Read(read_type=OneOf(:var"#export", export1267)) - _t2010 = _t2012 + _t2025 = -1 + end + prediction1278 = _t2025 + if prediction1278 == 4 + _t2033 = parse_export(parser) + export1283 = _t2033 + _t2034 = Proto.Read(read_type=OneOf(:var"#export", export1283)) + _t2032 = _t2034 else - if prediction1262 == 3 - _t2014 = parse_abort(parser) - abort1266 = _t2014 - _t2015 = Proto.Read(read_type=OneOf(:abort, abort1266)) - _t2013 = _t2015 + if prediction1278 == 3 + _t2036 = parse_abort(parser) + abort1282 = _t2036 + _t2037 = Proto.Read(read_type=OneOf(:abort, abort1282)) + _t2035 = _t2037 else - if prediction1262 == 2 - _t2017 = parse_what_if(parser) - what_if1265 = _t2017 - _t2018 = Proto.Read(read_type=OneOf(:what_if, what_if1265)) - _t2016 = _t2018 + if prediction1278 == 2 + _t2039 = parse_what_if(parser) + what_if1281 = _t2039 + _t2040 = Proto.Read(read_type=OneOf(:what_if, what_if1281)) + _t2038 = _t2040 else - if prediction1262 == 1 - _t2020 = parse_output(parser) - output1264 = _t2020 - _t2021 = Proto.Read(read_type=OneOf(:output, output1264)) - _t2019 = _t2021 + if prediction1278 == 1 + _t2042 = parse_output(parser) + output1280 = _t2042 + _t2043 = Proto.Read(read_type=OneOf(:output, output1280)) + _t2041 = _t2043 else - if prediction1262 == 0 - _t2023 = parse_demand(parser) - demand1263 = _t2023 - _t2024 = Proto.Read(read_type=OneOf(:demand, demand1263)) - _t2022 = _t2024 + if prediction1278 == 0 + _t2045 = parse_demand(parser) + demand1279 = _t2045 + _t2046 = Proto.Read(read_type=OneOf(:demand, demand1279)) + _t2044 = _t2046 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t2019 = _t2022 + _t2041 = _t2044 end - _t2016 = _t2019 + _t2038 = _t2041 end - _t2013 = _t2016 + _t2035 = _t2038 end - _t2010 = _t2013 + _t2032 = _t2035 end - result1269 = _t2010 - record_span!(parser, span_start1268, "Read") - return result1269 + result1285 = _t2032 + record_span!(parser, span_start1284, "Read") + return result1285 end function parse_demand(parser::ParserState)::Proto.Demand - span_start1271 = span_start(parser) + span_start1287 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t2025 = parse_relation_id(parser) - relation_id1270 = _t2025 + _t2047 = parse_relation_id(parser) + relation_id1286 = _t2047 consume_literal!(parser, ")") - _t2026 = Proto.Demand(relation_id=relation_id1270) - result1272 = _t2026 - record_span!(parser, span_start1271, "Demand") - return result1272 + _t2048 = Proto.Demand(relation_id=relation_id1286) + result1288 = _t2048 + record_span!(parser, span_start1287, "Demand") + return result1288 end function parse_output(parser::ParserState)::Proto.Output - span_start1275 = span_start(parser) + span_start1291 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "output") - _t2027 = parse_name(parser) - name1273 = _t2027 - _t2028 = parse_relation_id(parser) - relation_id1274 = _t2028 + _t2049 = parse_name(parser) + name1289 = _t2049 + _t2050 = parse_relation_id(parser) + relation_id1290 = _t2050 consume_literal!(parser, ")") - _t2029 = Proto.Output(name=name1273, relation_id=relation_id1274) - result1276 = _t2029 - record_span!(parser, span_start1275, "Output") - return result1276 + _t2051 = Proto.Output(name=name1289, relation_id=relation_id1290) + result1292 = _t2051 + record_span!(parser, span_start1291, "Output") + return result1292 end function parse_what_if(parser::ParserState)::Proto.WhatIf - span_start1279 = span_start(parser) + span_start1295 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t2030 = parse_name(parser) - name1277 = _t2030 - _t2031 = parse_epoch(parser) - epoch1278 = _t2031 + _t2052 = parse_name(parser) + name1293 = _t2052 + _t2053 = parse_epoch(parser) + epoch1294 = _t2053 consume_literal!(parser, ")") - _t2032 = Proto.WhatIf(branch=name1277, epoch=epoch1278) - result1280 = _t2032 - record_span!(parser, span_start1279, "WhatIf") - return result1280 + _t2054 = Proto.WhatIf(branch=name1293, epoch=epoch1294) + result1296 = _t2054 + record_span!(parser, span_start1295, "WhatIf") + return result1296 end function parse_abort(parser::ParserState)::Proto.Abort - span_start1283 = span_start(parser) + span_start1299 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "abort") if (match_lookahead_literal(parser, ":", 0) && match_lookahead_terminal(parser, "SYMBOL", 1)) - _t2034 = parse_name(parser) - _t2033 = _t2034 + _t2056 = parse_name(parser) + _t2055 = _t2056 else - _t2033 = nothing + _t2055 = nothing end - name1281 = _t2033 - _t2035 = parse_relation_id(parser) - relation_id1282 = _t2035 + name1297 = _t2055 + _t2057 = parse_relation_id(parser) + relation_id1298 = _t2057 consume_literal!(parser, ")") - _t2036 = Proto.Abort(name=(!isnothing(name1281) ? name1281 : "abort"), relation_id=relation_id1282) - result1284 = _t2036 - record_span!(parser, span_start1283, "Abort") - return result1284 + _t2058 = Proto.Abort(name=(!isnothing(name1297) ? name1297 : "abort"), relation_id=relation_id1298) + result1300 = _t2058 + record_span!(parser, span_start1299, "Abort") + return result1300 end function parse_export(parser::ParserState)::Proto.Export - span_start1288 = span_start(parser) + span_start1304 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_iceberg", 1) - _t2038 = 1 + _t2060 = 1 else if match_lookahead_literal(parser, "export", 1) - _t2039 = 0 + _t2061 = 0 else - _t2039 = -1 + _t2061 = -1 end - _t2038 = _t2039 + _t2060 = _t2061 end - _t2037 = _t2038 + _t2059 = _t2060 else - _t2037 = -1 + _t2059 = -1 end - prediction1285 = _t2037 - if prediction1285 == 1 + prediction1301 = _t2059 + if prediction1301 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_iceberg") - _t2041 = parse_export_iceberg_config(parser) - export_iceberg_config1287 = _t2041 + _t2063 = parse_export_iceberg_config(parser) + export_iceberg_config1303 = _t2063 consume_literal!(parser, ")") - _t2042 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1287)) - _t2040 = _t2042 + _t2064 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1303)) + _t2062 = _t2064 else - if prediction1285 == 0 + if prediction1301 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export") - _t2044 = parse_export_csv_config(parser) - export_csv_config1286 = _t2044 + _t2066 = parse_export_csv_config(parser) + export_csv_config1302 = _t2066 consume_literal!(parser, ")") - _t2045 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1286)) - _t2043 = _t2045 + _t2067 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1302)) + _t2065 = _t2067 else throw(ParseError("Unexpected token in export" * ": " * string(lookahead(parser, 0)))) end - _t2040 = _t2043 + _t2062 = _t2065 end - result1289 = _t2040 - record_span!(parser, span_start1288, "Export") - return result1289 + result1305 = _t2062 + record_span!(parser, span_start1304, "Export") + return result1305 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - span_start1297 = span_start(parser) + span_start1313 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_csv_config_v2", 1) - _t2047 = 0 + _t2069 = 0 else if match_lookahead_literal(parser, "export_csv_config", 1) - _t2048 = 1 + _t2070 = 1 else - _t2048 = -1 + _t2070 = -1 end - _t2047 = _t2048 + _t2069 = _t2070 end - _t2046 = _t2047 + _t2068 = _t2069 else - _t2046 = -1 + _t2068 = -1 end - prediction1290 = _t2046 - if prediction1290 == 1 + prediction1306 = _t2068 + if prediction1306 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config") - _t2050 = parse_export_csv_path(parser) - export_csv_path1294 = _t2050 - _t2051 = parse_export_csv_columns_list(parser) - export_csv_columns_list1295 = _t2051 - _t2052 = parse_config_dict(parser) - config_dict1296 = _t2052 + _t2072 = parse_export_csv_path(parser) + export_csv_path1310 = _t2072 + _t2073 = parse_export_csv_columns_list(parser) + export_csv_columns_list1311 = _t2073 + _t2074 = parse_config_dict(parser) + config_dict1312 = _t2074 consume_literal!(parser, ")") - _t2053 = construct_export_csv_config(parser, export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2049 = _t2053 + _t2075 = construct_export_csv_config(parser, export_csv_path1310, export_csv_columns_list1311, config_dict1312) + _t2071 = _t2075 else - if prediction1290 == 0 + if prediction1306 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config_v2") - _t2055 = parse_export_csv_path(parser) - export_csv_path1291 = _t2055 - _t2056 = parse_export_csv_source(parser) - export_csv_source1292 = _t2056 - _t2057 = parse_csv_config(parser) - csv_config1293 = _t2057 + _t2077 = parse_export_csv_path(parser) + export_csv_path1307 = _t2077 + _t2078 = parse_export_csv_source(parser) + export_csv_source1308 = _t2078 + _t2079 = parse_csv_config(parser) + csv_config1309 = _t2079 consume_literal!(parser, ")") - _t2058 = construct_export_csv_config_with_source(parser, export_csv_path1291, export_csv_source1292, csv_config1293) - _t2054 = _t2058 + _t2080 = construct_export_csv_config_with_source(parser, export_csv_path1307, export_csv_source1308, csv_config1309) + _t2076 = _t2080 else throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) end - _t2049 = _t2054 + _t2071 = _t2076 end - result1298 = _t2049 - record_span!(parser, span_start1297, "ExportCSVConfig") - return result1298 + result1314 = _t2071 + record_span!(parser, span_start1313, "ExportCSVConfig") + return result1314 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string1299 = consume_terminal!(parser, "STRING") + string1315 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1299 + return string1315 end function parse_export_csv_source(parser::ParserState)::Proto.ExportCSVSource - span_start1306 = span_start(parser) + span_start1322 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "table_def", 1) - _t2060 = 1 + _t2082 = 1 else if match_lookahead_literal(parser, "gnf_columns", 1) - _t2061 = 0 + _t2083 = 0 else - _t2061 = -1 + _t2083 = -1 end - _t2060 = _t2061 + _t2082 = _t2083 end - _t2059 = _t2060 + _t2081 = _t2082 else - _t2059 = -1 + _t2081 = -1 end - prediction1300 = _t2059 - if prediction1300 == 1 + prediction1316 = _t2081 + if prediction1316 == 1 consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2063 = parse_relation_id(parser) - relation_id1305 = _t2063 + _t2085 = parse_relation_id(parser) + relation_id1321 = _t2085 consume_literal!(parser, ")") - _t2064 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1305)) - _t2062 = _t2064 + _t2086 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1321)) + _t2084 = _t2086 else - if prediction1300 == 0 + if prediction1316 == 0 consume_literal!(parser, "(") consume_literal!(parser, "gnf_columns") - xs1301 = Proto.ExportCSVColumn[] - cond1302 = match_lookahead_literal(parser, "(", 0) - while cond1302 - _t2066 = parse_export_csv_column(parser) - item1303 = _t2066 - push!(xs1301, item1303) - cond1302 = match_lookahead_literal(parser, "(", 0) + xs1317 = Proto.ExportCSVColumn[] + cond1318 = match_lookahead_literal(parser, "(", 0) + while cond1318 + _t2088 = parse_export_csv_column(parser) + item1319 = _t2088 + push!(xs1317, item1319) + cond1318 = match_lookahead_literal(parser, "(", 0) end - export_csv_columns1304 = xs1301 + export_csv_columns1320 = xs1317 consume_literal!(parser, ")") - _t2067 = Proto.ExportCSVColumns(columns=export_csv_columns1304) - _t2068 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2067)) - _t2065 = _t2068 + _t2089 = Proto.ExportCSVColumns(columns=export_csv_columns1320) + _t2090 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2089)) + _t2087 = _t2090 else throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) end - _t2062 = _t2065 + _t2084 = _t2087 end - result1307 = _t2062 - record_span!(parser, span_start1306, "ExportCSVSource") - return result1307 + result1323 = _t2084 + record_span!(parser, span_start1322, "ExportCSVSource") + return result1323 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn - span_start1310 = span_start(parser) + span_start1326 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - string1308 = consume_terminal!(parser, "STRING") - _t2069 = parse_relation_id(parser) - relation_id1309 = _t2069 + string1324 = consume_terminal!(parser, "STRING") + _t2091 = parse_relation_id(parser) + relation_id1325 = _t2091 consume_literal!(parser, ")") - _t2070 = Proto.ExportCSVColumn(column_name=string1308, column_data=relation_id1309) - result1311 = _t2070 - record_span!(parser, span_start1310, "ExportCSVColumn") - return result1311 + _t2092 = Proto.ExportCSVColumn(column_name=string1324, column_data=relation_id1325) + result1327 = _t2092 + record_span!(parser, span_start1326, "ExportCSVColumn") + return result1327 end function parse_export_csv_columns_list(parser::ParserState)::Vector{Proto.ExportCSVColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1312 = Proto.ExportCSVColumn[] - cond1313 = match_lookahead_literal(parser, "(", 0) - while cond1313 - _t2071 = parse_export_csv_column(parser) - item1314 = _t2071 - push!(xs1312, item1314) - cond1313 = match_lookahead_literal(parser, "(", 0) - end - export_csv_columns1315 = xs1312 + xs1328 = Proto.ExportCSVColumn[] + cond1329 = match_lookahead_literal(parser, "(", 0) + while cond1329 + _t2093 = parse_export_csv_column(parser) + item1330 = _t2093 + push!(xs1328, item1330) + cond1329 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns1331 = xs1328 consume_literal!(parser, ")") - return export_csv_columns1315 + return export_csv_columns1331 end function parse_export_iceberg_config(parser::ParserState)::Proto.ExportIcebergConfig - span_start1321 = span_start(parser) + span_start1337 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "export_iceberg_config") - _t2072 = parse_iceberg_locator(parser) - iceberg_locator1316 = _t2072 - _t2073 = parse_iceberg_catalog_config(parser) - iceberg_catalog_config1317 = _t2073 - _t2074 = parse_export_iceberg_table_def(parser) - export_iceberg_table_def1318 = _t2074 - _t2075 = parse_iceberg_table_properties(parser) - iceberg_table_properties1319 = _t2075 + _t2094 = parse_iceberg_locator(parser) + iceberg_locator1332 = _t2094 + _t2095 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1333 = _t2095 + _t2096 = parse_export_iceberg_table_def(parser) + export_iceberg_table_def1334 = _t2096 + _t2097 = parse_iceberg_table_properties(parser) + iceberg_table_properties1335 = _t2097 if match_lookahead_literal(parser, "{", 0) - _t2077 = parse_config_dict(parser) - _t2076 = _t2077 + _t2099 = parse_config_dict(parser) + _t2098 = _t2099 else - _t2076 = nothing + _t2098 = nothing end - config_dict1320 = _t2076 + config_dict1336 = _t2098 consume_literal!(parser, ")") - _t2078 = construct_export_iceberg_config_full(parser, iceberg_locator1316, iceberg_catalog_config1317, export_iceberg_table_def1318, iceberg_table_properties1319, config_dict1320) - result1322 = _t2078 - record_span!(parser, span_start1321, "ExportIcebergConfig") - return result1322 + _t2100 = construct_export_iceberg_config_full(parser, iceberg_locator1332, iceberg_catalog_config1333, export_iceberg_table_def1334, iceberg_table_properties1335, config_dict1336) + result1338 = _t2100 + record_span!(parser, span_start1337, "ExportIcebergConfig") + return result1338 end function parse_export_iceberg_table_def(parser::ParserState)::Proto.RelationId - span_start1324 = span_start(parser) + span_start1340 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2079 = parse_relation_id(parser) - relation_id1323 = _t2079 + _t2101 = parse_relation_id(parser) + relation_id1339 = _t2101 consume_literal!(parser, ")") - result1325 = relation_id1323 - record_span!(parser, span_start1324, "RelationId") - return result1325 + result1341 = relation_id1339 + record_span!(parser, span_start1340, "RelationId") + return result1341 end function parse_iceberg_table_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "table_properties") - xs1326 = Tuple{String, String}[] - cond1327 = match_lookahead_literal(parser, "(", 0) - while cond1327 - _t2080 = parse_iceberg_property_entry(parser) - item1328 = _t2080 - push!(xs1326, item1328) - cond1327 = match_lookahead_literal(parser, "(", 0) - end - iceberg_property_entrys1329 = xs1326 + xs1342 = Tuple{String, String}[] + cond1343 = match_lookahead_literal(parser, "(", 0) + while cond1343 + _t2102 = parse_iceberg_property_entry(parser) + item1344 = _t2102 + push!(xs1342, item1344) + cond1343 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1345 = xs1342 consume_literal!(parser, ")") - return iceberg_property_entrys1329 + return iceberg_property_entrys1345 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index 021f8932..492bd9ff 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl @@ -377,151 +377,151 @@ end # --- Helper functions --- function _make_value_int32(pp::PrettyPrinter, v::Int32)::Proto.Value - _t1770 = Proto.Value(value=OneOf(:int32_value, v)) - return _t1770 + _t1793 = Proto.Value(value=OneOf(:int32_value, v)) + return _t1793 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1771 = Proto.Value(value=OneOf(:int_value, v)) - return _t1771 + _t1794 = Proto.Value(value=OneOf(:int_value, v)) + return _t1794 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1772 = Proto.Value(value=OneOf(:float_value, v)) - return _t1772 + _t1795 = Proto.Value(value=OneOf(:float_value, v)) + return _t1795 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1773 = Proto.Value(value=OneOf(:string_value, v)) - return _t1773 + _t1796 = Proto.Value(value=OneOf(:string_value, v)) + return _t1796 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1774 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1774 + _t1797 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1797 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1775 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1775 + _t1798 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1798 end function deconstruct_configure(pp::PrettyPrinter, msg::Proto.Configure)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_AUTO - _t1776 = _make_value_string(pp, "auto") - push!(result, ("ivm.maintenance_level", _t1776,)) + _t1799 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1799,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1777 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1777,)) + _t1800 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1800,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1778 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1778,)) + _t1801 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1801,)) end end end - _t1779 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1779,)) + _t1802 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1802,)) return sort(result) end function deconstruct_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1780 = _make_value_int32(pp, msg.header_row) - push!(result, ("csv_header_row", _t1780,)) - _t1781 = _make_value_int64(pp, msg.skip) - push!(result, ("csv_skip", _t1781,)) + _t1803 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1803,)) + _t1804 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1804,)) if msg.new_line != "" - _t1782 = _make_value_string(pp, msg.new_line) - push!(result, ("csv_new_line", _t1782,)) - end - _t1783 = _make_value_string(pp, msg.delimiter) - push!(result, ("csv_delimiter", _t1783,)) - _t1784 = _make_value_string(pp, msg.quotechar) - push!(result, ("csv_quotechar", _t1784,)) - _t1785 = _make_value_string(pp, msg.escapechar) - push!(result, ("csv_escapechar", _t1785,)) + _t1805 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1805,)) + end + _t1806 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1806,)) + _t1807 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1807,)) + _t1808 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1808,)) if msg.comment != "" - _t1786 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1786,)) + _t1809 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1809,)) end for missing_string in msg.missing_strings - _t1787 = _make_value_string(pp, missing_string) - push!(result, ("csv_missing_strings", _t1787,)) - end - _t1788 = _make_value_string(pp, msg.decimal_separator) - push!(result, ("csv_decimal_separator", _t1788,)) - _t1789 = _make_value_string(pp, msg.encoding) - push!(result, ("csv_encoding", _t1789,)) - _t1790 = _make_value_string(pp, msg.compression) - push!(result, ("csv_compression", _t1790,)) + _t1810 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1810,)) + end + _t1811 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1811,)) + _t1812 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1812,)) + _t1813 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1813,)) if msg.partition_size_mb != 0 - _t1791 = _make_value_int64(pp, msg.partition_size_mb) - push!(result, ("csv_partition_size_mb", _t1791,)) + _t1814 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1814,)) end return sort(result) end function deconstruct_betree_info_config(pp::PrettyPrinter, msg::Proto.BeTreeInfo)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1792 = _make_value_float64(pp, msg.storage_config.epsilon) - push!(result, ("betree_config_epsilon", _t1792,)) - _t1793 = _make_value_int64(pp, msg.storage_config.max_pivots) - push!(result, ("betree_config_max_pivots", _t1793,)) - _t1794 = _make_value_int64(pp, msg.storage_config.max_deltas) - push!(result, ("betree_config_max_deltas", _t1794,)) - _t1795 = _make_value_int64(pp, msg.storage_config.max_leaf) - push!(result, ("betree_config_max_leaf", _t1795,)) + _t1815 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1815,)) + _t1816 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1816,)) + _t1817 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1817,)) + _t1818 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1818,)) if _has_proto_field(msg.relation_locator, Symbol("root_pageid")) if !isnothing(_get_oneof_field(msg.relation_locator, :root_pageid)) - _t1796 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) - push!(result, ("betree_locator_root_pageid", _t1796,)) + _t1819 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1819,)) end end if _has_proto_field(msg.relation_locator, Symbol("inline_data")) if !isnothing(_get_oneof_field(msg.relation_locator, :inline_data)) - _t1797 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) - push!(result, ("betree_locator_inline_data", _t1797,)) + _t1820 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1820,)) end end - _t1798 = _make_value_int64(pp, msg.relation_locator.element_count) - push!(result, ("betree_locator_element_count", _t1798,)) - _t1799 = _make_value_int64(pp, msg.relation_locator.tree_height) - push!(result, ("betree_locator_tree_height", _t1799,)) + _t1821 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1821,)) + _t1822 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1822,)) return sort(result) end function deconstruct_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] if !isnothing(msg.partition_size) - _t1800 = _make_value_int64(pp, msg.partition_size) - push!(result, ("partition_size", _t1800,)) + _t1823 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1823,)) end if !isnothing(msg.compression) - _t1801 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1801,)) + _t1824 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1824,)) end if !isnothing(msg.syntax_header_row) - _t1802 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1802,)) + _t1825 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1825,)) end if !isnothing(msg.syntax_missing_string) - _t1803 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1803,)) + _t1826 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1826,)) end if !isnothing(msg.syntax_delim) - _t1804 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1804,)) + _t1827 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1827,)) end if !isnothing(msg.syntax_quotechar) - _t1805 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1805,)) + _t1828 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1828,)) end if !isnothing(msg.syntax_escapechar) - _t1806 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1806,)) + _t1829 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1829,)) end return sort(result) end @@ -534,7 +534,7 @@ function deconstruct_iceberg_catalog_config_scope_optional(pp::PrettyPrinter, ms if msg.scope != "" return msg.scope else - _t1807 = nothing + _t1830 = nothing end return nothing end @@ -543,7 +543,7 @@ function deconstruct_iceberg_data_from_snapshot_optional(pp::PrettyPrinter, msg: if msg.from_snapshot != "" return msg.from_snapshot else - _t1808 = nothing + _t1831 = nothing end return nothing end @@ -552,7 +552,7 @@ function deconstruct_iceberg_data_to_snapshot_optional(pp::PrettyPrinter, msg::P if msg.to_snapshot != "" return msg.to_snapshot else - _t1809 = nothing + _t1832 = nothing end return nothing end @@ -560,21 +560,21 @@ end function deconstruct_export_iceberg_config_optional(pp::PrettyPrinter, msg::Proto.ExportIcebergConfig)::Union{Nothing, Vector{Tuple{String, Proto.Value}}} result = Tuple{String, Proto.Value}[] if msg.prefix != "" - _t1810 = _make_value_string(pp, msg.prefix) - push!(result, ("prefix", _t1810,)) + _t1833 = _make_value_string(pp, msg.prefix) + push!(result, ("prefix", _t1833,)) end if msg.target_file_size_bytes != 0 - _t1811 = _make_value_int64(pp, msg.target_file_size_bytes) - push!(result, ("target_file_size_bytes", _t1811,)) + _t1834 = _make_value_int64(pp, msg.target_file_size_bytes) + push!(result, ("target_file_size_bytes", _t1834,)) end if msg.compression != "" - _t1812 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1812,)) + _t1835 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1835,)) end if length(result) == 0 return nothing else - _t1813 = nothing + _t1836 = nothing end return sort(result) end @@ -589,7 +589,7 @@ function deconstruct_relation_id_uint128(pp::PrettyPrinter, msg::Proto.RelationI if isnothing(name) return relation_id_to_uint128(pp, msg) else - _t1814 = nothing + _t1837 = nothing end return nothing end @@ -608,47 +608,47 @@ end # --- Pretty-print functions --- function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) - flat803 = try_flat(pp, msg, pretty_transaction) - if !isnothing(flat803) - write(pp, flat803) + flat813 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat813) + write(pp, flat813) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1588 = _dollar_dollar.configure + _t1608 = _dollar_dollar.configure else - _t1588 = nothing + _t1608 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1589 = _dollar_dollar.sync + _t1609 = _dollar_dollar.sync else - _t1589 = nothing + _t1609 = nothing end - fields794 = (_t1588, _t1589, _dollar_dollar.epochs,) - unwrapped_fields795 = fields794 + fields804 = (_t1608, _t1609, _dollar_dollar.epochs,) + unwrapped_fields805 = fields804 write(pp, "(transaction") indent_sexp!(pp) - field796 = unwrapped_fields795[1] - if !isnothing(field796) + field806 = unwrapped_fields805[1] + if !isnothing(field806) newline(pp) - opt_val797 = field796 - pretty_configure(pp, opt_val797) + opt_val807 = field806 + pretty_configure(pp, opt_val807) end - field798 = unwrapped_fields795[2] - if !isnothing(field798) + field808 = unwrapped_fields805[2] + if !isnothing(field808) newline(pp) - opt_val799 = field798 - pretty_sync(pp, opt_val799) + opt_val809 = field808 + pretty_sync(pp, opt_val809) end - field800 = unwrapped_fields795[3] - if !isempty(field800) + field810 = unwrapped_fields805[3] + if !isempty(field810) newline(pp) - for (i1590, elem801) in enumerate(field800) - i802 = i1590 - 1 - if (i802 > 0) + for (i1610, elem811) in enumerate(field810) + i812 = i1610 - 1 + if (i812 > 0) newline(pp) end - pretty_epoch(pp, elem801) + pretty_epoch(pp, elem811) end end dedent!(pp) @@ -658,19 +658,19 @@ function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) end function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) - flat806 = try_flat(pp, msg, pretty_configure) - if !isnothing(flat806) - write(pp, flat806) + flat816 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat816) + write(pp, flat816) return nothing else _dollar_dollar = msg - _t1591 = deconstruct_configure(pp, _dollar_dollar) - fields804 = _t1591 - unwrapped_fields805 = fields804 + _t1611 = deconstruct_configure(pp, _dollar_dollar) + fields814 = _t1611 + unwrapped_fields815 = fields814 write(pp, "(configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields805) + pretty_config_dict(pp, unwrapped_fields815) dedent!(pp) write(pp, ")") end @@ -678,22 +678,22 @@ function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) end function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat810 = try_flat(pp, msg, pretty_config_dict) - if !isnothing(flat810) - write(pp, flat810) + flat820 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat820) + write(pp, flat820) return nothing else - fields807 = msg + fields817 = msg write(pp, "{") indent!(pp) - if !isempty(fields807) + if !isempty(fields817) newline(pp) - for (i1592, elem808) in enumerate(fields807) - i809 = i1592 - 1 - if (i809 > 0) + for (i1612, elem818) in enumerate(fields817) + i819 = i1612 - 1 + if (i819 > 0) newline(pp) end - pretty_config_key_value(pp, elem808) + pretty_config_key_value(pp, elem818) end end dedent!(pp) @@ -703,163 +703,163 @@ function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.V end function pretty_config_key_value(pp::PrettyPrinter, msg::Tuple{String, Proto.Value}) - flat815 = try_flat(pp, msg, pretty_config_key_value) - if !isnothing(flat815) - write(pp, flat815) + flat825 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat825) + write(pp, flat825) return nothing else _dollar_dollar = msg - fields811 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields812 = fields811 + fields821 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields822 = fields821 write(pp, ":") - field813 = unwrapped_fields812[1] - write(pp, field813) + field823 = unwrapped_fields822[1] + write(pp, field823) write(pp, " ") - field814 = unwrapped_fields812[2] - pretty_raw_value(pp, field814) + field824 = unwrapped_fields822[2] + pretty_raw_value(pp, field824) end return nothing end function pretty_raw_value(pp::PrettyPrinter, msg::Proto.Value) - flat841 = try_flat(pp, msg, pretty_raw_value) - if !isnothing(flat841) - write(pp, flat841) + flat851 = try_flat(pp, msg, pretty_raw_value) + if !isnothing(flat851) + write(pp, flat851) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1593 = _get_oneof_field(_dollar_dollar, :date_value) + _t1613 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1593 = nothing + _t1613 = nothing end - deconstruct_result839 = _t1593 - if !isnothing(deconstruct_result839) - unwrapped840 = deconstruct_result839 - pretty_raw_date(pp, unwrapped840) + deconstruct_result849 = _t1613 + if !isnothing(deconstruct_result849) + unwrapped850 = deconstruct_result849 + pretty_raw_date(pp, unwrapped850) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1594 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1614 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1594 = nothing + _t1614 = nothing end - deconstruct_result837 = _t1594 - if !isnothing(deconstruct_result837) - unwrapped838 = deconstruct_result837 - pretty_raw_datetime(pp, unwrapped838) + deconstruct_result847 = _t1614 + if !isnothing(deconstruct_result847) + unwrapped848 = deconstruct_result847 + pretty_raw_datetime(pp, unwrapped848) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1595 = _get_oneof_field(_dollar_dollar, :string_value) + _t1615 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1595 = nothing + _t1615 = nothing end - deconstruct_result835 = _t1595 - if !isnothing(deconstruct_result835) - unwrapped836 = deconstruct_result835 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped836)) + deconstruct_result845 = _t1615 + if !isnothing(deconstruct_result845) + unwrapped846 = deconstruct_result845 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped846)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1596 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1616 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1596 = nothing + _t1616 = nothing end - deconstruct_result833 = _t1596 - if !isnothing(deconstruct_result833) - unwrapped834 = deconstruct_result833 - write(pp, (string(Int64(unwrapped834)) * "i32")) + deconstruct_result843 = _t1616 + if !isnothing(deconstruct_result843) + unwrapped844 = deconstruct_result843 + write(pp, (string(Int64(unwrapped844)) * "i32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1597 = _get_oneof_field(_dollar_dollar, :int_value) + _t1617 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1597 = nothing + _t1617 = nothing end - deconstruct_result831 = _t1597 - if !isnothing(deconstruct_result831) - unwrapped832 = deconstruct_result831 - write(pp, string(unwrapped832)) + deconstruct_result841 = _t1617 + if !isnothing(deconstruct_result841) + unwrapped842 = deconstruct_result841 + write(pp, string(unwrapped842)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1598 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1618 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1598 = nothing + _t1618 = nothing end - deconstruct_result829 = _t1598 - if !isnothing(deconstruct_result829) - unwrapped830 = deconstruct_result829 - write(pp, format_float32_literal(unwrapped830)) + deconstruct_result839 = _t1618 + if !isnothing(deconstruct_result839) + unwrapped840 = deconstruct_result839 + write(pp, format_float32_literal(unwrapped840)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1599 = _get_oneof_field(_dollar_dollar, :float_value) + _t1619 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1599 = nothing + _t1619 = nothing end - deconstruct_result827 = _t1599 - if !isnothing(deconstruct_result827) - unwrapped828 = deconstruct_result827 - write(pp, lowercase(string(unwrapped828))) + deconstruct_result837 = _t1619 + if !isnothing(deconstruct_result837) + unwrapped838 = deconstruct_result837 + write(pp, lowercase(string(unwrapped838))) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1600 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1620 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1600 = nothing + _t1620 = nothing end - deconstruct_result825 = _t1600 - if !isnothing(deconstruct_result825) - unwrapped826 = deconstruct_result825 - write(pp, (string(Int64(unwrapped826)) * "u32")) + deconstruct_result835 = _t1620 + if !isnothing(deconstruct_result835) + unwrapped836 = deconstruct_result835 + write(pp, (string(Int64(unwrapped836)) * "u32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1601 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1621 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1601 = nothing + _t1621 = nothing end - deconstruct_result823 = _t1601 - if !isnothing(deconstruct_result823) - unwrapped824 = deconstruct_result823 - write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped824)) + deconstruct_result833 = _t1621 + if !isnothing(deconstruct_result833) + unwrapped834 = deconstruct_result833 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped834)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1602 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1622 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1602 = nothing + _t1622 = nothing end - deconstruct_result821 = _t1602 - if !isnothing(deconstruct_result821) - unwrapped822 = deconstruct_result821 - write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped822)) + deconstruct_result831 = _t1622 + if !isnothing(deconstruct_result831) + unwrapped832 = deconstruct_result831 + write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped832)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1603 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1623 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1603 = nothing + _t1623 = nothing end - deconstruct_result819 = _t1603 - if !isnothing(deconstruct_result819) - unwrapped820 = deconstruct_result819 - write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped820)) + deconstruct_result829 = _t1623 + if !isnothing(deconstruct_result829) + unwrapped830 = deconstruct_result829 + write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped830)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1604 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1624 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1604 = nothing + _t1624 = nothing end - deconstruct_result817 = _t1604 - if !isnothing(deconstruct_result817) - unwrapped818 = deconstruct_result817 - pretty_boolean_value(pp, unwrapped818) + deconstruct_result827 = _t1624 + if !isnothing(deconstruct_result827) + unwrapped828 = deconstruct_result827 + pretty_boolean_value(pp, unwrapped828) else - fields816 = msg + fields826 = msg write(pp, "missing") end end @@ -878,25 +878,25 @@ function pretty_raw_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_raw_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat847 = try_flat(pp, msg, pretty_raw_date) - if !isnothing(flat847) - write(pp, flat847) + flat857 = try_flat(pp, msg, pretty_raw_date) + if !isnothing(flat857) + write(pp, flat857) return nothing else _dollar_dollar = msg - fields842 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields843 = fields842 + fields852 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields853 = fields852 write(pp, "(date") indent_sexp!(pp) newline(pp) - field844 = unwrapped_fields843[1] - write(pp, string(field844)) + field854 = unwrapped_fields853[1] + write(pp, string(field854)) newline(pp) - field845 = unwrapped_fields843[2] - write(pp, string(field845)) + field855 = unwrapped_fields853[2] + write(pp, string(field855)) newline(pp) - field846 = unwrapped_fields843[3] - write(pp, string(field846)) + field856 = unwrapped_fields853[3] + write(pp, string(field856)) dedent!(pp) write(pp, ")") end @@ -904,39 +904,39 @@ function pretty_raw_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_raw_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat858 = try_flat(pp, msg, pretty_raw_datetime) - if !isnothing(flat858) - write(pp, flat858) + flat868 = try_flat(pp, msg, pretty_raw_datetime) + if !isnothing(flat868) + write(pp, flat868) return nothing else _dollar_dollar = msg - fields848 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) - unwrapped_fields849 = fields848 + fields858 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) + unwrapped_fields859 = fields858 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field850 = unwrapped_fields849[1] - write(pp, string(field850)) + field860 = unwrapped_fields859[1] + write(pp, string(field860)) newline(pp) - field851 = unwrapped_fields849[2] - write(pp, string(field851)) + field861 = unwrapped_fields859[2] + write(pp, string(field861)) newline(pp) - field852 = unwrapped_fields849[3] - write(pp, string(field852)) + field862 = unwrapped_fields859[3] + write(pp, string(field862)) newline(pp) - field853 = unwrapped_fields849[4] - write(pp, string(field853)) + field863 = unwrapped_fields859[4] + write(pp, string(field863)) newline(pp) - field854 = unwrapped_fields849[5] - write(pp, string(field854)) + field864 = unwrapped_fields859[5] + write(pp, string(field864)) newline(pp) - field855 = unwrapped_fields849[6] - write(pp, string(field855)) - field856 = unwrapped_fields849[7] - if !isnothing(field856) + field865 = unwrapped_fields859[6] + write(pp, string(field865)) + field866 = unwrapped_fields859[7] + if !isnothing(field866) newline(pp) - opt_val857 = field856 - write(pp, string(opt_val857)) + opt_val867 = field866 + write(pp, string(opt_val867)) end dedent!(pp) write(pp, ")") @@ -947,24 +947,24 @@ end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) _dollar_dollar = msg if _dollar_dollar - _t1605 = () + _t1625 = () else - _t1605 = nothing + _t1625 = nothing end - deconstruct_result861 = _t1605 - if !isnothing(deconstruct_result861) - unwrapped862 = deconstruct_result861 + deconstruct_result871 = _t1625 + if !isnothing(deconstruct_result871) + unwrapped872 = deconstruct_result871 write(pp, "true") else _dollar_dollar = msg if !_dollar_dollar - _t1606 = () + _t1626 = () else - _t1606 = nothing + _t1626 = nothing end - deconstruct_result859 = _t1606 - if !isnothing(deconstruct_result859) - unwrapped860 = deconstruct_result859 + deconstruct_result869 = _t1626 + if !isnothing(deconstruct_result869) + unwrapped870 = deconstruct_result869 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -974,24 +974,24 @@ function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) end function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) - flat867 = try_flat(pp, msg, pretty_sync) - if !isnothing(flat867) - write(pp, flat867) + flat877 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat877) + write(pp, flat877) return nothing else _dollar_dollar = msg - fields863 = _dollar_dollar.fragments - unwrapped_fields864 = fields863 + fields873 = _dollar_dollar.fragments + unwrapped_fields874 = fields873 write(pp, "(sync") indent_sexp!(pp) - if !isempty(unwrapped_fields864) + if !isempty(unwrapped_fields874) newline(pp) - for (i1607, elem865) in enumerate(unwrapped_fields864) - i866 = i1607 - 1 - if (i866 > 0) + for (i1627, elem875) in enumerate(unwrapped_fields874) + i876 = i1627 - 1 + if (i876 > 0) newline(pp) end - pretty_fragment_id(pp, elem865) + pretty_fragment_id(pp, elem875) end end dedent!(pp) @@ -1001,52 +1001,52 @@ function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) end function pretty_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat870 = try_flat(pp, msg, pretty_fragment_id) - if !isnothing(flat870) - write(pp, flat870) + flat880 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat880) + write(pp, flat880) return nothing else _dollar_dollar = msg - fields868 = fragment_id_to_string(pp, _dollar_dollar) - unwrapped_fields869 = fields868 + fields878 = fragment_id_to_string(pp, _dollar_dollar) + unwrapped_fields879 = fields878 write(pp, ":") - write(pp, unwrapped_fields869) + write(pp, unwrapped_fields879) end return nothing end function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) - flat877 = try_flat(pp, msg, pretty_epoch) - if !isnothing(flat877) - write(pp, flat877) + flat887 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat887) + write(pp, flat887) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.writes) - _t1608 = _dollar_dollar.writes + _t1628 = _dollar_dollar.writes else - _t1608 = nothing + _t1628 = nothing end if !isempty(_dollar_dollar.reads) - _t1609 = _dollar_dollar.reads + _t1629 = _dollar_dollar.reads else - _t1609 = nothing + _t1629 = nothing end - fields871 = (_t1608, _t1609,) - unwrapped_fields872 = fields871 + fields881 = (_t1628, _t1629,) + unwrapped_fields882 = fields881 write(pp, "(epoch") indent_sexp!(pp) - field873 = unwrapped_fields872[1] - if !isnothing(field873) + field883 = unwrapped_fields882[1] + if !isnothing(field883) newline(pp) - opt_val874 = field873 - pretty_epoch_writes(pp, opt_val874) + opt_val884 = field883 + pretty_epoch_writes(pp, opt_val884) end - field875 = unwrapped_fields872[2] - if !isnothing(field875) + field885 = unwrapped_fields882[2] + if !isnothing(field885) newline(pp) - opt_val876 = field875 - pretty_epoch_reads(pp, opt_val876) + opt_val886 = field885 + pretty_epoch_reads(pp, opt_val886) end dedent!(pp) write(pp, ")") @@ -1055,22 +1055,22 @@ function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) end function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) - flat881 = try_flat(pp, msg, pretty_epoch_writes) - if !isnothing(flat881) - write(pp, flat881) + flat891 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat891) + write(pp, flat891) return nothing else - fields878 = msg + fields888 = msg write(pp, "(writes") indent_sexp!(pp) - if !isempty(fields878) + if !isempty(fields888) newline(pp) - for (i1610, elem879) in enumerate(fields878) - i880 = i1610 - 1 - if (i880 > 0) + for (i1630, elem889) in enumerate(fields888) + i890 = i1630 - 1 + if (i890 > 0) newline(pp) end - pretty_write(pp, elem879) + pretty_write(pp, elem889) end end dedent!(pp) @@ -1080,54 +1080,54 @@ function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) end function pretty_write(pp::PrettyPrinter, msg::Proto.Write) - flat890 = try_flat(pp, msg, pretty_write) - if !isnothing(flat890) - write(pp, flat890) + flat900 = try_flat(pp, msg, pretty_write) + if !isnothing(flat900) + write(pp, flat900) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1611 = _get_oneof_field(_dollar_dollar, :define) + _t1631 = _get_oneof_field(_dollar_dollar, :define) else - _t1611 = nothing + _t1631 = nothing end - deconstruct_result888 = _t1611 - if !isnothing(deconstruct_result888) - unwrapped889 = deconstruct_result888 - pretty_define(pp, unwrapped889) + deconstruct_result898 = _t1631 + if !isnothing(deconstruct_result898) + unwrapped899 = deconstruct_result898 + pretty_define(pp, unwrapped899) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1612 = _get_oneof_field(_dollar_dollar, :undefine) + _t1632 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1612 = nothing + _t1632 = nothing end - deconstruct_result886 = _t1612 - if !isnothing(deconstruct_result886) - unwrapped887 = deconstruct_result886 - pretty_undefine(pp, unwrapped887) + deconstruct_result896 = _t1632 + if !isnothing(deconstruct_result896) + unwrapped897 = deconstruct_result896 + pretty_undefine(pp, unwrapped897) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1613 = _get_oneof_field(_dollar_dollar, :context) + _t1633 = _get_oneof_field(_dollar_dollar, :context) else - _t1613 = nothing + _t1633 = nothing end - deconstruct_result884 = _t1613 - if !isnothing(deconstruct_result884) - unwrapped885 = deconstruct_result884 - pretty_context(pp, unwrapped885) + deconstruct_result894 = _t1633 + if !isnothing(deconstruct_result894) + unwrapped895 = deconstruct_result894 + pretty_context(pp, unwrapped895) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1614 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1634 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1614 = nothing + _t1634 = nothing end - deconstruct_result882 = _t1614 - if !isnothing(deconstruct_result882) - unwrapped883 = deconstruct_result882 - pretty_snapshot(pp, unwrapped883) + deconstruct_result892 = _t1634 + if !isnothing(deconstruct_result892) + unwrapped893 = deconstruct_result892 + pretty_snapshot(pp, unwrapped893) else throw(ParseError("No matching rule for write")) end @@ -1139,18 +1139,18 @@ function pretty_write(pp::PrettyPrinter, msg::Proto.Write) end function pretty_define(pp::PrettyPrinter, msg::Proto.Define) - flat893 = try_flat(pp, msg, pretty_define) - if !isnothing(flat893) - write(pp, flat893) + flat903 = try_flat(pp, msg, pretty_define) + if !isnothing(flat903) + write(pp, flat903) return nothing else _dollar_dollar = msg - fields891 = _dollar_dollar.fragment - unwrapped_fields892 = fields891 + fields901 = _dollar_dollar.fragment + unwrapped_fields902 = fields901 write(pp, "(define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields892) + pretty_fragment(pp, unwrapped_fields902) dedent!(pp) write(pp, ")") end @@ -1158,29 +1158,29 @@ function pretty_define(pp::PrettyPrinter, msg::Proto.Define) end function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) - flat900 = try_flat(pp, msg, pretty_fragment) - if !isnothing(flat900) - write(pp, flat900) + flat910 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat910) + write(pp, flat910) return nothing else _dollar_dollar = msg start_pretty_fragment(pp, _dollar_dollar) - fields894 = (_dollar_dollar.id, _dollar_dollar.declarations,) - unwrapped_fields895 = fields894 + fields904 = (_dollar_dollar.id, _dollar_dollar.declarations,) + unwrapped_fields905 = fields904 write(pp, "(fragment") indent_sexp!(pp) newline(pp) - field896 = unwrapped_fields895[1] - pretty_new_fragment_id(pp, field896) - field897 = unwrapped_fields895[2] - if !isempty(field897) + field906 = unwrapped_fields905[1] + pretty_new_fragment_id(pp, field906) + field907 = unwrapped_fields905[2] + if !isempty(field907) newline(pp) - for (i1615, elem898) in enumerate(field897) - i899 = i1615 - 1 - if (i899 > 0) + for (i1635, elem908) in enumerate(field907) + i909 = i1635 - 1 + if (i909 > 0) newline(pp) end - pretty_declaration(pp, elem898) + pretty_declaration(pp, elem908) end end dedent!(pp) @@ -1190,66 +1190,66 @@ function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) end function pretty_new_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat902 = try_flat(pp, msg, pretty_new_fragment_id) - if !isnothing(flat902) - write(pp, flat902) + flat912 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat912) + write(pp, flat912) return nothing else - fields901 = msg - pretty_fragment_id(pp, fields901) + fields911 = msg + pretty_fragment_id(pp, fields911) end return nothing end function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) - flat911 = try_flat(pp, msg, pretty_declaration) - if !isnothing(flat911) - write(pp, flat911) + flat921 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat921) + write(pp, flat921) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1616 = _get_oneof_field(_dollar_dollar, :def) + _t1636 = _get_oneof_field(_dollar_dollar, :def) else - _t1616 = nothing + _t1636 = nothing end - deconstruct_result909 = _t1616 - if !isnothing(deconstruct_result909) - unwrapped910 = deconstruct_result909 - pretty_def(pp, unwrapped910) + deconstruct_result919 = _t1636 + if !isnothing(deconstruct_result919) + unwrapped920 = deconstruct_result919 + pretty_def(pp, unwrapped920) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1617 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1637 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1617 = nothing + _t1637 = nothing end - deconstruct_result907 = _t1617 - if !isnothing(deconstruct_result907) - unwrapped908 = deconstruct_result907 - pretty_algorithm(pp, unwrapped908) + deconstruct_result917 = _t1637 + if !isnothing(deconstruct_result917) + unwrapped918 = deconstruct_result917 + pretty_algorithm(pp, unwrapped918) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1618 = _get_oneof_field(_dollar_dollar, :constraint) + _t1638 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1618 = nothing + _t1638 = nothing end - deconstruct_result905 = _t1618 - if !isnothing(deconstruct_result905) - unwrapped906 = deconstruct_result905 - pretty_constraint(pp, unwrapped906) + deconstruct_result915 = _t1638 + if !isnothing(deconstruct_result915) + unwrapped916 = deconstruct_result915 + pretty_constraint(pp, unwrapped916) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1619 = _get_oneof_field(_dollar_dollar, :data) + _t1639 = _get_oneof_field(_dollar_dollar, :data) else - _t1619 = nothing + _t1639 = nothing end - deconstruct_result903 = _t1619 - if !isnothing(deconstruct_result903) - unwrapped904 = deconstruct_result903 - pretty_data(pp, unwrapped904) + deconstruct_result913 = _t1639 + if !isnothing(deconstruct_result913) + unwrapped914 = deconstruct_result913 + pretty_data(pp, unwrapped914) else throw(ParseError("No matching rule for declaration")) end @@ -1261,32 +1261,32 @@ function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) end function pretty_def(pp::PrettyPrinter, msg::Proto.Def) - flat918 = try_flat(pp, msg, pretty_def) - if !isnothing(flat918) - write(pp, flat918) + flat928 = try_flat(pp, msg, pretty_def) + if !isnothing(flat928) + write(pp, flat928) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1620 = _dollar_dollar.attrs + _t1640 = _dollar_dollar.attrs else - _t1620 = nothing + _t1640 = nothing end - fields912 = (_dollar_dollar.name, _dollar_dollar.body, _t1620,) - unwrapped_fields913 = fields912 + fields922 = (_dollar_dollar.name, _dollar_dollar.body, _t1640,) + unwrapped_fields923 = fields922 write(pp, "(def") indent_sexp!(pp) newline(pp) - field914 = unwrapped_fields913[1] - pretty_relation_id(pp, field914) + field924 = unwrapped_fields923[1] + pretty_relation_id(pp, field924) newline(pp) - field915 = unwrapped_fields913[2] - pretty_abstraction(pp, field915) - field916 = unwrapped_fields913[3] - if !isnothing(field916) + field925 = unwrapped_fields923[2] + pretty_abstraction(pp, field925) + field926 = unwrapped_fields923[3] + if !isnothing(field926) newline(pp) - opt_val917 = field916 - pretty_attrs(pp, opt_val917) + opt_val927 = field926 + pretty_attrs(pp, opt_val927) end dedent!(pp) write(pp, ")") @@ -1295,30 +1295,30 @@ function pretty_def(pp::PrettyPrinter, msg::Proto.Def) end function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) - flat923 = try_flat(pp, msg, pretty_relation_id) - if !isnothing(flat923) - write(pp, flat923) + flat933 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat933) + write(pp, flat933) return nothing else _dollar_dollar = msg if !isnothing(relation_id_to_string(pp, _dollar_dollar)) - _t1622 = deconstruct_relation_id_string(pp, _dollar_dollar) - _t1621 = _t1622 + _t1642 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1641 = _t1642 else - _t1621 = nothing + _t1641 = nothing end - deconstruct_result921 = _t1621 - if !isnothing(deconstruct_result921) - unwrapped922 = deconstruct_result921 + deconstruct_result931 = _t1641 + if !isnothing(deconstruct_result931) + unwrapped932 = deconstruct_result931 write(pp, ":") - write(pp, unwrapped922) + write(pp, unwrapped932) else _dollar_dollar = msg - _t1623 = deconstruct_relation_id_uint128(pp, _dollar_dollar) - deconstruct_result919 = _t1623 - if !isnothing(deconstruct_result919) - unwrapped920 = deconstruct_result919 - write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped920)) + _t1643 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + deconstruct_result929 = _t1643 + if !isnothing(deconstruct_result929) + unwrapped930 = deconstruct_result929 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped930)) else throw(ParseError("No matching rule for relation_id")) end @@ -1328,22 +1328,22 @@ function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) end function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) - flat928 = try_flat(pp, msg, pretty_abstraction) - if !isnothing(flat928) - write(pp, flat928) + flat938 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat938) + write(pp, flat938) return nothing else _dollar_dollar = msg - _t1624 = deconstruct_bindings(pp, _dollar_dollar) - fields924 = (_t1624, _dollar_dollar.value,) - unwrapped_fields925 = fields924 + _t1644 = deconstruct_bindings(pp, _dollar_dollar) + fields934 = (_t1644, _dollar_dollar.value,) + unwrapped_fields935 = fields934 write(pp, "(") indent!(pp) - field926 = unwrapped_fields925[1] - pretty_bindings(pp, field926) + field936 = unwrapped_fields935[1] + pretty_bindings(pp, field936) newline(pp) - field927 = unwrapped_fields925[2] - pretty_formula(pp, field927) + field937 = unwrapped_fields935[2] + pretty_formula(pp, field937) dedent!(pp) write(pp, ")") end @@ -1351,34 +1351,34 @@ function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) end function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}}) - flat936 = try_flat(pp, msg, pretty_bindings) - if !isnothing(flat936) - write(pp, flat936) + flat946 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat946) + write(pp, flat946) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar[2]) - _t1625 = _dollar_dollar[2] + _t1645 = _dollar_dollar[2] else - _t1625 = nothing + _t1645 = nothing end - fields929 = (_dollar_dollar[1], _t1625,) - unwrapped_fields930 = fields929 + fields939 = (_dollar_dollar[1], _t1645,) + unwrapped_fields940 = fields939 write(pp, "[") indent!(pp) - field931 = unwrapped_fields930[1] - for (i1626, elem932) in enumerate(field931) - i933 = i1626 - 1 - if (i933 > 0) + field941 = unwrapped_fields940[1] + for (i1646, elem942) in enumerate(field941) + i943 = i1646 - 1 + if (i943 > 0) newline(pp) end - pretty_binding(pp, elem932) + pretty_binding(pp, elem942) end - field934 = unwrapped_fields930[2] - if !isnothing(field934) + field944 = unwrapped_fields940[2] + if !isnothing(field944) newline(pp) - opt_val935 = field934 - pretty_value_bindings(pp, opt_val935) + opt_val945 = field944 + pretty_value_bindings(pp, opt_val945) end dedent!(pp) write(pp, "]") @@ -1387,182 +1387,182 @@ function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Ve end function pretty_binding(pp::PrettyPrinter, msg::Proto.Binding) - flat941 = try_flat(pp, msg, pretty_binding) - if !isnothing(flat941) - write(pp, flat941) + flat951 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat951) + write(pp, flat951) return nothing else _dollar_dollar = msg - fields937 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) - unwrapped_fields938 = fields937 - field939 = unwrapped_fields938[1] - write(pp, field939) + fields947 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) + unwrapped_fields948 = fields947 + field949 = unwrapped_fields948[1] + write(pp, field949) write(pp, "::") - field940 = unwrapped_fields938[2] - pretty_type(pp, field940) + field950 = unwrapped_fields948[2] + pretty_type(pp, field950) end return nothing end function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") - flat970 = try_flat(pp, msg, pretty_type) - if !isnothing(flat970) - write(pp, flat970) + flat980 = try_flat(pp, msg, pretty_type) + if !isnothing(flat980) + write(pp, flat980) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1627 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1647 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1627 = nothing + _t1647 = nothing end - deconstruct_result968 = _t1627 - if !isnothing(deconstruct_result968) - unwrapped969 = deconstruct_result968 - pretty_unspecified_type(pp, unwrapped969) + deconstruct_result978 = _t1647 + if !isnothing(deconstruct_result978) + unwrapped979 = deconstruct_result978 + pretty_unspecified_type(pp, unwrapped979) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1628 = _get_oneof_field(_dollar_dollar, :string_type) + _t1648 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1628 = nothing + _t1648 = nothing end - deconstruct_result966 = _t1628 - if !isnothing(deconstruct_result966) - unwrapped967 = deconstruct_result966 - pretty_string_type(pp, unwrapped967) + deconstruct_result976 = _t1648 + if !isnothing(deconstruct_result976) + unwrapped977 = deconstruct_result976 + pretty_string_type(pp, unwrapped977) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1629 = _get_oneof_field(_dollar_dollar, :int_type) + _t1649 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1629 = nothing + _t1649 = nothing end - deconstruct_result964 = _t1629 - if !isnothing(deconstruct_result964) - unwrapped965 = deconstruct_result964 - pretty_int_type(pp, unwrapped965) + deconstruct_result974 = _t1649 + if !isnothing(deconstruct_result974) + unwrapped975 = deconstruct_result974 + pretty_int_type(pp, unwrapped975) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1630 = _get_oneof_field(_dollar_dollar, :float_type) + _t1650 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1630 = nothing + _t1650 = nothing end - deconstruct_result962 = _t1630 - if !isnothing(deconstruct_result962) - unwrapped963 = deconstruct_result962 - pretty_float_type(pp, unwrapped963) + deconstruct_result972 = _t1650 + if !isnothing(deconstruct_result972) + unwrapped973 = deconstruct_result972 + pretty_float_type(pp, unwrapped973) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1631 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1651 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1631 = nothing + _t1651 = nothing end - deconstruct_result960 = _t1631 - if !isnothing(deconstruct_result960) - unwrapped961 = deconstruct_result960 - pretty_uint128_type(pp, unwrapped961) + deconstruct_result970 = _t1651 + if !isnothing(deconstruct_result970) + unwrapped971 = deconstruct_result970 + pretty_uint128_type(pp, unwrapped971) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1632 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1652 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1632 = nothing + _t1652 = nothing end - deconstruct_result958 = _t1632 - if !isnothing(deconstruct_result958) - unwrapped959 = deconstruct_result958 - pretty_int128_type(pp, unwrapped959) + deconstruct_result968 = _t1652 + if !isnothing(deconstruct_result968) + unwrapped969 = deconstruct_result968 + pretty_int128_type(pp, unwrapped969) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1633 = _get_oneof_field(_dollar_dollar, :date_type) + _t1653 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1633 = nothing + _t1653 = nothing end - deconstruct_result956 = _t1633 - if !isnothing(deconstruct_result956) - unwrapped957 = deconstruct_result956 - pretty_date_type(pp, unwrapped957) + deconstruct_result966 = _t1653 + if !isnothing(deconstruct_result966) + unwrapped967 = deconstruct_result966 + pretty_date_type(pp, unwrapped967) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1634 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1654 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1634 = nothing + _t1654 = nothing end - deconstruct_result954 = _t1634 - if !isnothing(deconstruct_result954) - unwrapped955 = deconstruct_result954 - pretty_datetime_type(pp, unwrapped955) + deconstruct_result964 = _t1654 + if !isnothing(deconstruct_result964) + unwrapped965 = deconstruct_result964 + pretty_datetime_type(pp, unwrapped965) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1635 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1655 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1635 = nothing + _t1655 = nothing end - deconstruct_result952 = _t1635 - if !isnothing(deconstruct_result952) - unwrapped953 = deconstruct_result952 - pretty_missing_type(pp, unwrapped953) + deconstruct_result962 = _t1655 + if !isnothing(deconstruct_result962) + unwrapped963 = deconstruct_result962 + pretty_missing_type(pp, unwrapped963) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1636 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1656 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1636 = nothing + _t1656 = nothing end - deconstruct_result950 = _t1636 - if !isnothing(deconstruct_result950) - unwrapped951 = deconstruct_result950 - pretty_decimal_type(pp, unwrapped951) + deconstruct_result960 = _t1656 + if !isnothing(deconstruct_result960) + unwrapped961 = deconstruct_result960 + pretty_decimal_type(pp, unwrapped961) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1637 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1657 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1637 = nothing + _t1657 = nothing end - deconstruct_result948 = _t1637 - if !isnothing(deconstruct_result948) - unwrapped949 = deconstruct_result948 - pretty_boolean_type(pp, unwrapped949) + deconstruct_result958 = _t1657 + if !isnothing(deconstruct_result958) + unwrapped959 = deconstruct_result958 + pretty_boolean_type(pp, unwrapped959) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_type")) - _t1638 = _get_oneof_field(_dollar_dollar, :int32_type) + _t1658 = _get_oneof_field(_dollar_dollar, :int32_type) else - _t1638 = nothing + _t1658 = nothing end - deconstruct_result946 = _t1638 - if !isnothing(deconstruct_result946) - unwrapped947 = deconstruct_result946 - pretty_int32_type(pp, unwrapped947) + deconstruct_result956 = _t1658 + if !isnothing(deconstruct_result956) + unwrapped957 = deconstruct_result956 + pretty_int32_type(pp, unwrapped957) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_type")) - _t1639 = _get_oneof_field(_dollar_dollar, :float32_type) + _t1659 = _get_oneof_field(_dollar_dollar, :float32_type) else - _t1639 = nothing + _t1659 = nothing end - deconstruct_result944 = _t1639 - if !isnothing(deconstruct_result944) - unwrapped945 = deconstruct_result944 - pretty_float32_type(pp, unwrapped945) + deconstruct_result954 = _t1659 + if !isnothing(deconstruct_result954) + unwrapped955 = deconstruct_result954 + pretty_float32_type(pp, unwrapped955) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_type")) - _t1640 = _get_oneof_field(_dollar_dollar, :uint32_type) + _t1660 = _get_oneof_field(_dollar_dollar, :uint32_type) else - _t1640 = nothing + _t1660 = nothing end - deconstruct_result942 = _t1640 - if !isnothing(deconstruct_result942) - unwrapped943 = deconstruct_result942 - pretty_uint32_type(pp, unwrapped943) + deconstruct_result952 = _t1660 + if !isnothing(deconstruct_result952) + unwrapped953 = deconstruct_result952 + pretty_uint32_type(pp, unwrapped953) else throw(ParseError("No matching rule for type")) end @@ -1584,76 +1584,76 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields971 = msg + fields981 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields972 = msg + fields982 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields973 = msg + fields983 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields974 = msg + fields984 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields975 = msg + fields985 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields976 = msg + fields986 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields977 = msg + fields987 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields978 = msg + fields988 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields979 = msg + fields989 = msg write(pp, "MISSING") return nothing end function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) - flat984 = try_flat(pp, msg, pretty_decimal_type) - if !isnothing(flat984) - write(pp, flat984) + flat994 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat994) + write(pp, flat994) return nothing else _dollar_dollar = msg - fields980 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) - unwrapped_fields981 = fields980 + fields990 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) + unwrapped_fields991 = fields990 write(pp, "(DECIMAL") indent_sexp!(pp) newline(pp) - field982 = unwrapped_fields981[1] - write(pp, string(field982)) + field992 = unwrapped_fields991[1] + write(pp, string(field992)) newline(pp) - field983 = unwrapped_fields981[2] - write(pp, string(field983)) + field993 = unwrapped_fields991[2] + write(pp, string(field993)) dedent!(pp) write(pp, ")") end @@ -1661,45 +1661,45 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields985 = msg + fields995 = msg write(pp, "BOOLEAN") return nothing end function pretty_int32_type(pp::PrettyPrinter, msg::Proto.Int32Type) - fields986 = msg + fields996 = msg write(pp, "INT32") return nothing end function pretty_float32_type(pp::PrettyPrinter, msg::Proto.Float32Type) - fields987 = msg + fields997 = msg write(pp, "FLOAT32") return nothing end function pretty_uint32_type(pp::PrettyPrinter, msg::Proto.UInt32Type) - fields988 = msg + fields998 = msg write(pp, "UINT32") return nothing end function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) - flat992 = try_flat(pp, msg, pretty_value_bindings) - if !isnothing(flat992) - write(pp, flat992) + flat1002 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat1002) + write(pp, flat1002) return nothing else - fields989 = msg + fields999 = msg write(pp, "|") - if !isempty(fields989) + if !isempty(fields999) write(pp, " ") - for (i1641, elem990) in enumerate(fields989) - i991 = i1641 - 1 - if (i991 > 0) + for (i1661, elem1000) in enumerate(fields999) + i1001 = i1661 - 1 + if (i1001 > 0) newline(pp) end - pretty_binding(pp, elem990) + pretty_binding(pp, elem1000) end end end @@ -1707,153 +1707,153 @@ function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) end function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) - flat1019 = try_flat(pp, msg, pretty_formula) - if !isnothing(flat1019) - write(pp, flat1019) + flat1029 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat1029) + write(pp, flat1029) return nothing else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1642 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1662 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1642 = nothing + _t1662 = nothing end - deconstruct_result1017 = _t1642 - if !isnothing(deconstruct_result1017) - unwrapped1018 = deconstruct_result1017 - pretty_true(pp, unwrapped1018) + deconstruct_result1027 = _t1662 + if !isnothing(deconstruct_result1027) + unwrapped1028 = deconstruct_result1027 + pretty_true(pp, unwrapped1028) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1643 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1663 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1643 = nothing + _t1663 = nothing end - deconstruct_result1015 = _t1643 - if !isnothing(deconstruct_result1015) - unwrapped1016 = deconstruct_result1015 - pretty_false(pp, unwrapped1016) + deconstruct_result1025 = _t1663 + if !isnothing(deconstruct_result1025) + unwrapped1026 = deconstruct_result1025 + pretty_false(pp, unwrapped1026) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1644 = _get_oneof_field(_dollar_dollar, :exists) + _t1664 = _get_oneof_field(_dollar_dollar, :exists) else - _t1644 = nothing + _t1664 = nothing end - deconstruct_result1013 = _t1644 - if !isnothing(deconstruct_result1013) - unwrapped1014 = deconstruct_result1013 - pretty_exists(pp, unwrapped1014) + deconstruct_result1023 = _t1664 + if !isnothing(deconstruct_result1023) + unwrapped1024 = deconstruct_result1023 + pretty_exists(pp, unwrapped1024) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1645 = _get_oneof_field(_dollar_dollar, :reduce) + _t1665 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1645 = nothing + _t1665 = nothing end - deconstruct_result1011 = _t1645 - if !isnothing(deconstruct_result1011) - unwrapped1012 = deconstruct_result1011 - pretty_reduce(pp, unwrapped1012) + deconstruct_result1021 = _t1665 + if !isnothing(deconstruct_result1021) + unwrapped1022 = deconstruct_result1021 + pretty_reduce(pp, unwrapped1022) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1646 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1666 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1646 = nothing + _t1666 = nothing end - deconstruct_result1009 = _t1646 - if !isnothing(deconstruct_result1009) - unwrapped1010 = deconstruct_result1009 - pretty_conjunction(pp, unwrapped1010) + deconstruct_result1019 = _t1666 + if !isnothing(deconstruct_result1019) + unwrapped1020 = deconstruct_result1019 + pretty_conjunction(pp, unwrapped1020) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1647 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1667 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1647 = nothing + _t1667 = nothing end - deconstruct_result1007 = _t1647 - if !isnothing(deconstruct_result1007) - unwrapped1008 = deconstruct_result1007 - pretty_disjunction(pp, unwrapped1008) + deconstruct_result1017 = _t1667 + if !isnothing(deconstruct_result1017) + unwrapped1018 = deconstruct_result1017 + pretty_disjunction(pp, unwrapped1018) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1648 = _get_oneof_field(_dollar_dollar, :not) + _t1668 = _get_oneof_field(_dollar_dollar, :not) else - _t1648 = nothing + _t1668 = nothing end - deconstruct_result1005 = _t1648 - if !isnothing(deconstruct_result1005) - unwrapped1006 = deconstruct_result1005 - pretty_not(pp, unwrapped1006) + deconstruct_result1015 = _t1668 + if !isnothing(deconstruct_result1015) + unwrapped1016 = deconstruct_result1015 + pretty_not(pp, unwrapped1016) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1649 = _get_oneof_field(_dollar_dollar, :ffi) + _t1669 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1649 = nothing + _t1669 = nothing end - deconstruct_result1003 = _t1649 - if !isnothing(deconstruct_result1003) - unwrapped1004 = deconstruct_result1003 - pretty_ffi(pp, unwrapped1004) + deconstruct_result1013 = _t1669 + if !isnothing(deconstruct_result1013) + unwrapped1014 = deconstruct_result1013 + pretty_ffi(pp, unwrapped1014) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1650 = _get_oneof_field(_dollar_dollar, :atom) + _t1670 = _get_oneof_field(_dollar_dollar, :atom) else - _t1650 = nothing + _t1670 = nothing end - deconstruct_result1001 = _t1650 - if !isnothing(deconstruct_result1001) - unwrapped1002 = deconstruct_result1001 - pretty_atom(pp, unwrapped1002) + deconstruct_result1011 = _t1670 + if !isnothing(deconstruct_result1011) + unwrapped1012 = deconstruct_result1011 + pretty_atom(pp, unwrapped1012) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1651 = _get_oneof_field(_dollar_dollar, :pragma) + _t1671 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1651 = nothing + _t1671 = nothing end - deconstruct_result999 = _t1651 - if !isnothing(deconstruct_result999) - unwrapped1000 = deconstruct_result999 - pretty_pragma(pp, unwrapped1000) + deconstruct_result1009 = _t1671 + if !isnothing(deconstruct_result1009) + unwrapped1010 = deconstruct_result1009 + pretty_pragma(pp, unwrapped1010) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1652 = _get_oneof_field(_dollar_dollar, :primitive) + _t1672 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1652 = nothing + _t1672 = nothing end - deconstruct_result997 = _t1652 - if !isnothing(deconstruct_result997) - unwrapped998 = deconstruct_result997 - pretty_primitive(pp, unwrapped998) + deconstruct_result1007 = _t1672 + if !isnothing(deconstruct_result1007) + unwrapped1008 = deconstruct_result1007 + pretty_primitive(pp, unwrapped1008) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1653 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1673 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1653 = nothing + _t1673 = nothing end - deconstruct_result995 = _t1653 - if !isnothing(deconstruct_result995) - unwrapped996 = deconstruct_result995 - pretty_rel_atom(pp, unwrapped996) + deconstruct_result1005 = _t1673 + if !isnothing(deconstruct_result1005) + unwrapped1006 = deconstruct_result1005 + pretty_rel_atom(pp, unwrapped1006) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1654 = _get_oneof_field(_dollar_dollar, :cast) + _t1674 = _get_oneof_field(_dollar_dollar, :cast) else - _t1654 = nothing + _t1674 = nothing end - deconstruct_result993 = _t1654 - if !isnothing(deconstruct_result993) - unwrapped994 = deconstruct_result993 - pretty_cast(pp, unwrapped994) + deconstruct_result1003 = _t1674 + if !isnothing(deconstruct_result1003) + unwrapped1004 = deconstruct_result1003 + pretty_cast(pp, unwrapped1004) else throw(ParseError("No matching rule for formula")) end @@ -1874,35 +1874,35 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields1020 = msg + fields1030 = msg write(pp, "(true)") return nothing end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields1021 = msg + fields1031 = msg write(pp, "(false)") return nothing end function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) - flat1026 = try_flat(pp, msg, pretty_exists) - if !isnothing(flat1026) - write(pp, flat1026) + flat1036 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat1036) + write(pp, flat1036) return nothing else _dollar_dollar = msg - _t1655 = deconstruct_bindings(pp, _dollar_dollar.body) - fields1022 = (_t1655, _dollar_dollar.body.value,) - unwrapped_fields1023 = fields1022 + _t1675 = deconstruct_bindings(pp, _dollar_dollar.body) + fields1032 = (_t1675, _dollar_dollar.body.value,) + unwrapped_fields1033 = fields1032 write(pp, "(exists") indent_sexp!(pp) newline(pp) - field1024 = unwrapped_fields1023[1] - pretty_bindings(pp, field1024) + field1034 = unwrapped_fields1033[1] + pretty_bindings(pp, field1034) newline(pp) - field1025 = unwrapped_fields1023[2] - pretty_formula(pp, field1025) + field1035 = unwrapped_fields1033[2] + pretty_formula(pp, field1035) dedent!(pp) write(pp, ")") end @@ -1910,25 +1910,25 @@ function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) end function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) - flat1032 = try_flat(pp, msg, pretty_reduce) - if !isnothing(flat1032) - write(pp, flat1032) + flat1042 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat1042) + write(pp, flat1042) return nothing else _dollar_dollar = msg - fields1027 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - unwrapped_fields1028 = fields1027 + fields1037 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + unwrapped_fields1038 = fields1037 write(pp, "(reduce") indent_sexp!(pp) newline(pp) - field1029 = unwrapped_fields1028[1] - pretty_abstraction(pp, field1029) + field1039 = unwrapped_fields1038[1] + pretty_abstraction(pp, field1039) newline(pp) - field1030 = unwrapped_fields1028[2] - pretty_abstraction(pp, field1030) + field1040 = unwrapped_fields1038[2] + pretty_abstraction(pp, field1040) newline(pp) - field1031 = unwrapped_fields1028[3] - pretty_terms(pp, field1031) + field1041 = unwrapped_fields1038[3] + pretty_terms(pp, field1041) dedent!(pp) write(pp, ")") end @@ -1936,22 +1936,22 @@ function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) end function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) - flat1036 = try_flat(pp, msg, pretty_terms) - if !isnothing(flat1036) - write(pp, flat1036) + flat1046 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat1046) + write(pp, flat1046) return nothing else - fields1033 = msg + fields1043 = msg write(pp, "(terms") indent_sexp!(pp) - if !isempty(fields1033) + if !isempty(fields1043) newline(pp) - for (i1656, elem1034) in enumerate(fields1033) - i1035 = i1656 - 1 - if (i1035 > 0) + for (i1676, elem1044) in enumerate(fields1043) + i1045 = i1676 - 1 + if (i1045 > 0) newline(pp) end - pretty_term(pp, elem1034) + pretty_term(pp, elem1044) end end dedent!(pp) @@ -1961,32 +1961,32 @@ function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) end function pretty_term(pp::PrettyPrinter, msg::Proto.Term) - flat1041 = try_flat(pp, msg, pretty_term) - if !isnothing(flat1041) - write(pp, flat1041) + flat1051 = try_flat(pp, msg, pretty_term) + if !isnothing(flat1051) + write(pp, flat1051) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1657 = _get_oneof_field(_dollar_dollar, :var) + _t1677 = _get_oneof_field(_dollar_dollar, :var) else - _t1657 = nothing + _t1677 = nothing end - deconstruct_result1039 = _t1657 - if !isnothing(deconstruct_result1039) - unwrapped1040 = deconstruct_result1039 - pretty_var(pp, unwrapped1040) + deconstruct_result1049 = _t1677 + if !isnothing(deconstruct_result1049) + unwrapped1050 = deconstruct_result1049 + pretty_var(pp, unwrapped1050) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1658 = _get_oneof_field(_dollar_dollar, :constant) + _t1678 = _get_oneof_field(_dollar_dollar, :constant) else - _t1658 = nothing + _t1678 = nothing end - deconstruct_result1037 = _t1658 - if !isnothing(deconstruct_result1037) - unwrapped1038 = deconstruct_result1037 - pretty_value(pp, unwrapped1038) + deconstruct_result1047 = _t1678 + if !isnothing(deconstruct_result1047) + unwrapped1048 = deconstruct_result1047 + pretty_value(pp, unwrapped1048) else throw(ParseError("No matching rule for term")) end @@ -1996,158 +1996,158 @@ function pretty_term(pp::PrettyPrinter, msg::Proto.Term) end function pretty_var(pp::PrettyPrinter, msg::Proto.Var) - flat1044 = try_flat(pp, msg, pretty_var) - if !isnothing(flat1044) - write(pp, flat1044) + flat1054 = try_flat(pp, msg, pretty_var) + if !isnothing(flat1054) + write(pp, flat1054) return nothing else _dollar_dollar = msg - fields1042 = _dollar_dollar.name - unwrapped_fields1043 = fields1042 - write(pp, unwrapped_fields1043) + fields1052 = _dollar_dollar.name + unwrapped_fields1053 = fields1052 + write(pp, unwrapped_fields1053) end return nothing end function pretty_value(pp::PrettyPrinter, msg::Proto.Value) - flat1070 = try_flat(pp, msg, pretty_value) - if !isnothing(flat1070) - write(pp, flat1070) + flat1080 = try_flat(pp, msg, pretty_value) + if !isnothing(flat1080) + write(pp, flat1080) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1659 = _get_oneof_field(_dollar_dollar, :date_value) + _t1679 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1659 = nothing + _t1679 = nothing end - deconstruct_result1068 = _t1659 - if !isnothing(deconstruct_result1068) - unwrapped1069 = deconstruct_result1068 - pretty_date(pp, unwrapped1069) + deconstruct_result1078 = _t1679 + if !isnothing(deconstruct_result1078) + unwrapped1079 = deconstruct_result1078 + pretty_date(pp, unwrapped1079) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1660 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1680 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1660 = nothing + _t1680 = nothing end - deconstruct_result1066 = _t1660 - if !isnothing(deconstruct_result1066) - unwrapped1067 = deconstruct_result1066 - pretty_datetime(pp, unwrapped1067) + deconstruct_result1076 = _t1680 + if !isnothing(deconstruct_result1076) + unwrapped1077 = deconstruct_result1076 + pretty_datetime(pp, unwrapped1077) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1661 = _get_oneof_field(_dollar_dollar, :string_value) + _t1681 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1661 = nothing + _t1681 = nothing end - deconstruct_result1064 = _t1661 - if !isnothing(deconstruct_result1064) - unwrapped1065 = deconstruct_result1064 - write(pp, format_string(pp, unwrapped1065)) + deconstruct_result1074 = _t1681 + if !isnothing(deconstruct_result1074) + unwrapped1075 = deconstruct_result1074 + write(pp, format_string(pp, unwrapped1075)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1662 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1682 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1662 = nothing + _t1682 = nothing end - deconstruct_result1062 = _t1662 - if !isnothing(deconstruct_result1062) - unwrapped1063 = deconstruct_result1062 - write(pp, format_int32(pp, unwrapped1063)) + deconstruct_result1072 = _t1682 + if !isnothing(deconstruct_result1072) + unwrapped1073 = deconstruct_result1072 + write(pp, format_int32(pp, unwrapped1073)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1663 = _get_oneof_field(_dollar_dollar, :int_value) + _t1683 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1663 = nothing + _t1683 = nothing end - deconstruct_result1060 = _t1663 - if !isnothing(deconstruct_result1060) - unwrapped1061 = deconstruct_result1060 - write(pp, format_int(pp, unwrapped1061)) + deconstruct_result1070 = _t1683 + if !isnothing(deconstruct_result1070) + unwrapped1071 = deconstruct_result1070 + write(pp, format_int(pp, unwrapped1071)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1664 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1684 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1664 = nothing + _t1684 = nothing end - deconstruct_result1058 = _t1664 - if !isnothing(deconstruct_result1058) - unwrapped1059 = deconstruct_result1058 - write(pp, format_float32(pp, unwrapped1059)) + deconstruct_result1068 = _t1684 + if !isnothing(deconstruct_result1068) + unwrapped1069 = deconstruct_result1068 + write(pp, format_float32(pp, unwrapped1069)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1665 = _get_oneof_field(_dollar_dollar, :float_value) + _t1685 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1665 = nothing + _t1685 = nothing end - deconstruct_result1056 = _t1665 - if !isnothing(deconstruct_result1056) - unwrapped1057 = deconstruct_result1056 - write(pp, format_float(pp, unwrapped1057)) + deconstruct_result1066 = _t1685 + if !isnothing(deconstruct_result1066) + unwrapped1067 = deconstruct_result1066 + write(pp, format_float(pp, unwrapped1067)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1666 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1686 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1666 = nothing + _t1686 = nothing end - deconstruct_result1054 = _t1666 - if !isnothing(deconstruct_result1054) - unwrapped1055 = deconstruct_result1054 - write(pp, format_uint32(pp, unwrapped1055)) + deconstruct_result1064 = _t1686 + if !isnothing(deconstruct_result1064) + unwrapped1065 = deconstruct_result1064 + write(pp, format_uint32(pp, unwrapped1065)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1667 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1687 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1667 = nothing + _t1687 = nothing end - deconstruct_result1052 = _t1667 - if !isnothing(deconstruct_result1052) - unwrapped1053 = deconstruct_result1052 - write(pp, format_uint128(pp, unwrapped1053)) + deconstruct_result1062 = _t1687 + if !isnothing(deconstruct_result1062) + unwrapped1063 = deconstruct_result1062 + write(pp, format_uint128(pp, unwrapped1063)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1668 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1688 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1668 = nothing + _t1688 = nothing end - deconstruct_result1050 = _t1668 - if !isnothing(deconstruct_result1050) - unwrapped1051 = deconstruct_result1050 - write(pp, format_int128(pp, unwrapped1051)) + deconstruct_result1060 = _t1688 + if !isnothing(deconstruct_result1060) + unwrapped1061 = deconstruct_result1060 + write(pp, format_int128(pp, unwrapped1061)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1669 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1689 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1669 = nothing + _t1689 = nothing end - deconstruct_result1048 = _t1669 - if !isnothing(deconstruct_result1048) - unwrapped1049 = deconstruct_result1048 - write(pp, format_decimal(pp, unwrapped1049)) + deconstruct_result1058 = _t1689 + if !isnothing(deconstruct_result1058) + unwrapped1059 = deconstruct_result1058 + write(pp, format_decimal(pp, unwrapped1059)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1670 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1690 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1670 = nothing + _t1690 = nothing end - deconstruct_result1046 = _t1670 - if !isnothing(deconstruct_result1046) - unwrapped1047 = deconstruct_result1046 - pretty_boolean_value(pp, unwrapped1047) + deconstruct_result1056 = _t1690 + if !isnothing(deconstruct_result1056) + unwrapped1057 = deconstruct_result1056 + pretty_boolean_value(pp, unwrapped1057) else - fields1045 = msg + fields1055 = msg write(pp, "missing") end end @@ -2166,25 +2166,25 @@ function pretty_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat1076 = try_flat(pp, msg, pretty_date) - if !isnothing(flat1076) - write(pp, flat1076) + flat1086 = try_flat(pp, msg, pretty_date) + if !isnothing(flat1086) + write(pp, flat1086) return nothing else _dollar_dollar = msg - fields1071 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields1072 = fields1071 + fields1081 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields1082 = fields1081 write(pp, "(date") indent_sexp!(pp) newline(pp) - field1073 = unwrapped_fields1072[1] - write(pp, format_int(pp, field1073)) + field1083 = unwrapped_fields1082[1] + write(pp, format_int(pp, field1083)) newline(pp) - field1074 = unwrapped_fields1072[2] - write(pp, format_int(pp, field1074)) + field1084 = unwrapped_fields1082[2] + write(pp, format_int(pp, field1084)) newline(pp) - field1075 = unwrapped_fields1072[3] - write(pp, format_int(pp, field1075)) + field1085 = unwrapped_fields1082[3] + write(pp, format_int(pp, field1085)) dedent!(pp) write(pp, ")") end @@ -2192,39 +2192,39 @@ function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat1087 = try_flat(pp, msg, pretty_datetime) - if !isnothing(flat1087) - write(pp, flat1087) + flat1097 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat1097) + write(pp, flat1097) return nothing else _dollar_dollar = msg - fields1077 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) - unwrapped_fields1078 = fields1077 + fields1087 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) + unwrapped_fields1088 = fields1087 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field1079 = unwrapped_fields1078[1] - write(pp, format_int(pp, field1079)) + field1089 = unwrapped_fields1088[1] + write(pp, format_int(pp, field1089)) newline(pp) - field1080 = unwrapped_fields1078[2] - write(pp, format_int(pp, field1080)) + field1090 = unwrapped_fields1088[2] + write(pp, format_int(pp, field1090)) newline(pp) - field1081 = unwrapped_fields1078[3] - write(pp, format_int(pp, field1081)) + field1091 = unwrapped_fields1088[3] + write(pp, format_int(pp, field1091)) newline(pp) - field1082 = unwrapped_fields1078[4] - write(pp, format_int(pp, field1082)) + field1092 = unwrapped_fields1088[4] + write(pp, format_int(pp, field1092)) newline(pp) - field1083 = unwrapped_fields1078[5] - write(pp, format_int(pp, field1083)) + field1093 = unwrapped_fields1088[5] + write(pp, format_int(pp, field1093)) newline(pp) - field1084 = unwrapped_fields1078[6] - write(pp, format_int(pp, field1084)) - field1085 = unwrapped_fields1078[7] - if !isnothing(field1085) + field1094 = unwrapped_fields1088[6] + write(pp, format_int(pp, field1094)) + field1095 = unwrapped_fields1088[7] + if !isnothing(field1095) newline(pp) - opt_val1086 = field1085 - write(pp, format_int(pp, opt_val1086)) + opt_val1096 = field1095 + write(pp, format_int(pp, opt_val1096)) end dedent!(pp) write(pp, ")") @@ -2233,24 +2233,24 @@ function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) end function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) - flat1092 = try_flat(pp, msg, pretty_conjunction) - if !isnothing(flat1092) - write(pp, flat1092) + flat1102 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat1102) + write(pp, flat1102) return nothing else _dollar_dollar = msg - fields1088 = _dollar_dollar.args - unwrapped_fields1089 = fields1088 + fields1098 = _dollar_dollar.args + unwrapped_fields1099 = fields1098 write(pp, "(and") indent_sexp!(pp) - if !isempty(unwrapped_fields1089) + if !isempty(unwrapped_fields1099) newline(pp) - for (i1671, elem1090) in enumerate(unwrapped_fields1089) - i1091 = i1671 - 1 - if (i1091 > 0) + for (i1691, elem1100) in enumerate(unwrapped_fields1099) + i1101 = i1691 - 1 + if (i1101 > 0) newline(pp) end - pretty_formula(pp, elem1090) + pretty_formula(pp, elem1100) end end dedent!(pp) @@ -2260,24 +2260,24 @@ function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) - flat1097 = try_flat(pp, msg, pretty_disjunction) - if !isnothing(flat1097) - write(pp, flat1097) + flat1107 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat1107) + write(pp, flat1107) return nothing else _dollar_dollar = msg - fields1093 = _dollar_dollar.args - unwrapped_fields1094 = fields1093 + fields1103 = _dollar_dollar.args + unwrapped_fields1104 = fields1103 write(pp, "(or") indent_sexp!(pp) - if !isempty(unwrapped_fields1094) + if !isempty(unwrapped_fields1104) newline(pp) - for (i1672, elem1095) in enumerate(unwrapped_fields1094) - i1096 = i1672 - 1 - if (i1096 > 0) + for (i1692, elem1105) in enumerate(unwrapped_fields1104) + i1106 = i1692 - 1 + if (i1106 > 0) newline(pp) end - pretty_formula(pp, elem1095) + pretty_formula(pp, elem1105) end end dedent!(pp) @@ -2287,18 +2287,18 @@ function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_not(pp::PrettyPrinter, msg::Proto.Not) - flat1100 = try_flat(pp, msg, pretty_not) - if !isnothing(flat1100) - write(pp, flat1100) + flat1110 = try_flat(pp, msg, pretty_not) + if !isnothing(flat1110) + write(pp, flat1110) return nothing else _dollar_dollar = msg - fields1098 = _dollar_dollar.arg - unwrapped_fields1099 = fields1098 + fields1108 = _dollar_dollar.arg + unwrapped_fields1109 = fields1108 write(pp, "(not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields1099) + pretty_formula(pp, unwrapped_fields1109) dedent!(pp) write(pp, ")") end @@ -2306,25 +2306,25 @@ function pretty_not(pp::PrettyPrinter, msg::Proto.Not) end function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) - flat1106 = try_flat(pp, msg, pretty_ffi) - if !isnothing(flat1106) - write(pp, flat1106) + flat1116 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat1116) + write(pp, flat1116) return nothing else _dollar_dollar = msg - fields1101 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - unwrapped_fields1102 = fields1101 + fields1111 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + unwrapped_fields1112 = fields1111 write(pp, "(ffi") indent_sexp!(pp) newline(pp) - field1103 = unwrapped_fields1102[1] - pretty_name(pp, field1103) + field1113 = unwrapped_fields1112[1] + pretty_name(pp, field1113) newline(pp) - field1104 = unwrapped_fields1102[2] - pretty_ffi_args(pp, field1104) + field1114 = unwrapped_fields1112[2] + pretty_ffi_args(pp, field1114) newline(pp) - field1105 = unwrapped_fields1102[3] - pretty_terms(pp, field1105) + field1115 = unwrapped_fields1112[3] + pretty_terms(pp, field1115) dedent!(pp) write(pp, ")") end @@ -2332,35 +2332,35 @@ function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) end function pretty_name(pp::PrettyPrinter, msg::String) - flat1108 = try_flat(pp, msg, pretty_name) - if !isnothing(flat1108) - write(pp, flat1108) + flat1118 = try_flat(pp, msg, pretty_name) + if !isnothing(flat1118) + write(pp, flat1118) return nothing else - fields1107 = msg + fields1117 = msg write(pp, ":") - write(pp, fields1107) + write(pp, fields1117) end return nothing end function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) - flat1112 = try_flat(pp, msg, pretty_ffi_args) - if !isnothing(flat1112) - write(pp, flat1112) + flat1122 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat1122) + write(pp, flat1122) return nothing else - fields1109 = msg + fields1119 = msg write(pp, "(args") indent_sexp!(pp) - if !isempty(fields1109) + if !isempty(fields1119) newline(pp) - for (i1673, elem1110) in enumerate(fields1109) - i1111 = i1673 - 1 - if (i1111 > 0) + for (i1693, elem1120) in enumerate(fields1119) + i1121 = i1693 - 1 + if (i1121 > 0) newline(pp) end - pretty_abstraction(pp, elem1110) + pretty_abstraction(pp, elem1120) end end dedent!(pp) @@ -2370,28 +2370,28 @@ function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) end function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) - flat1119 = try_flat(pp, msg, pretty_atom) - if !isnothing(flat1119) - write(pp, flat1119) + flat1129 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat1129) + write(pp, flat1129) return nothing else _dollar_dollar = msg - fields1113 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1114 = fields1113 + fields1123 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1124 = fields1123 write(pp, "(atom") indent_sexp!(pp) newline(pp) - field1115 = unwrapped_fields1114[1] - pretty_relation_id(pp, field1115) - field1116 = unwrapped_fields1114[2] - if !isempty(field1116) + field1125 = unwrapped_fields1124[1] + pretty_relation_id(pp, field1125) + field1126 = unwrapped_fields1124[2] + if !isempty(field1126) newline(pp) - for (i1674, elem1117) in enumerate(field1116) - i1118 = i1674 - 1 - if (i1118 > 0) + for (i1694, elem1127) in enumerate(field1126) + i1128 = i1694 - 1 + if (i1128 > 0) newline(pp) end - pretty_term(pp, elem1117) + pretty_term(pp, elem1127) end end dedent!(pp) @@ -2401,28 +2401,28 @@ function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) end function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) - flat1126 = try_flat(pp, msg, pretty_pragma) - if !isnothing(flat1126) - write(pp, flat1126) + flat1136 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat1136) + write(pp, flat1136) return nothing else _dollar_dollar = msg - fields1120 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1121 = fields1120 + fields1130 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1131 = fields1130 write(pp, "(pragma") indent_sexp!(pp) newline(pp) - field1122 = unwrapped_fields1121[1] - pretty_name(pp, field1122) - field1123 = unwrapped_fields1121[2] - if !isempty(field1123) + field1132 = unwrapped_fields1131[1] + pretty_name(pp, field1132) + field1133 = unwrapped_fields1131[2] + if !isempty(field1133) newline(pp) - for (i1675, elem1124) in enumerate(field1123) - i1125 = i1675 - 1 - if (i1125 > 0) + for (i1695, elem1134) in enumerate(field1133) + i1135 = i1695 - 1 + if (i1135 > 0) newline(pp) end - pretty_term(pp, elem1124) + pretty_term(pp, elem1134) end end dedent!(pp) @@ -2432,118 +2432,118 @@ function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) end function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) - flat1142 = try_flat(pp, msg, pretty_primitive) - if !isnothing(flat1142) - write(pp, flat1142) + flat1152 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat1152) + write(pp, flat1152) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1676 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1696 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1676 = nothing + _t1696 = nothing end - guard_result1141 = _t1676 - if !isnothing(guard_result1141) + guard_result1151 = _t1696 + if !isnothing(guard_result1151) pretty_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1677 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1697 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1677 = nothing + _t1697 = nothing end - guard_result1140 = _t1677 - if !isnothing(guard_result1140) + guard_result1150 = _t1697 + if !isnothing(guard_result1150) pretty_lt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1678 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1698 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1678 = nothing + _t1698 = nothing end - guard_result1139 = _t1678 - if !isnothing(guard_result1139) + guard_result1149 = _t1698 + if !isnothing(guard_result1149) pretty_lt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1679 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1699 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1679 = nothing + _t1699 = nothing end - guard_result1138 = _t1679 - if !isnothing(guard_result1138) + guard_result1148 = _t1699 + if !isnothing(guard_result1148) pretty_gt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1680 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1700 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1680 = nothing + _t1700 = nothing end - guard_result1137 = _t1680 - if !isnothing(guard_result1137) + guard_result1147 = _t1700 + if !isnothing(guard_result1147) pretty_gt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1681 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1701 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1681 = nothing + _t1701 = nothing end - guard_result1136 = _t1681 - if !isnothing(guard_result1136) + guard_result1146 = _t1701 + if !isnothing(guard_result1146) pretty_add(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1682 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1702 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1682 = nothing + _t1702 = nothing end - guard_result1135 = _t1682 - if !isnothing(guard_result1135) + guard_result1145 = _t1702 + if !isnothing(guard_result1145) pretty_minus(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1683 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1703 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1683 = nothing + _t1703 = nothing end - guard_result1134 = _t1683 - if !isnothing(guard_result1134) + guard_result1144 = _t1703 + if !isnothing(guard_result1144) pretty_multiply(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1684 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1704 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1684 = nothing + _t1704 = nothing end - guard_result1133 = _t1684 - if !isnothing(guard_result1133) + guard_result1143 = _t1704 + if !isnothing(guard_result1143) pretty_divide(pp, msg) else _dollar_dollar = msg - fields1127 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1128 = fields1127 + fields1137 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1138 = fields1137 write(pp, "(primitive") indent_sexp!(pp) newline(pp) - field1129 = unwrapped_fields1128[1] - pretty_name(pp, field1129) - field1130 = unwrapped_fields1128[2] - if !isempty(field1130) + field1139 = unwrapped_fields1138[1] + pretty_name(pp, field1139) + field1140 = unwrapped_fields1138[2] + if !isempty(field1140) newline(pp) - for (i1685, elem1131) in enumerate(field1130) - i1132 = i1685 - 1 - if (i1132 > 0) + for (i1705, elem1141) in enumerate(field1140) + i1142 = i1705 - 1 + if (i1142 > 0) newline(pp) end - pretty_rel_term(pp, elem1131) + pretty_rel_term(pp, elem1141) end end dedent!(pp) @@ -2562,27 +2562,27 @@ function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1147 = try_flat(pp, msg, pretty_eq) - if !isnothing(flat1147) - write(pp, flat1147) + flat1157 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat1157) + write(pp, flat1157) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1686 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1706 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1686 = nothing + _t1706 = nothing end - fields1143 = _t1686 - unwrapped_fields1144 = fields1143 + fields1153 = _t1706 + unwrapped_fields1154 = fields1153 write(pp, "(=") indent_sexp!(pp) newline(pp) - field1145 = unwrapped_fields1144[1] - pretty_term(pp, field1145) + field1155 = unwrapped_fields1154[1] + pretty_term(pp, field1155) newline(pp) - field1146 = unwrapped_fields1144[2] - pretty_term(pp, field1146) + field1156 = unwrapped_fields1154[2] + pretty_term(pp, field1156) dedent!(pp) write(pp, ")") end @@ -2590,27 +2590,27 @@ function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) - flat1152 = try_flat(pp, msg, pretty_lt) - if !isnothing(flat1152) - write(pp, flat1152) + flat1162 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat1162) + write(pp, flat1162) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1687 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1707 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1687 = nothing + _t1707 = nothing end - fields1148 = _t1687 - unwrapped_fields1149 = fields1148 + fields1158 = _t1707 + unwrapped_fields1159 = fields1158 write(pp, "(<") indent_sexp!(pp) newline(pp) - field1150 = unwrapped_fields1149[1] - pretty_term(pp, field1150) + field1160 = unwrapped_fields1159[1] + pretty_term(pp, field1160) newline(pp) - field1151 = unwrapped_fields1149[2] - pretty_term(pp, field1151) + field1161 = unwrapped_fields1159[2] + pretty_term(pp, field1161) dedent!(pp) write(pp, ")") end @@ -2618,27 +2618,27 @@ function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1157 = try_flat(pp, msg, pretty_lt_eq) - if !isnothing(flat1157) - write(pp, flat1157) + flat1167 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat1167) + write(pp, flat1167) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1688 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1708 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1688 = nothing + _t1708 = nothing end - fields1153 = _t1688 - unwrapped_fields1154 = fields1153 + fields1163 = _t1708 + unwrapped_fields1164 = fields1163 write(pp, "(<=") indent_sexp!(pp) newline(pp) - field1155 = unwrapped_fields1154[1] - pretty_term(pp, field1155) + field1165 = unwrapped_fields1164[1] + pretty_term(pp, field1165) newline(pp) - field1156 = unwrapped_fields1154[2] - pretty_term(pp, field1156) + field1166 = unwrapped_fields1164[2] + pretty_term(pp, field1166) dedent!(pp) write(pp, ")") end @@ -2646,27 +2646,27 @@ function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) - flat1162 = try_flat(pp, msg, pretty_gt) - if !isnothing(flat1162) - write(pp, flat1162) + flat1172 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat1172) + write(pp, flat1172) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1689 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1709 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1689 = nothing + _t1709 = nothing end - fields1158 = _t1689 - unwrapped_fields1159 = fields1158 + fields1168 = _t1709 + unwrapped_fields1169 = fields1168 write(pp, "(>") indent_sexp!(pp) newline(pp) - field1160 = unwrapped_fields1159[1] - pretty_term(pp, field1160) + field1170 = unwrapped_fields1169[1] + pretty_term(pp, field1170) newline(pp) - field1161 = unwrapped_fields1159[2] - pretty_term(pp, field1161) + field1171 = unwrapped_fields1169[2] + pretty_term(pp, field1171) dedent!(pp) write(pp, ")") end @@ -2674,27 +2674,27 @@ function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1167 = try_flat(pp, msg, pretty_gt_eq) - if !isnothing(flat1167) - write(pp, flat1167) + flat1177 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat1177) + write(pp, flat1177) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1690 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1710 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1690 = nothing + _t1710 = nothing end - fields1163 = _t1690 - unwrapped_fields1164 = fields1163 + fields1173 = _t1710 + unwrapped_fields1174 = fields1173 write(pp, "(>=") indent_sexp!(pp) newline(pp) - field1165 = unwrapped_fields1164[1] - pretty_term(pp, field1165) + field1175 = unwrapped_fields1174[1] + pretty_term(pp, field1175) newline(pp) - field1166 = unwrapped_fields1164[2] - pretty_term(pp, field1166) + field1176 = unwrapped_fields1174[2] + pretty_term(pp, field1176) dedent!(pp) write(pp, ")") end @@ -2702,30 +2702,30 @@ function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) - flat1173 = try_flat(pp, msg, pretty_add) - if !isnothing(flat1173) - write(pp, flat1173) + flat1183 = try_flat(pp, msg, pretty_add) + if !isnothing(flat1183) + write(pp, flat1183) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1691 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1711 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1691 = nothing + _t1711 = nothing end - fields1168 = _t1691 - unwrapped_fields1169 = fields1168 + fields1178 = _t1711 + unwrapped_fields1179 = fields1178 write(pp, "(+") indent_sexp!(pp) newline(pp) - field1170 = unwrapped_fields1169[1] - pretty_term(pp, field1170) + field1180 = unwrapped_fields1179[1] + pretty_term(pp, field1180) newline(pp) - field1171 = unwrapped_fields1169[2] - pretty_term(pp, field1171) + field1181 = unwrapped_fields1179[2] + pretty_term(pp, field1181) newline(pp) - field1172 = unwrapped_fields1169[3] - pretty_term(pp, field1172) + field1182 = unwrapped_fields1179[3] + pretty_term(pp, field1182) dedent!(pp) write(pp, ")") end @@ -2733,30 +2733,30 @@ function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) - flat1179 = try_flat(pp, msg, pretty_minus) - if !isnothing(flat1179) - write(pp, flat1179) + flat1189 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat1189) + write(pp, flat1189) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1692 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1712 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1692 = nothing + _t1712 = nothing end - fields1174 = _t1692 - unwrapped_fields1175 = fields1174 + fields1184 = _t1712 + unwrapped_fields1185 = fields1184 write(pp, "(-") indent_sexp!(pp) newline(pp) - field1176 = unwrapped_fields1175[1] - pretty_term(pp, field1176) + field1186 = unwrapped_fields1185[1] + pretty_term(pp, field1186) newline(pp) - field1177 = unwrapped_fields1175[2] - pretty_term(pp, field1177) + field1187 = unwrapped_fields1185[2] + pretty_term(pp, field1187) newline(pp) - field1178 = unwrapped_fields1175[3] - pretty_term(pp, field1178) + field1188 = unwrapped_fields1185[3] + pretty_term(pp, field1188) dedent!(pp) write(pp, ")") end @@ -2764,30 +2764,30 @@ function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) - flat1185 = try_flat(pp, msg, pretty_multiply) - if !isnothing(flat1185) - write(pp, flat1185) + flat1195 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat1195) + write(pp, flat1195) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1693 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1713 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1693 = nothing + _t1713 = nothing end - fields1180 = _t1693 - unwrapped_fields1181 = fields1180 + fields1190 = _t1713 + unwrapped_fields1191 = fields1190 write(pp, "(*") indent_sexp!(pp) newline(pp) - field1182 = unwrapped_fields1181[1] - pretty_term(pp, field1182) + field1192 = unwrapped_fields1191[1] + pretty_term(pp, field1192) newline(pp) - field1183 = unwrapped_fields1181[2] - pretty_term(pp, field1183) + field1193 = unwrapped_fields1191[2] + pretty_term(pp, field1193) newline(pp) - field1184 = unwrapped_fields1181[3] - pretty_term(pp, field1184) + field1194 = unwrapped_fields1191[3] + pretty_term(pp, field1194) dedent!(pp) write(pp, ")") end @@ -2795,30 +2795,30 @@ function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) - flat1191 = try_flat(pp, msg, pretty_divide) - if !isnothing(flat1191) - write(pp, flat1191) + flat1201 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat1201) + write(pp, flat1201) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1694 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1714 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1694 = nothing + _t1714 = nothing end - fields1186 = _t1694 - unwrapped_fields1187 = fields1186 + fields1196 = _t1714 + unwrapped_fields1197 = fields1196 write(pp, "(/") indent_sexp!(pp) newline(pp) - field1188 = unwrapped_fields1187[1] - pretty_term(pp, field1188) + field1198 = unwrapped_fields1197[1] + pretty_term(pp, field1198) newline(pp) - field1189 = unwrapped_fields1187[2] - pretty_term(pp, field1189) + field1199 = unwrapped_fields1197[2] + pretty_term(pp, field1199) newline(pp) - field1190 = unwrapped_fields1187[3] - pretty_term(pp, field1190) + field1200 = unwrapped_fields1197[3] + pretty_term(pp, field1200) dedent!(pp) write(pp, ")") end @@ -2826,32 +2826,32 @@ function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) - flat1196 = try_flat(pp, msg, pretty_rel_term) - if !isnothing(flat1196) - write(pp, flat1196) + flat1206 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat1206) + write(pp, flat1206) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1695 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1715 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1695 = nothing + _t1715 = nothing end - deconstruct_result1194 = _t1695 - if !isnothing(deconstruct_result1194) - unwrapped1195 = deconstruct_result1194 - pretty_specialized_value(pp, unwrapped1195) + deconstruct_result1204 = _t1715 + if !isnothing(deconstruct_result1204) + unwrapped1205 = deconstruct_result1204 + pretty_specialized_value(pp, unwrapped1205) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1696 = _get_oneof_field(_dollar_dollar, :term) + _t1716 = _get_oneof_field(_dollar_dollar, :term) else - _t1696 = nothing + _t1716 = nothing end - deconstruct_result1192 = _t1696 - if !isnothing(deconstruct_result1192) - unwrapped1193 = deconstruct_result1192 - pretty_term(pp, unwrapped1193) + deconstruct_result1202 = _t1716 + if !isnothing(deconstruct_result1202) + unwrapped1203 = deconstruct_result1202 + pretty_term(pp, unwrapped1203) else throw(ParseError("No matching rule for rel_term")) end @@ -2861,41 +2861,41 @@ function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) end function pretty_specialized_value(pp::PrettyPrinter, msg::Proto.Value) - flat1198 = try_flat(pp, msg, pretty_specialized_value) - if !isnothing(flat1198) - write(pp, flat1198) + flat1208 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat1208) + write(pp, flat1208) return nothing else - fields1197 = msg + fields1207 = msg write(pp, "#") - pretty_raw_value(pp, fields1197) + pretty_raw_value(pp, fields1207) end return nothing end function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) - flat1205 = try_flat(pp, msg, pretty_rel_atom) - if !isnothing(flat1205) - write(pp, flat1205) + flat1215 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat1215) + write(pp, flat1215) return nothing else _dollar_dollar = msg - fields1199 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1200 = fields1199 + fields1209 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1210 = fields1209 write(pp, "(relatom") indent_sexp!(pp) newline(pp) - field1201 = unwrapped_fields1200[1] - pretty_name(pp, field1201) - field1202 = unwrapped_fields1200[2] - if !isempty(field1202) + field1211 = unwrapped_fields1210[1] + pretty_name(pp, field1211) + field1212 = unwrapped_fields1210[2] + if !isempty(field1212) newline(pp) - for (i1697, elem1203) in enumerate(field1202) - i1204 = i1697 - 1 - if (i1204 > 0) + for (i1717, elem1213) in enumerate(field1212) + i1214 = i1717 - 1 + if (i1214 > 0) newline(pp) end - pretty_rel_term(pp, elem1203) + pretty_rel_term(pp, elem1213) end end dedent!(pp) @@ -2905,22 +2905,22 @@ function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) end function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) - flat1210 = try_flat(pp, msg, pretty_cast) - if !isnothing(flat1210) - write(pp, flat1210) + flat1220 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1220) + write(pp, flat1220) return nothing else _dollar_dollar = msg - fields1206 = (_dollar_dollar.input, _dollar_dollar.result,) - unwrapped_fields1207 = fields1206 + fields1216 = (_dollar_dollar.input, _dollar_dollar.result,) + unwrapped_fields1217 = fields1216 write(pp, "(cast") indent_sexp!(pp) newline(pp) - field1208 = unwrapped_fields1207[1] - pretty_term(pp, field1208) + field1218 = unwrapped_fields1217[1] + pretty_term(pp, field1218) newline(pp) - field1209 = unwrapped_fields1207[2] - pretty_term(pp, field1209) + field1219 = unwrapped_fields1217[2] + pretty_term(pp, field1219) dedent!(pp) write(pp, ")") end @@ -2928,22 +2928,22 @@ function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) end function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) - flat1214 = try_flat(pp, msg, pretty_attrs) - if !isnothing(flat1214) - write(pp, flat1214) + flat1224 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1224) + write(pp, flat1224) return nothing else - fields1211 = msg + fields1221 = msg write(pp, "(attrs") indent_sexp!(pp) - if !isempty(fields1211) + if !isempty(fields1221) newline(pp) - for (i1698, elem1212) in enumerate(fields1211) - i1213 = i1698 - 1 - if (i1213 > 0) + for (i1718, elem1222) in enumerate(fields1221) + i1223 = i1718 - 1 + if (i1223 > 0) newline(pp) end - pretty_attribute(pp, elem1212) + pretty_attribute(pp, elem1222) end end dedent!(pp) @@ -2953,28 +2953,28 @@ function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) end function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) - flat1221 = try_flat(pp, msg, pretty_attribute) - if !isnothing(flat1221) - write(pp, flat1221) + flat1231 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1231) + write(pp, flat1231) return nothing else _dollar_dollar = msg - fields1215 = (_dollar_dollar.name, _dollar_dollar.args,) - unwrapped_fields1216 = fields1215 + fields1225 = (_dollar_dollar.name, _dollar_dollar.args,) + unwrapped_fields1226 = fields1225 write(pp, "(attribute") indent_sexp!(pp) newline(pp) - field1217 = unwrapped_fields1216[1] - pretty_name(pp, field1217) - field1218 = unwrapped_fields1216[2] - if !isempty(field1218) + field1227 = unwrapped_fields1226[1] + pretty_name(pp, field1227) + field1228 = unwrapped_fields1226[2] + if !isempty(field1228) newline(pp) - for (i1699, elem1219) in enumerate(field1218) - i1220 = i1699 - 1 - if (i1220 > 0) + for (i1719, elem1229) in enumerate(field1228) + i1230 = i1719 - 1 + if (i1230 > 0) newline(pp) end - pretty_raw_value(pp, elem1219) + pretty_raw_value(pp, elem1229) end end dedent!(pp) @@ -2984,40 +2984,40 @@ function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) end function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) - flat1230 = try_flat(pp, msg, pretty_algorithm) - if !isnothing(flat1230) - write(pp, flat1230) + flat1240 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1240) + write(pp, flat1240) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1700 = _dollar_dollar.attrs + _t1720 = _dollar_dollar.attrs else - _t1700 = nothing + _t1720 = nothing end - fields1222 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1700,) - unwrapped_fields1223 = fields1222 + fields1232 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1720,) + unwrapped_fields1233 = fields1232 write(pp, "(algorithm") indent_sexp!(pp) - field1224 = unwrapped_fields1223[1] - if !isempty(field1224) + field1234 = unwrapped_fields1233[1] + if !isempty(field1234) newline(pp) - for (i1701, elem1225) in enumerate(field1224) - i1226 = i1701 - 1 - if (i1226 > 0) + for (i1721, elem1235) in enumerate(field1234) + i1236 = i1721 - 1 + if (i1236 > 0) newline(pp) end - pretty_relation_id(pp, elem1225) + pretty_relation_id(pp, elem1235) end end newline(pp) - field1227 = unwrapped_fields1223[2] - pretty_script(pp, field1227) - field1228 = unwrapped_fields1223[3] - if !isnothing(field1228) + field1237 = unwrapped_fields1233[2] + pretty_script(pp, field1237) + field1238 = unwrapped_fields1233[3] + if !isnothing(field1238) newline(pp) - opt_val1229 = field1228 - pretty_attrs(pp, opt_val1229) + opt_val1239 = field1238 + pretty_attrs(pp, opt_val1239) end dedent!(pp) write(pp, ")") @@ -3026,24 +3026,24 @@ function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) end function pretty_script(pp::PrettyPrinter, msg::Proto.Script) - flat1235 = try_flat(pp, msg, pretty_script) - if !isnothing(flat1235) - write(pp, flat1235) + flat1245 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1245) + write(pp, flat1245) return nothing else _dollar_dollar = msg - fields1231 = _dollar_dollar.constructs - unwrapped_fields1232 = fields1231 + fields1241 = _dollar_dollar.constructs + unwrapped_fields1242 = fields1241 write(pp, "(script") indent_sexp!(pp) - if !isempty(unwrapped_fields1232) + if !isempty(unwrapped_fields1242) newline(pp) - for (i1702, elem1233) in enumerate(unwrapped_fields1232) - i1234 = i1702 - 1 - if (i1234 > 0) + for (i1722, elem1243) in enumerate(unwrapped_fields1242) + i1244 = i1722 - 1 + if (i1244 > 0) newline(pp) end - pretty_construct(pp, elem1233) + pretty_construct(pp, elem1243) end end dedent!(pp) @@ -3053,32 +3053,32 @@ function pretty_script(pp::PrettyPrinter, msg::Proto.Script) end function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) - flat1240 = try_flat(pp, msg, pretty_construct) - if !isnothing(flat1240) - write(pp, flat1240) + flat1250 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1250) + write(pp, flat1250) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1703 = _get_oneof_field(_dollar_dollar, :loop) + _t1723 = _get_oneof_field(_dollar_dollar, :loop) else - _t1703 = nothing + _t1723 = nothing end - deconstruct_result1238 = _t1703 - if !isnothing(deconstruct_result1238) - unwrapped1239 = deconstruct_result1238 - pretty_loop(pp, unwrapped1239) + deconstruct_result1248 = _t1723 + if !isnothing(deconstruct_result1248) + unwrapped1249 = deconstruct_result1248 + pretty_loop(pp, unwrapped1249) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1704 = _get_oneof_field(_dollar_dollar, :instruction) + _t1724 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1704 = nothing + _t1724 = nothing end - deconstruct_result1236 = _t1704 - if !isnothing(deconstruct_result1236) - unwrapped1237 = deconstruct_result1236 - pretty_instruction(pp, unwrapped1237) + deconstruct_result1246 = _t1724 + if !isnothing(deconstruct_result1246) + unwrapped1247 = deconstruct_result1246 + pretty_instruction(pp, unwrapped1247) else throw(ParseError("No matching rule for construct")) end @@ -3088,32 +3088,32 @@ function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) end function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) - flat1247 = try_flat(pp, msg, pretty_loop) - if !isnothing(flat1247) - write(pp, flat1247) + flat1257 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1257) + write(pp, flat1257) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1705 = _dollar_dollar.attrs + _t1725 = _dollar_dollar.attrs else - _t1705 = nothing + _t1725 = nothing end - fields1241 = (_dollar_dollar.init, _dollar_dollar.body, _t1705,) - unwrapped_fields1242 = fields1241 + fields1251 = (_dollar_dollar.init, _dollar_dollar.body, _t1725,) + unwrapped_fields1252 = fields1251 write(pp, "(loop") indent_sexp!(pp) newline(pp) - field1243 = unwrapped_fields1242[1] - pretty_init(pp, field1243) + field1253 = unwrapped_fields1252[1] + pretty_init(pp, field1253) newline(pp) - field1244 = unwrapped_fields1242[2] - pretty_script(pp, field1244) - field1245 = unwrapped_fields1242[3] - if !isnothing(field1245) + field1254 = unwrapped_fields1252[2] + pretty_script(pp, field1254) + field1255 = unwrapped_fields1252[3] + if !isnothing(field1255) newline(pp) - opt_val1246 = field1245 - pretty_attrs(pp, opt_val1246) + opt_val1256 = field1255 + pretty_attrs(pp, opt_val1256) end dedent!(pp) write(pp, ")") @@ -3122,22 +3122,22 @@ function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) end function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) - flat1251 = try_flat(pp, msg, pretty_init) - if !isnothing(flat1251) - write(pp, flat1251) + flat1261 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1261) + write(pp, flat1261) return nothing else - fields1248 = msg + fields1258 = msg write(pp, "(init") indent_sexp!(pp) - if !isempty(fields1248) + if !isempty(fields1258) newline(pp) - for (i1706, elem1249) in enumerate(fields1248) - i1250 = i1706 - 1 - if (i1250 > 0) + for (i1726, elem1259) in enumerate(fields1258) + i1260 = i1726 - 1 + if (i1260 > 0) newline(pp) end - pretty_instruction(pp, elem1249) + pretty_instruction(pp, elem1259) end end dedent!(pp) @@ -3147,65 +3147,65 @@ function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) end function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) - flat1262 = try_flat(pp, msg, pretty_instruction) - if !isnothing(flat1262) - write(pp, flat1262) + flat1272 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1272) + write(pp, flat1272) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1707 = _get_oneof_field(_dollar_dollar, :assign) + _t1727 = _get_oneof_field(_dollar_dollar, :assign) else - _t1707 = nothing + _t1727 = nothing end - deconstruct_result1260 = _t1707 - if !isnothing(deconstruct_result1260) - unwrapped1261 = deconstruct_result1260 - pretty_assign(pp, unwrapped1261) + deconstruct_result1270 = _t1727 + if !isnothing(deconstruct_result1270) + unwrapped1271 = deconstruct_result1270 + pretty_assign(pp, unwrapped1271) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1708 = _get_oneof_field(_dollar_dollar, :upsert) + _t1728 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1708 = nothing + _t1728 = nothing end - deconstruct_result1258 = _t1708 - if !isnothing(deconstruct_result1258) - unwrapped1259 = deconstruct_result1258 - pretty_upsert(pp, unwrapped1259) + deconstruct_result1268 = _t1728 + if !isnothing(deconstruct_result1268) + unwrapped1269 = deconstruct_result1268 + pretty_upsert(pp, unwrapped1269) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1709 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1729 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1709 = nothing + _t1729 = nothing end - deconstruct_result1256 = _t1709 - if !isnothing(deconstruct_result1256) - unwrapped1257 = deconstruct_result1256 - pretty_break(pp, unwrapped1257) + deconstruct_result1266 = _t1729 + if !isnothing(deconstruct_result1266) + unwrapped1267 = deconstruct_result1266 + pretty_break(pp, unwrapped1267) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1710 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1730 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1710 = nothing + _t1730 = nothing end - deconstruct_result1254 = _t1710 - if !isnothing(deconstruct_result1254) - unwrapped1255 = deconstruct_result1254 - pretty_monoid_def(pp, unwrapped1255) + deconstruct_result1264 = _t1730 + if !isnothing(deconstruct_result1264) + unwrapped1265 = deconstruct_result1264 + pretty_monoid_def(pp, unwrapped1265) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1711 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1731 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1711 = nothing + _t1731 = nothing end - deconstruct_result1252 = _t1711 - if !isnothing(deconstruct_result1252) - unwrapped1253 = deconstruct_result1252 - pretty_monus_def(pp, unwrapped1253) + deconstruct_result1262 = _t1731 + if !isnothing(deconstruct_result1262) + unwrapped1263 = deconstruct_result1262 + pretty_monus_def(pp, unwrapped1263) else throw(ParseError("No matching rule for instruction")) end @@ -3218,32 +3218,32 @@ function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) end function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) - flat1269 = try_flat(pp, msg, pretty_assign) - if !isnothing(flat1269) - write(pp, flat1269) + flat1279 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1279) + write(pp, flat1279) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1712 = _dollar_dollar.attrs + _t1732 = _dollar_dollar.attrs else - _t1712 = nothing + _t1732 = nothing end - fields1263 = (_dollar_dollar.name, _dollar_dollar.body, _t1712,) - unwrapped_fields1264 = fields1263 + fields1273 = (_dollar_dollar.name, _dollar_dollar.body, _t1732,) + unwrapped_fields1274 = fields1273 write(pp, "(assign") indent_sexp!(pp) newline(pp) - field1265 = unwrapped_fields1264[1] - pretty_relation_id(pp, field1265) + field1275 = unwrapped_fields1274[1] + pretty_relation_id(pp, field1275) newline(pp) - field1266 = unwrapped_fields1264[2] - pretty_abstraction(pp, field1266) - field1267 = unwrapped_fields1264[3] - if !isnothing(field1267) + field1276 = unwrapped_fields1274[2] + pretty_abstraction(pp, field1276) + field1277 = unwrapped_fields1274[3] + if !isnothing(field1277) newline(pp) - opt_val1268 = field1267 - pretty_attrs(pp, opt_val1268) + opt_val1278 = field1277 + pretty_attrs(pp, opt_val1278) end dedent!(pp) write(pp, ")") @@ -3252,32 +3252,32 @@ function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) end function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) - flat1276 = try_flat(pp, msg, pretty_upsert) - if !isnothing(flat1276) - write(pp, flat1276) + flat1286 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1286) + write(pp, flat1286) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1713 = _dollar_dollar.attrs + _t1733 = _dollar_dollar.attrs else - _t1713 = nothing + _t1733 = nothing end - fields1270 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1713,) - unwrapped_fields1271 = fields1270 + fields1280 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1733,) + unwrapped_fields1281 = fields1280 write(pp, "(upsert") indent_sexp!(pp) newline(pp) - field1272 = unwrapped_fields1271[1] - pretty_relation_id(pp, field1272) + field1282 = unwrapped_fields1281[1] + pretty_relation_id(pp, field1282) newline(pp) - field1273 = unwrapped_fields1271[2] - pretty_abstraction_with_arity(pp, field1273) - field1274 = unwrapped_fields1271[3] - if !isnothing(field1274) + field1283 = unwrapped_fields1281[2] + pretty_abstraction_with_arity(pp, field1283) + field1284 = unwrapped_fields1281[3] + if !isnothing(field1284) newline(pp) - opt_val1275 = field1274 - pretty_attrs(pp, opt_val1275) + opt_val1285 = field1284 + pretty_attrs(pp, opt_val1285) end dedent!(pp) write(pp, ")") @@ -3286,22 +3286,22 @@ function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) end function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstraction, Int64}) - flat1281 = try_flat(pp, msg, pretty_abstraction_with_arity) - if !isnothing(flat1281) - write(pp, flat1281) + flat1291 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1291) + write(pp, flat1291) return nothing else _dollar_dollar = msg - _t1714 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) - fields1277 = (_t1714, _dollar_dollar[1].value,) - unwrapped_fields1278 = fields1277 + _t1734 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + fields1287 = (_t1734, _dollar_dollar[1].value,) + unwrapped_fields1288 = fields1287 write(pp, "(") indent!(pp) - field1279 = unwrapped_fields1278[1] - pretty_bindings(pp, field1279) + field1289 = unwrapped_fields1288[1] + pretty_bindings(pp, field1289) newline(pp) - field1280 = unwrapped_fields1278[2] - pretty_formula(pp, field1280) + field1290 = unwrapped_fields1288[2] + pretty_formula(pp, field1290) dedent!(pp) write(pp, ")") end @@ -3309,32 +3309,32 @@ function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstr end function pretty_break(pp::PrettyPrinter, msg::Proto.Break) - flat1288 = try_flat(pp, msg, pretty_break) - if !isnothing(flat1288) - write(pp, flat1288) + flat1298 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1298) + write(pp, flat1298) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1715 = _dollar_dollar.attrs + _t1735 = _dollar_dollar.attrs else - _t1715 = nothing + _t1735 = nothing end - fields1282 = (_dollar_dollar.name, _dollar_dollar.body, _t1715,) - unwrapped_fields1283 = fields1282 + fields1292 = (_dollar_dollar.name, _dollar_dollar.body, _t1735,) + unwrapped_fields1293 = fields1292 write(pp, "(break") indent_sexp!(pp) newline(pp) - field1284 = unwrapped_fields1283[1] - pretty_relation_id(pp, field1284) + field1294 = unwrapped_fields1293[1] + pretty_relation_id(pp, field1294) newline(pp) - field1285 = unwrapped_fields1283[2] - pretty_abstraction(pp, field1285) - field1286 = unwrapped_fields1283[3] - if !isnothing(field1286) + field1295 = unwrapped_fields1293[2] + pretty_abstraction(pp, field1295) + field1296 = unwrapped_fields1293[3] + if !isnothing(field1296) newline(pp) - opt_val1287 = field1286 - pretty_attrs(pp, opt_val1287) + opt_val1297 = field1296 + pretty_attrs(pp, opt_val1297) end dedent!(pp) write(pp, ")") @@ -3343,35 +3343,35 @@ function pretty_break(pp::PrettyPrinter, msg::Proto.Break) end function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) - flat1296 = try_flat(pp, msg, pretty_monoid_def) - if !isnothing(flat1296) - write(pp, flat1296) + flat1306 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1306) + write(pp, flat1306) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1716 = _dollar_dollar.attrs + _t1736 = _dollar_dollar.attrs else - _t1716 = nothing + _t1736 = nothing end - fields1289 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1716,) - unwrapped_fields1290 = fields1289 + fields1299 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1736,) + unwrapped_fields1300 = fields1299 write(pp, "(monoid") indent_sexp!(pp) newline(pp) - field1291 = unwrapped_fields1290[1] - pretty_monoid(pp, field1291) + field1301 = unwrapped_fields1300[1] + pretty_monoid(pp, field1301) newline(pp) - field1292 = unwrapped_fields1290[2] - pretty_relation_id(pp, field1292) + field1302 = unwrapped_fields1300[2] + pretty_relation_id(pp, field1302) newline(pp) - field1293 = unwrapped_fields1290[3] - pretty_abstraction_with_arity(pp, field1293) - field1294 = unwrapped_fields1290[4] - if !isnothing(field1294) + field1303 = unwrapped_fields1300[3] + pretty_abstraction_with_arity(pp, field1303) + field1304 = unwrapped_fields1300[4] + if !isnothing(field1304) newline(pp) - opt_val1295 = field1294 - pretty_attrs(pp, opt_val1295) + opt_val1305 = field1304 + pretty_attrs(pp, opt_val1305) end dedent!(pp) write(pp, ")") @@ -3380,54 +3380,54 @@ function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) end function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) - flat1305 = try_flat(pp, msg, pretty_monoid) - if !isnothing(flat1305) - write(pp, flat1305) + flat1315 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1315) + write(pp, flat1315) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1717 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1737 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1717 = nothing + _t1737 = nothing end - deconstruct_result1303 = _t1717 - if !isnothing(deconstruct_result1303) - unwrapped1304 = deconstruct_result1303 - pretty_or_monoid(pp, unwrapped1304) + deconstruct_result1313 = _t1737 + if !isnothing(deconstruct_result1313) + unwrapped1314 = deconstruct_result1313 + pretty_or_monoid(pp, unwrapped1314) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1718 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1738 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1718 = nothing + _t1738 = nothing end - deconstruct_result1301 = _t1718 - if !isnothing(deconstruct_result1301) - unwrapped1302 = deconstruct_result1301 - pretty_min_monoid(pp, unwrapped1302) + deconstruct_result1311 = _t1738 + if !isnothing(deconstruct_result1311) + unwrapped1312 = deconstruct_result1311 + pretty_min_monoid(pp, unwrapped1312) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1719 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1739 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1719 = nothing + _t1739 = nothing end - deconstruct_result1299 = _t1719 - if !isnothing(deconstruct_result1299) - unwrapped1300 = deconstruct_result1299 - pretty_max_monoid(pp, unwrapped1300) + deconstruct_result1309 = _t1739 + if !isnothing(deconstruct_result1309) + unwrapped1310 = deconstruct_result1309 + pretty_max_monoid(pp, unwrapped1310) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1720 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1740 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1720 = nothing + _t1740 = nothing end - deconstruct_result1297 = _t1720 - if !isnothing(deconstruct_result1297) - unwrapped1298 = deconstruct_result1297 - pretty_sum_monoid(pp, unwrapped1298) + deconstruct_result1307 = _t1740 + if !isnothing(deconstruct_result1307) + unwrapped1308 = deconstruct_result1307 + pretty_sum_monoid(pp, unwrapped1308) else throw(ParseError("No matching rule for monoid")) end @@ -3439,24 +3439,24 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1306 = msg + fields1316 = msg write(pp, "(or)") return nothing end function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) - flat1309 = try_flat(pp, msg, pretty_min_monoid) - if !isnothing(flat1309) - write(pp, flat1309) + flat1319 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1319) + write(pp, flat1319) return nothing else _dollar_dollar = msg - fields1307 = _dollar_dollar.var"#type" - unwrapped_fields1308 = fields1307 + fields1317 = _dollar_dollar.var"#type" + unwrapped_fields1318 = fields1317 write(pp, "(min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1308) + pretty_type(pp, unwrapped_fields1318) dedent!(pp) write(pp, ")") end @@ -3464,18 +3464,18 @@ function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) end function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) - flat1312 = try_flat(pp, msg, pretty_max_monoid) - if !isnothing(flat1312) - write(pp, flat1312) + flat1322 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1322) + write(pp, flat1322) return nothing else _dollar_dollar = msg - fields1310 = _dollar_dollar.var"#type" - unwrapped_fields1311 = fields1310 + fields1320 = _dollar_dollar.var"#type" + unwrapped_fields1321 = fields1320 write(pp, "(max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1311) + pretty_type(pp, unwrapped_fields1321) dedent!(pp) write(pp, ")") end @@ -3483,18 +3483,18 @@ function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) end function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) - flat1315 = try_flat(pp, msg, pretty_sum_monoid) - if !isnothing(flat1315) - write(pp, flat1315) + flat1325 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1325) + write(pp, flat1325) return nothing else _dollar_dollar = msg - fields1313 = _dollar_dollar.var"#type" - unwrapped_fields1314 = fields1313 + fields1323 = _dollar_dollar.var"#type" + unwrapped_fields1324 = fields1323 write(pp, "(sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1314) + pretty_type(pp, unwrapped_fields1324) dedent!(pp) write(pp, ")") end @@ -3502,35 +3502,35 @@ function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) end function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) - flat1323 = try_flat(pp, msg, pretty_monus_def) - if !isnothing(flat1323) - write(pp, flat1323) + flat1333 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1333) + write(pp, flat1333) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1721 = _dollar_dollar.attrs + _t1741 = _dollar_dollar.attrs else - _t1721 = nothing + _t1741 = nothing end - fields1316 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1721,) - unwrapped_fields1317 = fields1316 + fields1326 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1741,) + unwrapped_fields1327 = fields1326 write(pp, "(monus") indent_sexp!(pp) newline(pp) - field1318 = unwrapped_fields1317[1] - pretty_monoid(pp, field1318) + field1328 = unwrapped_fields1327[1] + pretty_monoid(pp, field1328) newline(pp) - field1319 = unwrapped_fields1317[2] - pretty_relation_id(pp, field1319) + field1329 = unwrapped_fields1327[2] + pretty_relation_id(pp, field1329) newline(pp) - field1320 = unwrapped_fields1317[3] - pretty_abstraction_with_arity(pp, field1320) - field1321 = unwrapped_fields1317[4] - if !isnothing(field1321) + field1330 = unwrapped_fields1327[3] + pretty_abstraction_with_arity(pp, field1330) + field1331 = unwrapped_fields1327[4] + if !isnothing(field1331) newline(pp) - opt_val1322 = field1321 - pretty_attrs(pp, opt_val1322) + opt_val1332 = field1331 + pretty_attrs(pp, opt_val1332) end dedent!(pp) write(pp, ")") @@ -3539,28 +3539,28 @@ function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) end function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) - flat1330 = try_flat(pp, msg, pretty_constraint) - if !isnothing(flat1330) - write(pp, flat1330) + flat1340 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1340) + write(pp, flat1340) return nothing else _dollar_dollar = msg - fields1324 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) - unwrapped_fields1325 = fields1324 + fields1334 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) + unwrapped_fields1335 = fields1334 write(pp, "(functional_dependency") indent_sexp!(pp) newline(pp) - field1326 = unwrapped_fields1325[1] - pretty_relation_id(pp, field1326) + field1336 = unwrapped_fields1335[1] + pretty_relation_id(pp, field1336) newline(pp) - field1327 = unwrapped_fields1325[2] - pretty_abstraction(pp, field1327) + field1337 = unwrapped_fields1335[2] + pretty_abstraction(pp, field1337) newline(pp) - field1328 = unwrapped_fields1325[3] - pretty_functional_dependency_keys(pp, field1328) + field1338 = unwrapped_fields1335[3] + pretty_functional_dependency_keys(pp, field1338) newline(pp) - field1329 = unwrapped_fields1325[4] - pretty_functional_dependency_values(pp, field1329) + field1339 = unwrapped_fields1335[4] + pretty_functional_dependency_values(pp, field1339) dedent!(pp) write(pp, ")") end @@ -3568,22 +3568,22 @@ function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) end function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1334 = try_flat(pp, msg, pretty_functional_dependency_keys) - if !isnothing(flat1334) - write(pp, flat1334) + flat1344 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1344) + write(pp, flat1344) return nothing else - fields1331 = msg + fields1341 = msg write(pp, "(keys") indent_sexp!(pp) - if !isempty(fields1331) + if !isempty(fields1341) newline(pp) - for (i1722, elem1332) in enumerate(fields1331) - i1333 = i1722 - 1 - if (i1333 > 0) + for (i1742, elem1342) in enumerate(fields1341) + i1343 = i1742 - 1 + if (i1343 > 0) newline(pp) end - pretty_var(pp, elem1332) + pretty_var(pp, elem1342) end end dedent!(pp) @@ -3593,22 +3593,22 @@ function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto. end function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1338 = try_flat(pp, msg, pretty_functional_dependency_values) - if !isnothing(flat1338) - write(pp, flat1338) + flat1348 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1348) + write(pp, flat1348) return nothing else - fields1335 = msg + fields1345 = msg write(pp, "(values") indent_sexp!(pp) - if !isempty(fields1335) + if !isempty(fields1345) newline(pp) - for (i1723, elem1336) in enumerate(fields1335) - i1337 = i1723 - 1 - if (i1337 > 0) + for (i1743, elem1346) in enumerate(fields1345) + i1347 = i1743 - 1 + if (i1347 > 0) newline(pp) end - pretty_var(pp, elem1336) + pretty_var(pp, elem1346) end end dedent!(pp) @@ -3618,54 +3618,54 @@ function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Prot end function pretty_data(pp::PrettyPrinter, msg::Proto.Data) - flat1347 = try_flat(pp, msg, pretty_data) - if !isnothing(flat1347) - write(pp, flat1347) + flat1357 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1357) + write(pp, flat1357) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("edb")) - _t1724 = _get_oneof_field(_dollar_dollar, :edb) + _t1744 = _get_oneof_field(_dollar_dollar, :edb) else - _t1724 = nothing + _t1744 = nothing end - deconstruct_result1345 = _t1724 - if !isnothing(deconstruct_result1345) - unwrapped1346 = deconstruct_result1345 - pretty_edb(pp, unwrapped1346) + deconstruct_result1355 = _t1744 + if !isnothing(deconstruct_result1355) + unwrapped1356 = deconstruct_result1355 + pretty_edb(pp, unwrapped1356) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1725 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1745 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1725 = nothing + _t1745 = nothing end - deconstruct_result1343 = _t1725 - if !isnothing(deconstruct_result1343) - unwrapped1344 = deconstruct_result1343 - pretty_betree_relation(pp, unwrapped1344) + deconstruct_result1353 = _t1745 + if !isnothing(deconstruct_result1353) + unwrapped1354 = deconstruct_result1353 + pretty_betree_relation(pp, unwrapped1354) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1726 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1746 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1726 = nothing + _t1746 = nothing end - deconstruct_result1341 = _t1726 - if !isnothing(deconstruct_result1341) - unwrapped1342 = deconstruct_result1341 - pretty_csv_data(pp, unwrapped1342) + deconstruct_result1351 = _t1746 + if !isnothing(deconstruct_result1351) + unwrapped1352 = deconstruct_result1351 + pretty_csv_data(pp, unwrapped1352) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("iceberg_data")) - _t1727 = _get_oneof_field(_dollar_dollar, :iceberg_data) + _t1747 = _get_oneof_field(_dollar_dollar, :iceberg_data) else - _t1727 = nothing + _t1747 = nothing end - deconstruct_result1339 = _t1727 - if !isnothing(deconstruct_result1339) - unwrapped1340 = deconstruct_result1339 - pretty_iceberg_data(pp, unwrapped1340) + deconstruct_result1349 = _t1747 + if !isnothing(deconstruct_result1349) + unwrapped1350 = deconstruct_result1349 + pretty_iceberg_data(pp, unwrapped1350) else throw(ParseError("No matching rule for data")) end @@ -3677,25 +3677,25 @@ function pretty_data(pp::PrettyPrinter, msg::Proto.Data) end function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) - flat1353 = try_flat(pp, msg, pretty_edb) - if !isnothing(flat1353) - write(pp, flat1353) + flat1363 = try_flat(pp, msg, pretty_edb) + if !isnothing(flat1363) + write(pp, flat1363) return nothing else _dollar_dollar = msg - fields1348 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - unwrapped_fields1349 = fields1348 + fields1358 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + unwrapped_fields1359 = fields1358 write(pp, "(edb") indent_sexp!(pp) newline(pp) - field1350 = unwrapped_fields1349[1] - pretty_relation_id(pp, field1350) + field1360 = unwrapped_fields1359[1] + pretty_relation_id(pp, field1360) newline(pp) - field1351 = unwrapped_fields1349[2] - pretty_edb_path(pp, field1351) + field1361 = unwrapped_fields1359[2] + pretty_edb_path(pp, field1361) newline(pp) - field1352 = unwrapped_fields1349[3] - pretty_edb_types(pp, field1352) + field1362 = unwrapped_fields1359[3] + pretty_edb_types(pp, field1362) dedent!(pp) write(pp, ")") end @@ -3703,20 +3703,20 @@ function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) end function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) - flat1357 = try_flat(pp, msg, pretty_edb_path) - if !isnothing(flat1357) - write(pp, flat1357) + flat1367 = try_flat(pp, msg, pretty_edb_path) + if !isnothing(flat1367) + write(pp, flat1367) return nothing else - fields1354 = msg + fields1364 = msg write(pp, "[") indent!(pp) - for (i1728, elem1355) in enumerate(fields1354) - i1356 = i1728 - 1 - if (i1356 > 0) + for (i1748, elem1365) in enumerate(fields1364) + i1366 = i1748 - 1 + if (i1366 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1355)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1365)) end dedent!(pp) write(pp, "]") @@ -3725,20 +3725,20 @@ function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1361 = try_flat(pp, msg, pretty_edb_types) - if !isnothing(flat1361) - write(pp, flat1361) + flat1371 = try_flat(pp, msg, pretty_edb_types) + if !isnothing(flat1371) + write(pp, flat1371) return nothing else - fields1358 = msg + fields1368 = msg write(pp, "[") indent!(pp) - for (i1729, elem1359) in enumerate(fields1358) - i1360 = i1729 - 1 - if (i1360 > 0) + for (i1749, elem1369) in enumerate(fields1368) + i1370 = i1749 - 1 + if (i1370 > 0) newline(pp) end - pretty_type(pp, elem1359) + pretty_type(pp, elem1369) end dedent!(pp) write(pp, "]") @@ -3747,22 +3747,22 @@ function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) end function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) - flat1366 = try_flat(pp, msg, pretty_betree_relation) - if !isnothing(flat1366) - write(pp, flat1366) + flat1376 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1376) + write(pp, flat1376) return nothing else _dollar_dollar = msg - fields1362 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - unwrapped_fields1363 = fields1362 + fields1372 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + unwrapped_fields1373 = fields1372 write(pp, "(betree_relation") indent_sexp!(pp) newline(pp) - field1364 = unwrapped_fields1363[1] - pretty_relation_id(pp, field1364) + field1374 = unwrapped_fields1373[1] + pretty_relation_id(pp, field1374) newline(pp) - field1365 = unwrapped_fields1363[2] - pretty_betree_info(pp, field1365) + field1375 = unwrapped_fields1373[2] + pretty_betree_info(pp, field1375) dedent!(pp) write(pp, ")") end @@ -3770,26 +3770,26 @@ function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) end function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) - flat1372 = try_flat(pp, msg, pretty_betree_info) - if !isnothing(flat1372) - write(pp, flat1372) + flat1382 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1382) + write(pp, flat1382) return nothing else _dollar_dollar = msg - _t1730 = deconstruct_betree_info_config(pp, _dollar_dollar) - fields1367 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1730,) - unwrapped_fields1368 = fields1367 + _t1750 = deconstruct_betree_info_config(pp, _dollar_dollar) + fields1377 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1750,) + unwrapped_fields1378 = fields1377 write(pp, "(betree_info") indent_sexp!(pp) newline(pp) - field1369 = unwrapped_fields1368[1] - pretty_betree_info_key_types(pp, field1369) + field1379 = unwrapped_fields1378[1] + pretty_betree_info_key_types(pp, field1379) newline(pp) - field1370 = unwrapped_fields1368[2] - pretty_betree_info_value_types(pp, field1370) + field1380 = unwrapped_fields1378[2] + pretty_betree_info_value_types(pp, field1380) newline(pp) - field1371 = unwrapped_fields1368[3] - pretty_config_dict(pp, field1371) + field1381 = unwrapped_fields1378[3] + pretty_config_dict(pp, field1381) dedent!(pp) write(pp, ")") end @@ -3797,22 +3797,22 @@ function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) end function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1376 = try_flat(pp, msg, pretty_betree_info_key_types) - if !isnothing(flat1376) - write(pp, flat1376) + flat1386 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1386) + write(pp, flat1386) return nothing else - fields1373 = msg + fields1383 = msg write(pp, "(key_types") indent_sexp!(pp) - if !isempty(fields1373) + if !isempty(fields1383) newline(pp) - for (i1731, elem1374) in enumerate(fields1373) - i1375 = i1731 - 1 - if (i1375 > 0) + for (i1751, elem1384) in enumerate(fields1383) + i1385 = i1751 - 1 + if (i1385 > 0) newline(pp) end - pretty_type(pp, elem1374) + pretty_type(pp, elem1384) end end dedent!(pp) @@ -3822,22 +3822,22 @@ function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"# end function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1380 = try_flat(pp, msg, pretty_betree_info_value_types) - if !isnothing(flat1380) - write(pp, flat1380) + flat1390 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1390) + write(pp, flat1390) return nothing else - fields1377 = msg + fields1387 = msg write(pp, "(value_types") indent_sexp!(pp) - if !isempty(fields1377) + if !isempty(fields1387) newline(pp) - for (i1732, elem1378) in enumerate(fields1377) - i1379 = i1732 - 1 - if (i1379 > 0) + for (i1752, elem1388) in enumerate(fields1387) + i1389 = i1752 - 1 + if (i1389 > 0) newline(pp) end - pretty_type(pp, elem1378) + pretty_type(pp, elem1388) end end dedent!(pp) @@ -3847,28 +3847,28 @@ function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var end function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) - flat1387 = try_flat(pp, msg, pretty_csv_data) - if !isnothing(flat1387) - write(pp, flat1387) + flat1397 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1397) + write(pp, flat1397) return nothing else _dollar_dollar = msg - fields1381 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - unwrapped_fields1382 = fields1381 + fields1391 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + unwrapped_fields1392 = fields1391 write(pp, "(csv_data") indent_sexp!(pp) newline(pp) - field1383 = unwrapped_fields1382[1] - pretty_csvlocator(pp, field1383) + field1393 = unwrapped_fields1392[1] + pretty_csvlocator(pp, field1393) newline(pp) - field1384 = unwrapped_fields1382[2] - pretty_csv_config(pp, field1384) + field1394 = unwrapped_fields1392[2] + pretty_csv_config(pp, field1394) newline(pp) - field1385 = unwrapped_fields1382[3] - pretty_gnf_columns(pp, field1385) + field1395 = unwrapped_fields1392[3] + pretty_gnf_columns(pp, field1395) newline(pp) - field1386 = unwrapped_fields1382[4] - pretty_csv_asof(pp, field1386) + field1396 = unwrapped_fields1392[4] + pretty_csv_asof(pp, field1396) dedent!(pp) write(pp, ")") end @@ -3876,37 +3876,37 @@ function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) end function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) - flat1394 = try_flat(pp, msg, pretty_csvlocator) - if !isnothing(flat1394) - write(pp, flat1394) + flat1404 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1404) + write(pp, flat1404) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.paths) - _t1733 = _dollar_dollar.paths + _t1753 = _dollar_dollar.paths else - _t1733 = nothing + _t1753 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1734 = String(copy(_dollar_dollar.inline_data)) + _t1754 = String(copy(_dollar_dollar.inline_data)) else - _t1734 = nothing + _t1754 = nothing end - fields1388 = (_t1733, _t1734,) - unwrapped_fields1389 = fields1388 + fields1398 = (_t1753, _t1754,) + unwrapped_fields1399 = fields1398 write(pp, "(csv_locator") indent_sexp!(pp) - field1390 = unwrapped_fields1389[1] - if !isnothing(field1390) + field1400 = unwrapped_fields1399[1] + if !isnothing(field1400) newline(pp) - opt_val1391 = field1390 - pretty_csv_locator_paths(pp, opt_val1391) + opt_val1401 = field1400 + pretty_csv_locator_paths(pp, opt_val1401) end - field1392 = unwrapped_fields1389[2] - if !isnothing(field1392) + field1402 = unwrapped_fields1399[2] + if !isnothing(field1402) newline(pp) - opt_val1393 = field1392 - pretty_csv_locator_inline_data(pp, opt_val1393) + opt_val1403 = field1402 + pretty_csv_locator_inline_data(pp, opt_val1403) end dedent!(pp) write(pp, ")") @@ -3915,22 +3915,22 @@ function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) end function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) - flat1398 = try_flat(pp, msg, pretty_csv_locator_paths) - if !isnothing(flat1398) - write(pp, flat1398) + flat1408 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1408) + write(pp, flat1408) return nothing else - fields1395 = msg + fields1405 = msg write(pp, "(paths") indent_sexp!(pp) - if !isempty(fields1395) + if !isempty(fields1405) newline(pp) - for (i1735, elem1396) in enumerate(fields1395) - i1397 = i1735 - 1 - if (i1397 > 0) + for (i1755, elem1406) in enumerate(fields1405) + i1407 = i1755 - 1 + if (i1407 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1396)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1406)) end end dedent!(pp) @@ -3940,16 +3940,16 @@ function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) - flat1400 = try_flat(pp, msg, pretty_csv_locator_inline_data) - if !isnothing(flat1400) - write(pp, flat1400) + flat1410 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1410) + write(pp, flat1410) return nothing else - fields1399 = msg + fields1409 = msg write(pp, "(inline_data") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1399)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1409)) dedent!(pp) write(pp, ")") end @@ -3957,19 +3957,19 @@ function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) end function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) - flat1403 = try_flat(pp, msg, pretty_csv_config) - if !isnothing(flat1403) - write(pp, flat1403) + flat1413 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1413) + write(pp, flat1413) return nothing else _dollar_dollar = msg - _t1736 = deconstruct_csv_config(pp, _dollar_dollar) - fields1401 = _t1736 - unwrapped_fields1402 = fields1401 + _t1756 = deconstruct_csv_config(pp, _dollar_dollar) + fields1411 = _t1756 + unwrapped_fields1412 = fields1411 write(pp, "(csv_config") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields1402) + pretty_config_dict(pp, unwrapped_fields1412) dedent!(pp) write(pp, ")") end @@ -3977,22 +3977,22 @@ function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) end function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) - flat1407 = try_flat(pp, msg, pretty_gnf_columns) - if !isnothing(flat1407) - write(pp, flat1407) + flat1417 = try_flat(pp, msg, pretty_gnf_columns) + if !isnothing(flat1417) + write(pp, flat1417) return nothing else - fields1404 = msg + fields1414 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1404) + if !isempty(fields1414) newline(pp) - for (i1737, elem1405) in enumerate(fields1404) - i1406 = i1737 - 1 - if (i1406 > 0) + for (i1757, elem1415) in enumerate(fields1414) + i1416 = i1757 - 1 + if (i1416 > 0) newline(pp) end - pretty_gnf_column(pp, elem1405) + pretty_gnf_column(pp, elem1415) end end dedent!(pp) @@ -4002,39 +4002,39 @@ function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) end function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) - flat1416 = try_flat(pp, msg, pretty_gnf_column) - if !isnothing(flat1416) - write(pp, flat1416) + flat1426 = try_flat(pp, msg, pretty_gnf_column) + if !isnothing(flat1426) + write(pp, flat1426) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("target_id")) - _t1738 = _dollar_dollar.target_id + _t1758 = _dollar_dollar.target_id else - _t1738 = nothing + _t1758 = nothing end - fields1408 = (_dollar_dollar.column_path, _t1738, _dollar_dollar.types,) - unwrapped_fields1409 = fields1408 + fields1418 = (_dollar_dollar.column_path, _t1758, _dollar_dollar.types,) + unwrapped_fields1419 = fields1418 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1410 = unwrapped_fields1409[1] - pretty_gnf_column_path(pp, field1410) - field1411 = unwrapped_fields1409[2] - if !isnothing(field1411) + field1420 = unwrapped_fields1419[1] + pretty_gnf_column_path(pp, field1420) + field1421 = unwrapped_fields1419[2] + if !isnothing(field1421) newline(pp) - opt_val1412 = field1411 - pretty_relation_id(pp, opt_val1412) + opt_val1422 = field1421 + pretty_relation_id(pp, opt_val1422) end newline(pp) write(pp, "[") - field1413 = unwrapped_fields1409[3] - for (i1739, elem1414) in enumerate(field1413) - i1415 = i1739 - 1 - if (i1415 > 0) + field1423 = unwrapped_fields1419[3] + for (i1759, elem1424) in enumerate(field1423) + i1425 = i1759 - 1 + if (i1425 > 0) newline(pp) end - pretty_type(pp, elem1414) + pretty_type(pp, elem1424) end write(pp, "]") dedent!(pp) @@ -4044,39 +4044,39 @@ function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) end function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) - flat1423 = try_flat(pp, msg, pretty_gnf_column_path) - if !isnothing(flat1423) - write(pp, flat1423) + flat1433 = try_flat(pp, msg, pretty_gnf_column_path) + if !isnothing(flat1433) + write(pp, flat1433) return nothing else _dollar_dollar = msg if length(_dollar_dollar) == 1 - _t1740 = _dollar_dollar[1] + _t1760 = _dollar_dollar[1] else - _t1740 = nothing + _t1760 = nothing end - deconstruct_result1421 = _t1740 - if !isnothing(deconstruct_result1421) - unwrapped1422 = deconstruct_result1421 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1422)) + deconstruct_result1431 = _t1760 + if !isnothing(deconstruct_result1431) + unwrapped1432 = deconstruct_result1431 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1432)) else _dollar_dollar = msg if length(_dollar_dollar) != 1 - _t1741 = _dollar_dollar + _t1761 = _dollar_dollar else - _t1741 = nothing + _t1761 = nothing end - deconstruct_result1417 = _t1741 - if !isnothing(deconstruct_result1417) - unwrapped1418 = deconstruct_result1417 + deconstruct_result1427 = _t1761 + if !isnothing(deconstruct_result1427) + unwrapped1428 = deconstruct_result1427 write(pp, "[") indent!(pp) - for (i1742, elem1419) in enumerate(unwrapped1418) - i1420 = i1742 - 1 - if (i1420 > 0) + for (i1762, elem1429) in enumerate(unwrapped1428) + i1430 = i1762 - 1 + if (i1430 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1419)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1429)) end dedent!(pp) write(pp, "]") @@ -4089,16 +4089,16 @@ function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1425 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1425) - write(pp, flat1425) + flat1435 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1435) + write(pp, flat1435) return nothing else - fields1424 = msg + fields1434 = msg write(pp, "(asof") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1424)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1434)) dedent!(pp) write(pp, ")") end @@ -4106,42 +4106,61 @@ function pretty_csv_asof(pp::PrettyPrinter, msg::String) end function pretty_iceberg_data(pp::PrettyPrinter, msg::Proto.IcebergData) - flat1436 = try_flat(pp, msg, pretty_iceberg_data) - if !isnothing(flat1436) - write(pp, flat1436) + flat1449 = try_flat(pp, msg, pretty_iceberg_data) + if !isnothing(flat1449) + write(pp, flat1449) return nothing else _dollar_dollar = msg - _t1743 = deconstruct_iceberg_data_from_snapshot_optional(pp, _dollar_dollar) - _t1744 = deconstruct_iceberg_data_to_snapshot_optional(pp, _dollar_dollar) - fields1426 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1743, _t1744, _dollar_dollar.returns_delta,) - unwrapped_fields1427 = fields1426 + if !isempty(_dollar_dollar.columns) + _t1763 = _dollar_dollar.columns + else + _t1763 = nothing + end + if _has_proto_field(_dollar_dollar, Symbol("target")) + _t1764 = _dollar_dollar.target + else + _t1764 = nothing + end + _t1765 = deconstruct_iceberg_data_from_snapshot_optional(pp, _dollar_dollar) + _t1766 = deconstruct_iceberg_data_to_snapshot_optional(pp, _dollar_dollar) + fields1436 = (_dollar_dollar.locator, _dollar_dollar.config, _t1763, _t1764, _t1765, _t1766, _dollar_dollar.returns_delta,) + unwrapped_fields1437 = fields1436 write(pp, "(iceberg_data") indent_sexp!(pp) newline(pp) - field1428 = unwrapped_fields1427[1] - pretty_iceberg_locator(pp, field1428) - newline(pp) - field1429 = unwrapped_fields1427[2] - pretty_iceberg_catalog_config(pp, field1429) + field1438 = unwrapped_fields1437[1] + pretty_iceberg_locator(pp, field1438) newline(pp) - field1430 = unwrapped_fields1427[3] - pretty_gnf_columns(pp, field1430) - field1431 = unwrapped_fields1427[4] - if !isnothing(field1431) + field1439 = unwrapped_fields1437[2] + pretty_iceberg_catalog_config(pp, field1439) + field1440 = unwrapped_fields1437[3] + if !isnothing(field1440) + newline(pp) + opt_val1441 = field1440 + pretty_gnf_columns(pp, opt_val1441) + end + field1442 = unwrapped_fields1437[4] + if !isnothing(field1442) + newline(pp) + opt_val1443 = field1442 + pretty_full_table(pp, opt_val1443) + end + field1444 = unwrapped_fields1437[5] + if !isnothing(field1444) newline(pp) - opt_val1432 = field1431 - pretty_iceberg_from_snapshot(pp, opt_val1432) + opt_val1445 = field1444 + pretty_iceberg_from_snapshot(pp, opt_val1445) end - field1433 = unwrapped_fields1427[5] - if !isnothing(field1433) + field1446 = unwrapped_fields1437[6] + if !isnothing(field1446) newline(pp) - opt_val1434 = field1433 - pretty_iceberg_to_snapshot(pp, opt_val1434) + opt_val1447 = field1446 + pretty_iceberg_to_snapshot(pp, opt_val1447) end newline(pp) - field1435 = unwrapped_fields1427[6] - pretty_boolean_value(pp, field1435) + field1448 = unwrapped_fields1437[7] + pretty_boolean_value(pp, field1448) dedent!(pp) write(pp, ")") end @@ -4149,25 +4168,25 @@ function pretty_iceberg_data(pp::PrettyPrinter, msg::Proto.IcebergData) end function pretty_iceberg_locator(pp::PrettyPrinter, msg::Proto.IcebergLocator) - flat1442 = try_flat(pp, msg, pretty_iceberg_locator) - if !isnothing(flat1442) - write(pp, flat1442) + flat1455 = try_flat(pp, msg, pretty_iceberg_locator) + if !isnothing(flat1455) + write(pp, flat1455) return nothing else _dollar_dollar = msg - fields1437 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) - unwrapped_fields1438 = fields1437 + fields1450 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + unwrapped_fields1451 = fields1450 write(pp, "(iceberg_locator") indent_sexp!(pp) newline(pp) - field1439 = unwrapped_fields1438[1] - pretty_iceberg_locator_table_name(pp, field1439) + field1452 = unwrapped_fields1451[1] + pretty_iceberg_locator_table_name(pp, field1452) newline(pp) - field1440 = unwrapped_fields1438[2] - pretty_iceberg_locator_namespace(pp, field1440) + field1453 = unwrapped_fields1451[2] + pretty_iceberg_locator_namespace(pp, field1453) newline(pp) - field1441 = unwrapped_fields1438[3] - pretty_iceberg_locator_warehouse(pp, field1441) + field1454 = unwrapped_fields1451[3] + pretty_iceberg_locator_warehouse(pp, field1454) dedent!(pp) write(pp, ")") end @@ -4175,16 +4194,16 @@ function pretty_iceberg_locator(pp::PrettyPrinter, msg::Proto.IcebergLocator) end function pretty_iceberg_locator_table_name(pp::PrettyPrinter, msg::String) - flat1444 = try_flat(pp, msg, pretty_iceberg_locator_table_name) - if !isnothing(flat1444) - write(pp, flat1444) + flat1457 = try_flat(pp, msg, pretty_iceberg_locator_table_name) + if !isnothing(flat1457) + write(pp, flat1457) return nothing else - fields1443 = msg + fields1456 = msg write(pp, "(table_name") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1443)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1456)) dedent!(pp) write(pp, ")") end @@ -4192,22 +4211,22 @@ function pretty_iceberg_locator_table_name(pp::PrettyPrinter, msg::String) end function pretty_iceberg_locator_namespace(pp::PrettyPrinter, msg::Vector{String}) - flat1448 = try_flat(pp, msg, pretty_iceberg_locator_namespace) - if !isnothing(flat1448) - write(pp, flat1448) + flat1461 = try_flat(pp, msg, pretty_iceberg_locator_namespace) + if !isnothing(flat1461) + write(pp, flat1461) return nothing else - fields1445 = msg + fields1458 = msg write(pp, "(namespace") indent_sexp!(pp) - if !isempty(fields1445) + if !isempty(fields1458) newline(pp) - for (i1745, elem1446) in enumerate(fields1445) - i1447 = i1745 - 1 - if (i1447 > 0) + for (i1767, elem1459) in enumerate(fields1458) + i1460 = i1767 - 1 + if (i1460 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1446)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1459)) end end dedent!(pp) @@ -4217,16 +4236,16 @@ function pretty_iceberg_locator_namespace(pp::PrettyPrinter, msg::Vector{String} end function pretty_iceberg_locator_warehouse(pp::PrettyPrinter, msg::String) - flat1450 = try_flat(pp, msg, pretty_iceberg_locator_warehouse) - if !isnothing(flat1450) - write(pp, flat1450) + flat1463 = try_flat(pp, msg, pretty_iceberg_locator_warehouse) + if !isnothing(flat1463) + write(pp, flat1463) return nothing else - fields1449 = msg + fields1462 = msg write(pp, "(warehouse") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1449)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1462)) dedent!(pp) write(pp, ")") end @@ -4234,32 +4253,32 @@ function pretty_iceberg_locator_warehouse(pp::PrettyPrinter, msg::String) end function pretty_iceberg_catalog_config(pp::PrettyPrinter, msg::Proto.IcebergCatalogConfig) - flat1458 = try_flat(pp, msg, pretty_iceberg_catalog_config) - if !isnothing(flat1458) - write(pp, flat1458) + flat1471 = try_flat(pp, msg, pretty_iceberg_catalog_config) + if !isnothing(flat1471) + write(pp, flat1471) return nothing else _dollar_dollar = msg - _t1746 = deconstruct_iceberg_catalog_config_scope_optional(pp, _dollar_dollar) - fields1451 = (_dollar_dollar.catalog_uri, _t1746, sort([(k, v) for (k, v) in _dollar_dollar.properties]), sort([(k, v) for (k, v) in _dollar_dollar.auth_properties]),) - unwrapped_fields1452 = fields1451 + _t1768 = deconstruct_iceberg_catalog_config_scope_optional(pp, _dollar_dollar) + fields1464 = (_dollar_dollar.catalog_uri, _t1768, sort([(k, v) for (k, v) in _dollar_dollar.properties]), sort([(k, v) for (k, v) in _dollar_dollar.auth_properties]),) + unwrapped_fields1465 = fields1464 write(pp, "(iceberg_catalog_config") indent_sexp!(pp) newline(pp) - field1453 = unwrapped_fields1452[1] - pretty_iceberg_catalog_uri(pp, field1453) - field1454 = unwrapped_fields1452[2] - if !isnothing(field1454) + field1466 = unwrapped_fields1465[1] + pretty_iceberg_catalog_uri(pp, field1466) + field1467 = unwrapped_fields1465[2] + if !isnothing(field1467) newline(pp) - opt_val1455 = field1454 - pretty_iceberg_catalog_config_scope(pp, opt_val1455) + opt_val1468 = field1467 + pretty_iceberg_catalog_config_scope(pp, opt_val1468) end newline(pp) - field1456 = unwrapped_fields1452[3] - pretty_iceberg_properties(pp, field1456) + field1469 = unwrapped_fields1465[3] + pretty_iceberg_properties(pp, field1469) newline(pp) - field1457 = unwrapped_fields1452[4] - pretty_iceberg_auth_properties(pp, field1457) + field1470 = unwrapped_fields1465[4] + pretty_iceberg_auth_properties(pp, field1470) dedent!(pp) write(pp, ")") end @@ -4267,16 +4286,16 @@ function pretty_iceberg_catalog_config(pp::PrettyPrinter, msg::Proto.IcebergCata end function pretty_iceberg_catalog_uri(pp::PrettyPrinter, msg::String) - flat1460 = try_flat(pp, msg, pretty_iceberg_catalog_uri) - if !isnothing(flat1460) - write(pp, flat1460) + flat1473 = try_flat(pp, msg, pretty_iceberg_catalog_uri) + if !isnothing(flat1473) + write(pp, flat1473) return nothing else - fields1459 = msg + fields1472 = msg write(pp, "(catalog_uri") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1459)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1472)) dedent!(pp) write(pp, ")") end @@ -4284,16 +4303,16 @@ function pretty_iceberg_catalog_uri(pp::PrettyPrinter, msg::String) end function pretty_iceberg_catalog_config_scope(pp::PrettyPrinter, msg::String) - flat1462 = try_flat(pp, msg, pretty_iceberg_catalog_config_scope) - if !isnothing(flat1462) - write(pp, flat1462) + flat1475 = try_flat(pp, msg, pretty_iceberg_catalog_config_scope) + if !isnothing(flat1475) + write(pp, flat1475) return nothing else - fields1461 = msg + fields1474 = msg write(pp, "(scope") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1461)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1474)) dedent!(pp) write(pp, ")") end @@ -4301,22 +4320,22 @@ function pretty_iceberg_catalog_config_scope(pp::PrettyPrinter, msg::String) end function pretty_iceberg_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) - flat1466 = try_flat(pp, msg, pretty_iceberg_properties) - if !isnothing(flat1466) - write(pp, flat1466) + flat1479 = try_flat(pp, msg, pretty_iceberg_properties) + if !isnothing(flat1479) + write(pp, flat1479) return nothing else - fields1463 = msg + fields1476 = msg write(pp, "(properties") indent_sexp!(pp) - if !isempty(fields1463) + if !isempty(fields1476) newline(pp) - for (i1747, elem1464) in enumerate(fields1463) - i1465 = i1747 - 1 - if (i1465 > 0) + for (i1769, elem1477) in enumerate(fields1476) + i1478 = i1769 - 1 + if (i1478 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1464) + pretty_iceberg_property_entry(pp, elem1477) end end dedent!(pp) @@ -4326,22 +4345,22 @@ function pretty_iceberg_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, end function pretty_iceberg_property_entry(pp::PrettyPrinter, msg::Tuple{String, String}) - flat1471 = try_flat(pp, msg, pretty_iceberg_property_entry) - if !isnothing(flat1471) - write(pp, flat1471) + flat1484 = try_flat(pp, msg, pretty_iceberg_property_entry) + if !isnothing(flat1484) + write(pp, flat1484) return nothing else _dollar_dollar = msg - fields1467 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields1468 = fields1467 + fields1480 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields1481 = fields1480 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1469 = unwrapped_fields1468[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1469)) + field1482 = unwrapped_fields1481[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1482)) newline(pp) - field1470 = unwrapped_fields1468[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1470)) + field1483 = unwrapped_fields1481[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1483)) dedent!(pp) write(pp, ")") end @@ -4349,22 +4368,22 @@ function pretty_iceberg_property_entry(pp::PrettyPrinter, msg::Tuple{String, Str end function pretty_iceberg_auth_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) - flat1475 = try_flat(pp, msg, pretty_iceberg_auth_properties) - if !isnothing(flat1475) - write(pp, flat1475) + flat1488 = try_flat(pp, msg, pretty_iceberg_auth_properties) + if !isnothing(flat1488) + write(pp, flat1488) return nothing else - fields1472 = msg + fields1485 = msg write(pp, "(auth_properties") indent_sexp!(pp) - if !isempty(fields1472) + if !isempty(fields1485) newline(pp) - for (i1748, elem1473) in enumerate(fields1472) - i1474 = i1748 - 1 - if (i1474 > 0) + for (i1770, elem1486) in enumerate(fields1485) + i1487 = i1770 - 1 + if (i1487 > 0) newline(pp) end - pretty_iceberg_masked_property_entry(pp, elem1473) + pretty_iceberg_masked_property_entry(pp, elem1486) end end dedent!(pp) @@ -4374,23 +4393,54 @@ function pretty_iceberg_auth_properties(pp::PrettyPrinter, msg::Vector{Tuple{Str end function pretty_iceberg_masked_property_entry(pp::PrettyPrinter, msg::Tuple{String, String}) - flat1480 = try_flat(pp, msg, pretty_iceberg_masked_property_entry) - if !isnothing(flat1480) - write(pp, flat1480) + flat1493 = try_flat(pp, msg, pretty_iceberg_masked_property_entry) + if !isnothing(flat1493) + write(pp, flat1493) return nothing else _dollar_dollar = msg - _t1749 = mask_secret_value(pp, _dollar_dollar) - fields1476 = (_dollar_dollar[1], _t1749,) - unwrapped_fields1477 = fields1476 + _t1771 = mask_secret_value(pp, _dollar_dollar) + fields1489 = (_dollar_dollar[1], _t1771,) + unwrapped_fields1490 = fields1489 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1478 = unwrapped_fields1477[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1478)) + field1491 = unwrapped_fields1490[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1491)) newline(pp) - field1479 = unwrapped_fields1477[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1479)) + field1492 = unwrapped_fields1490[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1492)) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_full_table(pp::PrettyPrinter, msg::Proto.IcebergTarget) + flat1500 = try_flat(pp, msg, pretty_full_table) + if !isnothing(flat1500) + write(pp, flat1500) + return nothing + else + _dollar_dollar = msg + fields1494 = (_dollar_dollar.target_id, _dollar_dollar.types,) + unwrapped_fields1495 = fields1494 + write(pp, "(full_table") + indent_sexp!(pp) + newline(pp) + field1496 = unwrapped_fields1495[1] + pretty_relation_id(pp, field1496) + newline(pp) + write(pp, "[") + field1497 = unwrapped_fields1495[2] + for (i1772, elem1498) in enumerate(field1497) + i1499 = i1772 - 1 + if (i1499 > 0) + newline(pp) + end + pretty_type(pp, elem1498) + end + write(pp, "]") dedent!(pp) write(pp, ")") end @@ -4398,16 +4448,16 @@ function pretty_iceberg_masked_property_entry(pp::PrettyPrinter, msg::Tuple{Stri end function pretty_iceberg_from_snapshot(pp::PrettyPrinter, msg::String) - flat1482 = try_flat(pp, msg, pretty_iceberg_from_snapshot) - if !isnothing(flat1482) - write(pp, flat1482) + flat1502 = try_flat(pp, msg, pretty_iceberg_from_snapshot) + if !isnothing(flat1502) + write(pp, flat1502) return nothing else - fields1481 = msg + fields1501 = msg write(pp, "(from_snapshot") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1481)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1501)) dedent!(pp) write(pp, ")") end @@ -4415,16 +4465,16 @@ function pretty_iceberg_from_snapshot(pp::PrettyPrinter, msg::String) end function pretty_iceberg_to_snapshot(pp::PrettyPrinter, msg::String) - flat1484 = try_flat(pp, msg, pretty_iceberg_to_snapshot) - if !isnothing(flat1484) - write(pp, flat1484) + flat1504 = try_flat(pp, msg, pretty_iceberg_to_snapshot) + if !isnothing(flat1504) + write(pp, flat1504) return nothing else - fields1483 = msg + fields1503 = msg write(pp, "(to_snapshot") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1483)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1503)) dedent!(pp) write(pp, ")") end @@ -4432,18 +4482,18 @@ function pretty_iceberg_to_snapshot(pp::PrettyPrinter, msg::String) end function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) - flat1487 = try_flat(pp, msg, pretty_undefine) - if !isnothing(flat1487) - write(pp, flat1487) + flat1507 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1507) + write(pp, flat1507) return nothing else _dollar_dollar = msg - fields1485 = _dollar_dollar.fragment_id - unwrapped_fields1486 = fields1485 + fields1505 = _dollar_dollar.fragment_id + unwrapped_fields1506 = fields1505 write(pp, "(undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1486) + pretty_fragment_id(pp, unwrapped_fields1506) dedent!(pp) write(pp, ")") end @@ -4451,24 +4501,24 @@ function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) end function pretty_context(pp::PrettyPrinter, msg::Proto.Context) - flat1492 = try_flat(pp, msg, pretty_context) - if !isnothing(flat1492) - write(pp, flat1492) + flat1512 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1512) + write(pp, flat1512) return nothing else _dollar_dollar = msg - fields1488 = _dollar_dollar.relations - unwrapped_fields1489 = fields1488 + fields1508 = _dollar_dollar.relations + unwrapped_fields1509 = fields1508 write(pp, "(context") indent_sexp!(pp) - if !isempty(unwrapped_fields1489) + if !isempty(unwrapped_fields1509) newline(pp) - for (i1750, elem1490) in enumerate(unwrapped_fields1489) - i1491 = i1750 - 1 - if (i1491 > 0) + for (i1773, elem1510) in enumerate(unwrapped_fields1509) + i1511 = i1773 - 1 + if (i1511 > 0) newline(pp) end - pretty_relation_id(pp, elem1490) + pretty_relation_id(pp, elem1510) end end dedent!(pp) @@ -4478,28 +4528,28 @@ function pretty_context(pp::PrettyPrinter, msg::Proto.Context) end function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) - flat1499 = try_flat(pp, msg, pretty_snapshot) - if !isnothing(flat1499) - write(pp, flat1499) + flat1519 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1519) + write(pp, flat1519) return nothing else _dollar_dollar = msg - fields1493 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - unwrapped_fields1494 = fields1493 + fields1513 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + unwrapped_fields1514 = fields1513 write(pp, "(snapshot") indent_sexp!(pp) newline(pp) - field1495 = unwrapped_fields1494[1] - pretty_edb_path(pp, field1495) - field1496 = unwrapped_fields1494[2] - if !isempty(field1496) + field1515 = unwrapped_fields1514[1] + pretty_edb_path(pp, field1515) + field1516 = unwrapped_fields1514[2] + if !isempty(field1516) newline(pp) - for (i1751, elem1497) in enumerate(field1496) - i1498 = i1751 - 1 - if (i1498 > 0) + for (i1774, elem1517) in enumerate(field1516) + i1518 = i1774 - 1 + if (i1518 > 0) newline(pp) end - pretty_snapshot_mapping(pp, elem1497) + pretty_snapshot_mapping(pp, elem1517) end end dedent!(pp) @@ -4509,40 +4559,40 @@ function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) end function pretty_snapshot_mapping(pp::PrettyPrinter, msg::Proto.SnapshotMapping) - flat1504 = try_flat(pp, msg, pretty_snapshot_mapping) - if !isnothing(flat1504) - write(pp, flat1504) + flat1524 = try_flat(pp, msg, pretty_snapshot_mapping) + if !isnothing(flat1524) + write(pp, flat1524) return nothing else _dollar_dollar = msg - fields1500 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - unwrapped_fields1501 = fields1500 - field1502 = unwrapped_fields1501[1] - pretty_edb_path(pp, field1502) + fields1520 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + unwrapped_fields1521 = fields1520 + field1522 = unwrapped_fields1521[1] + pretty_edb_path(pp, field1522) write(pp, " ") - field1503 = unwrapped_fields1501[2] - pretty_relation_id(pp, field1503) + field1523 = unwrapped_fields1521[2] + pretty_relation_id(pp, field1523) end return nothing end function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) - flat1508 = try_flat(pp, msg, pretty_epoch_reads) - if !isnothing(flat1508) - write(pp, flat1508) + flat1528 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1528) + write(pp, flat1528) return nothing else - fields1505 = msg + fields1525 = msg write(pp, "(reads") indent_sexp!(pp) - if !isempty(fields1505) + if !isempty(fields1525) newline(pp) - for (i1752, elem1506) in enumerate(fields1505) - i1507 = i1752 - 1 - if (i1507 > 0) + for (i1775, elem1526) in enumerate(fields1525) + i1527 = i1775 - 1 + if (i1527 > 0) newline(pp) end - pretty_read(pp, elem1506) + pretty_read(pp, elem1526) end end dedent!(pp) @@ -4552,65 +4602,65 @@ function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) end function pretty_read(pp::PrettyPrinter, msg::Proto.Read) - flat1519 = try_flat(pp, msg, pretty_read) - if !isnothing(flat1519) - write(pp, flat1519) + flat1539 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1539) + write(pp, flat1539) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1753 = _get_oneof_field(_dollar_dollar, :demand) + _t1776 = _get_oneof_field(_dollar_dollar, :demand) else - _t1753 = nothing + _t1776 = nothing end - deconstruct_result1517 = _t1753 - if !isnothing(deconstruct_result1517) - unwrapped1518 = deconstruct_result1517 - pretty_demand(pp, unwrapped1518) + deconstruct_result1537 = _t1776 + if !isnothing(deconstruct_result1537) + unwrapped1538 = deconstruct_result1537 + pretty_demand(pp, unwrapped1538) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1754 = _get_oneof_field(_dollar_dollar, :output) + _t1777 = _get_oneof_field(_dollar_dollar, :output) else - _t1754 = nothing + _t1777 = nothing end - deconstruct_result1515 = _t1754 - if !isnothing(deconstruct_result1515) - unwrapped1516 = deconstruct_result1515 - pretty_output(pp, unwrapped1516) + deconstruct_result1535 = _t1777 + if !isnothing(deconstruct_result1535) + unwrapped1536 = deconstruct_result1535 + pretty_output(pp, unwrapped1536) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1755 = _get_oneof_field(_dollar_dollar, :what_if) + _t1778 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1755 = nothing + _t1778 = nothing end - deconstruct_result1513 = _t1755 - if !isnothing(deconstruct_result1513) - unwrapped1514 = deconstruct_result1513 - pretty_what_if(pp, unwrapped1514) + deconstruct_result1533 = _t1778 + if !isnothing(deconstruct_result1533) + unwrapped1534 = deconstruct_result1533 + pretty_what_if(pp, unwrapped1534) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1756 = _get_oneof_field(_dollar_dollar, :abort) + _t1779 = _get_oneof_field(_dollar_dollar, :abort) else - _t1756 = nothing + _t1779 = nothing end - deconstruct_result1511 = _t1756 - if !isnothing(deconstruct_result1511) - unwrapped1512 = deconstruct_result1511 - pretty_abort(pp, unwrapped1512) + deconstruct_result1531 = _t1779 + if !isnothing(deconstruct_result1531) + unwrapped1532 = deconstruct_result1531 + pretty_abort(pp, unwrapped1532) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1757 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1780 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1757 = nothing + _t1780 = nothing end - deconstruct_result1509 = _t1757 - if !isnothing(deconstruct_result1509) - unwrapped1510 = deconstruct_result1509 - pretty_export(pp, unwrapped1510) + deconstruct_result1529 = _t1780 + if !isnothing(deconstruct_result1529) + unwrapped1530 = deconstruct_result1529 + pretty_export(pp, unwrapped1530) else throw(ParseError("No matching rule for read")) end @@ -4623,18 +4673,18 @@ function pretty_read(pp::PrettyPrinter, msg::Proto.Read) end function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) - flat1522 = try_flat(pp, msg, pretty_demand) - if !isnothing(flat1522) - write(pp, flat1522) + flat1542 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1542) + write(pp, flat1542) return nothing else _dollar_dollar = msg - fields1520 = _dollar_dollar.relation_id - unwrapped_fields1521 = fields1520 + fields1540 = _dollar_dollar.relation_id + unwrapped_fields1541 = fields1540 write(pp, "(demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1521) + pretty_relation_id(pp, unwrapped_fields1541) dedent!(pp) write(pp, ")") end @@ -4642,22 +4692,22 @@ function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) end function pretty_output(pp::PrettyPrinter, msg::Proto.Output) - flat1527 = try_flat(pp, msg, pretty_output) - if !isnothing(flat1527) - write(pp, flat1527) + flat1547 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1547) + write(pp, flat1547) return nothing else _dollar_dollar = msg - fields1523 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - unwrapped_fields1524 = fields1523 + fields1543 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + unwrapped_fields1544 = fields1543 write(pp, "(output") indent_sexp!(pp) newline(pp) - field1525 = unwrapped_fields1524[1] - pretty_name(pp, field1525) + field1545 = unwrapped_fields1544[1] + pretty_name(pp, field1545) newline(pp) - field1526 = unwrapped_fields1524[2] - pretty_relation_id(pp, field1526) + field1546 = unwrapped_fields1544[2] + pretty_relation_id(pp, field1546) dedent!(pp) write(pp, ")") end @@ -4665,22 +4715,22 @@ function pretty_output(pp::PrettyPrinter, msg::Proto.Output) end function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) - flat1532 = try_flat(pp, msg, pretty_what_if) - if !isnothing(flat1532) - write(pp, flat1532) + flat1552 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1552) + write(pp, flat1552) return nothing else _dollar_dollar = msg - fields1528 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - unwrapped_fields1529 = fields1528 + fields1548 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + unwrapped_fields1549 = fields1548 write(pp, "(what_if") indent_sexp!(pp) newline(pp) - field1530 = unwrapped_fields1529[1] - pretty_name(pp, field1530) + field1550 = unwrapped_fields1549[1] + pretty_name(pp, field1550) newline(pp) - field1531 = unwrapped_fields1529[2] - pretty_epoch(pp, field1531) + field1551 = unwrapped_fields1549[2] + pretty_epoch(pp, field1551) dedent!(pp) write(pp, ")") end @@ -4688,30 +4738,30 @@ function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) end function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) - flat1538 = try_flat(pp, msg, pretty_abort) - if !isnothing(flat1538) - write(pp, flat1538) + flat1558 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1558) + write(pp, flat1558) return nothing else _dollar_dollar = msg if _dollar_dollar.name != "abort" - _t1758 = _dollar_dollar.name + _t1781 = _dollar_dollar.name else - _t1758 = nothing + _t1781 = nothing end - fields1533 = (_t1758, _dollar_dollar.relation_id,) - unwrapped_fields1534 = fields1533 + fields1553 = (_t1781, _dollar_dollar.relation_id,) + unwrapped_fields1554 = fields1553 write(pp, "(abort") indent_sexp!(pp) - field1535 = unwrapped_fields1534[1] - if !isnothing(field1535) + field1555 = unwrapped_fields1554[1] + if !isnothing(field1555) newline(pp) - opt_val1536 = field1535 - pretty_name(pp, opt_val1536) + opt_val1556 = field1555 + pretty_name(pp, opt_val1556) end newline(pp) - field1537 = unwrapped_fields1534[2] - pretty_relation_id(pp, field1537) + field1557 = unwrapped_fields1554[2] + pretty_relation_id(pp, field1557) dedent!(pp) write(pp, ")") end @@ -4719,40 +4769,40 @@ function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) end function pretty_export(pp::PrettyPrinter, msg::Proto.Export) - flat1543 = try_flat(pp, msg, pretty_export) - if !isnothing(flat1543) - write(pp, flat1543) + flat1563 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1563) + write(pp, flat1563) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_config")) - _t1759 = _get_oneof_field(_dollar_dollar, :csv_config) + _t1782 = _get_oneof_field(_dollar_dollar, :csv_config) else - _t1759 = nothing + _t1782 = nothing end - deconstruct_result1541 = _t1759 - if !isnothing(deconstruct_result1541) - unwrapped1542 = deconstruct_result1541 + deconstruct_result1561 = _t1782 + if !isnothing(deconstruct_result1561) + unwrapped1562 = deconstruct_result1561 write(pp, "(export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped1542) + pretty_export_csv_config(pp, unwrapped1562) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("iceberg_config")) - _t1760 = _get_oneof_field(_dollar_dollar, :iceberg_config) + _t1783 = _get_oneof_field(_dollar_dollar, :iceberg_config) else - _t1760 = nothing + _t1783 = nothing end - deconstruct_result1539 = _t1760 - if !isnothing(deconstruct_result1539) - unwrapped1540 = deconstruct_result1539 + deconstruct_result1559 = _t1783 + if !isnothing(deconstruct_result1559) + unwrapped1560 = deconstruct_result1559 write(pp, "(export_iceberg") indent_sexp!(pp) newline(pp) - pretty_export_iceberg_config(pp, unwrapped1540) + pretty_export_iceberg_config(pp, unwrapped1560) dedent!(pp) write(pp, ")") else @@ -4764,55 +4814,55 @@ function pretty_export(pp::PrettyPrinter, msg::Proto.Export) end function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) - flat1554 = try_flat(pp, msg, pretty_export_csv_config) - if !isnothing(flat1554) - write(pp, flat1554) + flat1574 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1574) + write(pp, flat1574) return nothing else _dollar_dollar = msg if length(_dollar_dollar.data_columns) == 0 - _t1761 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1784 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else - _t1761 = nothing + _t1784 = nothing end - deconstruct_result1549 = _t1761 - if !isnothing(deconstruct_result1549) - unwrapped1550 = deconstruct_result1549 + deconstruct_result1569 = _t1784 + if !isnothing(deconstruct_result1569) + unwrapped1570 = deconstruct_result1569 write(pp, "(export_csv_config_v2") indent_sexp!(pp) newline(pp) - field1551 = unwrapped1550[1] - pretty_export_csv_path(pp, field1551) + field1571 = unwrapped1570[1] + pretty_export_csv_path(pp, field1571) newline(pp) - field1552 = unwrapped1550[2] - pretty_export_csv_source(pp, field1552) + field1572 = unwrapped1570[2] + pretty_export_csv_source(pp, field1572) newline(pp) - field1553 = unwrapped1550[3] - pretty_csv_config(pp, field1553) + field1573 = unwrapped1570[3] + pretty_csv_config(pp, field1573) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if length(_dollar_dollar.data_columns) != 0 - _t1763 = deconstruct_export_csv_config(pp, _dollar_dollar) - _t1762 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1763,) + _t1786 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1785 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1786,) else - _t1762 = nothing + _t1785 = nothing end - deconstruct_result1544 = _t1762 - if !isnothing(deconstruct_result1544) - unwrapped1545 = deconstruct_result1544 + deconstruct_result1564 = _t1785 + if !isnothing(deconstruct_result1564) + unwrapped1565 = deconstruct_result1564 write(pp, "(export_csv_config") indent_sexp!(pp) newline(pp) - field1546 = unwrapped1545[1] - pretty_export_csv_path(pp, field1546) + field1566 = unwrapped1565[1] + pretty_export_csv_path(pp, field1566) newline(pp) - field1547 = unwrapped1545[2] - pretty_export_csv_columns_list(pp, field1547) + field1567 = unwrapped1565[2] + pretty_export_csv_columns_list(pp, field1567) newline(pp) - field1548 = unwrapped1545[3] - pretty_config_dict(pp, field1548) + field1568 = unwrapped1565[3] + pretty_config_dict(pp, field1568) dedent!(pp) write(pp, ")") else @@ -4824,16 +4874,16 @@ function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) end function pretty_export_csv_path(pp::PrettyPrinter, msg::String) - flat1556 = try_flat(pp, msg, pretty_export_csv_path) - if !isnothing(flat1556) - write(pp, flat1556) + flat1576 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1576) + write(pp, flat1576) return nothing else - fields1555 = msg + fields1575 = msg write(pp, "(path") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1555)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1575)) dedent!(pp) write(pp, ")") end @@ -4841,30 +4891,30 @@ function pretty_export_csv_path(pp::PrettyPrinter, msg::String) end function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) - flat1563 = try_flat(pp, msg, pretty_export_csv_source) - if !isnothing(flat1563) - write(pp, flat1563) + flat1583 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1583) + write(pp, flat1583) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) - _t1764 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + _t1787 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns else - _t1764 = nothing + _t1787 = nothing end - deconstruct_result1559 = _t1764 - if !isnothing(deconstruct_result1559) - unwrapped1560 = deconstruct_result1559 + deconstruct_result1579 = _t1787 + if !isnothing(deconstruct_result1579) + unwrapped1580 = deconstruct_result1579 write(pp, "(gnf_columns") indent_sexp!(pp) - if !isempty(unwrapped1560) + if !isempty(unwrapped1580) newline(pp) - for (i1765, elem1561) in enumerate(unwrapped1560) - i1562 = i1765 - 1 - if (i1562 > 0) + for (i1788, elem1581) in enumerate(unwrapped1580) + i1582 = i1788 - 1 + if (i1582 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1561) + pretty_export_csv_column(pp, elem1581) end end dedent!(pp) @@ -4872,17 +4922,17 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("table_def")) - _t1766 = _get_oneof_field(_dollar_dollar, :table_def) + _t1789 = _get_oneof_field(_dollar_dollar, :table_def) else - _t1766 = nothing + _t1789 = nothing end - deconstruct_result1557 = _t1766 - if !isnothing(deconstruct_result1557) - unwrapped1558 = deconstruct_result1557 + deconstruct_result1577 = _t1789 + if !isnothing(deconstruct_result1577) + unwrapped1578 = deconstruct_result1577 write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped1558) + pretty_relation_id(pp, unwrapped1578) dedent!(pp) write(pp, ")") else @@ -4894,22 +4944,22 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) end function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) - flat1568 = try_flat(pp, msg, pretty_export_csv_column) - if !isnothing(flat1568) - write(pp, flat1568) + flat1588 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1588) + write(pp, flat1588) return nothing else _dollar_dollar = msg - fields1564 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - unwrapped_fields1565 = fields1564 + fields1584 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + unwrapped_fields1585 = fields1584 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1566 = unwrapped_fields1565[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1566)) + field1586 = unwrapped_fields1585[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1586)) newline(pp) - field1567 = unwrapped_fields1565[2] - pretty_relation_id(pp, field1567) + field1587 = unwrapped_fields1585[2] + pretty_relation_id(pp, field1587) dedent!(pp) write(pp, ")") end @@ -4917,22 +4967,22 @@ function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) end function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) - flat1572 = try_flat(pp, msg, pretty_export_csv_columns_list) - if !isnothing(flat1572) - write(pp, flat1572) + flat1592 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1592) + write(pp, flat1592) return nothing else - fields1569 = msg + fields1589 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1569) + if !isempty(fields1589) newline(pp) - for (i1767, elem1570) in enumerate(fields1569) - i1571 = i1767 - 1 - if (i1571 > 0) + for (i1790, elem1590) in enumerate(fields1589) + i1591 = i1790 - 1 + if (i1591 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1570) + pretty_export_csv_column(pp, elem1590) end end dedent!(pp) @@ -4942,34 +4992,34 @@ function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.Exp end function pretty_export_iceberg_config(pp::PrettyPrinter, msg::Proto.ExportIcebergConfig) - flat1581 = try_flat(pp, msg, pretty_export_iceberg_config) - if !isnothing(flat1581) - write(pp, flat1581) + flat1601 = try_flat(pp, msg, pretty_export_iceberg_config) + if !isnothing(flat1601) + write(pp, flat1601) return nothing else _dollar_dollar = msg - _t1768 = deconstruct_export_iceberg_config_optional(pp, _dollar_dollar) - fields1573 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sort([(k, v) for (k, v) in _dollar_dollar.table_properties]), _t1768,) - unwrapped_fields1574 = fields1573 + _t1791 = deconstruct_export_iceberg_config_optional(pp, _dollar_dollar) + fields1593 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sort([(k, v) for (k, v) in _dollar_dollar.table_properties]), _t1791,) + unwrapped_fields1594 = fields1593 write(pp, "(export_iceberg_config") indent_sexp!(pp) newline(pp) - field1575 = unwrapped_fields1574[1] - pretty_iceberg_locator(pp, field1575) + field1595 = unwrapped_fields1594[1] + pretty_iceberg_locator(pp, field1595) newline(pp) - field1576 = unwrapped_fields1574[2] - pretty_iceberg_catalog_config(pp, field1576) + field1596 = unwrapped_fields1594[2] + pretty_iceberg_catalog_config(pp, field1596) newline(pp) - field1577 = unwrapped_fields1574[3] - pretty_export_iceberg_table_def(pp, field1577) + field1597 = unwrapped_fields1594[3] + pretty_export_iceberg_table_def(pp, field1597) newline(pp) - field1578 = unwrapped_fields1574[4] - pretty_iceberg_table_properties(pp, field1578) - field1579 = unwrapped_fields1574[5] - if !isnothing(field1579) + field1598 = unwrapped_fields1594[4] + pretty_iceberg_table_properties(pp, field1598) + field1599 = unwrapped_fields1594[5] + if !isnothing(field1599) newline(pp) - opt_val1580 = field1579 - pretty_config_dict(pp, opt_val1580) + opt_val1600 = field1599 + pretty_config_dict(pp, opt_val1600) end dedent!(pp) write(pp, ")") @@ -4978,16 +5028,16 @@ function pretty_export_iceberg_config(pp::PrettyPrinter, msg::Proto.ExportIceber end function pretty_export_iceberg_table_def(pp::PrettyPrinter, msg::Proto.RelationId) - flat1583 = try_flat(pp, msg, pretty_export_iceberg_table_def) - if !isnothing(flat1583) - write(pp, flat1583) + flat1603 = try_flat(pp, msg, pretty_export_iceberg_table_def) + if !isnothing(flat1603) + write(pp, flat1603) return nothing else - fields1582 = msg + fields1602 = msg write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, fields1582) + pretty_relation_id(pp, fields1602) dedent!(pp) write(pp, ")") end @@ -4995,22 +5045,22 @@ function pretty_export_iceberg_table_def(pp::PrettyPrinter, msg::Proto.RelationI end function pretty_iceberg_table_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) - flat1587 = try_flat(pp, msg, pretty_iceberg_table_properties) - if !isnothing(flat1587) - write(pp, flat1587) + flat1607 = try_flat(pp, msg, pretty_iceberg_table_properties) + if !isnothing(flat1607) + write(pp, flat1607) return nothing else - fields1584 = msg + fields1604 = msg write(pp, "(table_properties") indent_sexp!(pp) - if !isempty(fields1584) + if !isempty(fields1604) newline(pp) - for (i1769, elem1585) in enumerate(fields1584) - i1586 = i1769 - 1 - if (i1586 > 0) + for (i1792, elem1605) in enumerate(fields1604) + i1606 = i1792 - 1 + if (i1606 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1585) + pretty_iceberg_property_entry(pp, elem1605) end end dedent!(pp) @@ -5025,12 +5075,12 @@ end function pretty_debug_info(pp::PrettyPrinter, msg::Proto.DebugInfo) write(pp, "(debug_info") indent_sexp!(pp) - for (i1815, _rid) in enumerate(msg.ids) - _idx = i1815 - 1 + for (i1838, _rid) in enumerate(msg.ids) + _idx = i1838 - 1 newline(pp) write(pp, "(") - _t1816 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1816) + _t1839 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1839) write(pp, " ") write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -5102,8 +5152,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe _pprint_dispatch(pp, msg.guard) newline(pp) write(pp, ":keys (") - for (i1817, _elem) in enumerate(msg.keys) - _idx = i1817 - 1 + for (i1840, _elem) in enumerate(msg.keys) + _idx = i1840 - 1 if (_idx > 0) write(pp, " ") end @@ -5112,8 +5162,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe write(pp, ")") newline(pp) write(pp, ":values (") - for (i1818, _elem) in enumerate(msg.values) - _idx = i1818 - 1 + for (i1841, _elem) in enumerate(msg.values) + _idx = i1841 - 1 if (_idx > 0) write(pp, " ") end @@ -5144,8 +5194,8 @@ function pretty_export_csv_columns(pp::PrettyPrinter, msg::Proto.ExportCSVColumn indent_sexp!(pp) newline(pp) write(pp, ":columns (") - for (i1819, _elem) in enumerate(msg.columns) - _idx = i1819 - 1 + for (i1842, _elem) in enumerate(msg.columns) + _idx = i1842 - 1 if (_idx > 0) write(pp, " ") end @@ -5279,6 +5329,7 @@ _pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergLocator) = pretty_iceberg_lo _pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergCatalogConfig) = pretty_iceberg_catalog_config(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Vector{Tuple{String, String}}) = pretty_iceberg_properties(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Tuple{String, String}) = pretty_iceberg_property_entry(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergTarget) = pretty_full_table(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Undefine) = pretty_undefine(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Context) = pretty_context(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Snapshot) = pretty_snapshot(pp, x) diff --git a/sdks/python/src/lqp/gen/parser.py b/sdks/python/src/lqp/gen/parser.py index cf201196..2824baa9 100644 --- a/sdks/python/src/lqp/gen/parser.py +++ b/sdks/python/src/lqp/gen/parser.py @@ -424,179 +424,179 @@ def relation_id_to_uint128(self, msg): def _extract_value_int32(self, value: logic_pb2.Value | None, default: int) -> int: if value is not None: assert value is not None - _t2081 = value.HasField("int32_value") + _t2103 = value.HasField("int32_value") else: - _t2081 = False - if _t2081: + _t2103 = False + if _t2103: assert value is not None return value.int32_value else: - _t2082 = None + _t2104 = None return int(default) def _extract_value_int64(self, value: logic_pb2.Value | None, default: int) -> int: if value is not None: assert value is not None - _t2083 = value.HasField("int_value") + _t2105 = value.HasField("int_value") else: - _t2083 = False - if _t2083: + _t2105 = False + if _t2105: assert value is not None return value.int_value else: - _t2084 = None + _t2106 = None return default def _extract_value_string(self, value: logic_pb2.Value | None, default: str) -> str: if value is not None: assert value is not None - _t2085 = value.HasField("string_value") + _t2107 = value.HasField("string_value") else: - _t2085 = False - if _t2085: + _t2107 = False + if _t2107: assert value is not None return value.string_value else: - _t2086 = None + _t2108 = None return default def _extract_value_boolean(self, value: logic_pb2.Value | None, default: bool) -> bool: if value is not None: assert value is not None - _t2087 = value.HasField("boolean_value") + _t2109 = value.HasField("boolean_value") else: - _t2087 = False - if _t2087: + _t2109 = False + if _t2109: assert value is not None return value.boolean_value else: - _t2088 = None + _t2110 = None return default def _extract_value_string_list(self, value: logic_pb2.Value | None, default: Sequence[str]) -> Sequence[str]: if value is not None: assert value is not None - _t2089 = value.HasField("string_value") + _t2111 = value.HasField("string_value") else: - _t2089 = False - if _t2089: + _t2111 = False + if _t2111: assert value is not None return [value.string_value] else: - _t2090 = None + _t2112 = None return default def _try_extract_value_int64(self, value: logic_pb2.Value | None) -> int | None: if value is not None: assert value is not None - _t2091 = value.HasField("int_value") + _t2113 = value.HasField("int_value") else: - _t2091 = False - if _t2091: + _t2113 = False + if _t2113: assert value is not None return value.int_value else: - _t2092 = None + _t2114 = None return None def _try_extract_value_float64(self, value: logic_pb2.Value | None) -> float | None: if value is not None: assert value is not None - _t2093 = value.HasField("float_value") + _t2115 = value.HasField("float_value") else: - _t2093 = False - if _t2093: + _t2115 = False + if _t2115: assert value is not None return value.float_value else: - _t2094 = None + _t2116 = None return None def _try_extract_value_bytes(self, value: logic_pb2.Value | None) -> bytes | None: if value is not None: assert value is not None - _t2095 = value.HasField("string_value") + _t2117 = value.HasField("string_value") else: - _t2095 = False - if _t2095: + _t2117 = False + if _t2117: assert value is not None return value.string_value.encode() else: - _t2096 = None + _t2118 = None return None def _try_extract_value_uint128(self, value: logic_pb2.Value | None) -> logic_pb2.UInt128Value | None: if value is not None: assert value is not None - _t2097 = value.HasField("uint128_value") + _t2119 = value.HasField("uint128_value") else: - _t2097 = False - if _t2097: + _t2119 = False + if _t2119: assert value is not None return value.uint128_value else: - _t2098 = None + _t2120 = None return None def construct_csv_config(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.CSVConfig: config = dict(config_dict) - _t2099 = self._extract_value_int32(config.get("csv_header_row"), 1) - header_row = _t2099 - _t2100 = self._extract_value_int64(config.get("csv_skip"), 0) - skip = _t2100 - _t2101 = self._extract_value_string(config.get("csv_new_line"), "") - new_line = _t2101 - _t2102 = self._extract_value_string(config.get("csv_delimiter"), ",") - delimiter = _t2102 - _t2103 = self._extract_value_string(config.get("csv_quotechar"), '"') - quotechar = _t2103 - _t2104 = self._extract_value_string(config.get("csv_escapechar"), '"') - escapechar = _t2104 - _t2105 = self._extract_value_string(config.get("csv_comment"), "") - comment = _t2105 - _t2106 = self._extract_value_string_list(config.get("csv_missing_strings"), []) - missing_strings = _t2106 - _t2107 = self._extract_value_string(config.get("csv_decimal_separator"), ".") - decimal_separator = _t2107 - _t2108 = self._extract_value_string(config.get("csv_encoding"), "utf-8") - encoding = _t2108 - _t2109 = self._extract_value_string(config.get("csv_compression"), "auto") - compression = _t2109 - _t2110 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) - partition_size_mb = _t2110 - _t2111 = logic_pb2.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) - return _t2111 + _t2121 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t2121 + _t2122 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t2122 + _t2123 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t2123 + _t2124 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t2124 + _t2125 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t2125 + _t2126 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t2126 + _t2127 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t2127 + _t2128 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t2128 + _t2129 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t2129 + _t2130 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t2130 + _t2131 = self._extract_value_string(config.get("csv_compression"), "auto") + compression = _t2131 + _t2132 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t2132 + _t2133 = logic_pb2.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) + return _t2133 def construct_betree_info(self, key_types: Sequence[logic_pb2.Type], value_types: Sequence[logic_pb2.Type], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.BeTreeInfo: config = dict(config_dict) - _t2112 = self._try_extract_value_float64(config.get("betree_config_epsilon")) - epsilon = _t2112 - _t2113 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) - max_pivots = _t2113 - _t2114 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) - max_deltas = _t2114 - _t2115 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) - max_leaf = _t2115 - _t2116 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t2116 - _t2117 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) - root_pageid = _t2117 - _t2118 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) - inline_data = _t2118 - _t2119 = self._try_extract_value_int64(config.get("betree_locator_element_count")) - element_count = _t2119 - _t2120 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) - tree_height = _t2120 - _t2121 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) - relation_locator = _t2121 - _t2122 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t2122 + _t2134 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t2134 + _t2135 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t2135 + _t2136 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t2136 + _t2137 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t2137 + _t2138 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2138 + _t2139 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t2139 + _t2140 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t2140 + _t2141 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t2141 + _t2142 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t2142 + _t2143 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t2143 + _t2144 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2144 def default_configure(self) -> transactions_pb2.Configure: - _t2123 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t2123 - _t2124 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) - return _t2124 + _t2145 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2145 + _t2146 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2146 def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.Configure: config = dict(config_dict) @@ -613,3362 +613,3394 @@ def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]] maintenance_level = transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL else: maintenance_level = transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t2125 = transactions_pb2.IVMConfig(level=maintenance_level) - ivm_config = _t2125 - _t2126 = self._extract_value_int64(config.get("semantics_version"), 0) - semantics_version = _t2126 - _t2127 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t2127 + _t2147 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t2147 + _t2148 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t2148 + _t2149 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t2149 def construct_export_csv_config(self, path: str, columns: Sequence[transactions_pb2.ExportCSVColumn], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.ExportCSVConfig: config = dict(config_dict) - _t2128 = self._extract_value_int64(config.get("partition_size"), 0) - partition_size = _t2128 - _t2129 = self._extract_value_string(config.get("compression"), "") - compression = _t2129 - _t2130 = self._extract_value_boolean(config.get("syntax_header_row"), True) - syntax_header_row = _t2130 - _t2131 = self._extract_value_string(config.get("syntax_missing_string"), "") - syntax_missing_string = _t2131 - _t2132 = self._extract_value_string(config.get("syntax_delim"), ",") - syntax_delim = _t2132 - _t2133 = self._extract_value_string(config.get("syntax_quotechar"), '"') - syntax_quotechar = _t2133 - _t2134 = self._extract_value_string(config.get("syntax_escapechar"), "\\") - syntax_escapechar = _t2134 - _t2135 = transactions_pb2.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) - return _t2135 + _t2150 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t2150 + _t2151 = self._extract_value_string(config.get("compression"), "") + compression = _t2151 + _t2152 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t2152 + _t2153 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t2153 + _t2154 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t2154 + _t2155 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t2155 + _t2156 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t2156 + _t2157 = transactions_pb2.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) + return _t2157 def construct_export_csv_config_with_source(self, path: str, csv_source: transactions_pb2.ExportCSVSource, csv_config: logic_pb2.CSVConfig) -> transactions_pb2.ExportCSVConfig: - _t2136 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) - return _t2136 + _t2158 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t2158 def construct_iceberg_catalog_config(self, catalog_uri: str, scope_opt: str | None, property_pairs: Sequence[tuple[str, str]], auth_property_pairs: Sequence[tuple[str, str]]) -> logic_pb2.IcebergCatalogConfig: props = dict(property_pairs) auth_props = dict(auth_property_pairs) - _t2137 = logic_pb2.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(scope_opt if scope_opt is not None else ""), properties=props, auth_properties=auth_props) - return _t2137 + _t2159 = logic_pb2.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(scope_opt if scope_opt is not None else ""), properties=props, auth_properties=auth_props) + return _t2159 - def construct_iceberg_data(self, locator: logic_pb2.IcebergLocator, config: logic_pb2.IcebergCatalogConfig, columns: Sequence[logic_pb2.GNFColumn], from_snapshot_opt: str | None, to_snapshot_opt: str | None, returns_delta: bool) -> logic_pb2.IcebergData: - _t2138 = logic_pb2.IcebergData(locator=locator, config=config, columns=columns, from_snapshot=(from_snapshot_opt if from_snapshot_opt is not None else ""), to_snapshot=(to_snapshot_opt if to_snapshot_opt is not None else ""), returns_delta=returns_delta) - return _t2138 + def construct_iceberg_data(self, locator: logic_pb2.IcebergLocator, config: logic_pb2.IcebergCatalogConfig, columns_opt: Sequence[logic_pb2.GNFColumn] | None, target_opt: logic_pb2.IcebergTarget | None, from_snapshot_opt: str | None, to_snapshot_opt: str | None, returns_delta: bool) -> logic_pb2.IcebergData: + _t2160 = logic_pb2.IcebergData(locator=locator, config=config, columns=(columns_opt if columns_opt is not None else []), target=target_opt, from_snapshot=(from_snapshot_opt if from_snapshot_opt is not None else ""), to_snapshot=(to_snapshot_opt if to_snapshot_opt is not None else ""), returns_delta=returns_delta) + return _t2160 def construct_export_iceberg_config_full(self, locator: logic_pb2.IcebergLocator, config: logic_pb2.IcebergCatalogConfig, table_def: logic_pb2.RelationId, table_property_pairs: Sequence[tuple[str, str]], config_dict: Sequence[tuple[str, logic_pb2.Value]] | None) -> transactions_pb2.ExportIcebergConfig: cfg = dict((config_dict if config_dict is not None else [])) - _t2139 = self._extract_value_string(cfg.get("prefix"), "") - prefix = _t2139 - _t2140 = self._extract_value_int64(cfg.get("target_file_size_bytes"), 0) - target_file_size_bytes = _t2140 - _t2141 = self._extract_value_string(cfg.get("compression"), "") - compression = _t2141 + _t2161 = self._extract_value_string(cfg.get("prefix"), "") + prefix = _t2161 + _t2162 = self._extract_value_int64(cfg.get("target_file_size_bytes"), 0) + target_file_size_bytes = _t2162 + _t2163 = self._extract_value_string(cfg.get("compression"), "") + compression = _t2163 table_props = dict(table_property_pairs) - _t2142 = transactions_pb2.ExportIcebergConfig(locator=locator, config=config, table_def=table_def, prefix=prefix, target_file_size_bytes=target_file_size_bytes, compression=compression, table_properties=table_props) - return _t2142 + _t2164 = transactions_pb2.ExportIcebergConfig(locator=locator, config=config, table_def=table_def, prefix=prefix, target_file_size_bytes=target_file_size_bytes, compression=compression, table_properties=table_props) + return _t2164 # --- Parse methods --- def parse_transaction(self) -> transactions_pb2.Transaction: - span_start671 = self.span_start() + span_start679 = self.span_start() self.consume_literal("(") self.consume_literal("transaction") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("configure", 1)): - _t1331 = self.parse_configure() - _t1330 = _t1331 + _t1347 = self.parse_configure() + _t1346 = _t1347 else: - _t1330 = None - configure665 = _t1330 + _t1346 = None + configure673 = _t1346 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("sync", 1)): - _t1333 = self.parse_sync() - _t1332 = _t1333 - else: - _t1332 = None - sync666 = _t1332 - xs667 = [] - cond668 = self.match_lookahead_literal("(", 0) - while cond668: - _t1334 = self.parse_epoch() - item669 = _t1334 - xs667.append(item669) - cond668 = self.match_lookahead_literal("(", 0) - epochs670 = xs667 - self.consume_literal(")") - _t1335 = self.default_configure() - _t1336 = transactions_pb2.Transaction(epochs=epochs670, configure=(configure665 if configure665 is not None else _t1335), sync=sync666) - result672 = _t1336 - self.record_span(span_start671, "Transaction") - return result672 + _t1349 = self.parse_sync() + _t1348 = _t1349 + else: + _t1348 = None + sync674 = _t1348 + xs675 = [] + cond676 = self.match_lookahead_literal("(", 0) + while cond676: + _t1350 = self.parse_epoch() + item677 = _t1350 + xs675.append(item677) + cond676 = self.match_lookahead_literal("(", 0) + epochs678 = xs675 + self.consume_literal(")") + _t1351 = self.default_configure() + _t1352 = transactions_pb2.Transaction(epochs=epochs678, configure=(configure673 if configure673 is not None else _t1351), sync=sync674) + result680 = _t1352 + self.record_span(span_start679, "Transaction") + return result680 def parse_configure(self) -> transactions_pb2.Configure: - span_start674 = self.span_start() + span_start682 = self.span_start() self.consume_literal("(") self.consume_literal("configure") - _t1337 = self.parse_config_dict() - config_dict673 = _t1337 + _t1353 = self.parse_config_dict() + config_dict681 = _t1353 self.consume_literal(")") - _t1338 = self.construct_configure(config_dict673) - result675 = _t1338 - self.record_span(span_start674, "Configure") - return result675 + _t1354 = self.construct_configure(config_dict681) + result683 = _t1354 + self.record_span(span_start682, "Configure") + return result683 def parse_config_dict(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("{") - xs676 = [] - cond677 = self.match_lookahead_literal(":", 0) - while cond677: - _t1339 = self.parse_config_key_value() - item678 = _t1339 - xs676.append(item678) - cond677 = self.match_lookahead_literal(":", 0) - config_key_values679 = xs676 + xs684 = [] + cond685 = self.match_lookahead_literal(":", 0) + while cond685: + _t1355 = self.parse_config_key_value() + item686 = _t1355 + xs684.append(item686) + cond685 = self.match_lookahead_literal(":", 0) + config_key_values687 = xs684 self.consume_literal("}") - return config_key_values679 + return config_key_values687 def parse_config_key_value(self) -> tuple[str, logic_pb2.Value]: self.consume_literal(":") - symbol680 = self.consume_terminal("SYMBOL") - _t1340 = self.parse_raw_value() - raw_value681 = _t1340 - return (symbol680, raw_value681,) + symbol688 = self.consume_terminal("SYMBOL") + _t1356 = self.parse_raw_value() + raw_value689 = _t1356 + return (symbol688, raw_value689,) def parse_raw_value(self) -> logic_pb2.Value: - span_start695 = self.span_start() + span_start703 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1341 = 12 + _t1357 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1342 = 11 + _t1358 = 11 else: if self.match_lookahead_literal("false", 0): - _t1343 = 12 + _t1359 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1345 = 1 + _t1361 = 1 else: if self.match_lookahead_literal("date", 1): - _t1346 = 0 + _t1362 = 0 else: - _t1346 = -1 - _t1345 = _t1346 - _t1344 = _t1345 + _t1362 = -1 + _t1361 = _t1362 + _t1360 = _t1361 else: if self.match_lookahead_terminal("UINT32", 0): - _t1347 = 7 + _t1363 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1348 = 8 + _t1364 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1349 = 2 + _t1365 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1350 = 3 + _t1366 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1351 = 9 + _t1367 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1352 = 4 + _t1368 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1353 = 5 + _t1369 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1354 = 6 + _t1370 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1355 = 10 + _t1371 = 10 else: - _t1355 = -1 - _t1354 = _t1355 - _t1353 = _t1354 - _t1352 = _t1353 - _t1351 = _t1352 - _t1350 = _t1351 - _t1349 = _t1350 - _t1348 = _t1349 - _t1347 = _t1348 - _t1344 = _t1347 - _t1343 = _t1344 - _t1342 = _t1343 - _t1341 = _t1342 - prediction682 = _t1341 - if prediction682 == 12: - _t1357 = self.parse_boolean_value() - boolean_value694 = _t1357 - _t1358 = logic_pb2.Value(boolean_value=boolean_value694) - _t1356 = _t1358 - else: - if prediction682 == 11: + _t1371 = -1 + _t1370 = _t1371 + _t1369 = _t1370 + _t1368 = _t1369 + _t1367 = _t1368 + _t1366 = _t1367 + _t1365 = _t1366 + _t1364 = _t1365 + _t1363 = _t1364 + _t1360 = _t1363 + _t1359 = _t1360 + _t1358 = _t1359 + _t1357 = _t1358 + prediction690 = _t1357 + if prediction690 == 12: + _t1373 = self.parse_boolean_value() + boolean_value702 = _t1373 + _t1374 = logic_pb2.Value(boolean_value=boolean_value702) + _t1372 = _t1374 + else: + if prediction690 == 11: self.consume_literal("missing") - _t1360 = logic_pb2.MissingValue() - _t1361 = logic_pb2.Value(missing_value=_t1360) - _t1359 = _t1361 + _t1376 = logic_pb2.MissingValue() + _t1377 = logic_pb2.Value(missing_value=_t1376) + _t1375 = _t1377 else: - if prediction682 == 10: - decimal693 = self.consume_terminal("DECIMAL") - _t1363 = logic_pb2.Value(decimal_value=decimal693) - _t1362 = _t1363 + if prediction690 == 10: + decimal701 = self.consume_terminal("DECIMAL") + _t1379 = logic_pb2.Value(decimal_value=decimal701) + _t1378 = _t1379 else: - if prediction682 == 9: - int128692 = self.consume_terminal("INT128") - _t1365 = logic_pb2.Value(int128_value=int128692) - _t1364 = _t1365 + if prediction690 == 9: + int128700 = self.consume_terminal("INT128") + _t1381 = logic_pb2.Value(int128_value=int128700) + _t1380 = _t1381 else: - if prediction682 == 8: - uint128691 = self.consume_terminal("UINT128") - _t1367 = logic_pb2.Value(uint128_value=uint128691) - _t1366 = _t1367 + if prediction690 == 8: + uint128699 = self.consume_terminal("UINT128") + _t1383 = logic_pb2.Value(uint128_value=uint128699) + _t1382 = _t1383 else: - if prediction682 == 7: - uint32690 = self.consume_terminal("UINT32") - _t1369 = logic_pb2.Value(uint32_value=uint32690) - _t1368 = _t1369 + if prediction690 == 7: + uint32698 = self.consume_terminal("UINT32") + _t1385 = logic_pb2.Value(uint32_value=uint32698) + _t1384 = _t1385 else: - if prediction682 == 6: - float689 = self.consume_terminal("FLOAT") - _t1371 = logic_pb2.Value(float_value=float689) - _t1370 = _t1371 + if prediction690 == 6: + float697 = self.consume_terminal("FLOAT") + _t1387 = logic_pb2.Value(float_value=float697) + _t1386 = _t1387 else: - if prediction682 == 5: - float32688 = self.consume_terminal("FLOAT32") - _t1373 = logic_pb2.Value(float32_value=float32688) - _t1372 = _t1373 + if prediction690 == 5: + float32696 = self.consume_terminal("FLOAT32") + _t1389 = logic_pb2.Value(float32_value=float32696) + _t1388 = _t1389 else: - if prediction682 == 4: - int687 = self.consume_terminal("INT") - _t1375 = logic_pb2.Value(int_value=int687) - _t1374 = _t1375 + if prediction690 == 4: + int695 = self.consume_terminal("INT") + _t1391 = logic_pb2.Value(int_value=int695) + _t1390 = _t1391 else: - if prediction682 == 3: - int32686 = self.consume_terminal("INT32") - _t1377 = logic_pb2.Value(int32_value=int32686) - _t1376 = _t1377 + if prediction690 == 3: + int32694 = self.consume_terminal("INT32") + _t1393 = logic_pb2.Value(int32_value=int32694) + _t1392 = _t1393 else: - if prediction682 == 2: - string685 = self.consume_terminal("STRING") - _t1379 = logic_pb2.Value(string_value=string685) - _t1378 = _t1379 + if prediction690 == 2: + string693 = self.consume_terminal("STRING") + _t1395 = logic_pb2.Value(string_value=string693) + _t1394 = _t1395 else: - if prediction682 == 1: - _t1381 = self.parse_raw_datetime() - raw_datetime684 = _t1381 - _t1382 = logic_pb2.Value(datetime_value=raw_datetime684) - _t1380 = _t1382 + if prediction690 == 1: + _t1397 = self.parse_raw_datetime() + raw_datetime692 = _t1397 + _t1398 = logic_pb2.Value(datetime_value=raw_datetime692) + _t1396 = _t1398 else: - if prediction682 == 0: - _t1384 = self.parse_raw_date() - raw_date683 = _t1384 - _t1385 = logic_pb2.Value(date_value=raw_date683) - _t1383 = _t1385 + if prediction690 == 0: + _t1400 = self.parse_raw_date() + raw_date691 = _t1400 + _t1401 = logic_pb2.Value(date_value=raw_date691) + _t1399 = _t1401 else: raise ParseError("Unexpected token in raw_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1380 = _t1383 - _t1378 = _t1380 - _t1376 = _t1378 - _t1374 = _t1376 - _t1372 = _t1374 - _t1370 = _t1372 - _t1368 = _t1370 - _t1366 = _t1368 - _t1364 = _t1366 - _t1362 = _t1364 - _t1359 = _t1362 - _t1356 = _t1359 - result696 = _t1356 - self.record_span(span_start695, "Value") - return result696 + _t1396 = _t1399 + _t1394 = _t1396 + _t1392 = _t1394 + _t1390 = _t1392 + _t1388 = _t1390 + _t1386 = _t1388 + _t1384 = _t1386 + _t1382 = _t1384 + _t1380 = _t1382 + _t1378 = _t1380 + _t1375 = _t1378 + _t1372 = _t1375 + result704 = _t1372 + self.record_span(span_start703, "Value") + return result704 def parse_raw_date(self) -> logic_pb2.DateValue: - span_start700 = self.span_start() + span_start708 = self.span_start() self.consume_literal("(") self.consume_literal("date") - int697 = self.consume_terminal("INT") - int_3698 = self.consume_terminal("INT") - int_4699 = self.consume_terminal("INT") + int705 = self.consume_terminal("INT") + int_3706 = self.consume_terminal("INT") + int_4707 = self.consume_terminal("INT") self.consume_literal(")") - _t1386 = logic_pb2.DateValue(year=int(int697), month=int(int_3698), day=int(int_4699)) - result701 = _t1386 - self.record_span(span_start700, "DateValue") - return result701 + _t1402 = logic_pb2.DateValue(year=int(int705), month=int(int_3706), day=int(int_4707)) + result709 = _t1402 + self.record_span(span_start708, "DateValue") + return result709 def parse_raw_datetime(self) -> logic_pb2.DateTimeValue: - span_start709 = self.span_start() + span_start717 = self.span_start() self.consume_literal("(") self.consume_literal("datetime") - int702 = self.consume_terminal("INT") - int_3703 = self.consume_terminal("INT") - int_4704 = self.consume_terminal("INT") - int_5705 = self.consume_terminal("INT") - int_6706 = self.consume_terminal("INT") - int_7707 = self.consume_terminal("INT") + int710 = self.consume_terminal("INT") + int_3711 = self.consume_terminal("INT") + int_4712 = self.consume_terminal("INT") + int_5713 = self.consume_terminal("INT") + int_6714 = self.consume_terminal("INT") + int_7715 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1387 = self.consume_terminal("INT") + _t1403 = self.consume_terminal("INT") else: - _t1387 = None - int_8708 = _t1387 + _t1403 = None + int_8716 = _t1403 self.consume_literal(")") - _t1388 = logic_pb2.DateTimeValue(year=int(int702), month=int(int_3703), day=int(int_4704), hour=int(int_5705), minute=int(int_6706), second=int(int_7707), microsecond=int((int_8708 if int_8708 is not None else 0))) - result710 = _t1388 - self.record_span(span_start709, "DateTimeValue") - return result710 + _t1404 = logic_pb2.DateTimeValue(year=int(int710), month=int(int_3711), day=int(int_4712), hour=int(int_5713), minute=int(int_6714), second=int(int_7715), microsecond=int((int_8716 if int_8716 is not None else 0))) + result718 = _t1404 + self.record_span(span_start717, "DateTimeValue") + return result718 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t1389 = 0 + _t1405 = 0 else: if self.match_lookahead_literal("false", 0): - _t1390 = 1 + _t1406 = 1 else: - _t1390 = -1 - _t1389 = _t1390 - prediction711 = _t1389 - if prediction711 == 1: + _t1406 = -1 + _t1405 = _t1406 + prediction719 = _t1405 + if prediction719 == 1: self.consume_literal("false") - _t1391 = False + _t1407 = False else: - if prediction711 == 0: + if prediction719 == 0: self.consume_literal("true") - _t1392 = True + _t1408 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1391 = _t1392 - return _t1391 + _t1407 = _t1408 + return _t1407 def parse_sync(self) -> transactions_pb2.Sync: - span_start716 = self.span_start() + span_start724 = self.span_start() self.consume_literal("(") self.consume_literal("sync") - xs712 = [] - cond713 = self.match_lookahead_literal(":", 0) - while cond713: - _t1393 = self.parse_fragment_id() - item714 = _t1393 - xs712.append(item714) - cond713 = self.match_lookahead_literal(":", 0) - fragment_ids715 = xs712 - self.consume_literal(")") - _t1394 = transactions_pb2.Sync(fragments=fragment_ids715) - result717 = _t1394 - self.record_span(span_start716, "Sync") - return result717 + xs720 = [] + cond721 = self.match_lookahead_literal(":", 0) + while cond721: + _t1409 = self.parse_fragment_id() + item722 = _t1409 + xs720.append(item722) + cond721 = self.match_lookahead_literal(":", 0) + fragment_ids723 = xs720 + self.consume_literal(")") + _t1410 = transactions_pb2.Sync(fragments=fragment_ids723) + result725 = _t1410 + self.record_span(span_start724, "Sync") + return result725 def parse_fragment_id(self) -> fragments_pb2.FragmentId: - span_start719 = self.span_start() + span_start727 = self.span_start() self.consume_literal(":") - symbol718 = self.consume_terminal("SYMBOL") - result720 = fragments_pb2.FragmentId(id=symbol718.encode()) - self.record_span(span_start719, "FragmentId") - return result720 + symbol726 = self.consume_terminal("SYMBOL") + result728 = fragments_pb2.FragmentId(id=symbol726.encode()) + self.record_span(span_start727, "FragmentId") + return result728 def parse_epoch(self) -> transactions_pb2.Epoch: - span_start723 = self.span_start() + span_start731 = self.span_start() self.consume_literal("(") self.consume_literal("epoch") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("writes", 1)): - _t1396 = self.parse_epoch_writes() - _t1395 = _t1396 + _t1412 = self.parse_epoch_writes() + _t1411 = _t1412 else: - _t1395 = None - epoch_writes721 = _t1395 + _t1411 = None + epoch_writes729 = _t1411 if self.match_lookahead_literal("(", 0): - _t1398 = self.parse_epoch_reads() - _t1397 = _t1398 + _t1414 = self.parse_epoch_reads() + _t1413 = _t1414 else: - _t1397 = None - epoch_reads722 = _t1397 + _t1413 = None + epoch_reads730 = _t1413 self.consume_literal(")") - _t1399 = transactions_pb2.Epoch(writes=(epoch_writes721 if epoch_writes721 is not None else []), reads=(epoch_reads722 if epoch_reads722 is not None else [])) - result724 = _t1399 - self.record_span(span_start723, "Epoch") - return result724 + _t1415 = transactions_pb2.Epoch(writes=(epoch_writes729 if epoch_writes729 is not None else []), reads=(epoch_reads730 if epoch_reads730 is not None else [])) + result732 = _t1415 + self.record_span(span_start731, "Epoch") + return result732 def parse_epoch_writes(self) -> Sequence[transactions_pb2.Write]: self.consume_literal("(") self.consume_literal("writes") - xs725 = [] - cond726 = self.match_lookahead_literal("(", 0) - while cond726: - _t1400 = self.parse_write() - item727 = _t1400 - xs725.append(item727) - cond726 = self.match_lookahead_literal("(", 0) - writes728 = xs725 + xs733 = [] + cond734 = self.match_lookahead_literal("(", 0) + while cond734: + _t1416 = self.parse_write() + item735 = _t1416 + xs733.append(item735) + cond734 = self.match_lookahead_literal("(", 0) + writes736 = xs733 self.consume_literal(")") - return writes728 + return writes736 def parse_write(self) -> transactions_pb2.Write: - span_start734 = self.span_start() + span_start742 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t1402 = 1 + _t1418 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t1403 = 3 + _t1419 = 3 else: if self.match_lookahead_literal("define", 1): - _t1404 = 0 + _t1420 = 0 else: if self.match_lookahead_literal("context", 1): - _t1405 = 2 + _t1421 = 2 else: - _t1405 = -1 - _t1404 = _t1405 - _t1403 = _t1404 - _t1402 = _t1403 - _t1401 = _t1402 - else: - _t1401 = -1 - prediction729 = _t1401 - if prediction729 == 3: - _t1407 = self.parse_snapshot() - snapshot733 = _t1407 - _t1408 = transactions_pb2.Write(snapshot=snapshot733) - _t1406 = _t1408 - else: - if prediction729 == 2: - _t1410 = self.parse_context() - context732 = _t1410 - _t1411 = transactions_pb2.Write(context=context732) - _t1409 = _t1411 + _t1421 = -1 + _t1420 = _t1421 + _t1419 = _t1420 + _t1418 = _t1419 + _t1417 = _t1418 + else: + _t1417 = -1 + prediction737 = _t1417 + if prediction737 == 3: + _t1423 = self.parse_snapshot() + snapshot741 = _t1423 + _t1424 = transactions_pb2.Write(snapshot=snapshot741) + _t1422 = _t1424 + else: + if prediction737 == 2: + _t1426 = self.parse_context() + context740 = _t1426 + _t1427 = transactions_pb2.Write(context=context740) + _t1425 = _t1427 else: - if prediction729 == 1: - _t1413 = self.parse_undefine() - undefine731 = _t1413 - _t1414 = transactions_pb2.Write(undefine=undefine731) - _t1412 = _t1414 + if prediction737 == 1: + _t1429 = self.parse_undefine() + undefine739 = _t1429 + _t1430 = transactions_pb2.Write(undefine=undefine739) + _t1428 = _t1430 else: - if prediction729 == 0: - _t1416 = self.parse_define() - define730 = _t1416 - _t1417 = transactions_pb2.Write(define=define730) - _t1415 = _t1417 + if prediction737 == 0: + _t1432 = self.parse_define() + define738 = _t1432 + _t1433 = transactions_pb2.Write(define=define738) + _t1431 = _t1433 else: raise ParseError("Unexpected token in write" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1412 = _t1415 - _t1409 = _t1412 - _t1406 = _t1409 - result735 = _t1406 - self.record_span(span_start734, "Write") - return result735 + _t1428 = _t1431 + _t1425 = _t1428 + _t1422 = _t1425 + result743 = _t1422 + self.record_span(span_start742, "Write") + return result743 def parse_define(self) -> transactions_pb2.Define: - span_start737 = self.span_start() + span_start745 = self.span_start() self.consume_literal("(") self.consume_literal("define") - _t1418 = self.parse_fragment() - fragment736 = _t1418 + _t1434 = self.parse_fragment() + fragment744 = _t1434 self.consume_literal(")") - _t1419 = transactions_pb2.Define(fragment=fragment736) - result738 = _t1419 - self.record_span(span_start737, "Define") - return result738 + _t1435 = transactions_pb2.Define(fragment=fragment744) + result746 = _t1435 + self.record_span(span_start745, "Define") + return result746 def parse_fragment(self) -> fragments_pb2.Fragment: - span_start744 = self.span_start() + span_start752 = self.span_start() self.consume_literal("(") self.consume_literal("fragment") - _t1420 = self.parse_new_fragment_id() - new_fragment_id739 = _t1420 - xs740 = [] - cond741 = self.match_lookahead_literal("(", 0) - while cond741: - _t1421 = self.parse_declaration() - item742 = _t1421 - xs740.append(item742) - cond741 = self.match_lookahead_literal("(", 0) - declarations743 = xs740 - self.consume_literal(")") - result745 = self.construct_fragment(new_fragment_id739, declarations743) - self.record_span(span_start744, "Fragment") - return result745 + _t1436 = self.parse_new_fragment_id() + new_fragment_id747 = _t1436 + xs748 = [] + cond749 = self.match_lookahead_literal("(", 0) + while cond749: + _t1437 = self.parse_declaration() + item750 = _t1437 + xs748.append(item750) + cond749 = self.match_lookahead_literal("(", 0) + declarations751 = xs748 + self.consume_literal(")") + result753 = self.construct_fragment(new_fragment_id747, declarations751) + self.record_span(span_start752, "Fragment") + return result753 def parse_new_fragment_id(self) -> fragments_pb2.FragmentId: - span_start747 = self.span_start() - _t1422 = self.parse_fragment_id() - fragment_id746 = _t1422 - self.start_fragment(fragment_id746) - result748 = fragment_id746 - self.record_span(span_start747, "FragmentId") - return result748 + span_start755 = self.span_start() + _t1438 = self.parse_fragment_id() + fragment_id754 = _t1438 + self.start_fragment(fragment_id754) + result756 = fragment_id754 + self.record_span(span_start755, "FragmentId") + return result756 def parse_declaration(self) -> logic_pb2.Declaration: - span_start754 = self.span_start() + span_start762 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t1424 = 3 + _t1440 = 3 else: if self.match_lookahead_literal("functional_dependency", 1): - _t1425 = 2 + _t1441 = 2 else: if self.match_lookahead_literal("edb", 1): - _t1426 = 3 + _t1442 = 3 else: if self.match_lookahead_literal("def", 1): - _t1427 = 0 + _t1443 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1428 = 3 + _t1444 = 3 else: if self.match_lookahead_literal("betree_relation", 1): - _t1429 = 3 + _t1445 = 3 else: if self.match_lookahead_literal("algorithm", 1): - _t1430 = 1 + _t1446 = 1 else: - _t1430 = -1 - _t1429 = _t1430 - _t1428 = _t1429 - _t1427 = _t1428 - _t1426 = _t1427 - _t1425 = _t1426 - _t1424 = _t1425 - _t1423 = _t1424 - else: - _t1423 = -1 - prediction749 = _t1423 - if prediction749 == 3: - _t1432 = self.parse_data() - data753 = _t1432 - _t1433 = logic_pb2.Declaration(data=data753) - _t1431 = _t1433 - else: - if prediction749 == 2: - _t1435 = self.parse_constraint() - constraint752 = _t1435 - _t1436 = logic_pb2.Declaration(constraint=constraint752) - _t1434 = _t1436 + _t1446 = -1 + _t1445 = _t1446 + _t1444 = _t1445 + _t1443 = _t1444 + _t1442 = _t1443 + _t1441 = _t1442 + _t1440 = _t1441 + _t1439 = _t1440 + else: + _t1439 = -1 + prediction757 = _t1439 + if prediction757 == 3: + _t1448 = self.parse_data() + data761 = _t1448 + _t1449 = logic_pb2.Declaration(data=data761) + _t1447 = _t1449 + else: + if prediction757 == 2: + _t1451 = self.parse_constraint() + constraint760 = _t1451 + _t1452 = logic_pb2.Declaration(constraint=constraint760) + _t1450 = _t1452 else: - if prediction749 == 1: - _t1438 = self.parse_algorithm() - algorithm751 = _t1438 - _t1439 = logic_pb2.Declaration(algorithm=algorithm751) - _t1437 = _t1439 + if prediction757 == 1: + _t1454 = self.parse_algorithm() + algorithm759 = _t1454 + _t1455 = logic_pb2.Declaration(algorithm=algorithm759) + _t1453 = _t1455 else: - if prediction749 == 0: - _t1441 = self.parse_def() - def750 = _t1441 - _t1442 = logic_pb2.Declaration() - getattr(_t1442, 'def').CopyFrom(def750) - _t1440 = _t1442 + if prediction757 == 0: + _t1457 = self.parse_def() + def758 = _t1457 + _t1458 = logic_pb2.Declaration() + getattr(_t1458, 'def').CopyFrom(def758) + _t1456 = _t1458 else: raise ParseError("Unexpected token in declaration" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1437 = _t1440 - _t1434 = _t1437 - _t1431 = _t1434 - result755 = _t1431 - self.record_span(span_start754, "Declaration") - return result755 + _t1453 = _t1456 + _t1450 = _t1453 + _t1447 = _t1450 + result763 = _t1447 + self.record_span(span_start762, "Declaration") + return result763 def parse_def(self) -> logic_pb2.Def: - span_start759 = self.span_start() + span_start767 = self.span_start() self.consume_literal("(") self.consume_literal("def") - _t1443 = self.parse_relation_id() - relation_id756 = _t1443 - _t1444 = self.parse_abstraction() - abstraction757 = _t1444 + _t1459 = self.parse_relation_id() + relation_id764 = _t1459 + _t1460 = self.parse_abstraction() + abstraction765 = _t1460 if self.match_lookahead_literal("(", 0): - _t1446 = self.parse_attrs() - _t1445 = _t1446 + _t1462 = self.parse_attrs() + _t1461 = _t1462 else: - _t1445 = None - attrs758 = _t1445 + _t1461 = None + attrs766 = _t1461 self.consume_literal(")") - _t1447 = logic_pb2.Def(name=relation_id756, body=abstraction757, attrs=(attrs758 if attrs758 is not None else [])) - result760 = _t1447 - self.record_span(span_start759, "Def") - return result760 + _t1463 = logic_pb2.Def(name=relation_id764, body=abstraction765, attrs=(attrs766 if attrs766 is not None else [])) + result768 = _t1463 + self.record_span(span_start767, "Def") + return result768 def parse_relation_id(self) -> logic_pb2.RelationId: - span_start764 = self.span_start() + span_start772 = self.span_start() if self.match_lookahead_literal(":", 0): - _t1448 = 0 + _t1464 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1449 = 1 + _t1465 = 1 else: - _t1449 = -1 - _t1448 = _t1449 - prediction761 = _t1448 - if prediction761 == 1: - uint128763 = self.consume_terminal("UINT128") - _t1450 = logic_pb2.RelationId(id_low=uint128763.low, id_high=uint128763.high) - else: - if prediction761 == 0: + _t1465 = -1 + _t1464 = _t1465 + prediction769 = _t1464 + if prediction769 == 1: + uint128771 = self.consume_terminal("UINT128") + _t1466 = logic_pb2.RelationId(id_low=uint128771.low, id_high=uint128771.high) + else: + if prediction769 == 0: self.consume_literal(":") - symbol762 = self.consume_terminal("SYMBOL") - _t1451 = self.relation_id_from_string(symbol762) + symbol770 = self.consume_terminal("SYMBOL") + _t1467 = self.relation_id_from_string(symbol770) else: raise ParseError("Unexpected token in relation_id" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1450 = _t1451 - result765 = _t1450 - self.record_span(span_start764, "RelationId") - return result765 + _t1466 = _t1467 + result773 = _t1466 + self.record_span(span_start772, "RelationId") + return result773 def parse_abstraction(self) -> logic_pb2.Abstraction: - span_start768 = self.span_start() + span_start776 = self.span_start() self.consume_literal("(") - _t1452 = self.parse_bindings() - bindings766 = _t1452 - _t1453 = self.parse_formula() - formula767 = _t1453 + _t1468 = self.parse_bindings() + bindings774 = _t1468 + _t1469 = self.parse_formula() + formula775 = _t1469 self.consume_literal(")") - _t1454 = logic_pb2.Abstraction(vars=(list(bindings766[0]) + list(bindings766[1] if bindings766[1] is not None else [])), value=formula767) - result769 = _t1454 - self.record_span(span_start768, "Abstraction") - return result769 + _t1470 = logic_pb2.Abstraction(vars=(list(bindings774[0]) + list(bindings774[1] if bindings774[1] is not None else [])), value=formula775) + result777 = _t1470 + self.record_span(span_start776, "Abstraction") + return result777 def parse_bindings(self) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: self.consume_literal("[") - xs770 = [] - cond771 = self.match_lookahead_terminal("SYMBOL", 0) - while cond771: - _t1455 = self.parse_binding() - item772 = _t1455 - xs770.append(item772) - cond771 = self.match_lookahead_terminal("SYMBOL", 0) - bindings773 = xs770 + xs778 = [] + cond779 = self.match_lookahead_terminal("SYMBOL", 0) + while cond779: + _t1471 = self.parse_binding() + item780 = _t1471 + xs778.append(item780) + cond779 = self.match_lookahead_terminal("SYMBOL", 0) + bindings781 = xs778 if self.match_lookahead_literal("|", 0): - _t1457 = self.parse_value_bindings() - _t1456 = _t1457 + _t1473 = self.parse_value_bindings() + _t1472 = _t1473 else: - _t1456 = None - value_bindings774 = _t1456 + _t1472 = None + value_bindings782 = _t1472 self.consume_literal("]") - return (bindings773, (value_bindings774 if value_bindings774 is not None else []),) + return (bindings781, (value_bindings782 if value_bindings782 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - span_start777 = self.span_start() - symbol775 = self.consume_terminal("SYMBOL") + span_start785 = self.span_start() + symbol783 = self.consume_terminal("SYMBOL") self.consume_literal("::") - _t1458 = self.parse_type() - type776 = _t1458 - _t1459 = logic_pb2.Var(name=symbol775) - _t1460 = logic_pb2.Binding(var=_t1459, type=type776) - result778 = _t1460 - self.record_span(span_start777, "Binding") - return result778 + _t1474 = self.parse_type() + type784 = _t1474 + _t1475 = logic_pb2.Var(name=symbol783) + _t1476 = logic_pb2.Binding(var=_t1475, type=type784) + result786 = _t1476 + self.record_span(span_start785, "Binding") + return result786 def parse_type(self) -> logic_pb2.Type: - span_start794 = self.span_start() + span_start802 = self.span_start() if self.match_lookahead_literal("UNKNOWN", 0): - _t1461 = 0 + _t1477 = 0 else: if self.match_lookahead_literal("UINT32", 0): - _t1462 = 13 + _t1478 = 13 else: if self.match_lookahead_literal("UINT128", 0): - _t1463 = 4 + _t1479 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t1464 = 1 + _t1480 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t1465 = 8 + _t1481 = 8 else: if self.match_lookahead_literal("INT32", 0): - _t1466 = 11 + _t1482 = 11 else: if self.match_lookahead_literal("INT128", 0): - _t1467 = 5 + _t1483 = 5 else: if self.match_lookahead_literal("INT", 0): - _t1468 = 2 + _t1484 = 2 else: if self.match_lookahead_literal("FLOAT32", 0): - _t1469 = 12 + _t1485 = 12 else: if self.match_lookahead_literal("FLOAT", 0): - _t1470 = 3 + _t1486 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t1471 = 7 + _t1487 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t1472 = 6 + _t1488 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t1473 = 10 + _t1489 = 10 else: if self.match_lookahead_literal("(", 0): - _t1474 = 9 + _t1490 = 9 else: - _t1474 = -1 - _t1473 = _t1474 - _t1472 = _t1473 - _t1471 = _t1472 - _t1470 = _t1471 - _t1469 = _t1470 - _t1468 = _t1469 - _t1467 = _t1468 - _t1466 = _t1467 - _t1465 = _t1466 - _t1464 = _t1465 - _t1463 = _t1464 - _t1462 = _t1463 - _t1461 = _t1462 - prediction779 = _t1461 - if prediction779 == 13: - _t1476 = self.parse_uint32_type() - uint32_type793 = _t1476 - _t1477 = logic_pb2.Type(uint32_type=uint32_type793) - _t1475 = _t1477 - else: - if prediction779 == 12: - _t1479 = self.parse_float32_type() - float32_type792 = _t1479 - _t1480 = logic_pb2.Type(float32_type=float32_type792) - _t1478 = _t1480 + _t1490 = -1 + _t1489 = _t1490 + _t1488 = _t1489 + _t1487 = _t1488 + _t1486 = _t1487 + _t1485 = _t1486 + _t1484 = _t1485 + _t1483 = _t1484 + _t1482 = _t1483 + _t1481 = _t1482 + _t1480 = _t1481 + _t1479 = _t1480 + _t1478 = _t1479 + _t1477 = _t1478 + prediction787 = _t1477 + if prediction787 == 13: + _t1492 = self.parse_uint32_type() + uint32_type801 = _t1492 + _t1493 = logic_pb2.Type(uint32_type=uint32_type801) + _t1491 = _t1493 + else: + if prediction787 == 12: + _t1495 = self.parse_float32_type() + float32_type800 = _t1495 + _t1496 = logic_pb2.Type(float32_type=float32_type800) + _t1494 = _t1496 else: - if prediction779 == 11: - _t1482 = self.parse_int32_type() - int32_type791 = _t1482 - _t1483 = logic_pb2.Type(int32_type=int32_type791) - _t1481 = _t1483 + if prediction787 == 11: + _t1498 = self.parse_int32_type() + int32_type799 = _t1498 + _t1499 = logic_pb2.Type(int32_type=int32_type799) + _t1497 = _t1499 else: - if prediction779 == 10: - _t1485 = self.parse_boolean_type() - boolean_type790 = _t1485 - _t1486 = logic_pb2.Type(boolean_type=boolean_type790) - _t1484 = _t1486 + if prediction787 == 10: + _t1501 = self.parse_boolean_type() + boolean_type798 = _t1501 + _t1502 = logic_pb2.Type(boolean_type=boolean_type798) + _t1500 = _t1502 else: - if prediction779 == 9: - _t1488 = self.parse_decimal_type() - decimal_type789 = _t1488 - _t1489 = logic_pb2.Type(decimal_type=decimal_type789) - _t1487 = _t1489 + if prediction787 == 9: + _t1504 = self.parse_decimal_type() + decimal_type797 = _t1504 + _t1505 = logic_pb2.Type(decimal_type=decimal_type797) + _t1503 = _t1505 else: - if prediction779 == 8: - _t1491 = self.parse_missing_type() - missing_type788 = _t1491 - _t1492 = logic_pb2.Type(missing_type=missing_type788) - _t1490 = _t1492 + if prediction787 == 8: + _t1507 = self.parse_missing_type() + missing_type796 = _t1507 + _t1508 = logic_pb2.Type(missing_type=missing_type796) + _t1506 = _t1508 else: - if prediction779 == 7: - _t1494 = self.parse_datetime_type() - datetime_type787 = _t1494 - _t1495 = logic_pb2.Type(datetime_type=datetime_type787) - _t1493 = _t1495 + if prediction787 == 7: + _t1510 = self.parse_datetime_type() + datetime_type795 = _t1510 + _t1511 = logic_pb2.Type(datetime_type=datetime_type795) + _t1509 = _t1511 else: - if prediction779 == 6: - _t1497 = self.parse_date_type() - date_type786 = _t1497 - _t1498 = logic_pb2.Type(date_type=date_type786) - _t1496 = _t1498 + if prediction787 == 6: + _t1513 = self.parse_date_type() + date_type794 = _t1513 + _t1514 = logic_pb2.Type(date_type=date_type794) + _t1512 = _t1514 else: - if prediction779 == 5: - _t1500 = self.parse_int128_type() - int128_type785 = _t1500 - _t1501 = logic_pb2.Type(int128_type=int128_type785) - _t1499 = _t1501 + if prediction787 == 5: + _t1516 = self.parse_int128_type() + int128_type793 = _t1516 + _t1517 = logic_pb2.Type(int128_type=int128_type793) + _t1515 = _t1517 else: - if prediction779 == 4: - _t1503 = self.parse_uint128_type() - uint128_type784 = _t1503 - _t1504 = logic_pb2.Type(uint128_type=uint128_type784) - _t1502 = _t1504 + if prediction787 == 4: + _t1519 = self.parse_uint128_type() + uint128_type792 = _t1519 + _t1520 = logic_pb2.Type(uint128_type=uint128_type792) + _t1518 = _t1520 else: - if prediction779 == 3: - _t1506 = self.parse_float_type() - float_type783 = _t1506 - _t1507 = logic_pb2.Type(float_type=float_type783) - _t1505 = _t1507 + if prediction787 == 3: + _t1522 = self.parse_float_type() + float_type791 = _t1522 + _t1523 = logic_pb2.Type(float_type=float_type791) + _t1521 = _t1523 else: - if prediction779 == 2: - _t1509 = self.parse_int_type() - int_type782 = _t1509 - _t1510 = logic_pb2.Type(int_type=int_type782) - _t1508 = _t1510 + if prediction787 == 2: + _t1525 = self.parse_int_type() + int_type790 = _t1525 + _t1526 = logic_pb2.Type(int_type=int_type790) + _t1524 = _t1526 else: - if prediction779 == 1: - _t1512 = self.parse_string_type() - string_type781 = _t1512 - _t1513 = logic_pb2.Type(string_type=string_type781) - _t1511 = _t1513 + if prediction787 == 1: + _t1528 = self.parse_string_type() + string_type789 = _t1528 + _t1529 = logic_pb2.Type(string_type=string_type789) + _t1527 = _t1529 else: - if prediction779 == 0: - _t1515 = self.parse_unspecified_type() - unspecified_type780 = _t1515 - _t1516 = logic_pb2.Type(unspecified_type=unspecified_type780) - _t1514 = _t1516 + if prediction787 == 0: + _t1531 = self.parse_unspecified_type() + unspecified_type788 = _t1531 + _t1532 = logic_pb2.Type(unspecified_type=unspecified_type788) + _t1530 = _t1532 else: raise ParseError("Unexpected token in type" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1511 = _t1514 - _t1508 = _t1511 - _t1505 = _t1508 - _t1502 = _t1505 - _t1499 = _t1502 - _t1496 = _t1499 - _t1493 = _t1496 - _t1490 = _t1493 - _t1487 = _t1490 - _t1484 = _t1487 - _t1481 = _t1484 - _t1478 = _t1481 - _t1475 = _t1478 - result795 = _t1475 - self.record_span(span_start794, "Type") - return result795 + _t1527 = _t1530 + _t1524 = _t1527 + _t1521 = _t1524 + _t1518 = _t1521 + _t1515 = _t1518 + _t1512 = _t1515 + _t1509 = _t1512 + _t1506 = _t1509 + _t1503 = _t1506 + _t1500 = _t1503 + _t1497 = _t1500 + _t1494 = _t1497 + _t1491 = _t1494 + result803 = _t1491 + self.record_span(span_start802, "Type") + return result803 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: - span_start796 = self.span_start() + span_start804 = self.span_start() self.consume_literal("UNKNOWN") - _t1517 = logic_pb2.UnspecifiedType() - result797 = _t1517 - self.record_span(span_start796, "UnspecifiedType") - return result797 + _t1533 = logic_pb2.UnspecifiedType() + result805 = _t1533 + self.record_span(span_start804, "UnspecifiedType") + return result805 def parse_string_type(self) -> logic_pb2.StringType: - span_start798 = self.span_start() + span_start806 = self.span_start() self.consume_literal("STRING") - _t1518 = logic_pb2.StringType() - result799 = _t1518 - self.record_span(span_start798, "StringType") - return result799 + _t1534 = logic_pb2.StringType() + result807 = _t1534 + self.record_span(span_start806, "StringType") + return result807 def parse_int_type(self) -> logic_pb2.IntType: - span_start800 = self.span_start() + span_start808 = self.span_start() self.consume_literal("INT") - _t1519 = logic_pb2.IntType() - result801 = _t1519 - self.record_span(span_start800, "IntType") - return result801 + _t1535 = logic_pb2.IntType() + result809 = _t1535 + self.record_span(span_start808, "IntType") + return result809 def parse_float_type(self) -> logic_pb2.FloatType: - span_start802 = self.span_start() + span_start810 = self.span_start() self.consume_literal("FLOAT") - _t1520 = logic_pb2.FloatType() - result803 = _t1520 - self.record_span(span_start802, "FloatType") - return result803 + _t1536 = logic_pb2.FloatType() + result811 = _t1536 + self.record_span(span_start810, "FloatType") + return result811 def parse_uint128_type(self) -> logic_pb2.UInt128Type: - span_start804 = self.span_start() + span_start812 = self.span_start() self.consume_literal("UINT128") - _t1521 = logic_pb2.UInt128Type() - result805 = _t1521 - self.record_span(span_start804, "UInt128Type") - return result805 + _t1537 = logic_pb2.UInt128Type() + result813 = _t1537 + self.record_span(span_start812, "UInt128Type") + return result813 def parse_int128_type(self) -> logic_pb2.Int128Type: - span_start806 = self.span_start() + span_start814 = self.span_start() self.consume_literal("INT128") - _t1522 = logic_pb2.Int128Type() - result807 = _t1522 - self.record_span(span_start806, "Int128Type") - return result807 + _t1538 = logic_pb2.Int128Type() + result815 = _t1538 + self.record_span(span_start814, "Int128Type") + return result815 def parse_date_type(self) -> logic_pb2.DateType: - span_start808 = self.span_start() + span_start816 = self.span_start() self.consume_literal("DATE") - _t1523 = logic_pb2.DateType() - result809 = _t1523 - self.record_span(span_start808, "DateType") - return result809 + _t1539 = logic_pb2.DateType() + result817 = _t1539 + self.record_span(span_start816, "DateType") + return result817 def parse_datetime_type(self) -> logic_pb2.DateTimeType: - span_start810 = self.span_start() + span_start818 = self.span_start() self.consume_literal("DATETIME") - _t1524 = logic_pb2.DateTimeType() - result811 = _t1524 - self.record_span(span_start810, "DateTimeType") - return result811 + _t1540 = logic_pb2.DateTimeType() + result819 = _t1540 + self.record_span(span_start818, "DateTimeType") + return result819 def parse_missing_type(self) -> logic_pb2.MissingType: - span_start812 = self.span_start() + span_start820 = self.span_start() self.consume_literal("MISSING") - _t1525 = logic_pb2.MissingType() - result813 = _t1525 - self.record_span(span_start812, "MissingType") - return result813 + _t1541 = logic_pb2.MissingType() + result821 = _t1541 + self.record_span(span_start820, "MissingType") + return result821 def parse_decimal_type(self) -> logic_pb2.DecimalType: - span_start816 = self.span_start() + span_start824 = self.span_start() self.consume_literal("(") self.consume_literal("DECIMAL") - int814 = self.consume_terminal("INT") - int_3815 = self.consume_terminal("INT") + int822 = self.consume_terminal("INT") + int_3823 = self.consume_terminal("INT") self.consume_literal(")") - _t1526 = logic_pb2.DecimalType(precision=int(int814), scale=int(int_3815)) - result817 = _t1526 - self.record_span(span_start816, "DecimalType") - return result817 + _t1542 = logic_pb2.DecimalType(precision=int(int822), scale=int(int_3823)) + result825 = _t1542 + self.record_span(span_start824, "DecimalType") + return result825 def parse_boolean_type(self) -> logic_pb2.BooleanType: - span_start818 = self.span_start() + span_start826 = self.span_start() self.consume_literal("BOOLEAN") - _t1527 = logic_pb2.BooleanType() - result819 = _t1527 - self.record_span(span_start818, "BooleanType") - return result819 + _t1543 = logic_pb2.BooleanType() + result827 = _t1543 + self.record_span(span_start826, "BooleanType") + return result827 def parse_int32_type(self) -> logic_pb2.Int32Type: - span_start820 = self.span_start() + span_start828 = self.span_start() self.consume_literal("INT32") - _t1528 = logic_pb2.Int32Type() - result821 = _t1528 - self.record_span(span_start820, "Int32Type") - return result821 + _t1544 = logic_pb2.Int32Type() + result829 = _t1544 + self.record_span(span_start828, "Int32Type") + return result829 def parse_float32_type(self) -> logic_pb2.Float32Type: - span_start822 = self.span_start() + span_start830 = self.span_start() self.consume_literal("FLOAT32") - _t1529 = logic_pb2.Float32Type() - result823 = _t1529 - self.record_span(span_start822, "Float32Type") - return result823 + _t1545 = logic_pb2.Float32Type() + result831 = _t1545 + self.record_span(span_start830, "Float32Type") + return result831 def parse_uint32_type(self) -> logic_pb2.UInt32Type: - span_start824 = self.span_start() + span_start832 = self.span_start() self.consume_literal("UINT32") - _t1530 = logic_pb2.UInt32Type() - result825 = _t1530 - self.record_span(span_start824, "UInt32Type") - return result825 + _t1546 = logic_pb2.UInt32Type() + result833 = _t1546 + self.record_span(span_start832, "UInt32Type") + return result833 def parse_value_bindings(self) -> Sequence[logic_pb2.Binding]: self.consume_literal("|") - xs826 = [] - cond827 = self.match_lookahead_terminal("SYMBOL", 0) - while cond827: - _t1531 = self.parse_binding() - item828 = _t1531 - xs826.append(item828) - cond827 = self.match_lookahead_terminal("SYMBOL", 0) - bindings829 = xs826 - return bindings829 + xs834 = [] + cond835 = self.match_lookahead_terminal("SYMBOL", 0) + while cond835: + _t1547 = self.parse_binding() + item836 = _t1547 + xs834.append(item836) + cond835 = self.match_lookahead_terminal("SYMBOL", 0) + bindings837 = xs834 + return bindings837 def parse_formula(self) -> logic_pb2.Formula: - span_start844 = self.span_start() + span_start852 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t1533 = 0 + _t1549 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t1534 = 11 + _t1550 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t1535 = 3 + _t1551 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t1536 = 10 + _t1552 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t1537 = 9 + _t1553 = 9 else: if self.match_lookahead_literal("or", 1): - _t1538 = 5 + _t1554 = 5 else: if self.match_lookahead_literal("not", 1): - _t1539 = 6 + _t1555 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t1540 = 7 + _t1556 = 7 else: if self.match_lookahead_literal("false", 1): - _t1541 = 1 + _t1557 = 1 else: if self.match_lookahead_literal("exists", 1): - _t1542 = 2 + _t1558 = 2 else: if self.match_lookahead_literal("cast", 1): - _t1543 = 12 + _t1559 = 12 else: if self.match_lookahead_literal("atom", 1): - _t1544 = 8 + _t1560 = 8 else: if self.match_lookahead_literal("and", 1): - _t1545 = 4 + _t1561 = 4 else: if self.match_lookahead_literal(">=", 1): - _t1546 = 10 + _t1562 = 10 else: if self.match_lookahead_literal(">", 1): - _t1547 = 10 + _t1563 = 10 else: if self.match_lookahead_literal("=", 1): - _t1548 = 10 + _t1564 = 10 else: if self.match_lookahead_literal("<=", 1): - _t1549 = 10 + _t1565 = 10 else: if self.match_lookahead_literal("<", 1): - _t1550 = 10 + _t1566 = 10 else: if self.match_lookahead_literal("/", 1): - _t1551 = 10 + _t1567 = 10 else: if self.match_lookahead_literal("-", 1): - _t1552 = 10 + _t1568 = 10 else: if self.match_lookahead_literal("+", 1): - _t1553 = 10 + _t1569 = 10 else: if self.match_lookahead_literal("*", 1): - _t1554 = 10 + _t1570 = 10 else: - _t1554 = -1 - _t1553 = _t1554 - _t1552 = _t1553 - _t1551 = _t1552 - _t1550 = _t1551 - _t1549 = _t1550 - _t1548 = _t1549 - _t1547 = _t1548 - _t1546 = _t1547 - _t1545 = _t1546 - _t1544 = _t1545 - _t1543 = _t1544 - _t1542 = _t1543 - _t1541 = _t1542 - _t1540 = _t1541 - _t1539 = _t1540 - _t1538 = _t1539 - _t1537 = _t1538 - _t1536 = _t1537 - _t1535 = _t1536 - _t1534 = _t1535 - _t1533 = _t1534 - _t1532 = _t1533 - else: - _t1532 = -1 - prediction830 = _t1532 - if prediction830 == 12: - _t1556 = self.parse_cast() - cast843 = _t1556 - _t1557 = logic_pb2.Formula(cast=cast843) - _t1555 = _t1557 - else: - if prediction830 == 11: - _t1559 = self.parse_rel_atom() - rel_atom842 = _t1559 - _t1560 = logic_pb2.Formula(rel_atom=rel_atom842) - _t1558 = _t1560 + _t1570 = -1 + _t1569 = _t1570 + _t1568 = _t1569 + _t1567 = _t1568 + _t1566 = _t1567 + _t1565 = _t1566 + _t1564 = _t1565 + _t1563 = _t1564 + _t1562 = _t1563 + _t1561 = _t1562 + _t1560 = _t1561 + _t1559 = _t1560 + _t1558 = _t1559 + _t1557 = _t1558 + _t1556 = _t1557 + _t1555 = _t1556 + _t1554 = _t1555 + _t1553 = _t1554 + _t1552 = _t1553 + _t1551 = _t1552 + _t1550 = _t1551 + _t1549 = _t1550 + _t1548 = _t1549 + else: + _t1548 = -1 + prediction838 = _t1548 + if prediction838 == 12: + _t1572 = self.parse_cast() + cast851 = _t1572 + _t1573 = logic_pb2.Formula(cast=cast851) + _t1571 = _t1573 + else: + if prediction838 == 11: + _t1575 = self.parse_rel_atom() + rel_atom850 = _t1575 + _t1576 = logic_pb2.Formula(rel_atom=rel_atom850) + _t1574 = _t1576 else: - if prediction830 == 10: - _t1562 = self.parse_primitive() - primitive841 = _t1562 - _t1563 = logic_pb2.Formula(primitive=primitive841) - _t1561 = _t1563 + if prediction838 == 10: + _t1578 = self.parse_primitive() + primitive849 = _t1578 + _t1579 = logic_pb2.Formula(primitive=primitive849) + _t1577 = _t1579 else: - if prediction830 == 9: - _t1565 = self.parse_pragma() - pragma840 = _t1565 - _t1566 = logic_pb2.Formula(pragma=pragma840) - _t1564 = _t1566 + if prediction838 == 9: + _t1581 = self.parse_pragma() + pragma848 = _t1581 + _t1582 = logic_pb2.Formula(pragma=pragma848) + _t1580 = _t1582 else: - if prediction830 == 8: - _t1568 = self.parse_atom() - atom839 = _t1568 - _t1569 = logic_pb2.Formula(atom=atom839) - _t1567 = _t1569 + if prediction838 == 8: + _t1584 = self.parse_atom() + atom847 = _t1584 + _t1585 = logic_pb2.Formula(atom=atom847) + _t1583 = _t1585 else: - if prediction830 == 7: - _t1571 = self.parse_ffi() - ffi838 = _t1571 - _t1572 = logic_pb2.Formula(ffi=ffi838) - _t1570 = _t1572 + if prediction838 == 7: + _t1587 = self.parse_ffi() + ffi846 = _t1587 + _t1588 = logic_pb2.Formula(ffi=ffi846) + _t1586 = _t1588 else: - if prediction830 == 6: - _t1574 = self.parse_not() - not837 = _t1574 - _t1575 = logic_pb2.Formula() - getattr(_t1575, 'not').CopyFrom(not837) - _t1573 = _t1575 + if prediction838 == 6: + _t1590 = self.parse_not() + not845 = _t1590 + _t1591 = logic_pb2.Formula() + getattr(_t1591, 'not').CopyFrom(not845) + _t1589 = _t1591 else: - if prediction830 == 5: - _t1577 = self.parse_disjunction() - disjunction836 = _t1577 - _t1578 = logic_pb2.Formula(disjunction=disjunction836) - _t1576 = _t1578 + if prediction838 == 5: + _t1593 = self.parse_disjunction() + disjunction844 = _t1593 + _t1594 = logic_pb2.Formula(disjunction=disjunction844) + _t1592 = _t1594 else: - if prediction830 == 4: - _t1580 = self.parse_conjunction() - conjunction835 = _t1580 - _t1581 = logic_pb2.Formula(conjunction=conjunction835) - _t1579 = _t1581 + if prediction838 == 4: + _t1596 = self.parse_conjunction() + conjunction843 = _t1596 + _t1597 = logic_pb2.Formula(conjunction=conjunction843) + _t1595 = _t1597 else: - if prediction830 == 3: - _t1583 = self.parse_reduce() - reduce834 = _t1583 - _t1584 = logic_pb2.Formula(reduce=reduce834) - _t1582 = _t1584 + if prediction838 == 3: + _t1599 = self.parse_reduce() + reduce842 = _t1599 + _t1600 = logic_pb2.Formula(reduce=reduce842) + _t1598 = _t1600 else: - if prediction830 == 2: - _t1586 = self.parse_exists() - exists833 = _t1586 - _t1587 = logic_pb2.Formula(exists=exists833) - _t1585 = _t1587 + if prediction838 == 2: + _t1602 = self.parse_exists() + exists841 = _t1602 + _t1603 = logic_pb2.Formula(exists=exists841) + _t1601 = _t1603 else: - if prediction830 == 1: - _t1589 = self.parse_false() - false832 = _t1589 - _t1590 = logic_pb2.Formula(disjunction=false832) - _t1588 = _t1590 + if prediction838 == 1: + _t1605 = self.parse_false() + false840 = _t1605 + _t1606 = logic_pb2.Formula(disjunction=false840) + _t1604 = _t1606 else: - if prediction830 == 0: - _t1592 = self.parse_true() - true831 = _t1592 - _t1593 = logic_pb2.Formula(conjunction=true831) - _t1591 = _t1593 + if prediction838 == 0: + _t1608 = self.parse_true() + true839 = _t1608 + _t1609 = logic_pb2.Formula(conjunction=true839) + _t1607 = _t1609 else: raise ParseError("Unexpected token in formula" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1588 = _t1591 - _t1585 = _t1588 - _t1582 = _t1585 - _t1579 = _t1582 - _t1576 = _t1579 - _t1573 = _t1576 - _t1570 = _t1573 - _t1567 = _t1570 - _t1564 = _t1567 - _t1561 = _t1564 - _t1558 = _t1561 - _t1555 = _t1558 - result845 = _t1555 - self.record_span(span_start844, "Formula") - return result845 + _t1604 = _t1607 + _t1601 = _t1604 + _t1598 = _t1601 + _t1595 = _t1598 + _t1592 = _t1595 + _t1589 = _t1592 + _t1586 = _t1589 + _t1583 = _t1586 + _t1580 = _t1583 + _t1577 = _t1580 + _t1574 = _t1577 + _t1571 = _t1574 + result853 = _t1571 + self.record_span(span_start852, "Formula") + return result853 def parse_true(self) -> logic_pb2.Conjunction: - span_start846 = self.span_start() + span_start854 = self.span_start() self.consume_literal("(") self.consume_literal("true") self.consume_literal(")") - _t1594 = logic_pb2.Conjunction(args=[]) - result847 = _t1594 - self.record_span(span_start846, "Conjunction") - return result847 + _t1610 = logic_pb2.Conjunction(args=[]) + result855 = _t1610 + self.record_span(span_start854, "Conjunction") + return result855 def parse_false(self) -> logic_pb2.Disjunction: - span_start848 = self.span_start() + span_start856 = self.span_start() self.consume_literal("(") self.consume_literal("false") self.consume_literal(")") - _t1595 = logic_pb2.Disjunction(args=[]) - result849 = _t1595 - self.record_span(span_start848, "Disjunction") - return result849 + _t1611 = logic_pb2.Disjunction(args=[]) + result857 = _t1611 + self.record_span(span_start856, "Disjunction") + return result857 def parse_exists(self) -> logic_pb2.Exists: - span_start852 = self.span_start() + span_start860 = self.span_start() self.consume_literal("(") self.consume_literal("exists") - _t1596 = self.parse_bindings() - bindings850 = _t1596 - _t1597 = self.parse_formula() - formula851 = _t1597 - self.consume_literal(")") - _t1598 = logic_pb2.Abstraction(vars=(list(bindings850[0]) + list(bindings850[1] if bindings850[1] is not None else [])), value=formula851) - _t1599 = logic_pb2.Exists(body=_t1598) - result853 = _t1599 - self.record_span(span_start852, "Exists") - return result853 + _t1612 = self.parse_bindings() + bindings858 = _t1612 + _t1613 = self.parse_formula() + formula859 = _t1613 + self.consume_literal(")") + _t1614 = logic_pb2.Abstraction(vars=(list(bindings858[0]) + list(bindings858[1] if bindings858[1] is not None else [])), value=formula859) + _t1615 = logic_pb2.Exists(body=_t1614) + result861 = _t1615 + self.record_span(span_start860, "Exists") + return result861 def parse_reduce(self) -> logic_pb2.Reduce: - span_start857 = self.span_start() + span_start865 = self.span_start() self.consume_literal("(") self.consume_literal("reduce") - _t1600 = self.parse_abstraction() - abstraction854 = _t1600 - _t1601 = self.parse_abstraction() - abstraction_3855 = _t1601 - _t1602 = self.parse_terms() - terms856 = _t1602 - self.consume_literal(")") - _t1603 = logic_pb2.Reduce(op=abstraction854, body=abstraction_3855, terms=terms856) - result858 = _t1603 - self.record_span(span_start857, "Reduce") - return result858 + _t1616 = self.parse_abstraction() + abstraction862 = _t1616 + _t1617 = self.parse_abstraction() + abstraction_3863 = _t1617 + _t1618 = self.parse_terms() + terms864 = _t1618 + self.consume_literal(")") + _t1619 = logic_pb2.Reduce(op=abstraction862, body=abstraction_3863, terms=terms864) + result866 = _t1619 + self.record_span(span_start865, "Reduce") + return result866 def parse_terms(self) -> Sequence[logic_pb2.Term]: self.consume_literal("(") self.consume_literal("terms") - xs859 = [] - cond860 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - while cond860: - _t1604 = self.parse_term() - item861 = _t1604 - xs859.append(item861) - cond860 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - terms862 = xs859 + xs867 = [] + cond868 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + while cond868: + _t1620 = self.parse_term() + item869 = _t1620 + xs867.append(item869) + cond868 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + terms870 = xs867 self.consume_literal(")") - return terms862 + return terms870 def parse_term(self) -> logic_pb2.Term: - span_start866 = self.span_start() + span_start874 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1605 = 1 + _t1621 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1606 = 1 + _t1622 = 1 else: if self.match_lookahead_literal("false", 0): - _t1607 = 1 + _t1623 = 1 else: if self.match_lookahead_literal("(", 0): - _t1608 = 1 + _t1624 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1609 = 0 + _t1625 = 0 else: if self.match_lookahead_terminal("UINT32", 0): - _t1610 = 1 + _t1626 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1611 = 1 + _t1627 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1612 = 1 + _t1628 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1613 = 1 + _t1629 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1614 = 1 + _t1630 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1615 = 1 + _t1631 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1616 = 1 + _t1632 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1617 = 1 + _t1633 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1618 = 1 + _t1634 = 1 else: - _t1618 = -1 - _t1617 = _t1618 - _t1616 = _t1617 - _t1615 = _t1616 - _t1614 = _t1615 - _t1613 = _t1614 - _t1612 = _t1613 - _t1611 = _t1612 - _t1610 = _t1611 - _t1609 = _t1610 - _t1608 = _t1609 - _t1607 = _t1608 - _t1606 = _t1607 - _t1605 = _t1606 - prediction863 = _t1605 - if prediction863 == 1: - _t1620 = self.parse_value() - value865 = _t1620 - _t1621 = logic_pb2.Term(constant=value865) - _t1619 = _t1621 - else: - if prediction863 == 0: - _t1623 = self.parse_var() - var864 = _t1623 - _t1624 = logic_pb2.Term(var=var864) - _t1622 = _t1624 + _t1634 = -1 + _t1633 = _t1634 + _t1632 = _t1633 + _t1631 = _t1632 + _t1630 = _t1631 + _t1629 = _t1630 + _t1628 = _t1629 + _t1627 = _t1628 + _t1626 = _t1627 + _t1625 = _t1626 + _t1624 = _t1625 + _t1623 = _t1624 + _t1622 = _t1623 + _t1621 = _t1622 + prediction871 = _t1621 + if prediction871 == 1: + _t1636 = self.parse_value() + value873 = _t1636 + _t1637 = logic_pb2.Term(constant=value873) + _t1635 = _t1637 + else: + if prediction871 == 0: + _t1639 = self.parse_var() + var872 = _t1639 + _t1640 = logic_pb2.Term(var=var872) + _t1638 = _t1640 else: raise ParseError("Unexpected token in term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1619 = _t1622 - result867 = _t1619 - self.record_span(span_start866, "Term") - return result867 + _t1635 = _t1638 + result875 = _t1635 + self.record_span(span_start874, "Term") + return result875 def parse_var(self) -> logic_pb2.Var: - span_start869 = self.span_start() - symbol868 = self.consume_terminal("SYMBOL") - _t1625 = logic_pb2.Var(name=symbol868) - result870 = _t1625 - self.record_span(span_start869, "Var") - return result870 + span_start877 = self.span_start() + symbol876 = self.consume_terminal("SYMBOL") + _t1641 = logic_pb2.Var(name=symbol876) + result878 = _t1641 + self.record_span(span_start877, "Var") + return result878 def parse_value(self) -> logic_pb2.Value: - span_start884 = self.span_start() + span_start892 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1626 = 12 + _t1642 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1627 = 11 + _t1643 = 11 else: if self.match_lookahead_literal("false", 0): - _t1628 = 12 + _t1644 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1630 = 1 + _t1646 = 1 else: if self.match_lookahead_literal("date", 1): - _t1631 = 0 + _t1647 = 0 else: - _t1631 = -1 - _t1630 = _t1631 - _t1629 = _t1630 + _t1647 = -1 + _t1646 = _t1647 + _t1645 = _t1646 else: if self.match_lookahead_terminal("UINT32", 0): - _t1632 = 7 + _t1648 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1633 = 8 + _t1649 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1634 = 2 + _t1650 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1635 = 3 + _t1651 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1636 = 9 + _t1652 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1637 = 4 + _t1653 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1638 = 5 + _t1654 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1639 = 6 + _t1655 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1640 = 10 + _t1656 = 10 else: - _t1640 = -1 - _t1639 = _t1640 - _t1638 = _t1639 - _t1637 = _t1638 - _t1636 = _t1637 - _t1635 = _t1636 - _t1634 = _t1635 - _t1633 = _t1634 - _t1632 = _t1633 - _t1629 = _t1632 - _t1628 = _t1629 - _t1627 = _t1628 - _t1626 = _t1627 - prediction871 = _t1626 - if prediction871 == 12: - _t1642 = self.parse_boolean_value() - boolean_value883 = _t1642 - _t1643 = logic_pb2.Value(boolean_value=boolean_value883) - _t1641 = _t1643 - else: - if prediction871 == 11: + _t1656 = -1 + _t1655 = _t1656 + _t1654 = _t1655 + _t1653 = _t1654 + _t1652 = _t1653 + _t1651 = _t1652 + _t1650 = _t1651 + _t1649 = _t1650 + _t1648 = _t1649 + _t1645 = _t1648 + _t1644 = _t1645 + _t1643 = _t1644 + _t1642 = _t1643 + prediction879 = _t1642 + if prediction879 == 12: + _t1658 = self.parse_boolean_value() + boolean_value891 = _t1658 + _t1659 = logic_pb2.Value(boolean_value=boolean_value891) + _t1657 = _t1659 + else: + if prediction879 == 11: self.consume_literal("missing") - _t1645 = logic_pb2.MissingValue() - _t1646 = logic_pb2.Value(missing_value=_t1645) - _t1644 = _t1646 + _t1661 = logic_pb2.MissingValue() + _t1662 = logic_pb2.Value(missing_value=_t1661) + _t1660 = _t1662 else: - if prediction871 == 10: - formatted_decimal882 = self.consume_terminal("DECIMAL") - _t1648 = logic_pb2.Value(decimal_value=formatted_decimal882) - _t1647 = _t1648 + if prediction879 == 10: + formatted_decimal890 = self.consume_terminal("DECIMAL") + _t1664 = logic_pb2.Value(decimal_value=formatted_decimal890) + _t1663 = _t1664 else: - if prediction871 == 9: - formatted_int128881 = self.consume_terminal("INT128") - _t1650 = logic_pb2.Value(int128_value=formatted_int128881) - _t1649 = _t1650 + if prediction879 == 9: + formatted_int128889 = self.consume_terminal("INT128") + _t1666 = logic_pb2.Value(int128_value=formatted_int128889) + _t1665 = _t1666 else: - if prediction871 == 8: - formatted_uint128880 = self.consume_terminal("UINT128") - _t1652 = logic_pb2.Value(uint128_value=formatted_uint128880) - _t1651 = _t1652 + if prediction879 == 8: + formatted_uint128888 = self.consume_terminal("UINT128") + _t1668 = logic_pb2.Value(uint128_value=formatted_uint128888) + _t1667 = _t1668 else: - if prediction871 == 7: - formatted_uint32879 = self.consume_terminal("UINT32") - _t1654 = logic_pb2.Value(uint32_value=formatted_uint32879) - _t1653 = _t1654 + if prediction879 == 7: + formatted_uint32887 = self.consume_terminal("UINT32") + _t1670 = logic_pb2.Value(uint32_value=formatted_uint32887) + _t1669 = _t1670 else: - if prediction871 == 6: - formatted_float878 = self.consume_terminal("FLOAT") - _t1656 = logic_pb2.Value(float_value=formatted_float878) - _t1655 = _t1656 + if prediction879 == 6: + formatted_float886 = self.consume_terminal("FLOAT") + _t1672 = logic_pb2.Value(float_value=formatted_float886) + _t1671 = _t1672 else: - if prediction871 == 5: - formatted_float32877 = self.consume_terminal("FLOAT32") - _t1658 = logic_pb2.Value(float32_value=formatted_float32877) - _t1657 = _t1658 + if prediction879 == 5: + formatted_float32885 = self.consume_terminal("FLOAT32") + _t1674 = logic_pb2.Value(float32_value=formatted_float32885) + _t1673 = _t1674 else: - if prediction871 == 4: - formatted_int876 = self.consume_terminal("INT") - _t1660 = logic_pb2.Value(int_value=formatted_int876) - _t1659 = _t1660 + if prediction879 == 4: + formatted_int884 = self.consume_terminal("INT") + _t1676 = logic_pb2.Value(int_value=formatted_int884) + _t1675 = _t1676 else: - if prediction871 == 3: - formatted_int32875 = self.consume_terminal("INT32") - _t1662 = logic_pb2.Value(int32_value=formatted_int32875) - _t1661 = _t1662 + if prediction879 == 3: + formatted_int32883 = self.consume_terminal("INT32") + _t1678 = logic_pb2.Value(int32_value=formatted_int32883) + _t1677 = _t1678 else: - if prediction871 == 2: - formatted_string874 = self.consume_terminal("STRING") - _t1664 = logic_pb2.Value(string_value=formatted_string874) - _t1663 = _t1664 + if prediction879 == 2: + formatted_string882 = self.consume_terminal("STRING") + _t1680 = logic_pb2.Value(string_value=formatted_string882) + _t1679 = _t1680 else: - if prediction871 == 1: - _t1666 = self.parse_datetime() - datetime873 = _t1666 - _t1667 = logic_pb2.Value(datetime_value=datetime873) - _t1665 = _t1667 + if prediction879 == 1: + _t1682 = self.parse_datetime() + datetime881 = _t1682 + _t1683 = logic_pb2.Value(datetime_value=datetime881) + _t1681 = _t1683 else: - if prediction871 == 0: - _t1669 = self.parse_date() - date872 = _t1669 - _t1670 = logic_pb2.Value(date_value=date872) - _t1668 = _t1670 + if prediction879 == 0: + _t1685 = self.parse_date() + date880 = _t1685 + _t1686 = logic_pb2.Value(date_value=date880) + _t1684 = _t1686 else: raise ParseError("Unexpected token in value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1665 = _t1668 - _t1663 = _t1665 - _t1661 = _t1663 - _t1659 = _t1661 - _t1657 = _t1659 - _t1655 = _t1657 - _t1653 = _t1655 - _t1651 = _t1653 - _t1649 = _t1651 - _t1647 = _t1649 - _t1644 = _t1647 - _t1641 = _t1644 - result885 = _t1641 - self.record_span(span_start884, "Value") - return result885 + _t1681 = _t1684 + _t1679 = _t1681 + _t1677 = _t1679 + _t1675 = _t1677 + _t1673 = _t1675 + _t1671 = _t1673 + _t1669 = _t1671 + _t1667 = _t1669 + _t1665 = _t1667 + _t1663 = _t1665 + _t1660 = _t1663 + _t1657 = _t1660 + result893 = _t1657 + self.record_span(span_start892, "Value") + return result893 def parse_date(self) -> logic_pb2.DateValue: - span_start889 = self.span_start() + span_start897 = self.span_start() self.consume_literal("(") self.consume_literal("date") - formatted_int886 = self.consume_terminal("INT") - formatted_int_3887 = self.consume_terminal("INT") - formatted_int_4888 = self.consume_terminal("INT") + formatted_int894 = self.consume_terminal("INT") + formatted_int_3895 = self.consume_terminal("INT") + formatted_int_4896 = self.consume_terminal("INT") self.consume_literal(")") - _t1671 = logic_pb2.DateValue(year=int(formatted_int886), month=int(formatted_int_3887), day=int(formatted_int_4888)) - result890 = _t1671 - self.record_span(span_start889, "DateValue") - return result890 + _t1687 = logic_pb2.DateValue(year=int(formatted_int894), month=int(formatted_int_3895), day=int(formatted_int_4896)) + result898 = _t1687 + self.record_span(span_start897, "DateValue") + return result898 def parse_datetime(self) -> logic_pb2.DateTimeValue: - span_start898 = self.span_start() + span_start906 = self.span_start() self.consume_literal("(") self.consume_literal("datetime") - formatted_int891 = self.consume_terminal("INT") - formatted_int_3892 = self.consume_terminal("INT") - formatted_int_4893 = self.consume_terminal("INT") - formatted_int_5894 = self.consume_terminal("INT") - formatted_int_6895 = self.consume_terminal("INT") - formatted_int_7896 = self.consume_terminal("INT") + formatted_int899 = self.consume_terminal("INT") + formatted_int_3900 = self.consume_terminal("INT") + formatted_int_4901 = self.consume_terminal("INT") + formatted_int_5902 = self.consume_terminal("INT") + formatted_int_6903 = self.consume_terminal("INT") + formatted_int_7904 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1672 = self.consume_terminal("INT") + _t1688 = self.consume_terminal("INT") else: - _t1672 = None - formatted_int_8897 = _t1672 + _t1688 = None + formatted_int_8905 = _t1688 self.consume_literal(")") - _t1673 = logic_pb2.DateTimeValue(year=int(formatted_int891), month=int(formatted_int_3892), day=int(formatted_int_4893), hour=int(formatted_int_5894), minute=int(formatted_int_6895), second=int(formatted_int_7896), microsecond=int((formatted_int_8897 if formatted_int_8897 is not None else 0))) - result899 = _t1673 - self.record_span(span_start898, "DateTimeValue") - return result899 + _t1689 = logic_pb2.DateTimeValue(year=int(formatted_int899), month=int(formatted_int_3900), day=int(formatted_int_4901), hour=int(formatted_int_5902), minute=int(formatted_int_6903), second=int(formatted_int_7904), microsecond=int((formatted_int_8905 if formatted_int_8905 is not None else 0))) + result907 = _t1689 + self.record_span(span_start906, "DateTimeValue") + return result907 def parse_conjunction(self) -> logic_pb2.Conjunction: - span_start904 = self.span_start() + span_start912 = self.span_start() self.consume_literal("(") self.consume_literal("and") - xs900 = [] - cond901 = self.match_lookahead_literal("(", 0) - while cond901: - _t1674 = self.parse_formula() - item902 = _t1674 - xs900.append(item902) - cond901 = self.match_lookahead_literal("(", 0) - formulas903 = xs900 - self.consume_literal(")") - _t1675 = logic_pb2.Conjunction(args=formulas903) - result905 = _t1675 - self.record_span(span_start904, "Conjunction") - return result905 + xs908 = [] + cond909 = self.match_lookahead_literal("(", 0) + while cond909: + _t1690 = self.parse_formula() + item910 = _t1690 + xs908.append(item910) + cond909 = self.match_lookahead_literal("(", 0) + formulas911 = xs908 + self.consume_literal(")") + _t1691 = logic_pb2.Conjunction(args=formulas911) + result913 = _t1691 + self.record_span(span_start912, "Conjunction") + return result913 def parse_disjunction(self) -> logic_pb2.Disjunction: - span_start910 = self.span_start() + span_start918 = self.span_start() self.consume_literal("(") self.consume_literal("or") - xs906 = [] - cond907 = self.match_lookahead_literal("(", 0) - while cond907: - _t1676 = self.parse_formula() - item908 = _t1676 - xs906.append(item908) - cond907 = self.match_lookahead_literal("(", 0) - formulas909 = xs906 - self.consume_literal(")") - _t1677 = logic_pb2.Disjunction(args=formulas909) - result911 = _t1677 - self.record_span(span_start910, "Disjunction") - return result911 + xs914 = [] + cond915 = self.match_lookahead_literal("(", 0) + while cond915: + _t1692 = self.parse_formula() + item916 = _t1692 + xs914.append(item916) + cond915 = self.match_lookahead_literal("(", 0) + formulas917 = xs914 + self.consume_literal(")") + _t1693 = logic_pb2.Disjunction(args=formulas917) + result919 = _t1693 + self.record_span(span_start918, "Disjunction") + return result919 def parse_not(self) -> logic_pb2.Not: - span_start913 = self.span_start() + span_start921 = self.span_start() self.consume_literal("(") self.consume_literal("not") - _t1678 = self.parse_formula() - formula912 = _t1678 + _t1694 = self.parse_formula() + formula920 = _t1694 self.consume_literal(")") - _t1679 = logic_pb2.Not(arg=formula912) - result914 = _t1679 - self.record_span(span_start913, "Not") - return result914 + _t1695 = logic_pb2.Not(arg=formula920) + result922 = _t1695 + self.record_span(span_start921, "Not") + return result922 def parse_ffi(self) -> logic_pb2.FFI: - span_start918 = self.span_start() + span_start926 = self.span_start() self.consume_literal("(") self.consume_literal("ffi") - _t1680 = self.parse_name() - name915 = _t1680 - _t1681 = self.parse_ffi_args() - ffi_args916 = _t1681 - _t1682 = self.parse_terms() - terms917 = _t1682 - self.consume_literal(")") - _t1683 = logic_pb2.FFI(name=name915, args=ffi_args916, terms=terms917) - result919 = _t1683 - self.record_span(span_start918, "FFI") - return result919 + _t1696 = self.parse_name() + name923 = _t1696 + _t1697 = self.parse_ffi_args() + ffi_args924 = _t1697 + _t1698 = self.parse_terms() + terms925 = _t1698 + self.consume_literal(")") + _t1699 = logic_pb2.FFI(name=name923, args=ffi_args924, terms=terms925) + result927 = _t1699 + self.record_span(span_start926, "FFI") + return result927 def parse_name(self) -> str: self.consume_literal(":") - symbol920 = self.consume_terminal("SYMBOL") - return symbol920 + symbol928 = self.consume_terminal("SYMBOL") + return symbol928 def parse_ffi_args(self) -> Sequence[logic_pb2.Abstraction]: self.consume_literal("(") self.consume_literal("args") - xs921 = [] - cond922 = self.match_lookahead_literal("(", 0) - while cond922: - _t1684 = self.parse_abstraction() - item923 = _t1684 - xs921.append(item923) - cond922 = self.match_lookahead_literal("(", 0) - abstractions924 = xs921 + xs929 = [] + cond930 = self.match_lookahead_literal("(", 0) + while cond930: + _t1700 = self.parse_abstraction() + item931 = _t1700 + xs929.append(item931) + cond930 = self.match_lookahead_literal("(", 0) + abstractions932 = xs929 self.consume_literal(")") - return abstractions924 + return abstractions932 def parse_atom(self) -> logic_pb2.Atom: - span_start930 = self.span_start() + span_start938 = self.span_start() self.consume_literal("(") self.consume_literal("atom") - _t1685 = self.parse_relation_id() - relation_id925 = _t1685 - xs926 = [] - cond927 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - while cond927: - _t1686 = self.parse_term() - item928 = _t1686 - xs926.append(item928) - cond927 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - terms929 = xs926 - self.consume_literal(")") - _t1687 = logic_pb2.Atom(name=relation_id925, terms=terms929) - result931 = _t1687 - self.record_span(span_start930, "Atom") - return result931 + _t1701 = self.parse_relation_id() + relation_id933 = _t1701 + xs934 = [] + cond935 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + while cond935: + _t1702 = self.parse_term() + item936 = _t1702 + xs934.append(item936) + cond935 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + terms937 = xs934 + self.consume_literal(")") + _t1703 = logic_pb2.Atom(name=relation_id933, terms=terms937) + result939 = _t1703 + self.record_span(span_start938, "Atom") + return result939 def parse_pragma(self) -> logic_pb2.Pragma: - span_start937 = self.span_start() + span_start945 = self.span_start() self.consume_literal("(") self.consume_literal("pragma") - _t1688 = self.parse_name() - name932 = _t1688 - xs933 = [] - cond934 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - while cond934: - _t1689 = self.parse_term() - item935 = _t1689 - xs933.append(item935) - cond934 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - terms936 = xs933 - self.consume_literal(")") - _t1690 = logic_pb2.Pragma(name=name932, terms=terms936) - result938 = _t1690 - self.record_span(span_start937, "Pragma") - return result938 + _t1704 = self.parse_name() + name940 = _t1704 + xs941 = [] + cond942 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + while cond942: + _t1705 = self.parse_term() + item943 = _t1705 + xs941.append(item943) + cond942 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + terms944 = xs941 + self.consume_literal(")") + _t1706 = logic_pb2.Pragma(name=name940, terms=terms944) + result946 = _t1706 + self.record_span(span_start945, "Pragma") + return result946 def parse_primitive(self) -> logic_pb2.Primitive: - span_start954 = self.span_start() + span_start962 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t1692 = 9 + _t1708 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1693 = 4 + _t1709 = 4 else: if self.match_lookahead_literal(">", 1): - _t1694 = 3 + _t1710 = 3 else: if self.match_lookahead_literal("=", 1): - _t1695 = 0 + _t1711 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1696 = 2 + _t1712 = 2 else: if self.match_lookahead_literal("<", 1): - _t1697 = 1 + _t1713 = 1 else: if self.match_lookahead_literal("/", 1): - _t1698 = 8 + _t1714 = 8 else: if self.match_lookahead_literal("-", 1): - _t1699 = 6 + _t1715 = 6 else: if self.match_lookahead_literal("+", 1): - _t1700 = 5 + _t1716 = 5 else: if self.match_lookahead_literal("*", 1): - _t1701 = 7 + _t1717 = 7 else: - _t1701 = -1 - _t1700 = _t1701 - _t1699 = _t1700 - _t1698 = _t1699 - _t1697 = _t1698 - _t1696 = _t1697 - _t1695 = _t1696 - _t1694 = _t1695 - _t1693 = _t1694 - _t1692 = _t1693 - _t1691 = _t1692 - else: - _t1691 = -1 - prediction939 = _t1691 - if prediction939 == 9: + _t1717 = -1 + _t1716 = _t1717 + _t1715 = _t1716 + _t1714 = _t1715 + _t1713 = _t1714 + _t1712 = _t1713 + _t1711 = _t1712 + _t1710 = _t1711 + _t1709 = _t1710 + _t1708 = _t1709 + _t1707 = _t1708 + else: + _t1707 = -1 + prediction947 = _t1707 + if prediction947 == 9: self.consume_literal("(") self.consume_literal("primitive") - _t1703 = self.parse_name() - name949 = _t1703 - xs950 = [] - cond951 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - while cond951: - _t1704 = self.parse_rel_term() - item952 = _t1704 - xs950.append(item952) - cond951 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - rel_terms953 = xs950 + _t1719 = self.parse_name() + name957 = _t1719 + xs958 = [] + cond959 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + while cond959: + _t1720 = self.parse_rel_term() + item960 = _t1720 + xs958.append(item960) + cond959 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + rel_terms961 = xs958 self.consume_literal(")") - _t1705 = logic_pb2.Primitive(name=name949, terms=rel_terms953) - _t1702 = _t1705 + _t1721 = logic_pb2.Primitive(name=name957, terms=rel_terms961) + _t1718 = _t1721 else: - if prediction939 == 8: - _t1707 = self.parse_divide() - divide948 = _t1707 - _t1706 = divide948 + if prediction947 == 8: + _t1723 = self.parse_divide() + divide956 = _t1723 + _t1722 = divide956 else: - if prediction939 == 7: - _t1709 = self.parse_multiply() - multiply947 = _t1709 - _t1708 = multiply947 + if prediction947 == 7: + _t1725 = self.parse_multiply() + multiply955 = _t1725 + _t1724 = multiply955 else: - if prediction939 == 6: - _t1711 = self.parse_minus() - minus946 = _t1711 - _t1710 = minus946 + if prediction947 == 6: + _t1727 = self.parse_minus() + minus954 = _t1727 + _t1726 = minus954 else: - if prediction939 == 5: - _t1713 = self.parse_add() - add945 = _t1713 - _t1712 = add945 + if prediction947 == 5: + _t1729 = self.parse_add() + add953 = _t1729 + _t1728 = add953 else: - if prediction939 == 4: - _t1715 = self.parse_gt_eq() - gt_eq944 = _t1715 - _t1714 = gt_eq944 + if prediction947 == 4: + _t1731 = self.parse_gt_eq() + gt_eq952 = _t1731 + _t1730 = gt_eq952 else: - if prediction939 == 3: - _t1717 = self.parse_gt() - gt943 = _t1717 - _t1716 = gt943 + if prediction947 == 3: + _t1733 = self.parse_gt() + gt951 = _t1733 + _t1732 = gt951 else: - if prediction939 == 2: - _t1719 = self.parse_lt_eq() - lt_eq942 = _t1719 - _t1718 = lt_eq942 + if prediction947 == 2: + _t1735 = self.parse_lt_eq() + lt_eq950 = _t1735 + _t1734 = lt_eq950 else: - if prediction939 == 1: - _t1721 = self.parse_lt() - lt941 = _t1721 - _t1720 = lt941 + if prediction947 == 1: + _t1737 = self.parse_lt() + lt949 = _t1737 + _t1736 = lt949 else: - if prediction939 == 0: - _t1723 = self.parse_eq() - eq940 = _t1723 - _t1722 = eq940 + if prediction947 == 0: + _t1739 = self.parse_eq() + eq948 = _t1739 + _t1738 = eq948 else: raise ParseError("Unexpected token in primitive" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1720 = _t1722 - _t1718 = _t1720 - _t1716 = _t1718 - _t1714 = _t1716 - _t1712 = _t1714 - _t1710 = _t1712 - _t1708 = _t1710 - _t1706 = _t1708 - _t1702 = _t1706 - result955 = _t1702 - self.record_span(span_start954, "Primitive") - return result955 + _t1736 = _t1738 + _t1734 = _t1736 + _t1732 = _t1734 + _t1730 = _t1732 + _t1728 = _t1730 + _t1726 = _t1728 + _t1724 = _t1726 + _t1722 = _t1724 + _t1718 = _t1722 + result963 = _t1718 + self.record_span(span_start962, "Primitive") + return result963 def parse_eq(self) -> logic_pb2.Primitive: - span_start958 = self.span_start() + span_start966 = self.span_start() self.consume_literal("(") self.consume_literal("=") - _t1724 = self.parse_term() - term956 = _t1724 - _t1725 = self.parse_term() - term_3957 = _t1725 - self.consume_literal(")") - _t1726 = logic_pb2.RelTerm(term=term956) - _t1727 = logic_pb2.RelTerm(term=term_3957) - _t1728 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1726, _t1727]) - result959 = _t1728 - self.record_span(span_start958, "Primitive") - return result959 + _t1740 = self.parse_term() + term964 = _t1740 + _t1741 = self.parse_term() + term_3965 = _t1741 + self.consume_literal(")") + _t1742 = logic_pb2.RelTerm(term=term964) + _t1743 = logic_pb2.RelTerm(term=term_3965) + _t1744 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1742, _t1743]) + result967 = _t1744 + self.record_span(span_start966, "Primitive") + return result967 def parse_lt(self) -> logic_pb2.Primitive: - span_start962 = self.span_start() + span_start970 = self.span_start() self.consume_literal("(") self.consume_literal("<") - _t1729 = self.parse_term() - term960 = _t1729 - _t1730 = self.parse_term() - term_3961 = _t1730 - self.consume_literal(")") - _t1731 = logic_pb2.RelTerm(term=term960) - _t1732 = logic_pb2.RelTerm(term=term_3961) - _t1733 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1731, _t1732]) - result963 = _t1733 - self.record_span(span_start962, "Primitive") - return result963 + _t1745 = self.parse_term() + term968 = _t1745 + _t1746 = self.parse_term() + term_3969 = _t1746 + self.consume_literal(")") + _t1747 = logic_pb2.RelTerm(term=term968) + _t1748 = logic_pb2.RelTerm(term=term_3969) + _t1749 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1747, _t1748]) + result971 = _t1749 + self.record_span(span_start970, "Primitive") + return result971 def parse_lt_eq(self) -> logic_pb2.Primitive: - span_start966 = self.span_start() + span_start974 = self.span_start() self.consume_literal("(") self.consume_literal("<=") - _t1734 = self.parse_term() - term964 = _t1734 - _t1735 = self.parse_term() - term_3965 = _t1735 - self.consume_literal(")") - _t1736 = logic_pb2.RelTerm(term=term964) - _t1737 = logic_pb2.RelTerm(term=term_3965) - _t1738 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1736, _t1737]) - result967 = _t1738 - self.record_span(span_start966, "Primitive") - return result967 + _t1750 = self.parse_term() + term972 = _t1750 + _t1751 = self.parse_term() + term_3973 = _t1751 + self.consume_literal(")") + _t1752 = logic_pb2.RelTerm(term=term972) + _t1753 = logic_pb2.RelTerm(term=term_3973) + _t1754 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1752, _t1753]) + result975 = _t1754 + self.record_span(span_start974, "Primitive") + return result975 def parse_gt(self) -> logic_pb2.Primitive: - span_start970 = self.span_start() + span_start978 = self.span_start() self.consume_literal("(") self.consume_literal(">") - _t1739 = self.parse_term() - term968 = _t1739 - _t1740 = self.parse_term() - term_3969 = _t1740 + _t1755 = self.parse_term() + term976 = _t1755 + _t1756 = self.parse_term() + term_3977 = _t1756 self.consume_literal(")") - _t1741 = logic_pb2.RelTerm(term=term968) - _t1742 = logic_pb2.RelTerm(term=term_3969) - _t1743 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1741, _t1742]) - result971 = _t1743 - self.record_span(span_start970, "Primitive") - return result971 + _t1757 = logic_pb2.RelTerm(term=term976) + _t1758 = logic_pb2.RelTerm(term=term_3977) + _t1759 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1757, _t1758]) + result979 = _t1759 + self.record_span(span_start978, "Primitive") + return result979 def parse_gt_eq(self) -> logic_pb2.Primitive: - span_start974 = self.span_start() + span_start982 = self.span_start() self.consume_literal("(") self.consume_literal(">=") - _t1744 = self.parse_term() - term972 = _t1744 - _t1745 = self.parse_term() - term_3973 = _t1745 - self.consume_literal(")") - _t1746 = logic_pb2.RelTerm(term=term972) - _t1747 = logic_pb2.RelTerm(term=term_3973) - _t1748 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1746, _t1747]) - result975 = _t1748 - self.record_span(span_start974, "Primitive") - return result975 + _t1760 = self.parse_term() + term980 = _t1760 + _t1761 = self.parse_term() + term_3981 = _t1761 + self.consume_literal(")") + _t1762 = logic_pb2.RelTerm(term=term980) + _t1763 = logic_pb2.RelTerm(term=term_3981) + _t1764 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1762, _t1763]) + result983 = _t1764 + self.record_span(span_start982, "Primitive") + return result983 def parse_add(self) -> logic_pb2.Primitive: - span_start979 = self.span_start() + span_start987 = self.span_start() self.consume_literal("(") self.consume_literal("+") - _t1749 = self.parse_term() - term976 = _t1749 - _t1750 = self.parse_term() - term_3977 = _t1750 - _t1751 = self.parse_term() - term_4978 = _t1751 - self.consume_literal(")") - _t1752 = logic_pb2.RelTerm(term=term976) - _t1753 = logic_pb2.RelTerm(term=term_3977) - _t1754 = logic_pb2.RelTerm(term=term_4978) - _t1755 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1752, _t1753, _t1754]) - result980 = _t1755 - self.record_span(span_start979, "Primitive") - return result980 + _t1765 = self.parse_term() + term984 = _t1765 + _t1766 = self.parse_term() + term_3985 = _t1766 + _t1767 = self.parse_term() + term_4986 = _t1767 + self.consume_literal(")") + _t1768 = logic_pb2.RelTerm(term=term984) + _t1769 = logic_pb2.RelTerm(term=term_3985) + _t1770 = logic_pb2.RelTerm(term=term_4986) + _t1771 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1768, _t1769, _t1770]) + result988 = _t1771 + self.record_span(span_start987, "Primitive") + return result988 def parse_minus(self) -> logic_pb2.Primitive: - span_start984 = self.span_start() + span_start992 = self.span_start() self.consume_literal("(") self.consume_literal("-") - _t1756 = self.parse_term() - term981 = _t1756 - _t1757 = self.parse_term() - term_3982 = _t1757 - _t1758 = self.parse_term() - term_4983 = _t1758 - self.consume_literal(")") - _t1759 = logic_pb2.RelTerm(term=term981) - _t1760 = logic_pb2.RelTerm(term=term_3982) - _t1761 = logic_pb2.RelTerm(term=term_4983) - _t1762 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1759, _t1760, _t1761]) - result985 = _t1762 - self.record_span(span_start984, "Primitive") - return result985 + _t1772 = self.parse_term() + term989 = _t1772 + _t1773 = self.parse_term() + term_3990 = _t1773 + _t1774 = self.parse_term() + term_4991 = _t1774 + self.consume_literal(")") + _t1775 = logic_pb2.RelTerm(term=term989) + _t1776 = logic_pb2.RelTerm(term=term_3990) + _t1777 = logic_pb2.RelTerm(term=term_4991) + _t1778 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1775, _t1776, _t1777]) + result993 = _t1778 + self.record_span(span_start992, "Primitive") + return result993 def parse_multiply(self) -> logic_pb2.Primitive: - span_start989 = self.span_start() + span_start997 = self.span_start() self.consume_literal("(") self.consume_literal("*") - _t1763 = self.parse_term() - term986 = _t1763 - _t1764 = self.parse_term() - term_3987 = _t1764 - _t1765 = self.parse_term() - term_4988 = _t1765 - self.consume_literal(")") - _t1766 = logic_pb2.RelTerm(term=term986) - _t1767 = logic_pb2.RelTerm(term=term_3987) - _t1768 = logic_pb2.RelTerm(term=term_4988) - _t1769 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1766, _t1767, _t1768]) - result990 = _t1769 - self.record_span(span_start989, "Primitive") - return result990 + _t1779 = self.parse_term() + term994 = _t1779 + _t1780 = self.parse_term() + term_3995 = _t1780 + _t1781 = self.parse_term() + term_4996 = _t1781 + self.consume_literal(")") + _t1782 = logic_pb2.RelTerm(term=term994) + _t1783 = logic_pb2.RelTerm(term=term_3995) + _t1784 = logic_pb2.RelTerm(term=term_4996) + _t1785 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1782, _t1783, _t1784]) + result998 = _t1785 + self.record_span(span_start997, "Primitive") + return result998 def parse_divide(self) -> logic_pb2.Primitive: - span_start994 = self.span_start() + span_start1002 = self.span_start() self.consume_literal("(") self.consume_literal("/") - _t1770 = self.parse_term() - term991 = _t1770 - _t1771 = self.parse_term() - term_3992 = _t1771 - _t1772 = self.parse_term() - term_4993 = _t1772 - self.consume_literal(")") - _t1773 = logic_pb2.RelTerm(term=term991) - _t1774 = logic_pb2.RelTerm(term=term_3992) - _t1775 = logic_pb2.RelTerm(term=term_4993) - _t1776 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1773, _t1774, _t1775]) - result995 = _t1776 - self.record_span(span_start994, "Primitive") - return result995 + _t1786 = self.parse_term() + term999 = _t1786 + _t1787 = self.parse_term() + term_31000 = _t1787 + _t1788 = self.parse_term() + term_41001 = _t1788 + self.consume_literal(")") + _t1789 = logic_pb2.RelTerm(term=term999) + _t1790 = logic_pb2.RelTerm(term=term_31000) + _t1791 = logic_pb2.RelTerm(term=term_41001) + _t1792 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1789, _t1790, _t1791]) + result1003 = _t1792 + self.record_span(span_start1002, "Primitive") + return result1003 def parse_rel_term(self) -> logic_pb2.RelTerm: - span_start999 = self.span_start() + span_start1007 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1777 = 1 + _t1793 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1778 = 1 + _t1794 = 1 else: if self.match_lookahead_literal("false", 0): - _t1779 = 1 + _t1795 = 1 else: if self.match_lookahead_literal("(", 0): - _t1780 = 1 + _t1796 = 1 else: if self.match_lookahead_literal("#", 0): - _t1781 = 0 + _t1797 = 0 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1782 = 1 + _t1798 = 1 else: if self.match_lookahead_terminal("UINT32", 0): - _t1783 = 1 + _t1799 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1784 = 1 + _t1800 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1785 = 1 + _t1801 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1786 = 1 + _t1802 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1787 = 1 + _t1803 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1788 = 1 + _t1804 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1789 = 1 + _t1805 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1790 = 1 + _t1806 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1791 = 1 + _t1807 = 1 else: - _t1791 = -1 - _t1790 = _t1791 - _t1789 = _t1790 - _t1788 = _t1789 - _t1787 = _t1788 - _t1786 = _t1787 - _t1785 = _t1786 - _t1784 = _t1785 - _t1783 = _t1784 - _t1782 = _t1783 - _t1781 = _t1782 - _t1780 = _t1781 - _t1779 = _t1780 - _t1778 = _t1779 - _t1777 = _t1778 - prediction996 = _t1777 - if prediction996 == 1: - _t1793 = self.parse_term() - term998 = _t1793 - _t1794 = logic_pb2.RelTerm(term=term998) - _t1792 = _t1794 - else: - if prediction996 == 0: - _t1796 = self.parse_specialized_value() - specialized_value997 = _t1796 - _t1797 = logic_pb2.RelTerm(specialized_value=specialized_value997) - _t1795 = _t1797 + _t1807 = -1 + _t1806 = _t1807 + _t1805 = _t1806 + _t1804 = _t1805 + _t1803 = _t1804 + _t1802 = _t1803 + _t1801 = _t1802 + _t1800 = _t1801 + _t1799 = _t1800 + _t1798 = _t1799 + _t1797 = _t1798 + _t1796 = _t1797 + _t1795 = _t1796 + _t1794 = _t1795 + _t1793 = _t1794 + prediction1004 = _t1793 + if prediction1004 == 1: + _t1809 = self.parse_term() + term1006 = _t1809 + _t1810 = logic_pb2.RelTerm(term=term1006) + _t1808 = _t1810 + else: + if prediction1004 == 0: + _t1812 = self.parse_specialized_value() + specialized_value1005 = _t1812 + _t1813 = logic_pb2.RelTerm(specialized_value=specialized_value1005) + _t1811 = _t1813 else: raise ParseError("Unexpected token in rel_term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1792 = _t1795 - result1000 = _t1792 - self.record_span(span_start999, "RelTerm") - return result1000 + _t1808 = _t1811 + result1008 = _t1808 + self.record_span(span_start1007, "RelTerm") + return result1008 def parse_specialized_value(self) -> logic_pb2.Value: - span_start1002 = self.span_start() + span_start1010 = self.span_start() self.consume_literal("#") - _t1798 = self.parse_raw_value() - raw_value1001 = _t1798 - result1003 = raw_value1001 - self.record_span(span_start1002, "Value") - return result1003 + _t1814 = self.parse_raw_value() + raw_value1009 = _t1814 + result1011 = raw_value1009 + self.record_span(span_start1010, "Value") + return result1011 def parse_rel_atom(self) -> logic_pb2.RelAtom: - span_start1009 = self.span_start() + span_start1017 = self.span_start() self.consume_literal("(") self.consume_literal("relatom") - _t1799 = self.parse_name() - name1004 = _t1799 - xs1005 = [] - cond1006 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - while cond1006: - _t1800 = self.parse_rel_term() - item1007 = _t1800 - xs1005.append(item1007) - cond1006 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) - rel_terms1008 = xs1005 - self.consume_literal(")") - _t1801 = logic_pb2.RelAtom(name=name1004, terms=rel_terms1008) - result1010 = _t1801 - self.record_span(span_start1009, "RelAtom") - return result1010 + _t1815 = self.parse_name() + name1012 = _t1815 + xs1013 = [] + cond1014 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + while cond1014: + _t1816 = self.parse_rel_term() + item1015 = _t1816 + xs1013.append(item1015) + cond1014 = ((((((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) + rel_terms1016 = xs1013 + self.consume_literal(")") + _t1817 = logic_pb2.RelAtom(name=name1012, terms=rel_terms1016) + result1018 = _t1817 + self.record_span(span_start1017, "RelAtom") + return result1018 def parse_cast(self) -> logic_pb2.Cast: - span_start1013 = self.span_start() + span_start1021 = self.span_start() self.consume_literal("(") self.consume_literal("cast") - _t1802 = self.parse_term() - term1011 = _t1802 - _t1803 = self.parse_term() - term_31012 = _t1803 + _t1818 = self.parse_term() + term1019 = _t1818 + _t1819 = self.parse_term() + term_31020 = _t1819 self.consume_literal(")") - _t1804 = logic_pb2.Cast(input=term1011, result=term_31012) - result1014 = _t1804 - self.record_span(span_start1013, "Cast") - return result1014 + _t1820 = logic_pb2.Cast(input=term1019, result=term_31020) + result1022 = _t1820 + self.record_span(span_start1021, "Cast") + return result1022 def parse_attrs(self) -> Sequence[logic_pb2.Attribute]: self.consume_literal("(") self.consume_literal("attrs") - xs1015 = [] - cond1016 = self.match_lookahead_literal("(", 0) - while cond1016: - _t1805 = self.parse_attribute() - item1017 = _t1805 - xs1015.append(item1017) - cond1016 = self.match_lookahead_literal("(", 0) - attributes1018 = xs1015 + xs1023 = [] + cond1024 = self.match_lookahead_literal("(", 0) + while cond1024: + _t1821 = self.parse_attribute() + item1025 = _t1821 + xs1023.append(item1025) + cond1024 = self.match_lookahead_literal("(", 0) + attributes1026 = xs1023 self.consume_literal(")") - return attributes1018 + return attributes1026 def parse_attribute(self) -> logic_pb2.Attribute: - span_start1024 = self.span_start() + span_start1032 = self.span_start() self.consume_literal("(") self.consume_literal("attribute") - _t1806 = self.parse_name() - name1019 = _t1806 - xs1020 = [] - cond1021 = ((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond1021: - _t1807 = self.parse_raw_value() - item1022 = _t1807 - xs1020.append(item1022) - cond1021 = ((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - raw_values1023 = xs1020 - self.consume_literal(")") - _t1808 = logic_pb2.Attribute(name=name1019, args=raw_values1023) - result1025 = _t1808 - self.record_span(span_start1024, "Attribute") - return result1025 + _t1822 = self.parse_name() + name1027 = _t1822 + xs1028 = [] + cond1029 = ((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond1029: + _t1823 = self.parse_raw_value() + item1030 = _t1823 + xs1028.append(item1030) + cond1029 = ((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + raw_values1031 = xs1028 + self.consume_literal(")") + _t1824 = logic_pb2.Attribute(name=name1027, args=raw_values1031) + result1033 = _t1824 + self.record_span(span_start1032, "Attribute") + return result1033 def parse_algorithm(self) -> logic_pb2.Algorithm: - span_start1032 = self.span_start() + span_start1040 = self.span_start() self.consume_literal("(") self.consume_literal("algorithm") - xs1026 = [] - cond1027 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond1027: - _t1809 = self.parse_relation_id() - item1028 = _t1809 - xs1026.append(item1028) - cond1027 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids1029 = xs1026 - _t1810 = self.parse_script() - script1030 = _t1810 + xs1034 = [] + cond1035 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1035: + _t1825 = self.parse_relation_id() + item1036 = _t1825 + xs1034.append(item1036) + cond1035 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1037 = xs1034 + _t1826 = self.parse_script() + script1038 = _t1826 if self.match_lookahead_literal("(", 0): - _t1812 = self.parse_attrs() - _t1811 = _t1812 + _t1828 = self.parse_attrs() + _t1827 = _t1828 else: - _t1811 = None - attrs1031 = _t1811 + _t1827 = None + attrs1039 = _t1827 self.consume_literal(")") - _t1813 = logic_pb2.Algorithm(body=script1030, attrs=(attrs1031 if attrs1031 is not None else [])) - getattr(_t1813, 'global').extend(relation_ids1029) - result1033 = _t1813 - self.record_span(span_start1032, "Algorithm") - return result1033 + _t1829 = logic_pb2.Algorithm(body=script1038, attrs=(attrs1039 if attrs1039 is not None else [])) + getattr(_t1829, 'global').extend(relation_ids1037) + result1041 = _t1829 + self.record_span(span_start1040, "Algorithm") + return result1041 def parse_script(self) -> logic_pb2.Script: - span_start1038 = self.span_start() + span_start1046 = self.span_start() self.consume_literal("(") self.consume_literal("script") - xs1034 = [] - cond1035 = self.match_lookahead_literal("(", 0) - while cond1035: - _t1814 = self.parse_construct() - item1036 = _t1814 - xs1034.append(item1036) - cond1035 = self.match_lookahead_literal("(", 0) - constructs1037 = xs1034 - self.consume_literal(")") - _t1815 = logic_pb2.Script(constructs=constructs1037) - result1039 = _t1815 - self.record_span(span_start1038, "Script") - return result1039 + xs1042 = [] + cond1043 = self.match_lookahead_literal("(", 0) + while cond1043: + _t1830 = self.parse_construct() + item1044 = _t1830 + xs1042.append(item1044) + cond1043 = self.match_lookahead_literal("(", 0) + constructs1045 = xs1042 + self.consume_literal(")") + _t1831 = logic_pb2.Script(constructs=constructs1045) + result1047 = _t1831 + self.record_span(span_start1046, "Script") + return result1047 def parse_construct(self) -> logic_pb2.Construct: - span_start1043 = self.span_start() + span_start1051 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1817 = 1 + _t1833 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1818 = 1 + _t1834 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1819 = 1 + _t1835 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1820 = 0 + _t1836 = 0 else: if self.match_lookahead_literal("break", 1): - _t1821 = 1 + _t1837 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1822 = 1 + _t1838 = 1 else: - _t1822 = -1 - _t1821 = _t1822 - _t1820 = _t1821 - _t1819 = _t1820 - _t1818 = _t1819 - _t1817 = _t1818 - _t1816 = _t1817 - else: - _t1816 = -1 - prediction1040 = _t1816 - if prediction1040 == 1: - _t1824 = self.parse_instruction() - instruction1042 = _t1824 - _t1825 = logic_pb2.Construct(instruction=instruction1042) - _t1823 = _t1825 - else: - if prediction1040 == 0: - _t1827 = self.parse_loop() - loop1041 = _t1827 - _t1828 = logic_pb2.Construct(loop=loop1041) - _t1826 = _t1828 + _t1838 = -1 + _t1837 = _t1838 + _t1836 = _t1837 + _t1835 = _t1836 + _t1834 = _t1835 + _t1833 = _t1834 + _t1832 = _t1833 + else: + _t1832 = -1 + prediction1048 = _t1832 + if prediction1048 == 1: + _t1840 = self.parse_instruction() + instruction1050 = _t1840 + _t1841 = logic_pb2.Construct(instruction=instruction1050) + _t1839 = _t1841 + else: + if prediction1048 == 0: + _t1843 = self.parse_loop() + loop1049 = _t1843 + _t1844 = logic_pb2.Construct(loop=loop1049) + _t1842 = _t1844 else: raise ParseError("Unexpected token in construct" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1823 = _t1826 - result1044 = _t1823 - self.record_span(span_start1043, "Construct") - return result1044 + _t1839 = _t1842 + result1052 = _t1839 + self.record_span(span_start1051, "Construct") + return result1052 def parse_loop(self) -> logic_pb2.Loop: - span_start1048 = self.span_start() + span_start1056 = self.span_start() self.consume_literal("(") self.consume_literal("loop") - _t1829 = self.parse_init() - init1045 = _t1829 - _t1830 = self.parse_script() - script1046 = _t1830 + _t1845 = self.parse_init() + init1053 = _t1845 + _t1846 = self.parse_script() + script1054 = _t1846 if self.match_lookahead_literal("(", 0): - _t1832 = self.parse_attrs() - _t1831 = _t1832 + _t1848 = self.parse_attrs() + _t1847 = _t1848 else: - _t1831 = None - attrs1047 = _t1831 + _t1847 = None + attrs1055 = _t1847 self.consume_literal(")") - _t1833 = logic_pb2.Loop(init=init1045, body=script1046, attrs=(attrs1047 if attrs1047 is not None else [])) - result1049 = _t1833 - self.record_span(span_start1048, "Loop") - return result1049 + _t1849 = logic_pb2.Loop(init=init1053, body=script1054, attrs=(attrs1055 if attrs1055 is not None else [])) + result1057 = _t1849 + self.record_span(span_start1056, "Loop") + return result1057 def parse_init(self) -> Sequence[logic_pb2.Instruction]: self.consume_literal("(") self.consume_literal("init") - xs1050 = [] - cond1051 = self.match_lookahead_literal("(", 0) - while cond1051: - _t1834 = self.parse_instruction() - item1052 = _t1834 - xs1050.append(item1052) - cond1051 = self.match_lookahead_literal("(", 0) - instructions1053 = xs1050 + xs1058 = [] + cond1059 = self.match_lookahead_literal("(", 0) + while cond1059: + _t1850 = self.parse_instruction() + item1060 = _t1850 + xs1058.append(item1060) + cond1059 = self.match_lookahead_literal("(", 0) + instructions1061 = xs1058 self.consume_literal(")") - return instructions1053 + return instructions1061 def parse_instruction(self) -> logic_pb2.Instruction: - span_start1060 = self.span_start() + span_start1068 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1836 = 1 + _t1852 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1837 = 4 + _t1853 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1838 = 3 + _t1854 = 3 else: if self.match_lookahead_literal("break", 1): - _t1839 = 2 + _t1855 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1840 = 0 + _t1856 = 0 else: - _t1840 = -1 - _t1839 = _t1840 - _t1838 = _t1839 - _t1837 = _t1838 - _t1836 = _t1837 - _t1835 = _t1836 - else: - _t1835 = -1 - prediction1054 = _t1835 - if prediction1054 == 4: - _t1842 = self.parse_monus_def() - monus_def1059 = _t1842 - _t1843 = logic_pb2.Instruction(monus_def=monus_def1059) - _t1841 = _t1843 - else: - if prediction1054 == 3: - _t1845 = self.parse_monoid_def() - monoid_def1058 = _t1845 - _t1846 = logic_pb2.Instruction(monoid_def=monoid_def1058) - _t1844 = _t1846 + _t1856 = -1 + _t1855 = _t1856 + _t1854 = _t1855 + _t1853 = _t1854 + _t1852 = _t1853 + _t1851 = _t1852 + else: + _t1851 = -1 + prediction1062 = _t1851 + if prediction1062 == 4: + _t1858 = self.parse_monus_def() + monus_def1067 = _t1858 + _t1859 = logic_pb2.Instruction(monus_def=monus_def1067) + _t1857 = _t1859 + else: + if prediction1062 == 3: + _t1861 = self.parse_monoid_def() + monoid_def1066 = _t1861 + _t1862 = logic_pb2.Instruction(monoid_def=monoid_def1066) + _t1860 = _t1862 else: - if prediction1054 == 2: - _t1848 = self.parse_break() - break1057 = _t1848 - _t1849 = logic_pb2.Instruction() - getattr(_t1849, 'break').CopyFrom(break1057) - _t1847 = _t1849 + if prediction1062 == 2: + _t1864 = self.parse_break() + break1065 = _t1864 + _t1865 = logic_pb2.Instruction() + getattr(_t1865, 'break').CopyFrom(break1065) + _t1863 = _t1865 else: - if prediction1054 == 1: - _t1851 = self.parse_upsert() - upsert1056 = _t1851 - _t1852 = logic_pb2.Instruction(upsert=upsert1056) - _t1850 = _t1852 + if prediction1062 == 1: + _t1867 = self.parse_upsert() + upsert1064 = _t1867 + _t1868 = logic_pb2.Instruction(upsert=upsert1064) + _t1866 = _t1868 else: - if prediction1054 == 0: - _t1854 = self.parse_assign() - assign1055 = _t1854 - _t1855 = logic_pb2.Instruction(assign=assign1055) - _t1853 = _t1855 + if prediction1062 == 0: + _t1870 = self.parse_assign() + assign1063 = _t1870 + _t1871 = logic_pb2.Instruction(assign=assign1063) + _t1869 = _t1871 else: raise ParseError("Unexpected token in instruction" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1850 = _t1853 - _t1847 = _t1850 - _t1844 = _t1847 - _t1841 = _t1844 - result1061 = _t1841 - self.record_span(span_start1060, "Instruction") - return result1061 + _t1866 = _t1869 + _t1863 = _t1866 + _t1860 = _t1863 + _t1857 = _t1860 + result1069 = _t1857 + self.record_span(span_start1068, "Instruction") + return result1069 def parse_assign(self) -> logic_pb2.Assign: - span_start1065 = self.span_start() + span_start1073 = self.span_start() self.consume_literal("(") self.consume_literal("assign") - _t1856 = self.parse_relation_id() - relation_id1062 = _t1856 - _t1857 = self.parse_abstraction() - abstraction1063 = _t1857 + _t1872 = self.parse_relation_id() + relation_id1070 = _t1872 + _t1873 = self.parse_abstraction() + abstraction1071 = _t1873 if self.match_lookahead_literal("(", 0): - _t1859 = self.parse_attrs() - _t1858 = _t1859 + _t1875 = self.parse_attrs() + _t1874 = _t1875 else: - _t1858 = None - attrs1064 = _t1858 + _t1874 = None + attrs1072 = _t1874 self.consume_literal(")") - _t1860 = logic_pb2.Assign(name=relation_id1062, body=abstraction1063, attrs=(attrs1064 if attrs1064 is not None else [])) - result1066 = _t1860 - self.record_span(span_start1065, "Assign") - return result1066 + _t1876 = logic_pb2.Assign(name=relation_id1070, body=abstraction1071, attrs=(attrs1072 if attrs1072 is not None else [])) + result1074 = _t1876 + self.record_span(span_start1073, "Assign") + return result1074 def parse_upsert(self) -> logic_pb2.Upsert: - span_start1070 = self.span_start() + span_start1078 = self.span_start() self.consume_literal("(") self.consume_literal("upsert") - _t1861 = self.parse_relation_id() - relation_id1067 = _t1861 - _t1862 = self.parse_abstraction_with_arity() - abstraction_with_arity1068 = _t1862 + _t1877 = self.parse_relation_id() + relation_id1075 = _t1877 + _t1878 = self.parse_abstraction_with_arity() + abstraction_with_arity1076 = _t1878 if self.match_lookahead_literal("(", 0): - _t1864 = self.parse_attrs() - _t1863 = _t1864 + _t1880 = self.parse_attrs() + _t1879 = _t1880 else: - _t1863 = None - attrs1069 = _t1863 + _t1879 = None + attrs1077 = _t1879 self.consume_literal(")") - _t1865 = logic_pb2.Upsert(name=relation_id1067, body=abstraction_with_arity1068[0], attrs=(attrs1069 if attrs1069 is not None else []), value_arity=abstraction_with_arity1068[1]) - result1071 = _t1865 - self.record_span(span_start1070, "Upsert") - return result1071 + _t1881 = logic_pb2.Upsert(name=relation_id1075, body=abstraction_with_arity1076[0], attrs=(attrs1077 if attrs1077 is not None else []), value_arity=abstraction_with_arity1076[1]) + result1079 = _t1881 + self.record_span(span_start1078, "Upsert") + return result1079 def parse_abstraction_with_arity(self) -> tuple[logic_pb2.Abstraction, int]: self.consume_literal("(") - _t1866 = self.parse_bindings() - bindings1072 = _t1866 - _t1867 = self.parse_formula() - formula1073 = _t1867 + _t1882 = self.parse_bindings() + bindings1080 = _t1882 + _t1883 = self.parse_formula() + formula1081 = _t1883 self.consume_literal(")") - _t1868 = logic_pb2.Abstraction(vars=(list(bindings1072[0]) + list(bindings1072[1] if bindings1072[1] is not None else [])), value=formula1073) - return (_t1868, len(bindings1072[1]),) + _t1884 = logic_pb2.Abstraction(vars=(list(bindings1080[0]) + list(bindings1080[1] if bindings1080[1] is not None else [])), value=formula1081) + return (_t1884, len(bindings1080[1]),) def parse_break(self) -> logic_pb2.Break: - span_start1077 = self.span_start() + span_start1085 = self.span_start() self.consume_literal("(") self.consume_literal("break") - _t1869 = self.parse_relation_id() - relation_id1074 = _t1869 - _t1870 = self.parse_abstraction() - abstraction1075 = _t1870 + _t1885 = self.parse_relation_id() + relation_id1082 = _t1885 + _t1886 = self.parse_abstraction() + abstraction1083 = _t1886 if self.match_lookahead_literal("(", 0): - _t1872 = self.parse_attrs() - _t1871 = _t1872 + _t1888 = self.parse_attrs() + _t1887 = _t1888 else: - _t1871 = None - attrs1076 = _t1871 + _t1887 = None + attrs1084 = _t1887 self.consume_literal(")") - _t1873 = logic_pb2.Break(name=relation_id1074, body=abstraction1075, attrs=(attrs1076 if attrs1076 is not None else [])) - result1078 = _t1873 - self.record_span(span_start1077, "Break") - return result1078 + _t1889 = logic_pb2.Break(name=relation_id1082, body=abstraction1083, attrs=(attrs1084 if attrs1084 is not None else [])) + result1086 = _t1889 + self.record_span(span_start1085, "Break") + return result1086 def parse_monoid_def(self) -> logic_pb2.MonoidDef: - span_start1083 = self.span_start() + span_start1091 = self.span_start() self.consume_literal("(") self.consume_literal("monoid") - _t1874 = self.parse_monoid() - monoid1079 = _t1874 - _t1875 = self.parse_relation_id() - relation_id1080 = _t1875 - _t1876 = self.parse_abstraction_with_arity() - abstraction_with_arity1081 = _t1876 + _t1890 = self.parse_monoid() + monoid1087 = _t1890 + _t1891 = self.parse_relation_id() + relation_id1088 = _t1891 + _t1892 = self.parse_abstraction_with_arity() + abstraction_with_arity1089 = _t1892 if self.match_lookahead_literal("(", 0): - _t1878 = self.parse_attrs() - _t1877 = _t1878 + _t1894 = self.parse_attrs() + _t1893 = _t1894 else: - _t1877 = None - attrs1082 = _t1877 + _t1893 = None + attrs1090 = _t1893 self.consume_literal(")") - _t1879 = logic_pb2.MonoidDef(monoid=monoid1079, name=relation_id1080, body=abstraction_with_arity1081[0], attrs=(attrs1082 if attrs1082 is not None else []), value_arity=abstraction_with_arity1081[1]) - result1084 = _t1879 - self.record_span(span_start1083, "MonoidDef") - return result1084 + _t1895 = logic_pb2.MonoidDef(monoid=monoid1087, name=relation_id1088, body=abstraction_with_arity1089[0], attrs=(attrs1090 if attrs1090 is not None else []), value_arity=abstraction_with_arity1089[1]) + result1092 = _t1895 + self.record_span(span_start1091, "MonoidDef") + return result1092 def parse_monoid(self) -> logic_pb2.Monoid: - span_start1090 = self.span_start() + span_start1098 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1881 = 3 + _t1897 = 3 else: if self.match_lookahead_literal("or", 1): - _t1882 = 0 + _t1898 = 0 else: if self.match_lookahead_literal("min", 1): - _t1883 = 1 + _t1899 = 1 else: if self.match_lookahead_literal("max", 1): - _t1884 = 2 + _t1900 = 2 else: - _t1884 = -1 - _t1883 = _t1884 - _t1882 = _t1883 - _t1881 = _t1882 - _t1880 = _t1881 - else: - _t1880 = -1 - prediction1085 = _t1880 - if prediction1085 == 3: - _t1886 = self.parse_sum_monoid() - sum_monoid1089 = _t1886 - _t1887 = logic_pb2.Monoid(sum_monoid=sum_monoid1089) - _t1885 = _t1887 - else: - if prediction1085 == 2: - _t1889 = self.parse_max_monoid() - max_monoid1088 = _t1889 - _t1890 = logic_pb2.Monoid(max_monoid=max_monoid1088) - _t1888 = _t1890 + _t1900 = -1 + _t1899 = _t1900 + _t1898 = _t1899 + _t1897 = _t1898 + _t1896 = _t1897 + else: + _t1896 = -1 + prediction1093 = _t1896 + if prediction1093 == 3: + _t1902 = self.parse_sum_monoid() + sum_monoid1097 = _t1902 + _t1903 = logic_pb2.Monoid(sum_monoid=sum_monoid1097) + _t1901 = _t1903 + else: + if prediction1093 == 2: + _t1905 = self.parse_max_monoid() + max_monoid1096 = _t1905 + _t1906 = logic_pb2.Monoid(max_monoid=max_monoid1096) + _t1904 = _t1906 else: - if prediction1085 == 1: - _t1892 = self.parse_min_monoid() - min_monoid1087 = _t1892 - _t1893 = logic_pb2.Monoid(min_monoid=min_monoid1087) - _t1891 = _t1893 + if prediction1093 == 1: + _t1908 = self.parse_min_monoid() + min_monoid1095 = _t1908 + _t1909 = logic_pb2.Monoid(min_monoid=min_monoid1095) + _t1907 = _t1909 else: - if prediction1085 == 0: - _t1895 = self.parse_or_monoid() - or_monoid1086 = _t1895 - _t1896 = logic_pb2.Monoid(or_monoid=or_monoid1086) - _t1894 = _t1896 + if prediction1093 == 0: + _t1911 = self.parse_or_monoid() + or_monoid1094 = _t1911 + _t1912 = logic_pb2.Monoid(or_monoid=or_monoid1094) + _t1910 = _t1912 else: raise ParseError("Unexpected token in monoid" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1891 = _t1894 - _t1888 = _t1891 - _t1885 = _t1888 - result1091 = _t1885 - self.record_span(span_start1090, "Monoid") - return result1091 + _t1907 = _t1910 + _t1904 = _t1907 + _t1901 = _t1904 + result1099 = _t1901 + self.record_span(span_start1098, "Monoid") + return result1099 def parse_or_monoid(self) -> logic_pb2.OrMonoid: - span_start1092 = self.span_start() + span_start1100 = self.span_start() self.consume_literal("(") self.consume_literal("or") self.consume_literal(")") - _t1897 = logic_pb2.OrMonoid() - result1093 = _t1897 - self.record_span(span_start1092, "OrMonoid") - return result1093 + _t1913 = logic_pb2.OrMonoid() + result1101 = _t1913 + self.record_span(span_start1100, "OrMonoid") + return result1101 def parse_min_monoid(self) -> logic_pb2.MinMonoid: - span_start1095 = self.span_start() + span_start1103 = self.span_start() self.consume_literal("(") self.consume_literal("min") - _t1898 = self.parse_type() - type1094 = _t1898 + _t1914 = self.parse_type() + type1102 = _t1914 self.consume_literal(")") - _t1899 = logic_pb2.MinMonoid(type=type1094) - result1096 = _t1899 - self.record_span(span_start1095, "MinMonoid") - return result1096 + _t1915 = logic_pb2.MinMonoid(type=type1102) + result1104 = _t1915 + self.record_span(span_start1103, "MinMonoid") + return result1104 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: - span_start1098 = self.span_start() + span_start1106 = self.span_start() self.consume_literal("(") self.consume_literal("max") - _t1900 = self.parse_type() - type1097 = _t1900 + _t1916 = self.parse_type() + type1105 = _t1916 self.consume_literal(")") - _t1901 = logic_pb2.MaxMonoid(type=type1097) - result1099 = _t1901 - self.record_span(span_start1098, "MaxMonoid") - return result1099 + _t1917 = logic_pb2.MaxMonoid(type=type1105) + result1107 = _t1917 + self.record_span(span_start1106, "MaxMonoid") + return result1107 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: - span_start1101 = self.span_start() + span_start1109 = self.span_start() self.consume_literal("(") self.consume_literal("sum") - _t1902 = self.parse_type() - type1100 = _t1902 + _t1918 = self.parse_type() + type1108 = _t1918 self.consume_literal(")") - _t1903 = logic_pb2.SumMonoid(type=type1100) - result1102 = _t1903 - self.record_span(span_start1101, "SumMonoid") - return result1102 + _t1919 = logic_pb2.SumMonoid(type=type1108) + result1110 = _t1919 + self.record_span(span_start1109, "SumMonoid") + return result1110 def parse_monus_def(self) -> logic_pb2.MonusDef: - span_start1107 = self.span_start() + span_start1115 = self.span_start() self.consume_literal("(") self.consume_literal("monus") - _t1904 = self.parse_monoid() - monoid1103 = _t1904 - _t1905 = self.parse_relation_id() - relation_id1104 = _t1905 - _t1906 = self.parse_abstraction_with_arity() - abstraction_with_arity1105 = _t1906 + _t1920 = self.parse_monoid() + monoid1111 = _t1920 + _t1921 = self.parse_relation_id() + relation_id1112 = _t1921 + _t1922 = self.parse_abstraction_with_arity() + abstraction_with_arity1113 = _t1922 if self.match_lookahead_literal("(", 0): - _t1908 = self.parse_attrs() - _t1907 = _t1908 + _t1924 = self.parse_attrs() + _t1923 = _t1924 else: - _t1907 = None - attrs1106 = _t1907 + _t1923 = None + attrs1114 = _t1923 self.consume_literal(")") - _t1909 = logic_pb2.MonusDef(monoid=monoid1103, name=relation_id1104, body=abstraction_with_arity1105[0], attrs=(attrs1106 if attrs1106 is not None else []), value_arity=abstraction_with_arity1105[1]) - result1108 = _t1909 - self.record_span(span_start1107, "MonusDef") - return result1108 + _t1925 = logic_pb2.MonusDef(monoid=monoid1111, name=relation_id1112, body=abstraction_with_arity1113[0], attrs=(attrs1114 if attrs1114 is not None else []), value_arity=abstraction_with_arity1113[1]) + result1116 = _t1925 + self.record_span(span_start1115, "MonusDef") + return result1116 def parse_constraint(self) -> logic_pb2.Constraint: - span_start1113 = self.span_start() + span_start1121 = self.span_start() self.consume_literal("(") self.consume_literal("functional_dependency") - _t1910 = self.parse_relation_id() - relation_id1109 = _t1910 - _t1911 = self.parse_abstraction() - abstraction1110 = _t1911 - _t1912 = self.parse_functional_dependency_keys() - functional_dependency_keys1111 = _t1912 - _t1913 = self.parse_functional_dependency_values() - functional_dependency_values1112 = _t1913 - self.consume_literal(")") - _t1914 = logic_pb2.FunctionalDependency(guard=abstraction1110, keys=functional_dependency_keys1111, values=functional_dependency_values1112) - _t1915 = logic_pb2.Constraint(name=relation_id1109, functional_dependency=_t1914) - result1114 = _t1915 - self.record_span(span_start1113, "Constraint") - return result1114 + _t1926 = self.parse_relation_id() + relation_id1117 = _t1926 + _t1927 = self.parse_abstraction() + abstraction1118 = _t1927 + _t1928 = self.parse_functional_dependency_keys() + functional_dependency_keys1119 = _t1928 + _t1929 = self.parse_functional_dependency_values() + functional_dependency_values1120 = _t1929 + self.consume_literal(")") + _t1930 = logic_pb2.FunctionalDependency(guard=abstraction1118, keys=functional_dependency_keys1119, values=functional_dependency_values1120) + _t1931 = logic_pb2.Constraint(name=relation_id1117, functional_dependency=_t1930) + result1122 = _t1931 + self.record_span(span_start1121, "Constraint") + return result1122 def parse_functional_dependency_keys(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("keys") - xs1115 = [] - cond1116 = self.match_lookahead_terminal("SYMBOL", 0) - while cond1116: - _t1916 = self.parse_var() - item1117 = _t1916 - xs1115.append(item1117) - cond1116 = self.match_lookahead_terminal("SYMBOL", 0) - vars1118 = xs1115 + xs1123 = [] + cond1124 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1124: + _t1932 = self.parse_var() + item1125 = _t1932 + xs1123.append(item1125) + cond1124 = self.match_lookahead_terminal("SYMBOL", 0) + vars1126 = xs1123 self.consume_literal(")") - return vars1118 + return vars1126 def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("values") - xs1119 = [] - cond1120 = self.match_lookahead_terminal("SYMBOL", 0) - while cond1120: - _t1917 = self.parse_var() - item1121 = _t1917 - xs1119.append(item1121) - cond1120 = self.match_lookahead_terminal("SYMBOL", 0) - vars1122 = xs1119 + xs1127 = [] + cond1128 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1128: + _t1933 = self.parse_var() + item1129 = _t1933 + xs1127.append(item1129) + cond1128 = self.match_lookahead_terminal("SYMBOL", 0) + vars1130 = xs1127 self.consume_literal(")") - return vars1122 + return vars1130 def parse_data(self) -> logic_pb2.Data: - span_start1128 = self.span_start() + span_start1136 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t1919 = 3 + _t1935 = 3 else: if self.match_lookahead_literal("edb", 1): - _t1920 = 0 + _t1936 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1921 = 2 + _t1937 = 2 else: if self.match_lookahead_literal("betree_relation", 1): - _t1922 = 1 + _t1938 = 1 else: - _t1922 = -1 - _t1921 = _t1922 - _t1920 = _t1921 - _t1919 = _t1920 - _t1918 = _t1919 - else: - _t1918 = -1 - prediction1123 = _t1918 - if prediction1123 == 3: - _t1924 = self.parse_iceberg_data() - iceberg_data1127 = _t1924 - _t1925 = logic_pb2.Data(iceberg_data=iceberg_data1127) - _t1923 = _t1925 - else: - if prediction1123 == 2: - _t1927 = self.parse_csv_data() - csv_data1126 = _t1927 - _t1928 = logic_pb2.Data(csv_data=csv_data1126) - _t1926 = _t1928 + _t1938 = -1 + _t1937 = _t1938 + _t1936 = _t1937 + _t1935 = _t1936 + _t1934 = _t1935 + else: + _t1934 = -1 + prediction1131 = _t1934 + if prediction1131 == 3: + _t1940 = self.parse_iceberg_data() + iceberg_data1135 = _t1940 + _t1941 = logic_pb2.Data(iceberg_data=iceberg_data1135) + _t1939 = _t1941 + else: + if prediction1131 == 2: + _t1943 = self.parse_csv_data() + csv_data1134 = _t1943 + _t1944 = logic_pb2.Data(csv_data=csv_data1134) + _t1942 = _t1944 else: - if prediction1123 == 1: - _t1930 = self.parse_betree_relation() - betree_relation1125 = _t1930 - _t1931 = logic_pb2.Data(betree_relation=betree_relation1125) - _t1929 = _t1931 + if prediction1131 == 1: + _t1946 = self.parse_betree_relation() + betree_relation1133 = _t1946 + _t1947 = logic_pb2.Data(betree_relation=betree_relation1133) + _t1945 = _t1947 else: - if prediction1123 == 0: - _t1933 = self.parse_edb() - edb1124 = _t1933 - _t1934 = logic_pb2.Data(edb=edb1124) - _t1932 = _t1934 + if prediction1131 == 0: + _t1949 = self.parse_edb() + edb1132 = _t1949 + _t1950 = logic_pb2.Data(edb=edb1132) + _t1948 = _t1950 else: raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1929 = _t1932 - _t1926 = _t1929 - _t1923 = _t1926 - result1129 = _t1923 - self.record_span(span_start1128, "Data") - return result1129 + _t1945 = _t1948 + _t1942 = _t1945 + _t1939 = _t1942 + result1137 = _t1939 + self.record_span(span_start1136, "Data") + return result1137 def parse_edb(self) -> logic_pb2.EDB: - span_start1133 = self.span_start() + span_start1141 = self.span_start() self.consume_literal("(") self.consume_literal("edb") - _t1935 = self.parse_relation_id() - relation_id1130 = _t1935 - _t1936 = self.parse_edb_path() - edb_path1131 = _t1936 - _t1937 = self.parse_edb_types() - edb_types1132 = _t1937 - self.consume_literal(")") - _t1938 = logic_pb2.EDB(target_id=relation_id1130, path=edb_path1131, types=edb_types1132) - result1134 = _t1938 - self.record_span(span_start1133, "EDB") - return result1134 + _t1951 = self.parse_relation_id() + relation_id1138 = _t1951 + _t1952 = self.parse_edb_path() + edb_path1139 = _t1952 + _t1953 = self.parse_edb_types() + edb_types1140 = _t1953 + self.consume_literal(")") + _t1954 = logic_pb2.EDB(target_id=relation_id1138, path=edb_path1139, types=edb_types1140) + result1142 = _t1954 + self.record_span(span_start1141, "EDB") + return result1142 def parse_edb_path(self) -> Sequence[str]: self.consume_literal("[") - xs1135 = [] - cond1136 = self.match_lookahead_terminal("STRING", 0) - while cond1136: - item1137 = self.consume_terminal("STRING") - xs1135.append(item1137) - cond1136 = self.match_lookahead_terminal("STRING", 0) - strings1138 = xs1135 + xs1143 = [] + cond1144 = self.match_lookahead_terminal("STRING", 0) + while cond1144: + item1145 = self.consume_terminal("STRING") + xs1143.append(item1145) + cond1144 = self.match_lookahead_terminal("STRING", 0) + strings1146 = xs1143 self.consume_literal("]") - return strings1138 + return strings1146 def parse_edb_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("[") - xs1139 = [] - cond1140 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1140: - _t1939 = self.parse_type() - item1141 = _t1939 - xs1139.append(item1141) - cond1140 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1142 = xs1139 + xs1147 = [] + cond1148 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1148: + _t1955 = self.parse_type() + item1149 = _t1955 + xs1147.append(item1149) + cond1148 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1150 = xs1147 self.consume_literal("]") - return types1142 + return types1150 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: - span_start1145 = self.span_start() + span_start1153 = self.span_start() self.consume_literal("(") self.consume_literal("betree_relation") - _t1940 = self.parse_relation_id() - relation_id1143 = _t1940 - _t1941 = self.parse_betree_info() - betree_info1144 = _t1941 + _t1956 = self.parse_relation_id() + relation_id1151 = _t1956 + _t1957 = self.parse_betree_info() + betree_info1152 = _t1957 self.consume_literal(")") - _t1942 = logic_pb2.BeTreeRelation(name=relation_id1143, relation_info=betree_info1144) - result1146 = _t1942 - self.record_span(span_start1145, "BeTreeRelation") - return result1146 + _t1958 = logic_pb2.BeTreeRelation(name=relation_id1151, relation_info=betree_info1152) + result1154 = _t1958 + self.record_span(span_start1153, "BeTreeRelation") + return result1154 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: - span_start1150 = self.span_start() + span_start1158 = self.span_start() self.consume_literal("(") self.consume_literal("betree_info") - _t1943 = self.parse_betree_info_key_types() - betree_info_key_types1147 = _t1943 - _t1944 = self.parse_betree_info_value_types() - betree_info_value_types1148 = _t1944 - _t1945 = self.parse_config_dict() - config_dict1149 = _t1945 - self.consume_literal(")") - _t1946 = self.construct_betree_info(betree_info_key_types1147, betree_info_value_types1148, config_dict1149) - result1151 = _t1946 - self.record_span(span_start1150, "BeTreeInfo") - return result1151 + _t1959 = self.parse_betree_info_key_types() + betree_info_key_types1155 = _t1959 + _t1960 = self.parse_betree_info_value_types() + betree_info_value_types1156 = _t1960 + _t1961 = self.parse_config_dict() + config_dict1157 = _t1961 + self.consume_literal(")") + _t1962 = self.construct_betree_info(betree_info_key_types1155, betree_info_value_types1156, config_dict1157) + result1159 = _t1962 + self.record_span(span_start1158, "BeTreeInfo") + return result1159 def parse_betree_info_key_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("key_types") - xs1152 = [] - cond1153 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1153: - _t1947 = self.parse_type() - item1154 = _t1947 - xs1152.append(item1154) - cond1153 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1155 = xs1152 + xs1160 = [] + cond1161 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1161: + _t1963 = self.parse_type() + item1162 = _t1963 + xs1160.append(item1162) + cond1161 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1163 = xs1160 self.consume_literal(")") - return types1155 + return types1163 def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("value_types") - xs1156 = [] - cond1157 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1157: - _t1948 = self.parse_type() - item1158 = _t1948 - xs1156.append(item1158) - cond1157 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1159 = xs1156 + xs1164 = [] + cond1165 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1165: + _t1964 = self.parse_type() + item1166 = _t1964 + xs1164.append(item1166) + cond1165 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1167 = xs1164 self.consume_literal(")") - return types1159 + return types1167 def parse_csv_data(self) -> logic_pb2.CSVData: - span_start1164 = self.span_start() + span_start1172 = self.span_start() self.consume_literal("(") self.consume_literal("csv_data") - _t1949 = self.parse_csvlocator() - csvlocator1160 = _t1949 - _t1950 = self.parse_csv_config() - csv_config1161 = _t1950 - _t1951 = self.parse_gnf_columns() - gnf_columns1162 = _t1951 - _t1952 = self.parse_csv_asof() - csv_asof1163 = _t1952 - self.consume_literal(")") - _t1953 = logic_pb2.CSVData(locator=csvlocator1160, config=csv_config1161, columns=gnf_columns1162, asof=csv_asof1163) - result1165 = _t1953 - self.record_span(span_start1164, "CSVData") - return result1165 + _t1965 = self.parse_csvlocator() + csvlocator1168 = _t1965 + _t1966 = self.parse_csv_config() + csv_config1169 = _t1966 + _t1967 = self.parse_gnf_columns() + gnf_columns1170 = _t1967 + _t1968 = self.parse_csv_asof() + csv_asof1171 = _t1968 + self.consume_literal(")") + _t1969 = logic_pb2.CSVData(locator=csvlocator1168, config=csv_config1169, columns=gnf_columns1170, asof=csv_asof1171) + result1173 = _t1969 + self.record_span(span_start1172, "CSVData") + return result1173 def parse_csvlocator(self) -> logic_pb2.CSVLocator: - span_start1168 = self.span_start() + span_start1176 = self.span_start() self.consume_literal("(") self.consume_literal("csv_locator") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("paths", 1)): - _t1955 = self.parse_csv_locator_paths() - _t1954 = _t1955 + _t1971 = self.parse_csv_locator_paths() + _t1970 = _t1971 else: - _t1954 = None - csv_locator_paths1166 = _t1954 + _t1970 = None + csv_locator_paths1174 = _t1970 if self.match_lookahead_literal("(", 0): - _t1957 = self.parse_csv_locator_inline_data() - _t1956 = _t1957 + _t1973 = self.parse_csv_locator_inline_data() + _t1972 = _t1973 else: - _t1956 = None - csv_locator_inline_data1167 = _t1956 + _t1972 = None + csv_locator_inline_data1175 = _t1972 self.consume_literal(")") - _t1958 = logic_pb2.CSVLocator(paths=(csv_locator_paths1166 if csv_locator_paths1166 is not None else []), inline_data=(csv_locator_inline_data1167 if csv_locator_inline_data1167 is not None else "").encode()) - result1169 = _t1958 - self.record_span(span_start1168, "CSVLocator") - return result1169 + _t1974 = logic_pb2.CSVLocator(paths=(csv_locator_paths1174 if csv_locator_paths1174 is not None else []), inline_data=(csv_locator_inline_data1175 if csv_locator_inline_data1175 is not None else "").encode()) + result1177 = _t1974 + self.record_span(span_start1176, "CSVLocator") + return result1177 def parse_csv_locator_paths(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("paths") - xs1170 = [] - cond1171 = self.match_lookahead_terminal("STRING", 0) - while cond1171: - item1172 = self.consume_terminal("STRING") - xs1170.append(item1172) - cond1171 = self.match_lookahead_terminal("STRING", 0) - strings1173 = xs1170 + xs1178 = [] + cond1179 = self.match_lookahead_terminal("STRING", 0) + while cond1179: + item1180 = self.consume_terminal("STRING") + xs1178.append(item1180) + cond1179 = self.match_lookahead_terminal("STRING", 0) + strings1181 = xs1178 self.consume_literal(")") - return strings1173 + return strings1181 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - string1174 = self.consume_terminal("STRING") + string1182 = self.consume_terminal("STRING") self.consume_literal(")") - return string1174 + return string1182 def parse_csv_config(self) -> logic_pb2.CSVConfig: - span_start1176 = self.span_start() + span_start1184 = self.span_start() self.consume_literal("(") self.consume_literal("csv_config") - _t1959 = self.parse_config_dict() - config_dict1175 = _t1959 + _t1975 = self.parse_config_dict() + config_dict1183 = _t1975 self.consume_literal(")") - _t1960 = self.construct_csv_config(config_dict1175) - result1177 = _t1960 - self.record_span(span_start1176, "CSVConfig") - return result1177 + _t1976 = self.construct_csv_config(config_dict1183) + result1185 = _t1976 + self.record_span(span_start1184, "CSVConfig") + return result1185 def parse_gnf_columns(self) -> Sequence[logic_pb2.GNFColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1178 = [] - cond1179 = self.match_lookahead_literal("(", 0) - while cond1179: - _t1961 = self.parse_gnf_column() - item1180 = _t1961 - xs1178.append(item1180) - cond1179 = self.match_lookahead_literal("(", 0) - gnf_columns1181 = xs1178 + xs1186 = [] + cond1187 = self.match_lookahead_literal("(", 0) + while cond1187: + _t1977 = self.parse_gnf_column() + item1188 = _t1977 + xs1186.append(item1188) + cond1187 = self.match_lookahead_literal("(", 0) + gnf_columns1189 = xs1186 self.consume_literal(")") - return gnf_columns1181 + return gnf_columns1189 def parse_gnf_column(self) -> logic_pb2.GNFColumn: - span_start1188 = self.span_start() + span_start1196 = self.span_start() self.consume_literal("(") self.consume_literal("column") - _t1962 = self.parse_gnf_column_path() - gnf_column_path1182 = _t1962 + _t1978 = self.parse_gnf_column_path() + gnf_column_path1190 = _t1978 if (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)): - _t1964 = self.parse_relation_id() - _t1963 = _t1964 + _t1980 = self.parse_relation_id() + _t1979 = _t1980 else: - _t1963 = None - relation_id1183 = _t1963 + _t1979 = None + relation_id1191 = _t1979 self.consume_literal("[") - xs1184 = [] - cond1185 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1185: - _t1965 = self.parse_type() - item1186 = _t1965 - xs1184.append(item1186) - cond1185 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1187 = xs1184 + xs1192 = [] + cond1193 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1193: + _t1981 = self.parse_type() + item1194 = _t1981 + xs1192.append(item1194) + cond1193 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1195 = xs1192 self.consume_literal("]") self.consume_literal(")") - _t1966 = logic_pb2.GNFColumn(column_path=gnf_column_path1182, target_id=relation_id1183, types=types1187) - result1189 = _t1966 - self.record_span(span_start1188, "GNFColumn") - return result1189 + _t1982 = logic_pb2.GNFColumn(column_path=gnf_column_path1190, target_id=relation_id1191, types=types1195) + result1197 = _t1982 + self.record_span(span_start1196, "GNFColumn") + return result1197 def parse_gnf_column_path(self) -> Sequence[str]: if self.match_lookahead_literal("[", 0): - _t1967 = 1 + _t1983 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1968 = 0 + _t1984 = 0 else: - _t1968 = -1 - _t1967 = _t1968 - prediction1190 = _t1967 - if prediction1190 == 1: + _t1984 = -1 + _t1983 = _t1984 + prediction1198 = _t1983 + if prediction1198 == 1: self.consume_literal("[") - xs1192 = [] - cond1193 = self.match_lookahead_terminal("STRING", 0) - while cond1193: - item1194 = self.consume_terminal("STRING") - xs1192.append(item1194) - cond1193 = self.match_lookahead_terminal("STRING", 0) - strings1195 = xs1192 + xs1200 = [] + cond1201 = self.match_lookahead_terminal("STRING", 0) + while cond1201: + item1202 = self.consume_terminal("STRING") + xs1200.append(item1202) + cond1201 = self.match_lookahead_terminal("STRING", 0) + strings1203 = xs1200 self.consume_literal("]") - _t1969 = strings1195 + _t1985 = strings1203 else: - if prediction1190 == 0: - string1191 = self.consume_terminal("STRING") - _t1970 = [string1191] + if prediction1198 == 0: + string1199 = self.consume_terminal("STRING") + _t1986 = [string1199] else: raise ParseError("Unexpected token in gnf_column_path" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1969 = _t1970 - return _t1969 + _t1985 = _t1986 + return _t1985 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string1196 = self.consume_terminal("STRING") + string1204 = self.consume_terminal("STRING") self.consume_literal(")") - return string1196 + return string1204 def parse_iceberg_data(self) -> logic_pb2.IcebergData: - span_start1203 = self.span_start() + span_start1212 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_data") - _t1971 = self.parse_iceberg_locator() - iceberg_locator1197 = _t1971 - _t1972 = self.parse_iceberg_catalog_config() - iceberg_catalog_config1198 = _t1972 - _t1973 = self.parse_gnf_columns() - gnf_columns1199 = _t1973 + _t1987 = self.parse_iceberg_locator() + iceberg_locator1205 = _t1987 + _t1988 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1206 = _t1988 + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("columns", 1)): + _t1990 = self.parse_gnf_columns() + _t1989 = _t1990 + else: + _t1989 = None + gnf_columns1207 = _t1989 + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("full_table", 1)): + _t1992 = self.parse_full_table() + _t1991 = _t1992 + else: + _t1991 = None + full_table1208 = _t1991 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("from_snapshot", 1)): - _t1975 = self.parse_iceberg_from_snapshot() - _t1974 = _t1975 + _t1994 = self.parse_iceberg_from_snapshot() + _t1993 = _t1994 else: - _t1974 = None - iceberg_from_snapshot1200 = _t1974 + _t1993 = None + iceberg_from_snapshot1209 = _t1993 if self.match_lookahead_literal("(", 0): - _t1977 = self.parse_iceberg_to_snapshot() - _t1976 = _t1977 + _t1996 = self.parse_iceberg_to_snapshot() + _t1995 = _t1996 else: - _t1976 = None - iceberg_to_snapshot1201 = _t1976 - _t1978 = self.parse_boolean_value() - boolean_value1202 = _t1978 + _t1995 = None + iceberg_to_snapshot1210 = _t1995 + _t1997 = self.parse_boolean_value() + boolean_value1211 = _t1997 self.consume_literal(")") - _t1979 = self.construct_iceberg_data(iceberg_locator1197, iceberg_catalog_config1198, gnf_columns1199, iceberg_from_snapshot1200, iceberg_to_snapshot1201, boolean_value1202) - result1204 = _t1979 - self.record_span(span_start1203, "IcebergData") - return result1204 + _t1998 = self.construct_iceberg_data(iceberg_locator1205, iceberg_catalog_config1206, gnf_columns1207, full_table1208, iceberg_from_snapshot1209, iceberg_to_snapshot1210, boolean_value1211) + result1213 = _t1998 + self.record_span(span_start1212, "IcebergData") + return result1213 def parse_iceberg_locator(self) -> logic_pb2.IcebergLocator: - span_start1208 = self.span_start() + span_start1217 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_locator") - _t1980 = self.parse_iceberg_locator_table_name() - iceberg_locator_table_name1205 = _t1980 - _t1981 = self.parse_iceberg_locator_namespace() - iceberg_locator_namespace1206 = _t1981 - _t1982 = self.parse_iceberg_locator_warehouse() - iceberg_locator_warehouse1207 = _t1982 - self.consume_literal(")") - _t1983 = logic_pb2.IcebergLocator(table_name=iceberg_locator_table_name1205, namespace=iceberg_locator_namespace1206, warehouse=iceberg_locator_warehouse1207) - result1209 = _t1983 - self.record_span(span_start1208, "IcebergLocator") - return result1209 + _t1999 = self.parse_iceberg_locator_table_name() + iceberg_locator_table_name1214 = _t1999 + _t2000 = self.parse_iceberg_locator_namespace() + iceberg_locator_namespace1215 = _t2000 + _t2001 = self.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1216 = _t2001 + self.consume_literal(")") + _t2002 = logic_pb2.IcebergLocator(table_name=iceberg_locator_table_name1214, namespace=iceberg_locator_namespace1215, warehouse=iceberg_locator_warehouse1216) + result1218 = _t2002 + self.record_span(span_start1217, "IcebergLocator") + return result1218 def parse_iceberg_locator_table_name(self) -> str: self.consume_literal("(") self.consume_literal("table_name") - string1210 = self.consume_terminal("STRING") + string1219 = self.consume_terminal("STRING") self.consume_literal(")") - return string1210 + return string1219 def parse_iceberg_locator_namespace(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("namespace") - xs1211 = [] - cond1212 = self.match_lookahead_terminal("STRING", 0) - while cond1212: - item1213 = self.consume_terminal("STRING") - xs1211.append(item1213) - cond1212 = self.match_lookahead_terminal("STRING", 0) - strings1214 = xs1211 + xs1220 = [] + cond1221 = self.match_lookahead_terminal("STRING", 0) + while cond1221: + item1222 = self.consume_terminal("STRING") + xs1220.append(item1222) + cond1221 = self.match_lookahead_terminal("STRING", 0) + strings1223 = xs1220 self.consume_literal(")") - return strings1214 + return strings1223 def parse_iceberg_locator_warehouse(self) -> str: self.consume_literal("(") self.consume_literal("warehouse") - string1215 = self.consume_terminal("STRING") + string1224 = self.consume_terminal("STRING") self.consume_literal(")") - return string1215 + return string1224 def parse_iceberg_catalog_config(self) -> logic_pb2.IcebergCatalogConfig: - span_start1220 = self.span_start() + span_start1229 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_catalog_config") - _t1984 = self.parse_iceberg_catalog_uri() - iceberg_catalog_uri1216 = _t1984 + _t2003 = self.parse_iceberg_catalog_uri() + iceberg_catalog_uri1225 = _t2003 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("scope", 1)): - _t1986 = self.parse_iceberg_catalog_config_scope() - _t1985 = _t1986 + _t2005 = self.parse_iceberg_catalog_config_scope() + _t2004 = _t2005 else: - _t1985 = None - iceberg_catalog_config_scope1217 = _t1985 - _t1987 = self.parse_iceberg_properties() - iceberg_properties1218 = _t1987 - _t1988 = self.parse_iceberg_auth_properties() - iceberg_auth_properties1219 = _t1988 + _t2004 = None + iceberg_catalog_config_scope1226 = _t2004 + _t2006 = self.parse_iceberg_properties() + iceberg_properties1227 = _t2006 + _t2007 = self.parse_iceberg_auth_properties() + iceberg_auth_properties1228 = _t2007 self.consume_literal(")") - _t1989 = self.construct_iceberg_catalog_config(iceberg_catalog_uri1216, iceberg_catalog_config_scope1217, iceberg_properties1218, iceberg_auth_properties1219) - result1221 = _t1989 - self.record_span(span_start1220, "IcebergCatalogConfig") - return result1221 + _t2008 = self.construct_iceberg_catalog_config(iceberg_catalog_uri1225, iceberg_catalog_config_scope1226, iceberg_properties1227, iceberg_auth_properties1228) + result1230 = _t2008 + self.record_span(span_start1229, "IcebergCatalogConfig") + return result1230 def parse_iceberg_catalog_uri(self) -> str: self.consume_literal("(") self.consume_literal("catalog_uri") - string1222 = self.consume_terminal("STRING") + string1231 = self.consume_terminal("STRING") self.consume_literal(")") - return string1222 + return string1231 def parse_iceberg_catalog_config_scope(self) -> str: self.consume_literal("(") self.consume_literal("scope") - string1223 = self.consume_terminal("STRING") + string1232 = self.consume_terminal("STRING") self.consume_literal(")") - return string1223 + return string1232 def parse_iceberg_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("properties") - xs1224 = [] - cond1225 = self.match_lookahead_literal("(", 0) - while cond1225: - _t1990 = self.parse_iceberg_property_entry() - item1226 = _t1990 - xs1224.append(item1226) - cond1225 = self.match_lookahead_literal("(", 0) - iceberg_property_entrys1227 = xs1224 + xs1233 = [] + cond1234 = self.match_lookahead_literal("(", 0) + while cond1234: + _t2009 = self.parse_iceberg_property_entry() + item1235 = _t2009 + xs1233.append(item1235) + cond1234 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1236 = xs1233 self.consume_literal(")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1236 def parse_iceberg_property_entry(self) -> tuple[str, str]: self.consume_literal("(") self.consume_literal("prop") - string1228 = self.consume_terminal("STRING") - string_31229 = self.consume_terminal("STRING") + string1237 = self.consume_terminal("STRING") + string_31238 = self.consume_terminal("STRING") self.consume_literal(")") - return (string1228, string_31229,) + return (string1237, string_31238,) def parse_iceberg_auth_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("auth_properties") - xs1230 = [] - cond1231 = self.match_lookahead_literal("(", 0) - while cond1231: - _t1991 = self.parse_iceberg_masked_property_entry() - item1232 = _t1991 - xs1230.append(item1232) - cond1231 = self.match_lookahead_literal("(", 0) - iceberg_masked_property_entrys1233 = xs1230 + xs1239 = [] + cond1240 = self.match_lookahead_literal("(", 0) + while cond1240: + _t2010 = self.parse_iceberg_masked_property_entry() + item1241 = _t2010 + xs1239.append(item1241) + cond1240 = self.match_lookahead_literal("(", 0) + iceberg_masked_property_entrys1242 = xs1239 self.consume_literal(")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1242 def parse_iceberg_masked_property_entry(self) -> tuple[str, str]: self.consume_literal("(") self.consume_literal("prop") - string1234 = self.consume_terminal("STRING") - string_31235 = self.consume_terminal("STRING") + string1243 = self.consume_terminal("STRING") + string_31244 = self.consume_terminal("STRING") + self.consume_literal(")") + return (string1243, string_31244,) + + def parse_full_table(self) -> logic_pb2.IcebergTarget: + span_start1250 = self.span_start() + self.consume_literal("(") + self.consume_literal("full_table") + _t2011 = self.parse_relation_id() + relation_id1245 = _t2011 + self.consume_literal("[") + xs1246 = [] + cond1247 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1247: + _t2012 = self.parse_type() + item1248 = _t2012 + xs1246.append(item1248) + cond1247 = (((((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1249 = xs1246 + self.consume_literal("]") self.consume_literal(")") - return (string1234, string_31235,) + _t2013 = logic_pb2.IcebergTarget(target_id=relation_id1245, types=types1249) + result1251 = _t2013 + self.record_span(span_start1250, "IcebergTarget") + return result1251 def parse_iceberg_from_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("from_snapshot") - string1236 = self.consume_terminal("STRING") + string1252 = self.consume_terminal("STRING") self.consume_literal(")") - return string1236 + return string1252 def parse_iceberg_to_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("to_snapshot") - string1237 = self.consume_terminal("STRING") + string1253 = self.consume_terminal("STRING") self.consume_literal(")") - return string1237 + return string1253 def parse_undefine(self) -> transactions_pb2.Undefine: - span_start1239 = self.span_start() + span_start1255 = self.span_start() self.consume_literal("(") self.consume_literal("undefine") - _t1992 = self.parse_fragment_id() - fragment_id1238 = _t1992 + _t2014 = self.parse_fragment_id() + fragment_id1254 = _t2014 self.consume_literal(")") - _t1993 = transactions_pb2.Undefine(fragment_id=fragment_id1238) - result1240 = _t1993 - self.record_span(span_start1239, "Undefine") - return result1240 + _t2015 = transactions_pb2.Undefine(fragment_id=fragment_id1254) + result1256 = _t2015 + self.record_span(span_start1255, "Undefine") + return result1256 def parse_context(self) -> transactions_pb2.Context: - span_start1245 = self.span_start() + span_start1261 = self.span_start() self.consume_literal("(") self.consume_literal("context") - xs1241 = [] - cond1242 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond1242: - _t1994 = self.parse_relation_id() - item1243 = _t1994 - xs1241.append(item1243) - cond1242 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids1244 = xs1241 - self.consume_literal(")") - _t1995 = transactions_pb2.Context(relations=relation_ids1244) - result1246 = _t1995 - self.record_span(span_start1245, "Context") - return result1246 + xs1257 = [] + cond1258 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1258: + _t2016 = self.parse_relation_id() + item1259 = _t2016 + xs1257.append(item1259) + cond1258 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1260 = xs1257 + self.consume_literal(")") + _t2017 = transactions_pb2.Context(relations=relation_ids1260) + result1262 = _t2017 + self.record_span(span_start1261, "Context") + return result1262 def parse_snapshot(self) -> transactions_pb2.Snapshot: - span_start1252 = self.span_start() + span_start1268 = self.span_start() self.consume_literal("(") self.consume_literal("snapshot") - _t1996 = self.parse_edb_path() - edb_path1247 = _t1996 - xs1248 = [] - cond1249 = self.match_lookahead_literal("[", 0) - while cond1249: - _t1997 = self.parse_snapshot_mapping() - item1250 = _t1997 - xs1248.append(item1250) - cond1249 = self.match_lookahead_literal("[", 0) - snapshot_mappings1251 = xs1248 - self.consume_literal(")") - _t1998 = transactions_pb2.Snapshot(prefix=edb_path1247, mappings=snapshot_mappings1251) - result1253 = _t1998 - self.record_span(span_start1252, "Snapshot") - return result1253 + _t2018 = self.parse_edb_path() + edb_path1263 = _t2018 + xs1264 = [] + cond1265 = self.match_lookahead_literal("[", 0) + while cond1265: + _t2019 = self.parse_snapshot_mapping() + item1266 = _t2019 + xs1264.append(item1266) + cond1265 = self.match_lookahead_literal("[", 0) + snapshot_mappings1267 = xs1264 + self.consume_literal(")") + _t2020 = transactions_pb2.Snapshot(prefix=edb_path1263, mappings=snapshot_mappings1267) + result1269 = _t2020 + self.record_span(span_start1268, "Snapshot") + return result1269 def parse_snapshot_mapping(self) -> transactions_pb2.SnapshotMapping: - span_start1256 = self.span_start() - _t1999 = self.parse_edb_path() - edb_path1254 = _t1999 - _t2000 = self.parse_relation_id() - relation_id1255 = _t2000 - _t2001 = transactions_pb2.SnapshotMapping(destination_path=edb_path1254, source_relation=relation_id1255) - result1257 = _t2001 - self.record_span(span_start1256, "SnapshotMapping") - return result1257 + span_start1272 = self.span_start() + _t2021 = self.parse_edb_path() + edb_path1270 = _t2021 + _t2022 = self.parse_relation_id() + relation_id1271 = _t2022 + _t2023 = transactions_pb2.SnapshotMapping(destination_path=edb_path1270, source_relation=relation_id1271) + result1273 = _t2023 + self.record_span(span_start1272, "SnapshotMapping") + return result1273 def parse_epoch_reads(self) -> Sequence[transactions_pb2.Read]: self.consume_literal("(") self.consume_literal("reads") - xs1258 = [] - cond1259 = self.match_lookahead_literal("(", 0) - while cond1259: - _t2002 = self.parse_read() - item1260 = _t2002 - xs1258.append(item1260) - cond1259 = self.match_lookahead_literal("(", 0) - reads1261 = xs1258 + xs1274 = [] + cond1275 = self.match_lookahead_literal("(", 0) + while cond1275: + _t2024 = self.parse_read() + item1276 = _t2024 + xs1274.append(item1276) + cond1275 = self.match_lookahead_literal("(", 0) + reads1277 = xs1274 self.consume_literal(")") - return reads1261 + return reads1277 def parse_read(self) -> transactions_pb2.Read: - span_start1268 = self.span_start() + span_start1284 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t2004 = 2 + _t2026 = 2 else: if self.match_lookahead_literal("output", 1): - _t2005 = 1 + _t2027 = 1 else: if self.match_lookahead_literal("export_iceberg", 1): - _t2006 = 4 + _t2028 = 4 else: if self.match_lookahead_literal("export", 1): - _t2007 = 4 + _t2029 = 4 else: if self.match_lookahead_literal("demand", 1): - _t2008 = 0 + _t2030 = 0 else: if self.match_lookahead_literal("abort", 1): - _t2009 = 3 + _t2031 = 3 else: - _t2009 = -1 - _t2008 = _t2009 - _t2007 = _t2008 - _t2006 = _t2007 - _t2005 = _t2006 - _t2004 = _t2005 - _t2003 = _t2004 - else: - _t2003 = -1 - prediction1262 = _t2003 - if prediction1262 == 4: - _t2011 = self.parse_export() - export1267 = _t2011 - _t2012 = transactions_pb2.Read(export=export1267) - _t2010 = _t2012 - else: - if prediction1262 == 3: - _t2014 = self.parse_abort() - abort1266 = _t2014 - _t2015 = transactions_pb2.Read(abort=abort1266) - _t2013 = _t2015 + _t2031 = -1 + _t2030 = _t2031 + _t2029 = _t2030 + _t2028 = _t2029 + _t2027 = _t2028 + _t2026 = _t2027 + _t2025 = _t2026 + else: + _t2025 = -1 + prediction1278 = _t2025 + if prediction1278 == 4: + _t2033 = self.parse_export() + export1283 = _t2033 + _t2034 = transactions_pb2.Read(export=export1283) + _t2032 = _t2034 + else: + if prediction1278 == 3: + _t2036 = self.parse_abort() + abort1282 = _t2036 + _t2037 = transactions_pb2.Read(abort=abort1282) + _t2035 = _t2037 else: - if prediction1262 == 2: - _t2017 = self.parse_what_if() - what_if1265 = _t2017 - _t2018 = transactions_pb2.Read(what_if=what_if1265) - _t2016 = _t2018 + if prediction1278 == 2: + _t2039 = self.parse_what_if() + what_if1281 = _t2039 + _t2040 = transactions_pb2.Read(what_if=what_if1281) + _t2038 = _t2040 else: - if prediction1262 == 1: - _t2020 = self.parse_output() - output1264 = _t2020 - _t2021 = transactions_pb2.Read(output=output1264) - _t2019 = _t2021 + if prediction1278 == 1: + _t2042 = self.parse_output() + output1280 = _t2042 + _t2043 = transactions_pb2.Read(output=output1280) + _t2041 = _t2043 else: - if prediction1262 == 0: - _t2023 = self.parse_demand() - demand1263 = _t2023 - _t2024 = transactions_pb2.Read(demand=demand1263) - _t2022 = _t2024 + if prediction1278 == 0: + _t2045 = self.parse_demand() + demand1279 = _t2045 + _t2046 = transactions_pb2.Read(demand=demand1279) + _t2044 = _t2046 else: raise ParseError("Unexpected token in read" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2019 = _t2022 - _t2016 = _t2019 - _t2013 = _t2016 - _t2010 = _t2013 - result1269 = _t2010 - self.record_span(span_start1268, "Read") - return result1269 + _t2041 = _t2044 + _t2038 = _t2041 + _t2035 = _t2038 + _t2032 = _t2035 + result1285 = _t2032 + self.record_span(span_start1284, "Read") + return result1285 def parse_demand(self) -> transactions_pb2.Demand: - span_start1271 = self.span_start() + span_start1287 = self.span_start() self.consume_literal("(") self.consume_literal("demand") - _t2025 = self.parse_relation_id() - relation_id1270 = _t2025 + _t2047 = self.parse_relation_id() + relation_id1286 = _t2047 self.consume_literal(")") - _t2026 = transactions_pb2.Demand(relation_id=relation_id1270) - result1272 = _t2026 - self.record_span(span_start1271, "Demand") - return result1272 + _t2048 = transactions_pb2.Demand(relation_id=relation_id1286) + result1288 = _t2048 + self.record_span(span_start1287, "Demand") + return result1288 def parse_output(self) -> transactions_pb2.Output: - span_start1275 = self.span_start() + span_start1291 = self.span_start() self.consume_literal("(") self.consume_literal("output") - _t2027 = self.parse_name() - name1273 = _t2027 - _t2028 = self.parse_relation_id() - relation_id1274 = _t2028 + _t2049 = self.parse_name() + name1289 = _t2049 + _t2050 = self.parse_relation_id() + relation_id1290 = _t2050 self.consume_literal(")") - _t2029 = transactions_pb2.Output(name=name1273, relation_id=relation_id1274) - result1276 = _t2029 - self.record_span(span_start1275, "Output") - return result1276 + _t2051 = transactions_pb2.Output(name=name1289, relation_id=relation_id1290) + result1292 = _t2051 + self.record_span(span_start1291, "Output") + return result1292 def parse_what_if(self) -> transactions_pb2.WhatIf: - span_start1279 = self.span_start() + span_start1295 = self.span_start() self.consume_literal("(") self.consume_literal("what_if") - _t2030 = self.parse_name() - name1277 = _t2030 - _t2031 = self.parse_epoch() - epoch1278 = _t2031 + _t2052 = self.parse_name() + name1293 = _t2052 + _t2053 = self.parse_epoch() + epoch1294 = _t2053 self.consume_literal(")") - _t2032 = transactions_pb2.WhatIf(branch=name1277, epoch=epoch1278) - result1280 = _t2032 - self.record_span(span_start1279, "WhatIf") - return result1280 + _t2054 = transactions_pb2.WhatIf(branch=name1293, epoch=epoch1294) + result1296 = _t2054 + self.record_span(span_start1295, "WhatIf") + return result1296 def parse_abort(self) -> transactions_pb2.Abort: - span_start1283 = self.span_start() + span_start1299 = self.span_start() self.consume_literal("(") self.consume_literal("abort") if (self.match_lookahead_literal(":", 0) and self.match_lookahead_terminal("SYMBOL", 1)): - _t2034 = self.parse_name() - _t2033 = _t2034 + _t2056 = self.parse_name() + _t2055 = _t2056 else: - _t2033 = None - name1281 = _t2033 - _t2035 = self.parse_relation_id() - relation_id1282 = _t2035 + _t2055 = None + name1297 = _t2055 + _t2057 = self.parse_relation_id() + relation_id1298 = _t2057 self.consume_literal(")") - _t2036 = transactions_pb2.Abort(name=(name1281 if name1281 is not None else "abort"), relation_id=relation_id1282) - result1284 = _t2036 - self.record_span(span_start1283, "Abort") - return result1284 + _t2058 = transactions_pb2.Abort(name=(name1297 if name1297 is not None else "abort"), relation_id=relation_id1298) + result1300 = _t2058 + self.record_span(span_start1299, "Abort") + return result1300 def parse_export(self) -> transactions_pb2.Export: - span_start1288 = self.span_start() + span_start1304 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_iceberg", 1): - _t2038 = 1 + _t2060 = 1 else: if self.match_lookahead_literal("export", 1): - _t2039 = 0 + _t2061 = 0 else: - _t2039 = -1 - _t2038 = _t2039 - _t2037 = _t2038 + _t2061 = -1 + _t2060 = _t2061 + _t2059 = _t2060 else: - _t2037 = -1 - prediction1285 = _t2037 - if prediction1285 == 1: + _t2059 = -1 + prediction1301 = _t2059 + if prediction1301 == 1: self.consume_literal("(") self.consume_literal("export_iceberg") - _t2041 = self.parse_export_iceberg_config() - export_iceberg_config1287 = _t2041 + _t2063 = self.parse_export_iceberg_config() + export_iceberg_config1303 = _t2063 self.consume_literal(")") - _t2042 = transactions_pb2.Export(iceberg_config=export_iceberg_config1287) - _t2040 = _t2042 + _t2064 = transactions_pb2.Export(iceberg_config=export_iceberg_config1303) + _t2062 = _t2064 else: - if prediction1285 == 0: + if prediction1301 == 0: self.consume_literal("(") self.consume_literal("export") - _t2044 = self.parse_export_csv_config() - export_csv_config1286 = _t2044 + _t2066 = self.parse_export_csv_config() + export_csv_config1302 = _t2066 self.consume_literal(")") - _t2045 = transactions_pb2.Export(csv_config=export_csv_config1286) - _t2043 = _t2045 + _t2067 = transactions_pb2.Export(csv_config=export_csv_config1302) + _t2065 = _t2067 else: raise ParseError("Unexpected token in export" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2040 = _t2043 - result1289 = _t2040 - self.record_span(span_start1288, "Export") - return result1289 + _t2062 = _t2065 + result1305 = _t2062 + self.record_span(span_start1304, "Export") + return result1305 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - span_start1297 = self.span_start() + span_start1313 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_csv_config_v2", 1): - _t2047 = 0 + _t2069 = 0 else: if self.match_lookahead_literal("export_csv_config", 1): - _t2048 = 1 + _t2070 = 1 else: - _t2048 = -1 - _t2047 = _t2048 - _t2046 = _t2047 + _t2070 = -1 + _t2069 = _t2070 + _t2068 = _t2069 else: - _t2046 = -1 - prediction1290 = _t2046 - if prediction1290 == 1: + _t2068 = -1 + prediction1306 = _t2068 + if prediction1306 == 1: self.consume_literal("(") self.consume_literal("export_csv_config") - _t2050 = self.parse_export_csv_path() - export_csv_path1294 = _t2050 - _t2051 = self.parse_export_csv_columns_list() - export_csv_columns_list1295 = _t2051 - _t2052 = self.parse_config_dict() - config_dict1296 = _t2052 + _t2072 = self.parse_export_csv_path() + export_csv_path1310 = _t2072 + _t2073 = self.parse_export_csv_columns_list() + export_csv_columns_list1311 = _t2073 + _t2074 = self.parse_config_dict() + config_dict1312 = _t2074 self.consume_literal(")") - _t2053 = self.construct_export_csv_config(export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2049 = _t2053 + _t2075 = self.construct_export_csv_config(export_csv_path1310, export_csv_columns_list1311, config_dict1312) + _t2071 = _t2075 else: - if prediction1290 == 0: + if prediction1306 == 0: self.consume_literal("(") self.consume_literal("export_csv_config_v2") - _t2055 = self.parse_export_csv_path() - export_csv_path1291 = _t2055 - _t2056 = self.parse_export_csv_source() - export_csv_source1292 = _t2056 - _t2057 = self.parse_csv_config() - csv_config1293 = _t2057 + _t2077 = self.parse_export_csv_path() + export_csv_path1307 = _t2077 + _t2078 = self.parse_export_csv_source() + export_csv_source1308 = _t2078 + _t2079 = self.parse_csv_config() + csv_config1309 = _t2079 self.consume_literal(")") - _t2058 = self.construct_export_csv_config_with_source(export_csv_path1291, export_csv_source1292, csv_config1293) - _t2054 = _t2058 + _t2080 = self.construct_export_csv_config_with_source(export_csv_path1307, export_csv_source1308, csv_config1309) + _t2076 = _t2080 else: raise ParseError("Unexpected token in export_csv_config" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2049 = _t2054 - result1298 = _t2049 - self.record_span(span_start1297, "ExportCSVConfig") - return result1298 + _t2071 = _t2076 + result1314 = _t2071 + self.record_span(span_start1313, "ExportCSVConfig") + return result1314 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string1299 = self.consume_terminal("STRING") + string1315 = self.consume_terminal("STRING") self.consume_literal(")") - return string1299 + return string1315 def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: - span_start1306 = self.span_start() + span_start1322 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("table_def", 1): - _t2060 = 1 + _t2082 = 1 else: if self.match_lookahead_literal("gnf_columns", 1): - _t2061 = 0 + _t2083 = 0 else: - _t2061 = -1 - _t2060 = _t2061 - _t2059 = _t2060 + _t2083 = -1 + _t2082 = _t2083 + _t2081 = _t2082 else: - _t2059 = -1 - prediction1300 = _t2059 - if prediction1300 == 1: + _t2081 = -1 + prediction1316 = _t2081 + if prediction1316 == 1: self.consume_literal("(") self.consume_literal("table_def") - _t2063 = self.parse_relation_id() - relation_id1305 = _t2063 + _t2085 = self.parse_relation_id() + relation_id1321 = _t2085 self.consume_literal(")") - _t2064 = transactions_pb2.ExportCSVSource(table_def=relation_id1305) - _t2062 = _t2064 + _t2086 = transactions_pb2.ExportCSVSource(table_def=relation_id1321) + _t2084 = _t2086 else: - if prediction1300 == 0: + if prediction1316 == 0: self.consume_literal("(") self.consume_literal("gnf_columns") - xs1301 = [] - cond1302 = self.match_lookahead_literal("(", 0) - while cond1302: - _t2066 = self.parse_export_csv_column() - item1303 = _t2066 - xs1301.append(item1303) - cond1302 = self.match_lookahead_literal("(", 0) - export_csv_columns1304 = xs1301 + xs1317 = [] + cond1318 = self.match_lookahead_literal("(", 0) + while cond1318: + _t2088 = self.parse_export_csv_column() + item1319 = _t2088 + xs1317.append(item1319) + cond1318 = self.match_lookahead_literal("(", 0) + export_csv_columns1320 = xs1317 self.consume_literal(")") - _t2067 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1304) - _t2068 = transactions_pb2.ExportCSVSource(gnf_columns=_t2067) - _t2065 = _t2068 + _t2089 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1320) + _t2090 = transactions_pb2.ExportCSVSource(gnf_columns=_t2089) + _t2087 = _t2090 else: raise ParseError("Unexpected token in export_csv_source" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2062 = _t2065 - result1307 = _t2062 - self.record_span(span_start1306, "ExportCSVSource") - return result1307 + _t2084 = _t2087 + result1323 = _t2084 + self.record_span(span_start1322, "ExportCSVSource") + return result1323 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: - span_start1310 = self.span_start() + span_start1326 = self.span_start() self.consume_literal("(") self.consume_literal("column") - string1308 = self.consume_terminal("STRING") - _t2069 = self.parse_relation_id() - relation_id1309 = _t2069 + string1324 = self.consume_terminal("STRING") + _t2091 = self.parse_relation_id() + relation_id1325 = _t2091 self.consume_literal(")") - _t2070 = transactions_pb2.ExportCSVColumn(column_name=string1308, column_data=relation_id1309) - result1311 = _t2070 - self.record_span(span_start1310, "ExportCSVColumn") - return result1311 + _t2092 = transactions_pb2.ExportCSVColumn(column_name=string1324, column_data=relation_id1325) + result1327 = _t2092 + self.record_span(span_start1326, "ExportCSVColumn") + return result1327 def parse_export_csv_columns_list(self) -> Sequence[transactions_pb2.ExportCSVColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1312 = [] - cond1313 = self.match_lookahead_literal("(", 0) - while cond1313: - _t2071 = self.parse_export_csv_column() - item1314 = _t2071 - xs1312.append(item1314) - cond1313 = self.match_lookahead_literal("(", 0) - export_csv_columns1315 = xs1312 + xs1328 = [] + cond1329 = self.match_lookahead_literal("(", 0) + while cond1329: + _t2093 = self.parse_export_csv_column() + item1330 = _t2093 + xs1328.append(item1330) + cond1329 = self.match_lookahead_literal("(", 0) + export_csv_columns1331 = xs1328 self.consume_literal(")") - return export_csv_columns1315 + return export_csv_columns1331 def parse_export_iceberg_config(self) -> transactions_pb2.ExportIcebergConfig: - span_start1321 = self.span_start() + span_start1337 = self.span_start() self.consume_literal("(") self.consume_literal("export_iceberg_config") - _t2072 = self.parse_iceberg_locator() - iceberg_locator1316 = _t2072 - _t2073 = self.parse_iceberg_catalog_config() - iceberg_catalog_config1317 = _t2073 - _t2074 = self.parse_export_iceberg_table_def() - export_iceberg_table_def1318 = _t2074 - _t2075 = self.parse_iceberg_table_properties() - iceberg_table_properties1319 = _t2075 + _t2094 = self.parse_iceberg_locator() + iceberg_locator1332 = _t2094 + _t2095 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1333 = _t2095 + _t2096 = self.parse_export_iceberg_table_def() + export_iceberg_table_def1334 = _t2096 + _t2097 = self.parse_iceberg_table_properties() + iceberg_table_properties1335 = _t2097 if self.match_lookahead_literal("{", 0): - _t2077 = self.parse_config_dict() - _t2076 = _t2077 + _t2099 = self.parse_config_dict() + _t2098 = _t2099 else: - _t2076 = None - config_dict1320 = _t2076 + _t2098 = None + config_dict1336 = _t2098 self.consume_literal(")") - _t2078 = self.construct_export_iceberg_config_full(iceberg_locator1316, iceberg_catalog_config1317, export_iceberg_table_def1318, iceberg_table_properties1319, config_dict1320) - result1322 = _t2078 - self.record_span(span_start1321, "ExportIcebergConfig") - return result1322 + _t2100 = self.construct_export_iceberg_config_full(iceberg_locator1332, iceberg_catalog_config1333, export_iceberg_table_def1334, iceberg_table_properties1335, config_dict1336) + result1338 = _t2100 + self.record_span(span_start1337, "ExportIcebergConfig") + return result1338 def parse_export_iceberg_table_def(self) -> logic_pb2.RelationId: - span_start1324 = self.span_start() + span_start1340 = self.span_start() self.consume_literal("(") self.consume_literal("table_def") - _t2079 = self.parse_relation_id() - relation_id1323 = _t2079 + _t2101 = self.parse_relation_id() + relation_id1339 = _t2101 self.consume_literal(")") - result1325 = relation_id1323 - self.record_span(span_start1324, "RelationId") - return result1325 + result1341 = relation_id1339 + self.record_span(span_start1340, "RelationId") + return result1341 def parse_iceberg_table_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("table_properties") - xs1326 = [] - cond1327 = self.match_lookahead_literal("(", 0) - while cond1327: - _t2080 = self.parse_iceberg_property_entry() - item1328 = _t2080 - xs1326.append(item1328) - cond1327 = self.match_lookahead_literal("(", 0) - iceberg_property_entrys1329 = xs1326 - self.consume_literal(")") - return iceberg_property_entrys1329 + xs1342 = [] + cond1343 = self.match_lookahead_literal("(", 0) + while cond1343: + _t2102 = self.parse_iceberg_property_entry() + item1344 = _t2102 + xs1342.append(item1344) + cond1343 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1345 = xs1342 + self.consume_literal(")") + return iceberg_property_entrys1345 def parse_transaction(input_str: str) -> tuple[Any, dict[int, Span]]: diff --git a/sdks/python/src/lqp/gen/pretty.py b/sdks/python/src/lqp/gen/pretty.py index 8b799c33..3f4a015c 100644 --- a/sdks/python/src/lqp/gen/pretty.py +++ b/sdks/python/src/lqp/gen/pretty.py @@ -217,134 +217,134 @@ def write_debug_info(self) -> None: # --- Helper functions --- def _make_value_int32(self, v: int) -> logic_pb2.Value: - _t1731 = logic_pb2.Value(int32_value=v) - return _t1731 + _t1753 = logic_pb2.Value(int32_value=v) + return _t1753 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1732 = logic_pb2.Value(int_value=v) - return _t1732 + _t1754 = logic_pb2.Value(int_value=v) + return _t1754 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1733 = logic_pb2.Value(float_value=v) - return _t1733 + _t1755 = logic_pb2.Value(float_value=v) + return _t1755 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1734 = logic_pb2.Value(string_value=v) - return _t1734 + _t1756 = logic_pb2.Value(string_value=v) + return _t1756 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1735 = logic_pb2.Value(boolean_value=v) - return _t1735 + _t1757 = logic_pb2.Value(boolean_value=v) + return _t1757 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1736 = logic_pb2.Value(uint128_value=v) - return _t1736 + _t1758 = logic_pb2.Value(uint128_value=v) + return _t1758 def deconstruct_configure(self, msg: transactions_pb2.Configure) -> list[tuple[str, logic_pb2.Value]]: result = [] if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_AUTO: - _t1737 = self._make_value_string("auto") - result.append(("ivm.maintenance_level", _t1737,)) + _t1759 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1759,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1738 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1738,)) + _t1760 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1760,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF: - _t1739 = self._make_value_string("off") - result.append(("ivm.maintenance_level", _t1739,)) - _t1740 = self._make_value_int64(msg.semantics_version) - result.append(("semantics_version", _t1740,)) + _t1761 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1761,)) + _t1762 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1762,)) return sorted(result) def deconstruct_csv_config(self, msg: logic_pb2.CSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1741 = self._make_value_int32(msg.header_row) - result.append(("csv_header_row", _t1741,)) - _t1742 = self._make_value_int64(msg.skip) - result.append(("csv_skip", _t1742,)) + _t1763 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1763,)) + _t1764 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1764,)) if msg.new_line != "": - _t1743 = self._make_value_string(msg.new_line) - result.append(("csv_new_line", _t1743,)) - _t1744 = self._make_value_string(msg.delimiter) - result.append(("csv_delimiter", _t1744,)) - _t1745 = self._make_value_string(msg.quotechar) - result.append(("csv_quotechar", _t1745,)) - _t1746 = self._make_value_string(msg.escapechar) - result.append(("csv_escapechar", _t1746,)) + _t1765 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1765,)) + _t1766 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1766,)) + _t1767 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1767,)) + _t1768 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1768,)) if msg.comment != "": - _t1747 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1747,)) + _t1769 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1769,)) for missing_string in msg.missing_strings: - _t1748 = self._make_value_string(missing_string) - result.append(("csv_missing_strings", _t1748,)) - _t1749 = self._make_value_string(msg.decimal_separator) - result.append(("csv_decimal_separator", _t1749,)) - _t1750 = self._make_value_string(msg.encoding) - result.append(("csv_encoding", _t1750,)) - _t1751 = self._make_value_string(msg.compression) - result.append(("csv_compression", _t1751,)) + _t1770 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1770,)) + _t1771 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1771,)) + _t1772 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1772,)) + _t1773 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1773,)) if msg.partition_size_mb != 0: - _t1752 = self._make_value_int64(msg.partition_size_mb) - result.append(("csv_partition_size_mb", _t1752,)) + _t1774 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1774,)) return sorted(result) def deconstruct_betree_info_config(self, msg: logic_pb2.BeTreeInfo) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1753 = self._make_value_float64(msg.storage_config.epsilon) - result.append(("betree_config_epsilon", _t1753,)) - _t1754 = self._make_value_int64(msg.storage_config.max_pivots) - result.append(("betree_config_max_pivots", _t1754,)) - _t1755 = self._make_value_int64(msg.storage_config.max_deltas) - result.append(("betree_config_max_deltas", _t1755,)) - _t1756 = self._make_value_int64(msg.storage_config.max_leaf) - result.append(("betree_config_max_leaf", _t1756,)) + _t1775 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1775,)) + _t1776 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1776,)) + _t1777 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1777,)) + _t1778 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1778,)) if msg.relation_locator.HasField("root_pageid"): if msg.relation_locator.root_pageid is not None: assert msg.relation_locator.root_pageid is not None - _t1757 = self._make_value_uint128(msg.relation_locator.root_pageid) - result.append(("betree_locator_root_pageid", _t1757,)) + _t1779 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1779,)) if msg.relation_locator.HasField("inline_data"): if msg.relation_locator.inline_data is not None: assert msg.relation_locator.inline_data is not None - _t1758 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) - result.append(("betree_locator_inline_data", _t1758,)) - _t1759 = self._make_value_int64(msg.relation_locator.element_count) - result.append(("betree_locator_element_count", _t1759,)) - _t1760 = self._make_value_int64(msg.relation_locator.tree_height) - result.append(("betree_locator_tree_height", _t1760,)) + _t1780 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1780,)) + _t1781 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1781,)) + _t1782 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1782,)) return sorted(result) def deconstruct_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] if msg.partition_size is not None: assert msg.partition_size is not None - _t1761 = self._make_value_int64(msg.partition_size) - result.append(("partition_size", _t1761,)) + _t1783 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1783,)) if msg.compression is not None: assert msg.compression is not None - _t1762 = self._make_value_string(msg.compression) - result.append(("compression", _t1762,)) + _t1784 = self._make_value_string(msg.compression) + result.append(("compression", _t1784,)) if msg.syntax_header_row is not None: assert msg.syntax_header_row is not None - _t1763 = self._make_value_boolean(msg.syntax_header_row) - result.append(("syntax_header_row", _t1763,)) + _t1785 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1785,)) if msg.syntax_missing_string is not None: assert msg.syntax_missing_string is not None - _t1764 = self._make_value_string(msg.syntax_missing_string) - result.append(("syntax_missing_string", _t1764,)) + _t1786 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1786,)) if msg.syntax_delim is not None: assert msg.syntax_delim is not None - _t1765 = self._make_value_string(msg.syntax_delim) - result.append(("syntax_delim", _t1765,)) + _t1787 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1787,)) if msg.syntax_quotechar is not None: assert msg.syntax_quotechar is not None - _t1766 = self._make_value_string(msg.syntax_quotechar) - result.append(("syntax_quotechar", _t1766,)) + _t1788 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1788,)) if msg.syntax_escapechar is not None: assert msg.syntax_escapechar is not None - _t1767 = self._make_value_string(msg.syntax_escapechar) - result.append(("syntax_escapechar", _t1767,)) + _t1789 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1789,)) return sorted(result) def mask_secret_value(self, pair: tuple[str, str]) -> str: @@ -356,7 +356,7 @@ def deconstruct_iceberg_catalog_config_scope_optional(self, msg: logic_pb2.Icebe assert msg.scope is not None return msg.scope else: - _t1768 = None + _t1790 = None return None def deconstruct_iceberg_data_from_snapshot_optional(self, msg: logic_pb2.IcebergData) -> str | None: @@ -365,7 +365,7 @@ def deconstruct_iceberg_data_from_snapshot_optional(self, msg: logic_pb2.Iceberg assert msg.from_snapshot is not None return msg.from_snapshot else: - _t1769 = None + _t1791 = None return None def deconstruct_iceberg_data_to_snapshot_optional(self, msg: logic_pb2.IcebergData) -> str | None: @@ -374,7 +374,7 @@ def deconstruct_iceberg_data_to_snapshot_optional(self, msg: logic_pb2.IcebergDa assert msg.to_snapshot is not None return msg.to_snapshot else: - _t1770 = None + _t1792 = None return None def deconstruct_export_iceberg_config_optional(self, msg: transactions_pb2.ExportIcebergConfig) -> Sequence[tuple[str, logic_pb2.Value]] | None: @@ -382,20 +382,20 @@ def deconstruct_export_iceberg_config_optional(self, msg: transactions_pb2.Expor assert msg.prefix is not None if msg.prefix != "": assert msg.prefix is not None - _t1771 = self._make_value_string(msg.prefix) - result.append(("prefix", _t1771,)) + _t1793 = self._make_value_string(msg.prefix) + result.append(("prefix", _t1793,)) assert msg.target_file_size_bytes is not None if msg.target_file_size_bytes != 0: assert msg.target_file_size_bytes is not None - _t1772 = self._make_value_int64(msg.target_file_size_bytes) - result.append(("target_file_size_bytes", _t1772,)) + _t1794 = self._make_value_int64(msg.target_file_size_bytes) + result.append(("target_file_size_bytes", _t1794,)) if msg.compression != "": - _t1773 = self._make_value_string(msg.compression) - result.append(("compression", _t1773,)) + _t1795 = self._make_value_string(msg.compression) + result.append(("compression", _t1795,)) if len(result) == 0: return None else: - _t1774 = None + _t1796 = None return sorted(result) def deconstruct_relation_id_string(self, msg: logic_pb2.RelationId) -> str: @@ -408,7 +408,7 @@ def deconstruct_relation_id_uint128(self, msg: logic_pb2.RelationId) -> logic_pb if name is None: return self.relation_id_to_uint128(msg) else: - _t1775 = None + _t1797 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -423,3913 +423,3957 @@ def deconstruct_bindings_with_arity(self, abs: logic_pb2.Abstraction, value_arit # --- Pretty-print methods --- def pretty_transaction(self, msg: transactions_pb2.Transaction): - flat803 = self._try_flat(msg, self.pretty_transaction) - if flat803 is not None: - assert flat803 is not None - self.write(flat803) + flat813 = self._try_flat(msg, self.pretty_transaction) + if flat813 is not None: + assert flat813 is not None + self.write(flat813) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("configure"): - _t1588 = _dollar_dollar.configure + _t1608 = _dollar_dollar.configure else: - _t1588 = None + _t1608 = None if _dollar_dollar.HasField("sync"): - _t1589 = _dollar_dollar.sync + _t1609 = _dollar_dollar.sync else: - _t1589 = None - fields794 = (_t1588, _t1589, _dollar_dollar.epochs,) - assert fields794 is not None - unwrapped_fields795 = fields794 + _t1609 = None + fields804 = (_t1608, _t1609, _dollar_dollar.epochs,) + assert fields804 is not None + unwrapped_fields805 = fields804 self.write("(transaction") self.indent_sexp() - field796 = unwrapped_fields795[0] - if field796 is not None: + field806 = unwrapped_fields805[0] + if field806 is not None: self.newline() - assert field796 is not None - opt_val797 = field796 - self.pretty_configure(opt_val797) - field798 = unwrapped_fields795[1] - if field798 is not None: + assert field806 is not None + opt_val807 = field806 + self.pretty_configure(opt_val807) + field808 = unwrapped_fields805[1] + if field808 is not None: self.newline() - assert field798 is not None - opt_val799 = field798 - self.pretty_sync(opt_val799) - field800 = unwrapped_fields795[2] - if not len(field800) == 0: + assert field808 is not None + opt_val809 = field808 + self.pretty_sync(opt_val809) + field810 = unwrapped_fields805[2] + if not len(field810) == 0: self.newline() - for i802, elem801 in enumerate(field800): - if (i802 > 0): + for i812, elem811 in enumerate(field810): + if (i812 > 0): self.newline() - self.pretty_epoch(elem801) + self.pretty_epoch(elem811) self.dedent() self.write(")") def pretty_configure(self, msg: transactions_pb2.Configure): - flat806 = self._try_flat(msg, self.pretty_configure) - if flat806 is not None: - assert flat806 is not None - self.write(flat806) + flat816 = self._try_flat(msg, self.pretty_configure) + if flat816 is not None: + assert flat816 is not None + self.write(flat816) return None else: _dollar_dollar = msg - _t1590 = self.deconstruct_configure(_dollar_dollar) - fields804 = _t1590 - assert fields804 is not None - unwrapped_fields805 = fields804 + _t1610 = self.deconstruct_configure(_dollar_dollar) + fields814 = _t1610 + assert fields814 is not None + unwrapped_fields815 = fields814 self.write("(configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields805) + self.pretty_config_dict(unwrapped_fields815) self.dedent() self.write(")") def pretty_config_dict(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat810 = self._try_flat(msg, self.pretty_config_dict) - if flat810 is not None: - assert flat810 is not None - self.write(flat810) + flat820 = self._try_flat(msg, self.pretty_config_dict) + if flat820 is not None: + assert flat820 is not None + self.write(flat820) return None else: - fields807 = msg + fields817 = msg self.write("{") self.indent() - if not len(fields807) == 0: + if not len(fields817) == 0: self.newline() - for i809, elem808 in enumerate(fields807): - if (i809 > 0): + for i819, elem818 in enumerate(fields817): + if (i819 > 0): self.newline() - self.pretty_config_key_value(elem808) + self.pretty_config_key_value(elem818) self.dedent() self.write("}") def pretty_config_key_value(self, msg: tuple[str, logic_pb2.Value]): - flat815 = self._try_flat(msg, self.pretty_config_key_value) - if flat815 is not None: - assert flat815 is not None - self.write(flat815) + flat825 = self._try_flat(msg, self.pretty_config_key_value) + if flat825 is not None: + assert flat825 is not None + self.write(flat825) return None else: _dollar_dollar = msg - fields811 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields811 is not None - unwrapped_fields812 = fields811 + fields821 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields821 is not None + unwrapped_fields822 = fields821 self.write(":") - field813 = unwrapped_fields812[0] - self.write(field813) + field823 = unwrapped_fields822[0] + self.write(field823) self.write(" ") - field814 = unwrapped_fields812[1] - self.pretty_raw_value(field814) + field824 = unwrapped_fields822[1] + self.pretty_raw_value(field824) def pretty_raw_value(self, msg: logic_pb2.Value): - flat841 = self._try_flat(msg, self.pretty_raw_value) - if flat841 is not None: - assert flat841 is not None - self.write(flat841) + flat851 = self._try_flat(msg, self.pretty_raw_value) + if flat851 is not None: + assert flat851 is not None + self.write(flat851) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1591 = _dollar_dollar.date_value + _t1611 = _dollar_dollar.date_value else: - _t1591 = None - deconstruct_result839 = _t1591 - if deconstruct_result839 is not None: - assert deconstruct_result839 is not None - unwrapped840 = deconstruct_result839 - self.pretty_raw_date(unwrapped840) + _t1611 = None + deconstruct_result849 = _t1611 + if deconstruct_result849 is not None: + assert deconstruct_result849 is not None + unwrapped850 = deconstruct_result849 + self.pretty_raw_date(unwrapped850) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1592 = _dollar_dollar.datetime_value + _t1612 = _dollar_dollar.datetime_value else: - _t1592 = None - deconstruct_result837 = _t1592 - if deconstruct_result837 is not None: - assert deconstruct_result837 is not None - unwrapped838 = deconstruct_result837 - self.pretty_raw_datetime(unwrapped838) + _t1612 = None + deconstruct_result847 = _t1612 + if deconstruct_result847 is not None: + assert deconstruct_result847 is not None + unwrapped848 = deconstruct_result847 + self.pretty_raw_datetime(unwrapped848) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1593 = _dollar_dollar.string_value + _t1613 = _dollar_dollar.string_value else: - _t1593 = None - deconstruct_result835 = _t1593 - if deconstruct_result835 is not None: - assert deconstruct_result835 is not None - unwrapped836 = deconstruct_result835 - self.write(self.format_string_value(unwrapped836)) + _t1613 = None + deconstruct_result845 = _t1613 + if deconstruct_result845 is not None: + assert deconstruct_result845 is not None + unwrapped846 = deconstruct_result845 + self.write(self.format_string_value(unwrapped846)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1594 = _dollar_dollar.int32_value + _t1614 = _dollar_dollar.int32_value else: - _t1594 = None - deconstruct_result833 = _t1594 - if deconstruct_result833 is not None: - assert deconstruct_result833 is not None - unwrapped834 = deconstruct_result833 - self.write((str(unwrapped834) + 'i32')) + _t1614 = None + deconstruct_result843 = _t1614 + if deconstruct_result843 is not None: + assert deconstruct_result843 is not None + unwrapped844 = deconstruct_result843 + self.write((str(unwrapped844) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1595 = _dollar_dollar.int_value + _t1615 = _dollar_dollar.int_value else: - _t1595 = None - deconstruct_result831 = _t1595 - if deconstruct_result831 is not None: - assert deconstruct_result831 is not None - unwrapped832 = deconstruct_result831 - self.write(str(unwrapped832)) + _t1615 = None + deconstruct_result841 = _t1615 + if deconstruct_result841 is not None: + assert deconstruct_result841 is not None + unwrapped842 = deconstruct_result841 + self.write(str(unwrapped842)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1596 = _dollar_dollar.float32_value + _t1616 = _dollar_dollar.float32_value else: - _t1596 = None - deconstruct_result829 = _t1596 - if deconstruct_result829 is not None: - assert deconstruct_result829 is not None - unwrapped830 = deconstruct_result829 - self.write(self.format_float32_literal(unwrapped830)) + _t1616 = None + deconstruct_result839 = _t1616 + if deconstruct_result839 is not None: + assert deconstruct_result839 is not None + unwrapped840 = deconstruct_result839 + self.write(self.format_float32_literal(unwrapped840)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1597 = _dollar_dollar.float_value + _t1617 = _dollar_dollar.float_value else: - _t1597 = None - deconstruct_result827 = _t1597 - if deconstruct_result827 is not None: - assert deconstruct_result827 is not None - unwrapped828 = deconstruct_result827 - self.write(str(unwrapped828)) + _t1617 = None + deconstruct_result837 = _t1617 + if deconstruct_result837 is not None: + assert deconstruct_result837 is not None + unwrapped838 = deconstruct_result837 + self.write(str(unwrapped838)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1598 = _dollar_dollar.uint32_value + _t1618 = _dollar_dollar.uint32_value else: - _t1598 = None - deconstruct_result825 = _t1598 - if deconstruct_result825 is not None: - assert deconstruct_result825 is not None - unwrapped826 = deconstruct_result825 - self.write((str(unwrapped826) + 'u32')) + _t1618 = None + deconstruct_result835 = _t1618 + if deconstruct_result835 is not None: + assert deconstruct_result835 is not None + unwrapped836 = deconstruct_result835 + self.write((str(unwrapped836) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1599 = _dollar_dollar.uint128_value + _t1619 = _dollar_dollar.uint128_value else: - _t1599 = None - deconstruct_result823 = _t1599 - if deconstruct_result823 is not None: - assert deconstruct_result823 is not None - unwrapped824 = deconstruct_result823 - self.write(self.format_uint128(unwrapped824)) + _t1619 = None + deconstruct_result833 = _t1619 + if deconstruct_result833 is not None: + assert deconstruct_result833 is not None + unwrapped834 = deconstruct_result833 + self.write(self.format_uint128(unwrapped834)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1600 = _dollar_dollar.int128_value + _t1620 = _dollar_dollar.int128_value else: - _t1600 = None - deconstruct_result821 = _t1600 - if deconstruct_result821 is not None: - assert deconstruct_result821 is not None - unwrapped822 = deconstruct_result821 - self.write(self.format_int128(unwrapped822)) + _t1620 = None + deconstruct_result831 = _t1620 + if deconstruct_result831 is not None: + assert deconstruct_result831 is not None + unwrapped832 = deconstruct_result831 + self.write(self.format_int128(unwrapped832)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1601 = _dollar_dollar.decimal_value + _t1621 = _dollar_dollar.decimal_value else: - _t1601 = None - deconstruct_result819 = _t1601 - if deconstruct_result819 is not None: - assert deconstruct_result819 is not None - unwrapped820 = deconstruct_result819 - self.write(self.format_decimal(unwrapped820)) + _t1621 = None + deconstruct_result829 = _t1621 + if deconstruct_result829 is not None: + assert deconstruct_result829 is not None + unwrapped830 = deconstruct_result829 + self.write(self.format_decimal(unwrapped830)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1602 = _dollar_dollar.boolean_value + _t1622 = _dollar_dollar.boolean_value else: - _t1602 = None - deconstruct_result817 = _t1602 - if deconstruct_result817 is not None: - assert deconstruct_result817 is not None - unwrapped818 = deconstruct_result817 - self.pretty_boolean_value(unwrapped818) + _t1622 = None + deconstruct_result827 = _t1622 + if deconstruct_result827 is not None: + assert deconstruct_result827 is not None + unwrapped828 = deconstruct_result827 + self.pretty_boolean_value(unwrapped828) else: - fields816 = msg + fields826 = msg self.write("missing") def pretty_raw_date(self, msg: logic_pb2.DateValue): - flat847 = self._try_flat(msg, self.pretty_raw_date) - if flat847 is not None: - assert flat847 is not None - self.write(flat847) + flat857 = self._try_flat(msg, self.pretty_raw_date) + if flat857 is not None: + assert flat857 is not None + self.write(flat857) return None else: _dollar_dollar = msg - fields842 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields842 is not None - unwrapped_fields843 = fields842 + fields852 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields852 is not None + unwrapped_fields853 = fields852 self.write("(date") self.indent_sexp() self.newline() - field844 = unwrapped_fields843[0] - self.write(str(field844)) + field854 = unwrapped_fields853[0] + self.write(str(field854)) self.newline() - field845 = unwrapped_fields843[1] - self.write(str(field845)) + field855 = unwrapped_fields853[1] + self.write(str(field855)) self.newline() - field846 = unwrapped_fields843[2] - self.write(str(field846)) + field856 = unwrapped_fields853[2] + self.write(str(field856)) self.dedent() self.write(")") def pretty_raw_datetime(self, msg: logic_pb2.DateTimeValue): - flat858 = self._try_flat(msg, self.pretty_raw_datetime) - if flat858 is not None: - assert flat858 is not None - self.write(flat858) + flat868 = self._try_flat(msg, self.pretty_raw_datetime) + if flat868 is not None: + assert flat868 is not None + self.write(flat868) return None else: _dollar_dollar = msg - fields848 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) - assert fields848 is not None - unwrapped_fields849 = fields848 + fields858 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) + assert fields858 is not None + unwrapped_fields859 = fields858 self.write("(datetime") self.indent_sexp() self.newline() - field850 = unwrapped_fields849[0] - self.write(str(field850)) + field860 = unwrapped_fields859[0] + self.write(str(field860)) self.newline() - field851 = unwrapped_fields849[1] - self.write(str(field851)) + field861 = unwrapped_fields859[1] + self.write(str(field861)) self.newline() - field852 = unwrapped_fields849[2] - self.write(str(field852)) + field862 = unwrapped_fields859[2] + self.write(str(field862)) self.newline() - field853 = unwrapped_fields849[3] - self.write(str(field853)) + field863 = unwrapped_fields859[3] + self.write(str(field863)) self.newline() - field854 = unwrapped_fields849[4] - self.write(str(field854)) + field864 = unwrapped_fields859[4] + self.write(str(field864)) self.newline() - field855 = unwrapped_fields849[5] - self.write(str(field855)) - field856 = unwrapped_fields849[6] - if field856 is not None: + field865 = unwrapped_fields859[5] + self.write(str(field865)) + field866 = unwrapped_fields859[6] + if field866 is not None: self.newline() - assert field856 is not None - opt_val857 = field856 - self.write(str(opt_val857)) + assert field866 is not None + opt_val867 = field866 + self.write(str(opt_val867)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): _dollar_dollar = msg if _dollar_dollar: - _t1603 = () + _t1623 = () else: - _t1603 = None - deconstruct_result861 = _t1603 - if deconstruct_result861 is not None: - assert deconstruct_result861 is not None - unwrapped862 = deconstruct_result861 + _t1623 = None + deconstruct_result871 = _t1623 + if deconstruct_result871 is not None: + assert deconstruct_result871 is not None + unwrapped872 = deconstruct_result871 self.write("true") else: _dollar_dollar = msg if not _dollar_dollar: - _t1604 = () + _t1624 = () else: - _t1604 = None - deconstruct_result859 = _t1604 - if deconstruct_result859 is not None: - assert deconstruct_result859 is not None - unwrapped860 = deconstruct_result859 + _t1624 = None + deconstruct_result869 = _t1624 + if deconstruct_result869 is not None: + assert deconstruct_result869 is not None + unwrapped870 = deconstruct_result869 self.write("false") else: raise ParseError("No matching rule for boolean_value") def pretty_sync(self, msg: transactions_pb2.Sync): - flat867 = self._try_flat(msg, self.pretty_sync) - if flat867 is not None: - assert flat867 is not None - self.write(flat867) + flat877 = self._try_flat(msg, self.pretty_sync) + if flat877 is not None: + assert flat877 is not None + self.write(flat877) return None else: _dollar_dollar = msg - fields863 = _dollar_dollar.fragments - assert fields863 is not None - unwrapped_fields864 = fields863 + fields873 = _dollar_dollar.fragments + assert fields873 is not None + unwrapped_fields874 = fields873 self.write("(sync") self.indent_sexp() - if not len(unwrapped_fields864) == 0: + if not len(unwrapped_fields874) == 0: self.newline() - for i866, elem865 in enumerate(unwrapped_fields864): - if (i866 > 0): + for i876, elem875 in enumerate(unwrapped_fields874): + if (i876 > 0): self.newline() - self.pretty_fragment_id(elem865) + self.pretty_fragment_id(elem875) self.dedent() self.write(")") def pretty_fragment_id(self, msg: fragments_pb2.FragmentId): - flat870 = self._try_flat(msg, self.pretty_fragment_id) - if flat870 is not None: - assert flat870 is not None - self.write(flat870) + flat880 = self._try_flat(msg, self.pretty_fragment_id) + if flat880 is not None: + assert flat880 is not None + self.write(flat880) return None else: _dollar_dollar = msg - fields868 = self.fragment_id_to_string(_dollar_dollar) - assert fields868 is not None - unwrapped_fields869 = fields868 + fields878 = self.fragment_id_to_string(_dollar_dollar) + assert fields878 is not None + unwrapped_fields879 = fields878 self.write(":") - self.write(unwrapped_fields869) + self.write(unwrapped_fields879) def pretty_epoch(self, msg: transactions_pb2.Epoch): - flat877 = self._try_flat(msg, self.pretty_epoch) - if flat877 is not None: - assert flat877 is not None - self.write(flat877) + flat887 = self._try_flat(msg, self.pretty_epoch) + if flat887 is not None: + assert flat887 is not None + self.write(flat887) return None else: _dollar_dollar = msg if not len(_dollar_dollar.writes) == 0: - _t1605 = _dollar_dollar.writes + _t1625 = _dollar_dollar.writes else: - _t1605 = None + _t1625 = None if not len(_dollar_dollar.reads) == 0: - _t1606 = _dollar_dollar.reads + _t1626 = _dollar_dollar.reads else: - _t1606 = None - fields871 = (_t1605, _t1606,) - assert fields871 is not None - unwrapped_fields872 = fields871 + _t1626 = None + fields881 = (_t1625, _t1626,) + assert fields881 is not None + unwrapped_fields882 = fields881 self.write("(epoch") self.indent_sexp() - field873 = unwrapped_fields872[0] - if field873 is not None: + field883 = unwrapped_fields882[0] + if field883 is not None: self.newline() - assert field873 is not None - opt_val874 = field873 - self.pretty_epoch_writes(opt_val874) - field875 = unwrapped_fields872[1] - if field875 is not None: + assert field883 is not None + opt_val884 = field883 + self.pretty_epoch_writes(opt_val884) + field885 = unwrapped_fields882[1] + if field885 is not None: self.newline() - assert field875 is not None - opt_val876 = field875 - self.pretty_epoch_reads(opt_val876) + assert field885 is not None + opt_val886 = field885 + self.pretty_epoch_reads(opt_val886) self.dedent() self.write(")") def pretty_epoch_writes(self, msg: Sequence[transactions_pb2.Write]): - flat881 = self._try_flat(msg, self.pretty_epoch_writes) - if flat881 is not None: - assert flat881 is not None - self.write(flat881) + flat891 = self._try_flat(msg, self.pretty_epoch_writes) + if flat891 is not None: + assert flat891 is not None + self.write(flat891) return None else: - fields878 = msg + fields888 = msg self.write("(writes") self.indent_sexp() - if not len(fields878) == 0: + if not len(fields888) == 0: self.newline() - for i880, elem879 in enumerate(fields878): - if (i880 > 0): + for i890, elem889 in enumerate(fields888): + if (i890 > 0): self.newline() - self.pretty_write(elem879) + self.pretty_write(elem889) self.dedent() self.write(")") def pretty_write(self, msg: transactions_pb2.Write): - flat890 = self._try_flat(msg, self.pretty_write) - if flat890 is not None: - assert flat890 is not None - self.write(flat890) + flat900 = self._try_flat(msg, self.pretty_write) + if flat900 is not None: + assert flat900 is not None + self.write(flat900) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("define"): - _t1607 = _dollar_dollar.define + _t1627 = _dollar_dollar.define else: - _t1607 = None - deconstruct_result888 = _t1607 - if deconstruct_result888 is not None: - assert deconstruct_result888 is not None - unwrapped889 = deconstruct_result888 - self.pretty_define(unwrapped889) + _t1627 = None + deconstruct_result898 = _t1627 + if deconstruct_result898 is not None: + assert deconstruct_result898 is not None + unwrapped899 = deconstruct_result898 + self.pretty_define(unwrapped899) else: _dollar_dollar = msg if _dollar_dollar.HasField("undefine"): - _t1608 = _dollar_dollar.undefine + _t1628 = _dollar_dollar.undefine else: - _t1608 = None - deconstruct_result886 = _t1608 - if deconstruct_result886 is not None: - assert deconstruct_result886 is not None - unwrapped887 = deconstruct_result886 - self.pretty_undefine(unwrapped887) + _t1628 = None + deconstruct_result896 = _t1628 + if deconstruct_result896 is not None: + assert deconstruct_result896 is not None + unwrapped897 = deconstruct_result896 + self.pretty_undefine(unwrapped897) else: _dollar_dollar = msg if _dollar_dollar.HasField("context"): - _t1609 = _dollar_dollar.context + _t1629 = _dollar_dollar.context else: - _t1609 = None - deconstruct_result884 = _t1609 - if deconstruct_result884 is not None: - assert deconstruct_result884 is not None - unwrapped885 = deconstruct_result884 - self.pretty_context(unwrapped885) + _t1629 = None + deconstruct_result894 = _t1629 + if deconstruct_result894 is not None: + assert deconstruct_result894 is not None + unwrapped895 = deconstruct_result894 + self.pretty_context(unwrapped895) else: _dollar_dollar = msg if _dollar_dollar.HasField("snapshot"): - _t1610 = _dollar_dollar.snapshot + _t1630 = _dollar_dollar.snapshot else: - _t1610 = None - deconstruct_result882 = _t1610 - if deconstruct_result882 is not None: - assert deconstruct_result882 is not None - unwrapped883 = deconstruct_result882 - self.pretty_snapshot(unwrapped883) + _t1630 = None + deconstruct_result892 = _t1630 + if deconstruct_result892 is not None: + assert deconstruct_result892 is not None + unwrapped893 = deconstruct_result892 + self.pretty_snapshot(unwrapped893) else: raise ParseError("No matching rule for write") def pretty_define(self, msg: transactions_pb2.Define): - flat893 = self._try_flat(msg, self.pretty_define) - if flat893 is not None: - assert flat893 is not None - self.write(flat893) + flat903 = self._try_flat(msg, self.pretty_define) + if flat903 is not None: + assert flat903 is not None + self.write(flat903) return None else: _dollar_dollar = msg - fields891 = _dollar_dollar.fragment - assert fields891 is not None - unwrapped_fields892 = fields891 + fields901 = _dollar_dollar.fragment + assert fields901 is not None + unwrapped_fields902 = fields901 self.write("(define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields892) + self.pretty_fragment(unwrapped_fields902) self.dedent() self.write(")") def pretty_fragment(self, msg: fragments_pb2.Fragment): - flat900 = self._try_flat(msg, self.pretty_fragment) - if flat900 is not None: - assert flat900 is not None - self.write(flat900) + flat910 = self._try_flat(msg, self.pretty_fragment) + if flat910 is not None: + assert flat910 is not None + self.write(flat910) return None else: _dollar_dollar = msg self.start_pretty_fragment(_dollar_dollar) - fields894 = (_dollar_dollar.id, _dollar_dollar.declarations,) - assert fields894 is not None - unwrapped_fields895 = fields894 + fields904 = (_dollar_dollar.id, _dollar_dollar.declarations,) + assert fields904 is not None + unwrapped_fields905 = fields904 self.write("(fragment") self.indent_sexp() self.newline() - field896 = unwrapped_fields895[0] - self.pretty_new_fragment_id(field896) - field897 = unwrapped_fields895[1] - if not len(field897) == 0: + field906 = unwrapped_fields905[0] + self.pretty_new_fragment_id(field906) + field907 = unwrapped_fields905[1] + if not len(field907) == 0: self.newline() - for i899, elem898 in enumerate(field897): - if (i899 > 0): + for i909, elem908 in enumerate(field907): + if (i909 > 0): self.newline() - self.pretty_declaration(elem898) + self.pretty_declaration(elem908) self.dedent() self.write(")") def pretty_new_fragment_id(self, msg: fragments_pb2.FragmentId): - flat902 = self._try_flat(msg, self.pretty_new_fragment_id) - if flat902 is not None: - assert flat902 is not None - self.write(flat902) + flat912 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat912 is not None: + assert flat912 is not None + self.write(flat912) return None else: - fields901 = msg - self.pretty_fragment_id(fields901) + fields911 = msg + self.pretty_fragment_id(fields911) def pretty_declaration(self, msg: logic_pb2.Declaration): - flat911 = self._try_flat(msg, self.pretty_declaration) - if flat911 is not None: - assert flat911 is not None - self.write(flat911) + flat921 = self._try_flat(msg, self.pretty_declaration) + if flat921 is not None: + assert flat921 is not None + self.write(flat921) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("def"): - _t1611 = getattr(_dollar_dollar, 'def') + _t1631 = getattr(_dollar_dollar, 'def') else: - _t1611 = None - deconstruct_result909 = _t1611 - if deconstruct_result909 is not None: - assert deconstruct_result909 is not None - unwrapped910 = deconstruct_result909 - self.pretty_def(unwrapped910) + _t1631 = None + deconstruct_result919 = _t1631 + if deconstruct_result919 is not None: + assert deconstruct_result919 is not None + unwrapped920 = deconstruct_result919 + self.pretty_def(unwrapped920) else: _dollar_dollar = msg if _dollar_dollar.HasField("algorithm"): - _t1612 = _dollar_dollar.algorithm + _t1632 = _dollar_dollar.algorithm else: - _t1612 = None - deconstruct_result907 = _t1612 - if deconstruct_result907 is not None: - assert deconstruct_result907 is not None - unwrapped908 = deconstruct_result907 - self.pretty_algorithm(unwrapped908) + _t1632 = None + deconstruct_result917 = _t1632 + if deconstruct_result917 is not None: + assert deconstruct_result917 is not None + unwrapped918 = deconstruct_result917 + self.pretty_algorithm(unwrapped918) else: _dollar_dollar = msg if _dollar_dollar.HasField("constraint"): - _t1613 = _dollar_dollar.constraint + _t1633 = _dollar_dollar.constraint else: - _t1613 = None - deconstruct_result905 = _t1613 - if deconstruct_result905 is not None: - assert deconstruct_result905 is not None - unwrapped906 = deconstruct_result905 - self.pretty_constraint(unwrapped906) + _t1633 = None + deconstruct_result915 = _t1633 + if deconstruct_result915 is not None: + assert deconstruct_result915 is not None + unwrapped916 = deconstruct_result915 + self.pretty_constraint(unwrapped916) else: _dollar_dollar = msg if _dollar_dollar.HasField("data"): - _t1614 = _dollar_dollar.data + _t1634 = _dollar_dollar.data else: - _t1614 = None - deconstruct_result903 = _t1614 - if deconstruct_result903 is not None: - assert deconstruct_result903 is not None - unwrapped904 = deconstruct_result903 - self.pretty_data(unwrapped904) + _t1634 = None + deconstruct_result913 = _t1634 + if deconstruct_result913 is not None: + assert deconstruct_result913 is not None + unwrapped914 = deconstruct_result913 + self.pretty_data(unwrapped914) else: raise ParseError("No matching rule for declaration") def pretty_def(self, msg: logic_pb2.Def): - flat918 = self._try_flat(msg, self.pretty_def) - if flat918 is not None: - assert flat918 is not None - self.write(flat918) + flat928 = self._try_flat(msg, self.pretty_def) + if flat928 is not None: + assert flat928 is not None + self.write(flat928) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1615 = _dollar_dollar.attrs + _t1635 = _dollar_dollar.attrs else: - _t1615 = None - fields912 = (_dollar_dollar.name, _dollar_dollar.body, _t1615,) - assert fields912 is not None - unwrapped_fields913 = fields912 + _t1635 = None + fields922 = (_dollar_dollar.name, _dollar_dollar.body, _t1635,) + assert fields922 is not None + unwrapped_fields923 = fields922 self.write("(def") self.indent_sexp() self.newline() - field914 = unwrapped_fields913[0] - self.pretty_relation_id(field914) + field924 = unwrapped_fields923[0] + self.pretty_relation_id(field924) self.newline() - field915 = unwrapped_fields913[1] - self.pretty_abstraction(field915) - field916 = unwrapped_fields913[2] - if field916 is not None: + field925 = unwrapped_fields923[1] + self.pretty_abstraction(field925) + field926 = unwrapped_fields923[2] + if field926 is not None: self.newline() - assert field916 is not None - opt_val917 = field916 - self.pretty_attrs(opt_val917) + assert field926 is not None + opt_val927 = field926 + self.pretty_attrs(opt_val927) self.dedent() self.write(")") def pretty_relation_id(self, msg: logic_pb2.RelationId): - flat923 = self._try_flat(msg, self.pretty_relation_id) - if flat923 is not None: - assert flat923 is not None - self.write(flat923) + flat933 = self._try_flat(msg, self.pretty_relation_id) + if flat933 is not None: + assert flat933 is not None + self.write(flat933) return None else: _dollar_dollar = msg if self.relation_id_to_string(_dollar_dollar) is not None: - _t1617 = self.deconstruct_relation_id_string(_dollar_dollar) - _t1616 = _t1617 + _t1637 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1636 = _t1637 else: - _t1616 = None - deconstruct_result921 = _t1616 - if deconstruct_result921 is not None: - assert deconstruct_result921 is not None - unwrapped922 = deconstruct_result921 + _t1636 = None + deconstruct_result931 = _t1636 + if deconstruct_result931 is not None: + assert deconstruct_result931 is not None + unwrapped932 = deconstruct_result931 self.write(":") - self.write(unwrapped922) + self.write(unwrapped932) else: _dollar_dollar = msg - _t1618 = self.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result919 = _t1618 - if deconstruct_result919 is not None: - assert deconstruct_result919 is not None - unwrapped920 = deconstruct_result919 - self.write(self.format_uint128(unwrapped920)) + _t1638 = self.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result929 = _t1638 + if deconstruct_result929 is not None: + assert deconstruct_result929 is not None + unwrapped930 = deconstruct_result929 + self.write(self.format_uint128(unwrapped930)) else: raise ParseError("No matching rule for relation_id") def pretty_abstraction(self, msg: logic_pb2.Abstraction): - flat928 = self._try_flat(msg, self.pretty_abstraction) - if flat928 is not None: - assert flat928 is not None - self.write(flat928) + flat938 = self._try_flat(msg, self.pretty_abstraction) + if flat938 is not None: + assert flat938 is not None + self.write(flat938) return None else: _dollar_dollar = msg - _t1619 = self.deconstruct_bindings(_dollar_dollar) - fields924 = (_t1619, _dollar_dollar.value,) - assert fields924 is not None - unwrapped_fields925 = fields924 + _t1639 = self.deconstruct_bindings(_dollar_dollar) + fields934 = (_t1639, _dollar_dollar.value,) + assert fields934 is not None + unwrapped_fields935 = fields934 self.write("(") self.indent() - field926 = unwrapped_fields925[0] - self.pretty_bindings(field926) + field936 = unwrapped_fields935[0] + self.pretty_bindings(field936) self.newline() - field927 = unwrapped_fields925[1] - self.pretty_formula(field927) + field937 = unwrapped_fields935[1] + self.pretty_formula(field937) self.dedent() self.write(")") def pretty_bindings(self, msg: tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]): - flat936 = self._try_flat(msg, self.pretty_bindings) - if flat936 is not None: - assert flat936 is not None - self.write(flat936) + flat946 = self._try_flat(msg, self.pretty_bindings) + if flat946 is not None: + assert flat946 is not None + self.write(flat946) return None else: _dollar_dollar = msg if not len(_dollar_dollar[1]) == 0: - _t1620 = _dollar_dollar[1] + _t1640 = _dollar_dollar[1] else: - _t1620 = None - fields929 = (_dollar_dollar[0], _t1620,) - assert fields929 is not None - unwrapped_fields930 = fields929 + _t1640 = None + fields939 = (_dollar_dollar[0], _t1640,) + assert fields939 is not None + unwrapped_fields940 = fields939 self.write("[") self.indent() - field931 = unwrapped_fields930[0] - for i933, elem932 in enumerate(field931): - if (i933 > 0): + field941 = unwrapped_fields940[0] + for i943, elem942 in enumerate(field941): + if (i943 > 0): self.newline() - self.pretty_binding(elem932) - field934 = unwrapped_fields930[1] - if field934 is not None: + self.pretty_binding(elem942) + field944 = unwrapped_fields940[1] + if field944 is not None: self.newline() - assert field934 is not None - opt_val935 = field934 - self.pretty_value_bindings(opt_val935) + assert field944 is not None + opt_val945 = field944 + self.pretty_value_bindings(opt_val945) self.dedent() self.write("]") def pretty_binding(self, msg: logic_pb2.Binding): - flat941 = self._try_flat(msg, self.pretty_binding) - if flat941 is not None: - assert flat941 is not None - self.write(flat941) + flat951 = self._try_flat(msg, self.pretty_binding) + if flat951 is not None: + assert flat951 is not None + self.write(flat951) return None else: _dollar_dollar = msg - fields937 = (_dollar_dollar.var.name, _dollar_dollar.type,) - assert fields937 is not None - unwrapped_fields938 = fields937 - field939 = unwrapped_fields938[0] - self.write(field939) + fields947 = (_dollar_dollar.var.name, _dollar_dollar.type,) + assert fields947 is not None + unwrapped_fields948 = fields947 + field949 = unwrapped_fields948[0] + self.write(field949) self.write("::") - field940 = unwrapped_fields938[1] - self.pretty_type(field940) + field950 = unwrapped_fields948[1] + self.pretty_type(field950) def pretty_type(self, msg: logic_pb2.Type): - flat970 = self._try_flat(msg, self.pretty_type) - if flat970 is not None: - assert flat970 is not None - self.write(flat970) + flat980 = self._try_flat(msg, self.pretty_type) + if flat980 is not None: + assert flat980 is not None + self.write(flat980) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("unspecified_type"): - _t1621 = _dollar_dollar.unspecified_type + _t1641 = _dollar_dollar.unspecified_type else: - _t1621 = None - deconstruct_result968 = _t1621 - if deconstruct_result968 is not None: - assert deconstruct_result968 is not None - unwrapped969 = deconstruct_result968 - self.pretty_unspecified_type(unwrapped969) + _t1641 = None + deconstruct_result978 = _t1641 + if deconstruct_result978 is not None: + assert deconstruct_result978 is not None + unwrapped979 = deconstruct_result978 + self.pretty_unspecified_type(unwrapped979) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_type"): - _t1622 = _dollar_dollar.string_type + _t1642 = _dollar_dollar.string_type else: - _t1622 = None - deconstruct_result966 = _t1622 - if deconstruct_result966 is not None: - assert deconstruct_result966 is not None - unwrapped967 = deconstruct_result966 - self.pretty_string_type(unwrapped967) + _t1642 = None + deconstruct_result976 = _t1642 + if deconstruct_result976 is not None: + assert deconstruct_result976 is not None + unwrapped977 = deconstruct_result976 + self.pretty_string_type(unwrapped977) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_type"): - _t1623 = _dollar_dollar.int_type + _t1643 = _dollar_dollar.int_type else: - _t1623 = None - deconstruct_result964 = _t1623 - if deconstruct_result964 is not None: - assert deconstruct_result964 is not None - unwrapped965 = deconstruct_result964 - self.pretty_int_type(unwrapped965) + _t1643 = None + deconstruct_result974 = _t1643 + if deconstruct_result974 is not None: + assert deconstruct_result974 is not None + unwrapped975 = deconstruct_result974 + self.pretty_int_type(unwrapped975) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_type"): - _t1624 = _dollar_dollar.float_type + _t1644 = _dollar_dollar.float_type else: - _t1624 = None - deconstruct_result962 = _t1624 - if deconstruct_result962 is not None: - assert deconstruct_result962 is not None - unwrapped963 = deconstruct_result962 - self.pretty_float_type(unwrapped963) + _t1644 = None + deconstruct_result972 = _t1644 + if deconstruct_result972 is not None: + assert deconstruct_result972 is not None + unwrapped973 = deconstruct_result972 + self.pretty_float_type(unwrapped973) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_type"): - _t1625 = _dollar_dollar.uint128_type + _t1645 = _dollar_dollar.uint128_type else: - _t1625 = None - deconstruct_result960 = _t1625 - if deconstruct_result960 is not None: - assert deconstruct_result960 is not None - unwrapped961 = deconstruct_result960 - self.pretty_uint128_type(unwrapped961) + _t1645 = None + deconstruct_result970 = _t1645 + if deconstruct_result970 is not None: + assert deconstruct_result970 is not None + unwrapped971 = deconstruct_result970 + self.pretty_uint128_type(unwrapped971) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_type"): - _t1626 = _dollar_dollar.int128_type + _t1646 = _dollar_dollar.int128_type else: - _t1626 = None - deconstruct_result958 = _t1626 - if deconstruct_result958 is not None: - assert deconstruct_result958 is not None - unwrapped959 = deconstruct_result958 - self.pretty_int128_type(unwrapped959) + _t1646 = None + deconstruct_result968 = _t1646 + if deconstruct_result968 is not None: + assert deconstruct_result968 is not None + unwrapped969 = deconstruct_result968 + self.pretty_int128_type(unwrapped969) else: _dollar_dollar = msg if _dollar_dollar.HasField("date_type"): - _t1627 = _dollar_dollar.date_type + _t1647 = _dollar_dollar.date_type else: - _t1627 = None - deconstruct_result956 = _t1627 - if deconstruct_result956 is not None: - assert deconstruct_result956 is not None - unwrapped957 = deconstruct_result956 - self.pretty_date_type(unwrapped957) + _t1647 = None + deconstruct_result966 = _t1647 + if deconstruct_result966 is not None: + assert deconstruct_result966 is not None + unwrapped967 = deconstruct_result966 + self.pretty_date_type(unwrapped967) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_type"): - _t1628 = _dollar_dollar.datetime_type + _t1648 = _dollar_dollar.datetime_type else: - _t1628 = None - deconstruct_result954 = _t1628 - if deconstruct_result954 is not None: - assert deconstruct_result954 is not None - unwrapped955 = deconstruct_result954 - self.pretty_datetime_type(unwrapped955) + _t1648 = None + deconstruct_result964 = _t1648 + if deconstruct_result964 is not None: + assert deconstruct_result964 is not None + unwrapped965 = deconstruct_result964 + self.pretty_datetime_type(unwrapped965) else: _dollar_dollar = msg if _dollar_dollar.HasField("missing_type"): - _t1629 = _dollar_dollar.missing_type + _t1649 = _dollar_dollar.missing_type else: - _t1629 = None - deconstruct_result952 = _t1629 - if deconstruct_result952 is not None: - assert deconstruct_result952 is not None - unwrapped953 = deconstruct_result952 - self.pretty_missing_type(unwrapped953) + _t1649 = None + deconstruct_result962 = _t1649 + if deconstruct_result962 is not None: + assert deconstruct_result962 is not None + unwrapped963 = deconstruct_result962 + self.pretty_missing_type(unwrapped963) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_type"): - _t1630 = _dollar_dollar.decimal_type + _t1650 = _dollar_dollar.decimal_type else: - _t1630 = None - deconstruct_result950 = _t1630 - if deconstruct_result950 is not None: - assert deconstruct_result950 is not None - unwrapped951 = deconstruct_result950 - self.pretty_decimal_type(unwrapped951) + _t1650 = None + deconstruct_result960 = _t1650 + if deconstruct_result960 is not None: + assert deconstruct_result960 is not None + unwrapped961 = deconstruct_result960 + self.pretty_decimal_type(unwrapped961) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_type"): - _t1631 = _dollar_dollar.boolean_type + _t1651 = _dollar_dollar.boolean_type else: - _t1631 = None - deconstruct_result948 = _t1631 - if deconstruct_result948 is not None: - assert deconstruct_result948 is not None - unwrapped949 = deconstruct_result948 - self.pretty_boolean_type(unwrapped949) + _t1651 = None + deconstruct_result958 = _t1651 + if deconstruct_result958 is not None: + assert deconstruct_result958 is not None + unwrapped959 = deconstruct_result958 + self.pretty_boolean_type(unwrapped959) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_type"): - _t1632 = _dollar_dollar.int32_type + _t1652 = _dollar_dollar.int32_type else: - _t1632 = None - deconstruct_result946 = _t1632 - if deconstruct_result946 is not None: - assert deconstruct_result946 is not None - unwrapped947 = deconstruct_result946 - self.pretty_int32_type(unwrapped947) + _t1652 = None + deconstruct_result956 = _t1652 + if deconstruct_result956 is not None: + assert deconstruct_result956 is not None + unwrapped957 = deconstruct_result956 + self.pretty_int32_type(unwrapped957) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_type"): - _t1633 = _dollar_dollar.float32_type + _t1653 = _dollar_dollar.float32_type else: - _t1633 = None - deconstruct_result944 = _t1633 - if deconstruct_result944 is not None: - assert deconstruct_result944 is not None - unwrapped945 = deconstruct_result944 - self.pretty_float32_type(unwrapped945) + _t1653 = None + deconstruct_result954 = _t1653 + if deconstruct_result954 is not None: + assert deconstruct_result954 is not None + unwrapped955 = deconstruct_result954 + self.pretty_float32_type(unwrapped955) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_type"): - _t1634 = _dollar_dollar.uint32_type + _t1654 = _dollar_dollar.uint32_type else: - _t1634 = None - deconstruct_result942 = _t1634 - if deconstruct_result942 is not None: - assert deconstruct_result942 is not None - unwrapped943 = deconstruct_result942 - self.pretty_uint32_type(unwrapped943) + _t1654 = None + deconstruct_result952 = _t1654 + if deconstruct_result952 is not None: + assert deconstruct_result952 is not None + unwrapped953 = deconstruct_result952 + self.pretty_uint32_type(unwrapped953) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields971 = msg + fields981 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields972 = msg + fields982 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields973 = msg + fields983 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields974 = msg + fields984 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields975 = msg + fields985 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields976 = msg + fields986 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields977 = msg + fields987 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields978 = msg + fields988 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields979 = msg + fields989 = msg self.write("MISSING") def pretty_decimal_type(self, msg: logic_pb2.DecimalType): - flat984 = self._try_flat(msg, self.pretty_decimal_type) - if flat984 is not None: - assert flat984 is not None - self.write(flat984) + flat994 = self._try_flat(msg, self.pretty_decimal_type) + if flat994 is not None: + assert flat994 is not None + self.write(flat994) return None else: _dollar_dollar = msg - fields980 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - assert fields980 is not None - unwrapped_fields981 = fields980 + fields990 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) + assert fields990 is not None + unwrapped_fields991 = fields990 self.write("(DECIMAL") self.indent_sexp() self.newline() - field982 = unwrapped_fields981[0] - self.write(str(field982)) + field992 = unwrapped_fields991[0] + self.write(str(field992)) self.newline() - field983 = unwrapped_fields981[1] - self.write(str(field983)) + field993 = unwrapped_fields991[1] + self.write(str(field993)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields985 = msg + fields995 = msg self.write("BOOLEAN") def pretty_int32_type(self, msg: logic_pb2.Int32Type): - fields986 = msg + fields996 = msg self.write("INT32") def pretty_float32_type(self, msg: logic_pb2.Float32Type): - fields987 = msg + fields997 = msg self.write("FLOAT32") def pretty_uint32_type(self, msg: logic_pb2.UInt32Type): - fields988 = msg + fields998 = msg self.write("UINT32") def pretty_value_bindings(self, msg: Sequence[logic_pb2.Binding]): - flat992 = self._try_flat(msg, self.pretty_value_bindings) - if flat992 is not None: - assert flat992 is not None - self.write(flat992) + flat1002 = self._try_flat(msg, self.pretty_value_bindings) + if flat1002 is not None: + assert flat1002 is not None + self.write(flat1002) return None else: - fields989 = msg + fields999 = msg self.write("|") - if not len(fields989) == 0: + if not len(fields999) == 0: self.write(" ") - for i991, elem990 in enumerate(fields989): - if (i991 > 0): + for i1001, elem1000 in enumerate(fields999): + if (i1001 > 0): self.newline() - self.pretty_binding(elem990) + self.pretty_binding(elem1000) def pretty_formula(self, msg: logic_pb2.Formula): - flat1019 = self._try_flat(msg, self.pretty_formula) - if flat1019 is not None: - assert flat1019 is not None - self.write(flat1019) + flat1029 = self._try_flat(msg, self.pretty_formula) + if flat1029 is not None: + assert flat1029 is not None + self.write(flat1029) return None else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1635 = _dollar_dollar.conjunction + _t1655 = _dollar_dollar.conjunction else: - _t1635 = None - deconstruct_result1017 = _t1635 - if deconstruct_result1017 is not None: - assert deconstruct_result1017 is not None - unwrapped1018 = deconstruct_result1017 - self.pretty_true(unwrapped1018) + _t1655 = None + deconstruct_result1027 = _t1655 + if deconstruct_result1027 is not None: + assert deconstruct_result1027 is not None + unwrapped1028 = deconstruct_result1027 + self.pretty_true(unwrapped1028) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1636 = _dollar_dollar.disjunction + _t1656 = _dollar_dollar.disjunction else: - _t1636 = None - deconstruct_result1015 = _t1636 - if deconstruct_result1015 is not None: - assert deconstruct_result1015 is not None - unwrapped1016 = deconstruct_result1015 - self.pretty_false(unwrapped1016) + _t1656 = None + deconstruct_result1025 = _t1656 + if deconstruct_result1025 is not None: + assert deconstruct_result1025 is not None + unwrapped1026 = deconstruct_result1025 + self.pretty_false(unwrapped1026) else: _dollar_dollar = msg if _dollar_dollar.HasField("exists"): - _t1637 = _dollar_dollar.exists + _t1657 = _dollar_dollar.exists else: - _t1637 = None - deconstruct_result1013 = _t1637 - if deconstruct_result1013 is not None: - assert deconstruct_result1013 is not None - unwrapped1014 = deconstruct_result1013 - self.pretty_exists(unwrapped1014) + _t1657 = None + deconstruct_result1023 = _t1657 + if deconstruct_result1023 is not None: + assert deconstruct_result1023 is not None + unwrapped1024 = deconstruct_result1023 + self.pretty_exists(unwrapped1024) else: _dollar_dollar = msg if _dollar_dollar.HasField("reduce"): - _t1638 = _dollar_dollar.reduce + _t1658 = _dollar_dollar.reduce else: - _t1638 = None - deconstruct_result1011 = _t1638 - if deconstruct_result1011 is not None: - assert deconstruct_result1011 is not None - unwrapped1012 = deconstruct_result1011 - self.pretty_reduce(unwrapped1012) + _t1658 = None + deconstruct_result1021 = _t1658 + if deconstruct_result1021 is not None: + assert deconstruct_result1021 is not None + unwrapped1022 = deconstruct_result1021 + self.pretty_reduce(unwrapped1022) else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1639 = _dollar_dollar.conjunction + _t1659 = _dollar_dollar.conjunction else: - _t1639 = None - deconstruct_result1009 = _t1639 - if deconstruct_result1009 is not None: - assert deconstruct_result1009 is not None - unwrapped1010 = deconstruct_result1009 - self.pretty_conjunction(unwrapped1010) + _t1659 = None + deconstruct_result1019 = _t1659 + if deconstruct_result1019 is not None: + assert deconstruct_result1019 is not None + unwrapped1020 = deconstruct_result1019 + self.pretty_conjunction(unwrapped1020) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1640 = _dollar_dollar.disjunction + _t1660 = _dollar_dollar.disjunction else: - _t1640 = None - deconstruct_result1007 = _t1640 - if deconstruct_result1007 is not None: - assert deconstruct_result1007 is not None - unwrapped1008 = deconstruct_result1007 - self.pretty_disjunction(unwrapped1008) + _t1660 = None + deconstruct_result1017 = _t1660 + if deconstruct_result1017 is not None: + assert deconstruct_result1017 is not None + unwrapped1018 = deconstruct_result1017 + self.pretty_disjunction(unwrapped1018) else: _dollar_dollar = msg if _dollar_dollar.HasField("not"): - _t1641 = getattr(_dollar_dollar, 'not') + _t1661 = getattr(_dollar_dollar, 'not') else: - _t1641 = None - deconstruct_result1005 = _t1641 - if deconstruct_result1005 is not None: - assert deconstruct_result1005 is not None - unwrapped1006 = deconstruct_result1005 - self.pretty_not(unwrapped1006) + _t1661 = None + deconstruct_result1015 = _t1661 + if deconstruct_result1015 is not None: + assert deconstruct_result1015 is not None + unwrapped1016 = deconstruct_result1015 + self.pretty_not(unwrapped1016) else: _dollar_dollar = msg if _dollar_dollar.HasField("ffi"): - _t1642 = _dollar_dollar.ffi + _t1662 = _dollar_dollar.ffi else: - _t1642 = None - deconstruct_result1003 = _t1642 - if deconstruct_result1003 is not None: - assert deconstruct_result1003 is not None - unwrapped1004 = deconstruct_result1003 - self.pretty_ffi(unwrapped1004) + _t1662 = None + deconstruct_result1013 = _t1662 + if deconstruct_result1013 is not None: + assert deconstruct_result1013 is not None + unwrapped1014 = deconstruct_result1013 + self.pretty_ffi(unwrapped1014) else: _dollar_dollar = msg if _dollar_dollar.HasField("atom"): - _t1643 = _dollar_dollar.atom + _t1663 = _dollar_dollar.atom else: - _t1643 = None - deconstruct_result1001 = _t1643 - if deconstruct_result1001 is not None: - assert deconstruct_result1001 is not None - unwrapped1002 = deconstruct_result1001 - self.pretty_atom(unwrapped1002) + _t1663 = None + deconstruct_result1011 = _t1663 + if deconstruct_result1011 is not None: + assert deconstruct_result1011 is not None + unwrapped1012 = deconstruct_result1011 + self.pretty_atom(unwrapped1012) else: _dollar_dollar = msg if _dollar_dollar.HasField("pragma"): - _t1644 = _dollar_dollar.pragma + _t1664 = _dollar_dollar.pragma else: - _t1644 = None - deconstruct_result999 = _t1644 - if deconstruct_result999 is not None: - assert deconstruct_result999 is not None - unwrapped1000 = deconstruct_result999 - self.pretty_pragma(unwrapped1000) + _t1664 = None + deconstruct_result1009 = _t1664 + if deconstruct_result1009 is not None: + assert deconstruct_result1009 is not None + unwrapped1010 = deconstruct_result1009 + self.pretty_pragma(unwrapped1010) else: _dollar_dollar = msg if _dollar_dollar.HasField("primitive"): - _t1645 = _dollar_dollar.primitive + _t1665 = _dollar_dollar.primitive else: - _t1645 = None - deconstruct_result997 = _t1645 - if deconstruct_result997 is not None: - assert deconstruct_result997 is not None - unwrapped998 = deconstruct_result997 - self.pretty_primitive(unwrapped998) + _t1665 = None + deconstruct_result1007 = _t1665 + if deconstruct_result1007 is not None: + assert deconstruct_result1007 is not None + unwrapped1008 = deconstruct_result1007 + self.pretty_primitive(unwrapped1008) else: _dollar_dollar = msg if _dollar_dollar.HasField("rel_atom"): - _t1646 = _dollar_dollar.rel_atom + _t1666 = _dollar_dollar.rel_atom else: - _t1646 = None - deconstruct_result995 = _t1646 - if deconstruct_result995 is not None: - assert deconstruct_result995 is not None - unwrapped996 = deconstruct_result995 - self.pretty_rel_atom(unwrapped996) + _t1666 = None + deconstruct_result1005 = _t1666 + if deconstruct_result1005 is not None: + assert deconstruct_result1005 is not None + unwrapped1006 = deconstruct_result1005 + self.pretty_rel_atom(unwrapped1006) else: _dollar_dollar = msg if _dollar_dollar.HasField("cast"): - _t1647 = _dollar_dollar.cast + _t1667 = _dollar_dollar.cast else: - _t1647 = None - deconstruct_result993 = _t1647 - if deconstruct_result993 is not None: - assert deconstruct_result993 is not None - unwrapped994 = deconstruct_result993 - self.pretty_cast(unwrapped994) + _t1667 = None + deconstruct_result1003 = _t1667 + if deconstruct_result1003 is not None: + assert deconstruct_result1003 is not None + unwrapped1004 = deconstruct_result1003 + self.pretty_cast(unwrapped1004) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields1020 = msg + fields1030 = msg self.write("(true)") def pretty_false(self, msg: logic_pb2.Disjunction): - fields1021 = msg + fields1031 = msg self.write("(false)") def pretty_exists(self, msg: logic_pb2.Exists): - flat1026 = self._try_flat(msg, self.pretty_exists) - if flat1026 is not None: - assert flat1026 is not None - self.write(flat1026) + flat1036 = self._try_flat(msg, self.pretty_exists) + if flat1036 is not None: + assert flat1036 is not None + self.write(flat1036) return None else: _dollar_dollar = msg - _t1648 = self.deconstruct_bindings(_dollar_dollar.body) - fields1022 = (_t1648, _dollar_dollar.body.value,) - assert fields1022 is not None - unwrapped_fields1023 = fields1022 + _t1668 = self.deconstruct_bindings(_dollar_dollar.body) + fields1032 = (_t1668, _dollar_dollar.body.value,) + assert fields1032 is not None + unwrapped_fields1033 = fields1032 self.write("(exists") self.indent_sexp() self.newline() - field1024 = unwrapped_fields1023[0] - self.pretty_bindings(field1024) + field1034 = unwrapped_fields1033[0] + self.pretty_bindings(field1034) self.newline() - field1025 = unwrapped_fields1023[1] - self.pretty_formula(field1025) + field1035 = unwrapped_fields1033[1] + self.pretty_formula(field1035) self.dedent() self.write(")") def pretty_reduce(self, msg: logic_pb2.Reduce): - flat1032 = self._try_flat(msg, self.pretty_reduce) - if flat1032 is not None: - assert flat1032 is not None - self.write(flat1032) + flat1042 = self._try_flat(msg, self.pretty_reduce) + if flat1042 is not None: + assert flat1042 is not None + self.write(flat1042) return None else: _dollar_dollar = msg - fields1027 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - assert fields1027 is not None - unwrapped_fields1028 = fields1027 + fields1037 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + assert fields1037 is not None + unwrapped_fields1038 = fields1037 self.write("(reduce") self.indent_sexp() self.newline() - field1029 = unwrapped_fields1028[0] - self.pretty_abstraction(field1029) + field1039 = unwrapped_fields1038[0] + self.pretty_abstraction(field1039) self.newline() - field1030 = unwrapped_fields1028[1] - self.pretty_abstraction(field1030) + field1040 = unwrapped_fields1038[1] + self.pretty_abstraction(field1040) self.newline() - field1031 = unwrapped_fields1028[2] - self.pretty_terms(field1031) + field1041 = unwrapped_fields1038[2] + self.pretty_terms(field1041) self.dedent() self.write(")") def pretty_terms(self, msg: Sequence[logic_pb2.Term]): - flat1036 = self._try_flat(msg, self.pretty_terms) - if flat1036 is not None: - assert flat1036 is not None - self.write(flat1036) + flat1046 = self._try_flat(msg, self.pretty_terms) + if flat1046 is not None: + assert flat1046 is not None + self.write(flat1046) return None else: - fields1033 = msg + fields1043 = msg self.write("(terms") self.indent_sexp() - if not len(fields1033) == 0: + if not len(fields1043) == 0: self.newline() - for i1035, elem1034 in enumerate(fields1033): - if (i1035 > 0): + for i1045, elem1044 in enumerate(fields1043): + if (i1045 > 0): self.newline() - self.pretty_term(elem1034) + self.pretty_term(elem1044) self.dedent() self.write(")") def pretty_term(self, msg: logic_pb2.Term): - flat1041 = self._try_flat(msg, self.pretty_term) - if flat1041 is not None: - assert flat1041 is not None - self.write(flat1041) + flat1051 = self._try_flat(msg, self.pretty_term) + if flat1051 is not None: + assert flat1051 is not None + self.write(flat1051) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("var"): - _t1649 = _dollar_dollar.var + _t1669 = _dollar_dollar.var else: - _t1649 = None - deconstruct_result1039 = _t1649 - if deconstruct_result1039 is not None: - assert deconstruct_result1039 is not None - unwrapped1040 = deconstruct_result1039 - self.pretty_var(unwrapped1040) + _t1669 = None + deconstruct_result1049 = _t1669 + if deconstruct_result1049 is not None: + assert deconstruct_result1049 is not None + unwrapped1050 = deconstruct_result1049 + self.pretty_var(unwrapped1050) else: _dollar_dollar = msg if _dollar_dollar.HasField("constant"): - _t1650 = _dollar_dollar.constant + _t1670 = _dollar_dollar.constant else: - _t1650 = None - deconstruct_result1037 = _t1650 - if deconstruct_result1037 is not None: - assert deconstruct_result1037 is not None - unwrapped1038 = deconstruct_result1037 - self.pretty_value(unwrapped1038) + _t1670 = None + deconstruct_result1047 = _t1670 + if deconstruct_result1047 is not None: + assert deconstruct_result1047 is not None + unwrapped1048 = deconstruct_result1047 + self.pretty_value(unwrapped1048) else: raise ParseError("No matching rule for term") def pretty_var(self, msg: logic_pb2.Var): - flat1044 = self._try_flat(msg, self.pretty_var) - if flat1044 is not None: - assert flat1044 is not None - self.write(flat1044) + flat1054 = self._try_flat(msg, self.pretty_var) + if flat1054 is not None: + assert flat1054 is not None + self.write(flat1054) return None else: _dollar_dollar = msg - fields1042 = _dollar_dollar.name - assert fields1042 is not None - unwrapped_fields1043 = fields1042 - self.write(unwrapped_fields1043) + fields1052 = _dollar_dollar.name + assert fields1052 is not None + unwrapped_fields1053 = fields1052 + self.write(unwrapped_fields1053) def pretty_value(self, msg: logic_pb2.Value): - flat1070 = self._try_flat(msg, self.pretty_value) - if flat1070 is not None: - assert flat1070 is not None - self.write(flat1070) + flat1080 = self._try_flat(msg, self.pretty_value) + if flat1080 is not None: + assert flat1080 is not None + self.write(flat1080) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1651 = _dollar_dollar.date_value + _t1671 = _dollar_dollar.date_value else: - _t1651 = None - deconstruct_result1068 = _t1651 - if deconstruct_result1068 is not None: - assert deconstruct_result1068 is not None - unwrapped1069 = deconstruct_result1068 - self.pretty_date(unwrapped1069) + _t1671 = None + deconstruct_result1078 = _t1671 + if deconstruct_result1078 is not None: + assert deconstruct_result1078 is not None + unwrapped1079 = deconstruct_result1078 + self.pretty_date(unwrapped1079) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1652 = _dollar_dollar.datetime_value + _t1672 = _dollar_dollar.datetime_value else: - _t1652 = None - deconstruct_result1066 = _t1652 - if deconstruct_result1066 is not None: - assert deconstruct_result1066 is not None - unwrapped1067 = deconstruct_result1066 - self.pretty_datetime(unwrapped1067) + _t1672 = None + deconstruct_result1076 = _t1672 + if deconstruct_result1076 is not None: + assert deconstruct_result1076 is not None + unwrapped1077 = deconstruct_result1076 + self.pretty_datetime(unwrapped1077) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1653 = _dollar_dollar.string_value + _t1673 = _dollar_dollar.string_value else: - _t1653 = None - deconstruct_result1064 = _t1653 - if deconstruct_result1064 is not None: - assert deconstruct_result1064 is not None - unwrapped1065 = deconstruct_result1064 - self.write(self.format_string_value(unwrapped1065)) + _t1673 = None + deconstruct_result1074 = _t1673 + if deconstruct_result1074 is not None: + assert deconstruct_result1074 is not None + unwrapped1075 = deconstruct_result1074 + self.write(self.format_string_value(unwrapped1075)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1654 = _dollar_dollar.int32_value + _t1674 = _dollar_dollar.int32_value else: - _t1654 = None - deconstruct_result1062 = _t1654 - if deconstruct_result1062 is not None: - assert deconstruct_result1062 is not None - unwrapped1063 = deconstruct_result1062 - self.write((str(unwrapped1063) + 'i32')) + _t1674 = None + deconstruct_result1072 = _t1674 + if deconstruct_result1072 is not None: + assert deconstruct_result1072 is not None + unwrapped1073 = deconstruct_result1072 + self.write((str(unwrapped1073) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1655 = _dollar_dollar.int_value + _t1675 = _dollar_dollar.int_value else: - _t1655 = None - deconstruct_result1060 = _t1655 - if deconstruct_result1060 is not None: - assert deconstruct_result1060 is not None - unwrapped1061 = deconstruct_result1060 - self.write(str(unwrapped1061)) + _t1675 = None + deconstruct_result1070 = _t1675 + if deconstruct_result1070 is not None: + assert deconstruct_result1070 is not None + unwrapped1071 = deconstruct_result1070 + self.write(str(unwrapped1071)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1656 = _dollar_dollar.float32_value + _t1676 = _dollar_dollar.float32_value else: - _t1656 = None - deconstruct_result1058 = _t1656 - if deconstruct_result1058 is not None: - assert deconstruct_result1058 is not None - unwrapped1059 = deconstruct_result1058 - self.write(self.format_float32_literal(unwrapped1059)) + _t1676 = None + deconstruct_result1068 = _t1676 + if deconstruct_result1068 is not None: + assert deconstruct_result1068 is not None + unwrapped1069 = deconstruct_result1068 + self.write(self.format_float32_literal(unwrapped1069)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1657 = _dollar_dollar.float_value + _t1677 = _dollar_dollar.float_value else: - _t1657 = None - deconstruct_result1056 = _t1657 - if deconstruct_result1056 is not None: - assert deconstruct_result1056 is not None - unwrapped1057 = deconstruct_result1056 - self.write(str(unwrapped1057)) + _t1677 = None + deconstruct_result1066 = _t1677 + if deconstruct_result1066 is not None: + assert deconstruct_result1066 is not None + unwrapped1067 = deconstruct_result1066 + self.write(str(unwrapped1067)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1658 = _dollar_dollar.uint32_value + _t1678 = _dollar_dollar.uint32_value else: - _t1658 = None - deconstruct_result1054 = _t1658 - if deconstruct_result1054 is not None: - assert deconstruct_result1054 is not None - unwrapped1055 = deconstruct_result1054 - self.write((str(unwrapped1055) + 'u32')) + _t1678 = None + deconstruct_result1064 = _t1678 + if deconstruct_result1064 is not None: + assert deconstruct_result1064 is not None + unwrapped1065 = deconstruct_result1064 + self.write((str(unwrapped1065) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1659 = _dollar_dollar.uint128_value + _t1679 = _dollar_dollar.uint128_value else: - _t1659 = None - deconstruct_result1052 = _t1659 - if deconstruct_result1052 is not None: - assert deconstruct_result1052 is not None - unwrapped1053 = deconstruct_result1052 - self.write(self.format_uint128(unwrapped1053)) + _t1679 = None + deconstruct_result1062 = _t1679 + if deconstruct_result1062 is not None: + assert deconstruct_result1062 is not None + unwrapped1063 = deconstruct_result1062 + self.write(self.format_uint128(unwrapped1063)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1660 = _dollar_dollar.int128_value + _t1680 = _dollar_dollar.int128_value else: - _t1660 = None - deconstruct_result1050 = _t1660 - if deconstruct_result1050 is not None: - assert deconstruct_result1050 is not None - unwrapped1051 = deconstruct_result1050 - self.write(self.format_int128(unwrapped1051)) + _t1680 = None + deconstruct_result1060 = _t1680 + if deconstruct_result1060 is not None: + assert deconstruct_result1060 is not None + unwrapped1061 = deconstruct_result1060 + self.write(self.format_int128(unwrapped1061)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1661 = _dollar_dollar.decimal_value + _t1681 = _dollar_dollar.decimal_value else: - _t1661 = None - deconstruct_result1048 = _t1661 - if deconstruct_result1048 is not None: - assert deconstruct_result1048 is not None - unwrapped1049 = deconstruct_result1048 - self.write(self.format_decimal(unwrapped1049)) + _t1681 = None + deconstruct_result1058 = _t1681 + if deconstruct_result1058 is not None: + assert deconstruct_result1058 is not None + unwrapped1059 = deconstruct_result1058 + self.write(self.format_decimal(unwrapped1059)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1662 = _dollar_dollar.boolean_value + _t1682 = _dollar_dollar.boolean_value else: - _t1662 = None - deconstruct_result1046 = _t1662 - if deconstruct_result1046 is not None: - assert deconstruct_result1046 is not None - unwrapped1047 = deconstruct_result1046 - self.pretty_boolean_value(unwrapped1047) + _t1682 = None + deconstruct_result1056 = _t1682 + if deconstruct_result1056 is not None: + assert deconstruct_result1056 is not None + unwrapped1057 = deconstruct_result1056 + self.pretty_boolean_value(unwrapped1057) else: - fields1045 = msg + fields1055 = msg self.write("missing") def pretty_date(self, msg: logic_pb2.DateValue): - flat1076 = self._try_flat(msg, self.pretty_date) - if flat1076 is not None: - assert flat1076 is not None - self.write(flat1076) + flat1086 = self._try_flat(msg, self.pretty_date) + if flat1086 is not None: + assert flat1086 is not None + self.write(flat1086) return None else: _dollar_dollar = msg - fields1071 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields1071 is not None - unwrapped_fields1072 = fields1071 + fields1081 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields1081 is not None + unwrapped_fields1082 = fields1081 self.write("(date") self.indent_sexp() self.newline() - field1073 = unwrapped_fields1072[0] - self.write(str(field1073)) + field1083 = unwrapped_fields1082[0] + self.write(str(field1083)) self.newline() - field1074 = unwrapped_fields1072[1] - self.write(str(field1074)) + field1084 = unwrapped_fields1082[1] + self.write(str(field1084)) self.newline() - field1075 = unwrapped_fields1072[2] - self.write(str(field1075)) + field1085 = unwrapped_fields1082[2] + self.write(str(field1085)) self.dedent() self.write(")") def pretty_datetime(self, msg: logic_pb2.DateTimeValue): - flat1087 = self._try_flat(msg, self.pretty_datetime) - if flat1087 is not None: - assert flat1087 is not None - self.write(flat1087) + flat1097 = self._try_flat(msg, self.pretty_datetime) + if flat1097 is not None: + assert flat1097 is not None + self.write(flat1097) return None else: _dollar_dollar = msg - fields1077 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) - assert fields1077 is not None - unwrapped_fields1078 = fields1077 + fields1087 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) + assert fields1087 is not None + unwrapped_fields1088 = fields1087 self.write("(datetime") self.indent_sexp() self.newline() - field1079 = unwrapped_fields1078[0] - self.write(str(field1079)) + field1089 = unwrapped_fields1088[0] + self.write(str(field1089)) self.newline() - field1080 = unwrapped_fields1078[1] - self.write(str(field1080)) + field1090 = unwrapped_fields1088[1] + self.write(str(field1090)) self.newline() - field1081 = unwrapped_fields1078[2] - self.write(str(field1081)) + field1091 = unwrapped_fields1088[2] + self.write(str(field1091)) self.newline() - field1082 = unwrapped_fields1078[3] - self.write(str(field1082)) + field1092 = unwrapped_fields1088[3] + self.write(str(field1092)) self.newline() - field1083 = unwrapped_fields1078[4] - self.write(str(field1083)) + field1093 = unwrapped_fields1088[4] + self.write(str(field1093)) self.newline() - field1084 = unwrapped_fields1078[5] - self.write(str(field1084)) - field1085 = unwrapped_fields1078[6] - if field1085 is not None: + field1094 = unwrapped_fields1088[5] + self.write(str(field1094)) + field1095 = unwrapped_fields1088[6] + if field1095 is not None: self.newline() - assert field1085 is not None - opt_val1086 = field1085 - self.write(str(opt_val1086)) + assert field1095 is not None + opt_val1096 = field1095 + self.write(str(opt_val1096)) self.dedent() self.write(")") def pretty_conjunction(self, msg: logic_pb2.Conjunction): - flat1092 = self._try_flat(msg, self.pretty_conjunction) - if flat1092 is not None: - assert flat1092 is not None - self.write(flat1092) + flat1102 = self._try_flat(msg, self.pretty_conjunction) + if flat1102 is not None: + assert flat1102 is not None + self.write(flat1102) return None else: _dollar_dollar = msg - fields1088 = _dollar_dollar.args - assert fields1088 is not None - unwrapped_fields1089 = fields1088 + fields1098 = _dollar_dollar.args + assert fields1098 is not None + unwrapped_fields1099 = fields1098 self.write("(and") self.indent_sexp() - if not len(unwrapped_fields1089) == 0: + if not len(unwrapped_fields1099) == 0: self.newline() - for i1091, elem1090 in enumerate(unwrapped_fields1089): - if (i1091 > 0): + for i1101, elem1100 in enumerate(unwrapped_fields1099): + if (i1101 > 0): self.newline() - self.pretty_formula(elem1090) + self.pretty_formula(elem1100) self.dedent() self.write(")") def pretty_disjunction(self, msg: logic_pb2.Disjunction): - flat1097 = self._try_flat(msg, self.pretty_disjunction) - if flat1097 is not None: - assert flat1097 is not None - self.write(flat1097) + flat1107 = self._try_flat(msg, self.pretty_disjunction) + if flat1107 is not None: + assert flat1107 is not None + self.write(flat1107) return None else: _dollar_dollar = msg - fields1093 = _dollar_dollar.args - assert fields1093 is not None - unwrapped_fields1094 = fields1093 + fields1103 = _dollar_dollar.args + assert fields1103 is not None + unwrapped_fields1104 = fields1103 self.write("(or") self.indent_sexp() - if not len(unwrapped_fields1094) == 0: + if not len(unwrapped_fields1104) == 0: self.newline() - for i1096, elem1095 in enumerate(unwrapped_fields1094): - if (i1096 > 0): + for i1106, elem1105 in enumerate(unwrapped_fields1104): + if (i1106 > 0): self.newline() - self.pretty_formula(elem1095) + self.pretty_formula(elem1105) self.dedent() self.write(")") def pretty_not(self, msg: logic_pb2.Not): - flat1100 = self._try_flat(msg, self.pretty_not) - if flat1100 is not None: - assert flat1100 is not None - self.write(flat1100) + flat1110 = self._try_flat(msg, self.pretty_not) + if flat1110 is not None: + assert flat1110 is not None + self.write(flat1110) return None else: _dollar_dollar = msg - fields1098 = _dollar_dollar.arg - assert fields1098 is not None - unwrapped_fields1099 = fields1098 + fields1108 = _dollar_dollar.arg + assert fields1108 is not None + unwrapped_fields1109 = fields1108 self.write("(not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields1099) + self.pretty_formula(unwrapped_fields1109) self.dedent() self.write(")") def pretty_ffi(self, msg: logic_pb2.FFI): - flat1106 = self._try_flat(msg, self.pretty_ffi) - if flat1106 is not None: - assert flat1106 is not None - self.write(flat1106) + flat1116 = self._try_flat(msg, self.pretty_ffi) + if flat1116 is not None: + assert flat1116 is not None + self.write(flat1116) return None else: _dollar_dollar = msg - fields1101 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - assert fields1101 is not None - unwrapped_fields1102 = fields1101 + fields1111 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + assert fields1111 is not None + unwrapped_fields1112 = fields1111 self.write("(ffi") self.indent_sexp() self.newline() - field1103 = unwrapped_fields1102[0] - self.pretty_name(field1103) + field1113 = unwrapped_fields1112[0] + self.pretty_name(field1113) self.newline() - field1104 = unwrapped_fields1102[1] - self.pretty_ffi_args(field1104) + field1114 = unwrapped_fields1112[1] + self.pretty_ffi_args(field1114) self.newline() - field1105 = unwrapped_fields1102[2] - self.pretty_terms(field1105) + field1115 = unwrapped_fields1112[2] + self.pretty_terms(field1115) self.dedent() self.write(")") def pretty_name(self, msg: str): - flat1108 = self._try_flat(msg, self.pretty_name) - if flat1108 is not None: - assert flat1108 is not None - self.write(flat1108) + flat1118 = self._try_flat(msg, self.pretty_name) + if flat1118 is not None: + assert flat1118 is not None + self.write(flat1118) return None else: - fields1107 = msg + fields1117 = msg self.write(":") - self.write(fields1107) + self.write(fields1117) def pretty_ffi_args(self, msg: Sequence[logic_pb2.Abstraction]): - flat1112 = self._try_flat(msg, self.pretty_ffi_args) - if flat1112 is not None: - assert flat1112 is not None - self.write(flat1112) + flat1122 = self._try_flat(msg, self.pretty_ffi_args) + if flat1122 is not None: + assert flat1122 is not None + self.write(flat1122) return None else: - fields1109 = msg + fields1119 = msg self.write("(args") self.indent_sexp() - if not len(fields1109) == 0: + if not len(fields1119) == 0: self.newline() - for i1111, elem1110 in enumerate(fields1109): - if (i1111 > 0): + for i1121, elem1120 in enumerate(fields1119): + if (i1121 > 0): self.newline() - self.pretty_abstraction(elem1110) + self.pretty_abstraction(elem1120) self.dedent() self.write(")") def pretty_atom(self, msg: logic_pb2.Atom): - flat1119 = self._try_flat(msg, self.pretty_atom) - if flat1119 is not None: - assert flat1119 is not None - self.write(flat1119) + flat1129 = self._try_flat(msg, self.pretty_atom) + if flat1129 is not None: + assert flat1129 is not None + self.write(flat1129) return None else: _dollar_dollar = msg - fields1113 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1113 is not None - unwrapped_fields1114 = fields1113 + fields1123 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1123 is not None + unwrapped_fields1124 = fields1123 self.write("(atom") self.indent_sexp() self.newline() - field1115 = unwrapped_fields1114[0] - self.pretty_relation_id(field1115) - field1116 = unwrapped_fields1114[1] - if not len(field1116) == 0: + field1125 = unwrapped_fields1124[0] + self.pretty_relation_id(field1125) + field1126 = unwrapped_fields1124[1] + if not len(field1126) == 0: self.newline() - for i1118, elem1117 in enumerate(field1116): - if (i1118 > 0): + for i1128, elem1127 in enumerate(field1126): + if (i1128 > 0): self.newline() - self.pretty_term(elem1117) + self.pretty_term(elem1127) self.dedent() self.write(")") def pretty_pragma(self, msg: logic_pb2.Pragma): - flat1126 = self._try_flat(msg, self.pretty_pragma) - if flat1126 is not None: - assert flat1126 is not None - self.write(flat1126) + flat1136 = self._try_flat(msg, self.pretty_pragma) + if flat1136 is not None: + assert flat1136 is not None + self.write(flat1136) return None else: _dollar_dollar = msg - fields1120 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1120 is not None - unwrapped_fields1121 = fields1120 + fields1130 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1130 is not None + unwrapped_fields1131 = fields1130 self.write("(pragma") self.indent_sexp() self.newline() - field1122 = unwrapped_fields1121[0] - self.pretty_name(field1122) - field1123 = unwrapped_fields1121[1] - if not len(field1123) == 0: + field1132 = unwrapped_fields1131[0] + self.pretty_name(field1132) + field1133 = unwrapped_fields1131[1] + if not len(field1133) == 0: self.newline() - for i1125, elem1124 in enumerate(field1123): - if (i1125 > 0): + for i1135, elem1134 in enumerate(field1133): + if (i1135 > 0): self.newline() - self.pretty_term(elem1124) + self.pretty_term(elem1134) self.dedent() self.write(")") def pretty_primitive(self, msg: logic_pb2.Primitive): - flat1142 = self._try_flat(msg, self.pretty_primitive) - if flat1142 is not None: - assert flat1142 is not None - self.write(flat1142) + flat1152 = self._try_flat(msg, self.pretty_primitive) + if flat1152 is not None: + assert flat1152 is not None + self.write(flat1152) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1663 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1683 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1663 = None - guard_result1141 = _t1663 - if guard_result1141 is not None: + _t1683 = None + guard_result1151 = _t1683 + if guard_result1151 is not None: self.pretty_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1664 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1684 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1664 = None - guard_result1140 = _t1664 - if guard_result1140 is not None: + _t1684 = None + guard_result1150 = _t1684 + if guard_result1150 is not None: self.pretty_lt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1665 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1685 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1665 = None - guard_result1139 = _t1665 - if guard_result1139 is not None: + _t1685 = None + guard_result1149 = _t1685 + if guard_result1149 is not None: self.pretty_lt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1666 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1686 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1666 = None - guard_result1138 = _t1666 - if guard_result1138 is not None: + _t1686 = None + guard_result1148 = _t1686 + if guard_result1148 is not None: self.pretty_gt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1667 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1687 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1667 = None - guard_result1137 = _t1667 - if guard_result1137 is not None: + _t1687 = None + guard_result1147 = _t1687 + if guard_result1147 is not None: self.pretty_gt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1668 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1688 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1668 = None - guard_result1136 = _t1668 - if guard_result1136 is not None: + _t1688 = None + guard_result1146 = _t1688 + if guard_result1146 is not None: self.pretty_add(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1669 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1689 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1669 = None - guard_result1135 = _t1669 - if guard_result1135 is not None: + _t1689 = None + guard_result1145 = _t1689 + if guard_result1145 is not None: self.pretty_minus(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1670 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1690 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1670 = None - guard_result1134 = _t1670 - if guard_result1134 is not None: + _t1690 = None + guard_result1144 = _t1690 + if guard_result1144 is not None: self.pretty_multiply(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1671 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1691 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1671 = None - guard_result1133 = _t1671 - if guard_result1133 is not None: + _t1691 = None + guard_result1143 = _t1691 + if guard_result1143 is not None: self.pretty_divide(msg) else: _dollar_dollar = msg - fields1127 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1127 is not None - unwrapped_fields1128 = fields1127 + fields1137 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1137 is not None + unwrapped_fields1138 = fields1137 self.write("(primitive") self.indent_sexp() self.newline() - field1129 = unwrapped_fields1128[0] - self.pretty_name(field1129) - field1130 = unwrapped_fields1128[1] - if not len(field1130) == 0: + field1139 = unwrapped_fields1138[0] + self.pretty_name(field1139) + field1140 = unwrapped_fields1138[1] + if not len(field1140) == 0: self.newline() - for i1132, elem1131 in enumerate(field1130): - if (i1132 > 0): + for i1142, elem1141 in enumerate(field1140): + if (i1142 > 0): self.newline() - self.pretty_rel_term(elem1131) + self.pretty_rel_term(elem1141) self.dedent() self.write(")") def pretty_eq(self, msg: logic_pb2.Primitive): - flat1147 = self._try_flat(msg, self.pretty_eq) - if flat1147 is not None: - assert flat1147 is not None - self.write(flat1147) + flat1157 = self._try_flat(msg, self.pretty_eq) + if flat1157 is not None: + assert flat1157 is not None + self.write(flat1157) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1672 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1692 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1672 = None - fields1143 = _t1672 - assert fields1143 is not None - unwrapped_fields1144 = fields1143 + _t1692 = None + fields1153 = _t1692 + assert fields1153 is not None + unwrapped_fields1154 = fields1153 self.write("(=") self.indent_sexp() self.newline() - field1145 = unwrapped_fields1144[0] - self.pretty_term(field1145) + field1155 = unwrapped_fields1154[0] + self.pretty_term(field1155) self.newline() - field1146 = unwrapped_fields1144[1] - self.pretty_term(field1146) + field1156 = unwrapped_fields1154[1] + self.pretty_term(field1156) self.dedent() self.write(")") def pretty_lt(self, msg: logic_pb2.Primitive): - flat1152 = self._try_flat(msg, self.pretty_lt) - if flat1152 is not None: - assert flat1152 is not None - self.write(flat1152) + flat1162 = self._try_flat(msg, self.pretty_lt) + if flat1162 is not None: + assert flat1162 is not None + self.write(flat1162) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1673 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1693 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1673 = None - fields1148 = _t1673 - assert fields1148 is not None - unwrapped_fields1149 = fields1148 + _t1693 = None + fields1158 = _t1693 + assert fields1158 is not None + unwrapped_fields1159 = fields1158 self.write("(<") self.indent_sexp() self.newline() - field1150 = unwrapped_fields1149[0] - self.pretty_term(field1150) + field1160 = unwrapped_fields1159[0] + self.pretty_term(field1160) self.newline() - field1151 = unwrapped_fields1149[1] - self.pretty_term(field1151) + field1161 = unwrapped_fields1159[1] + self.pretty_term(field1161) self.dedent() self.write(")") def pretty_lt_eq(self, msg: logic_pb2.Primitive): - flat1157 = self._try_flat(msg, self.pretty_lt_eq) - if flat1157 is not None: - assert flat1157 is not None - self.write(flat1157) + flat1167 = self._try_flat(msg, self.pretty_lt_eq) + if flat1167 is not None: + assert flat1167 is not None + self.write(flat1167) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1674 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1694 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1674 = None - fields1153 = _t1674 - assert fields1153 is not None - unwrapped_fields1154 = fields1153 + _t1694 = None + fields1163 = _t1694 + assert fields1163 is not None + unwrapped_fields1164 = fields1163 self.write("(<=") self.indent_sexp() self.newline() - field1155 = unwrapped_fields1154[0] - self.pretty_term(field1155) + field1165 = unwrapped_fields1164[0] + self.pretty_term(field1165) self.newline() - field1156 = unwrapped_fields1154[1] - self.pretty_term(field1156) + field1166 = unwrapped_fields1164[1] + self.pretty_term(field1166) self.dedent() self.write(")") def pretty_gt(self, msg: logic_pb2.Primitive): - flat1162 = self._try_flat(msg, self.pretty_gt) - if flat1162 is not None: - assert flat1162 is not None - self.write(flat1162) + flat1172 = self._try_flat(msg, self.pretty_gt) + if flat1172 is not None: + assert flat1172 is not None + self.write(flat1172) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1675 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1695 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1675 = None - fields1158 = _t1675 - assert fields1158 is not None - unwrapped_fields1159 = fields1158 + _t1695 = None + fields1168 = _t1695 + assert fields1168 is not None + unwrapped_fields1169 = fields1168 self.write("(>") self.indent_sexp() self.newline() - field1160 = unwrapped_fields1159[0] - self.pretty_term(field1160) + field1170 = unwrapped_fields1169[0] + self.pretty_term(field1170) self.newline() - field1161 = unwrapped_fields1159[1] - self.pretty_term(field1161) + field1171 = unwrapped_fields1169[1] + self.pretty_term(field1171) self.dedent() self.write(")") def pretty_gt_eq(self, msg: logic_pb2.Primitive): - flat1167 = self._try_flat(msg, self.pretty_gt_eq) - if flat1167 is not None: - assert flat1167 is not None - self.write(flat1167) + flat1177 = self._try_flat(msg, self.pretty_gt_eq) + if flat1177 is not None: + assert flat1177 is not None + self.write(flat1177) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1676 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1696 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1676 = None - fields1163 = _t1676 - assert fields1163 is not None - unwrapped_fields1164 = fields1163 + _t1696 = None + fields1173 = _t1696 + assert fields1173 is not None + unwrapped_fields1174 = fields1173 self.write("(>=") self.indent_sexp() self.newline() - field1165 = unwrapped_fields1164[0] - self.pretty_term(field1165) + field1175 = unwrapped_fields1174[0] + self.pretty_term(field1175) self.newline() - field1166 = unwrapped_fields1164[1] - self.pretty_term(field1166) + field1176 = unwrapped_fields1174[1] + self.pretty_term(field1176) self.dedent() self.write(")") def pretty_add(self, msg: logic_pb2.Primitive): - flat1173 = self._try_flat(msg, self.pretty_add) - if flat1173 is not None: - assert flat1173 is not None - self.write(flat1173) + flat1183 = self._try_flat(msg, self.pretty_add) + if flat1183 is not None: + assert flat1183 is not None + self.write(flat1183) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1677 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1697 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1677 = None - fields1168 = _t1677 - assert fields1168 is not None - unwrapped_fields1169 = fields1168 + _t1697 = None + fields1178 = _t1697 + assert fields1178 is not None + unwrapped_fields1179 = fields1178 self.write("(+") self.indent_sexp() self.newline() - field1170 = unwrapped_fields1169[0] - self.pretty_term(field1170) + field1180 = unwrapped_fields1179[0] + self.pretty_term(field1180) self.newline() - field1171 = unwrapped_fields1169[1] - self.pretty_term(field1171) + field1181 = unwrapped_fields1179[1] + self.pretty_term(field1181) self.newline() - field1172 = unwrapped_fields1169[2] - self.pretty_term(field1172) + field1182 = unwrapped_fields1179[2] + self.pretty_term(field1182) self.dedent() self.write(")") def pretty_minus(self, msg: logic_pb2.Primitive): - flat1179 = self._try_flat(msg, self.pretty_minus) - if flat1179 is not None: - assert flat1179 is not None - self.write(flat1179) + flat1189 = self._try_flat(msg, self.pretty_minus) + if flat1189 is not None: + assert flat1189 is not None + self.write(flat1189) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1678 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1698 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1678 = None - fields1174 = _t1678 - assert fields1174 is not None - unwrapped_fields1175 = fields1174 + _t1698 = None + fields1184 = _t1698 + assert fields1184 is not None + unwrapped_fields1185 = fields1184 self.write("(-") self.indent_sexp() self.newline() - field1176 = unwrapped_fields1175[0] - self.pretty_term(field1176) + field1186 = unwrapped_fields1185[0] + self.pretty_term(field1186) self.newline() - field1177 = unwrapped_fields1175[1] - self.pretty_term(field1177) + field1187 = unwrapped_fields1185[1] + self.pretty_term(field1187) self.newline() - field1178 = unwrapped_fields1175[2] - self.pretty_term(field1178) + field1188 = unwrapped_fields1185[2] + self.pretty_term(field1188) self.dedent() self.write(")") def pretty_multiply(self, msg: logic_pb2.Primitive): - flat1185 = self._try_flat(msg, self.pretty_multiply) - if flat1185 is not None: - assert flat1185 is not None - self.write(flat1185) + flat1195 = self._try_flat(msg, self.pretty_multiply) + if flat1195 is not None: + assert flat1195 is not None + self.write(flat1195) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1679 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1699 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1679 = None - fields1180 = _t1679 - assert fields1180 is not None - unwrapped_fields1181 = fields1180 + _t1699 = None + fields1190 = _t1699 + assert fields1190 is not None + unwrapped_fields1191 = fields1190 self.write("(*") self.indent_sexp() self.newline() - field1182 = unwrapped_fields1181[0] - self.pretty_term(field1182) + field1192 = unwrapped_fields1191[0] + self.pretty_term(field1192) self.newline() - field1183 = unwrapped_fields1181[1] - self.pretty_term(field1183) + field1193 = unwrapped_fields1191[1] + self.pretty_term(field1193) self.newline() - field1184 = unwrapped_fields1181[2] - self.pretty_term(field1184) + field1194 = unwrapped_fields1191[2] + self.pretty_term(field1194) self.dedent() self.write(")") def pretty_divide(self, msg: logic_pb2.Primitive): - flat1191 = self._try_flat(msg, self.pretty_divide) - if flat1191 is not None: - assert flat1191 is not None - self.write(flat1191) + flat1201 = self._try_flat(msg, self.pretty_divide) + if flat1201 is not None: + assert flat1201 is not None + self.write(flat1201) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1680 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1700 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1680 = None - fields1186 = _t1680 - assert fields1186 is not None - unwrapped_fields1187 = fields1186 + _t1700 = None + fields1196 = _t1700 + assert fields1196 is not None + unwrapped_fields1197 = fields1196 self.write("(/") self.indent_sexp() self.newline() - field1188 = unwrapped_fields1187[0] - self.pretty_term(field1188) + field1198 = unwrapped_fields1197[0] + self.pretty_term(field1198) self.newline() - field1189 = unwrapped_fields1187[1] - self.pretty_term(field1189) + field1199 = unwrapped_fields1197[1] + self.pretty_term(field1199) self.newline() - field1190 = unwrapped_fields1187[2] - self.pretty_term(field1190) + field1200 = unwrapped_fields1197[2] + self.pretty_term(field1200) self.dedent() self.write(")") def pretty_rel_term(self, msg: logic_pb2.RelTerm): - flat1196 = self._try_flat(msg, self.pretty_rel_term) - if flat1196 is not None: - assert flat1196 is not None - self.write(flat1196) + flat1206 = self._try_flat(msg, self.pretty_rel_term) + if flat1206 is not None: + assert flat1206 is not None + self.write(flat1206) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("specialized_value"): - _t1681 = _dollar_dollar.specialized_value + _t1701 = _dollar_dollar.specialized_value else: - _t1681 = None - deconstruct_result1194 = _t1681 - if deconstruct_result1194 is not None: - assert deconstruct_result1194 is not None - unwrapped1195 = deconstruct_result1194 - self.pretty_specialized_value(unwrapped1195) + _t1701 = None + deconstruct_result1204 = _t1701 + if deconstruct_result1204 is not None: + assert deconstruct_result1204 is not None + unwrapped1205 = deconstruct_result1204 + self.pretty_specialized_value(unwrapped1205) else: _dollar_dollar = msg if _dollar_dollar.HasField("term"): - _t1682 = _dollar_dollar.term + _t1702 = _dollar_dollar.term else: - _t1682 = None - deconstruct_result1192 = _t1682 - if deconstruct_result1192 is not None: - assert deconstruct_result1192 is not None - unwrapped1193 = deconstruct_result1192 - self.pretty_term(unwrapped1193) + _t1702 = None + deconstruct_result1202 = _t1702 + if deconstruct_result1202 is not None: + assert deconstruct_result1202 is not None + unwrapped1203 = deconstruct_result1202 + self.pretty_term(unwrapped1203) else: raise ParseError("No matching rule for rel_term") def pretty_specialized_value(self, msg: logic_pb2.Value): - flat1198 = self._try_flat(msg, self.pretty_specialized_value) - if flat1198 is not None: - assert flat1198 is not None - self.write(flat1198) + flat1208 = self._try_flat(msg, self.pretty_specialized_value) + if flat1208 is not None: + assert flat1208 is not None + self.write(flat1208) return None else: - fields1197 = msg + fields1207 = msg self.write("#") - self.pretty_raw_value(fields1197) + self.pretty_raw_value(fields1207) def pretty_rel_atom(self, msg: logic_pb2.RelAtom): - flat1205 = self._try_flat(msg, self.pretty_rel_atom) - if flat1205 is not None: - assert flat1205 is not None - self.write(flat1205) + flat1215 = self._try_flat(msg, self.pretty_rel_atom) + if flat1215 is not None: + assert flat1215 is not None + self.write(flat1215) return None else: _dollar_dollar = msg - fields1199 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1199 is not None - unwrapped_fields1200 = fields1199 + fields1209 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1209 is not None + unwrapped_fields1210 = fields1209 self.write("(relatom") self.indent_sexp() self.newline() - field1201 = unwrapped_fields1200[0] - self.pretty_name(field1201) - field1202 = unwrapped_fields1200[1] - if not len(field1202) == 0: + field1211 = unwrapped_fields1210[0] + self.pretty_name(field1211) + field1212 = unwrapped_fields1210[1] + if not len(field1212) == 0: self.newline() - for i1204, elem1203 in enumerate(field1202): - if (i1204 > 0): + for i1214, elem1213 in enumerate(field1212): + if (i1214 > 0): self.newline() - self.pretty_rel_term(elem1203) + self.pretty_rel_term(elem1213) self.dedent() self.write(")") def pretty_cast(self, msg: logic_pb2.Cast): - flat1210 = self._try_flat(msg, self.pretty_cast) - if flat1210 is not None: - assert flat1210 is not None - self.write(flat1210) + flat1220 = self._try_flat(msg, self.pretty_cast) + if flat1220 is not None: + assert flat1220 is not None + self.write(flat1220) return None else: _dollar_dollar = msg - fields1206 = (_dollar_dollar.input, _dollar_dollar.result,) - assert fields1206 is not None - unwrapped_fields1207 = fields1206 + fields1216 = (_dollar_dollar.input, _dollar_dollar.result,) + assert fields1216 is not None + unwrapped_fields1217 = fields1216 self.write("(cast") self.indent_sexp() self.newline() - field1208 = unwrapped_fields1207[0] - self.pretty_term(field1208) + field1218 = unwrapped_fields1217[0] + self.pretty_term(field1218) self.newline() - field1209 = unwrapped_fields1207[1] - self.pretty_term(field1209) + field1219 = unwrapped_fields1217[1] + self.pretty_term(field1219) self.dedent() self.write(")") def pretty_attrs(self, msg: Sequence[logic_pb2.Attribute]): - flat1214 = self._try_flat(msg, self.pretty_attrs) - if flat1214 is not None: - assert flat1214 is not None - self.write(flat1214) + flat1224 = self._try_flat(msg, self.pretty_attrs) + if flat1224 is not None: + assert flat1224 is not None + self.write(flat1224) return None else: - fields1211 = msg + fields1221 = msg self.write("(attrs") self.indent_sexp() - if not len(fields1211) == 0: + if not len(fields1221) == 0: self.newline() - for i1213, elem1212 in enumerate(fields1211): - if (i1213 > 0): + for i1223, elem1222 in enumerate(fields1221): + if (i1223 > 0): self.newline() - self.pretty_attribute(elem1212) + self.pretty_attribute(elem1222) self.dedent() self.write(")") def pretty_attribute(self, msg: logic_pb2.Attribute): - flat1221 = self._try_flat(msg, self.pretty_attribute) - if flat1221 is not None: - assert flat1221 is not None - self.write(flat1221) + flat1231 = self._try_flat(msg, self.pretty_attribute) + if flat1231 is not None: + assert flat1231 is not None + self.write(flat1231) return None else: _dollar_dollar = msg - fields1215 = (_dollar_dollar.name, _dollar_dollar.args,) - assert fields1215 is not None - unwrapped_fields1216 = fields1215 + fields1225 = (_dollar_dollar.name, _dollar_dollar.args,) + assert fields1225 is not None + unwrapped_fields1226 = fields1225 self.write("(attribute") self.indent_sexp() self.newline() - field1217 = unwrapped_fields1216[0] - self.pretty_name(field1217) - field1218 = unwrapped_fields1216[1] - if not len(field1218) == 0: + field1227 = unwrapped_fields1226[0] + self.pretty_name(field1227) + field1228 = unwrapped_fields1226[1] + if not len(field1228) == 0: self.newline() - for i1220, elem1219 in enumerate(field1218): - if (i1220 > 0): + for i1230, elem1229 in enumerate(field1228): + if (i1230 > 0): self.newline() - self.pretty_raw_value(elem1219) + self.pretty_raw_value(elem1229) self.dedent() self.write(")") def pretty_algorithm(self, msg: logic_pb2.Algorithm): - flat1230 = self._try_flat(msg, self.pretty_algorithm) - if flat1230 is not None: - assert flat1230 is not None - self.write(flat1230) + flat1240 = self._try_flat(msg, self.pretty_algorithm) + if flat1240 is not None: + assert flat1240 is not None + self.write(flat1240) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1683 = _dollar_dollar.attrs + _t1703 = _dollar_dollar.attrs else: - _t1683 = None - fields1222 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1683,) - assert fields1222 is not None - unwrapped_fields1223 = fields1222 + _t1703 = None + fields1232 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1703,) + assert fields1232 is not None + unwrapped_fields1233 = fields1232 self.write("(algorithm") self.indent_sexp() - field1224 = unwrapped_fields1223[0] - if not len(field1224) == 0: + field1234 = unwrapped_fields1233[0] + if not len(field1234) == 0: self.newline() - for i1226, elem1225 in enumerate(field1224): - if (i1226 > 0): + for i1236, elem1235 in enumerate(field1234): + if (i1236 > 0): self.newline() - self.pretty_relation_id(elem1225) + self.pretty_relation_id(elem1235) self.newline() - field1227 = unwrapped_fields1223[1] - self.pretty_script(field1227) - field1228 = unwrapped_fields1223[2] - if field1228 is not None: + field1237 = unwrapped_fields1233[1] + self.pretty_script(field1237) + field1238 = unwrapped_fields1233[2] + if field1238 is not None: self.newline() - assert field1228 is not None - opt_val1229 = field1228 - self.pretty_attrs(opt_val1229) + assert field1238 is not None + opt_val1239 = field1238 + self.pretty_attrs(opt_val1239) self.dedent() self.write(")") def pretty_script(self, msg: logic_pb2.Script): - flat1235 = self._try_flat(msg, self.pretty_script) - if flat1235 is not None: - assert flat1235 is not None - self.write(flat1235) + flat1245 = self._try_flat(msg, self.pretty_script) + if flat1245 is not None: + assert flat1245 is not None + self.write(flat1245) return None else: _dollar_dollar = msg - fields1231 = _dollar_dollar.constructs - assert fields1231 is not None - unwrapped_fields1232 = fields1231 + fields1241 = _dollar_dollar.constructs + assert fields1241 is not None + unwrapped_fields1242 = fields1241 self.write("(script") self.indent_sexp() - if not len(unwrapped_fields1232) == 0: + if not len(unwrapped_fields1242) == 0: self.newline() - for i1234, elem1233 in enumerate(unwrapped_fields1232): - if (i1234 > 0): + for i1244, elem1243 in enumerate(unwrapped_fields1242): + if (i1244 > 0): self.newline() - self.pretty_construct(elem1233) + self.pretty_construct(elem1243) self.dedent() self.write(")") def pretty_construct(self, msg: logic_pb2.Construct): - flat1240 = self._try_flat(msg, self.pretty_construct) - if flat1240 is not None: - assert flat1240 is not None - self.write(flat1240) + flat1250 = self._try_flat(msg, self.pretty_construct) + if flat1250 is not None: + assert flat1250 is not None + self.write(flat1250) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("loop"): - _t1684 = _dollar_dollar.loop + _t1704 = _dollar_dollar.loop else: - _t1684 = None - deconstruct_result1238 = _t1684 - if deconstruct_result1238 is not None: - assert deconstruct_result1238 is not None - unwrapped1239 = deconstruct_result1238 - self.pretty_loop(unwrapped1239) + _t1704 = None + deconstruct_result1248 = _t1704 + if deconstruct_result1248 is not None: + assert deconstruct_result1248 is not None + unwrapped1249 = deconstruct_result1248 + self.pretty_loop(unwrapped1249) else: _dollar_dollar = msg if _dollar_dollar.HasField("instruction"): - _t1685 = _dollar_dollar.instruction + _t1705 = _dollar_dollar.instruction else: - _t1685 = None - deconstruct_result1236 = _t1685 - if deconstruct_result1236 is not None: - assert deconstruct_result1236 is not None - unwrapped1237 = deconstruct_result1236 - self.pretty_instruction(unwrapped1237) + _t1705 = None + deconstruct_result1246 = _t1705 + if deconstruct_result1246 is not None: + assert deconstruct_result1246 is not None + unwrapped1247 = deconstruct_result1246 + self.pretty_instruction(unwrapped1247) else: raise ParseError("No matching rule for construct") def pretty_loop(self, msg: logic_pb2.Loop): - flat1247 = self._try_flat(msg, self.pretty_loop) - if flat1247 is not None: - assert flat1247 is not None - self.write(flat1247) + flat1257 = self._try_flat(msg, self.pretty_loop) + if flat1257 is not None: + assert flat1257 is not None + self.write(flat1257) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1686 = _dollar_dollar.attrs + _t1706 = _dollar_dollar.attrs else: - _t1686 = None - fields1241 = (_dollar_dollar.init, _dollar_dollar.body, _t1686,) - assert fields1241 is not None - unwrapped_fields1242 = fields1241 + _t1706 = None + fields1251 = (_dollar_dollar.init, _dollar_dollar.body, _t1706,) + assert fields1251 is not None + unwrapped_fields1252 = fields1251 self.write("(loop") self.indent_sexp() self.newline() - field1243 = unwrapped_fields1242[0] - self.pretty_init(field1243) + field1253 = unwrapped_fields1252[0] + self.pretty_init(field1253) self.newline() - field1244 = unwrapped_fields1242[1] - self.pretty_script(field1244) - field1245 = unwrapped_fields1242[2] - if field1245 is not None: + field1254 = unwrapped_fields1252[1] + self.pretty_script(field1254) + field1255 = unwrapped_fields1252[2] + if field1255 is not None: self.newline() - assert field1245 is not None - opt_val1246 = field1245 - self.pretty_attrs(opt_val1246) + assert field1255 is not None + opt_val1256 = field1255 + self.pretty_attrs(opt_val1256) self.dedent() self.write(")") def pretty_init(self, msg: Sequence[logic_pb2.Instruction]): - flat1251 = self._try_flat(msg, self.pretty_init) - if flat1251 is not None: - assert flat1251 is not None - self.write(flat1251) + flat1261 = self._try_flat(msg, self.pretty_init) + if flat1261 is not None: + assert flat1261 is not None + self.write(flat1261) return None else: - fields1248 = msg + fields1258 = msg self.write("(init") self.indent_sexp() - if not len(fields1248) == 0: + if not len(fields1258) == 0: self.newline() - for i1250, elem1249 in enumerate(fields1248): - if (i1250 > 0): + for i1260, elem1259 in enumerate(fields1258): + if (i1260 > 0): self.newline() - self.pretty_instruction(elem1249) + self.pretty_instruction(elem1259) self.dedent() self.write(")") def pretty_instruction(self, msg: logic_pb2.Instruction): - flat1262 = self._try_flat(msg, self.pretty_instruction) - if flat1262 is not None: - assert flat1262 is not None - self.write(flat1262) + flat1272 = self._try_flat(msg, self.pretty_instruction) + if flat1272 is not None: + assert flat1272 is not None + self.write(flat1272) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("assign"): - _t1687 = _dollar_dollar.assign + _t1707 = _dollar_dollar.assign else: - _t1687 = None - deconstruct_result1260 = _t1687 - if deconstruct_result1260 is not None: - assert deconstruct_result1260 is not None - unwrapped1261 = deconstruct_result1260 - self.pretty_assign(unwrapped1261) + _t1707 = None + deconstruct_result1270 = _t1707 + if deconstruct_result1270 is not None: + assert deconstruct_result1270 is not None + unwrapped1271 = deconstruct_result1270 + self.pretty_assign(unwrapped1271) else: _dollar_dollar = msg if _dollar_dollar.HasField("upsert"): - _t1688 = _dollar_dollar.upsert + _t1708 = _dollar_dollar.upsert else: - _t1688 = None - deconstruct_result1258 = _t1688 - if deconstruct_result1258 is not None: - assert deconstruct_result1258 is not None - unwrapped1259 = deconstruct_result1258 - self.pretty_upsert(unwrapped1259) + _t1708 = None + deconstruct_result1268 = _t1708 + if deconstruct_result1268 is not None: + assert deconstruct_result1268 is not None + unwrapped1269 = deconstruct_result1268 + self.pretty_upsert(unwrapped1269) else: _dollar_dollar = msg if _dollar_dollar.HasField("break"): - _t1689 = getattr(_dollar_dollar, 'break') + _t1709 = getattr(_dollar_dollar, 'break') else: - _t1689 = None - deconstruct_result1256 = _t1689 - if deconstruct_result1256 is not None: - assert deconstruct_result1256 is not None - unwrapped1257 = deconstruct_result1256 - self.pretty_break(unwrapped1257) + _t1709 = None + deconstruct_result1266 = _t1709 + if deconstruct_result1266 is not None: + assert deconstruct_result1266 is not None + unwrapped1267 = deconstruct_result1266 + self.pretty_break(unwrapped1267) else: _dollar_dollar = msg if _dollar_dollar.HasField("monoid_def"): - _t1690 = _dollar_dollar.monoid_def + _t1710 = _dollar_dollar.monoid_def else: - _t1690 = None - deconstruct_result1254 = _t1690 - if deconstruct_result1254 is not None: - assert deconstruct_result1254 is not None - unwrapped1255 = deconstruct_result1254 - self.pretty_monoid_def(unwrapped1255) + _t1710 = None + deconstruct_result1264 = _t1710 + if deconstruct_result1264 is not None: + assert deconstruct_result1264 is not None + unwrapped1265 = deconstruct_result1264 + self.pretty_monoid_def(unwrapped1265) else: _dollar_dollar = msg if _dollar_dollar.HasField("monus_def"): - _t1691 = _dollar_dollar.monus_def + _t1711 = _dollar_dollar.monus_def else: - _t1691 = None - deconstruct_result1252 = _t1691 - if deconstruct_result1252 is not None: - assert deconstruct_result1252 is not None - unwrapped1253 = deconstruct_result1252 - self.pretty_monus_def(unwrapped1253) + _t1711 = None + deconstruct_result1262 = _t1711 + if deconstruct_result1262 is not None: + assert deconstruct_result1262 is not None + unwrapped1263 = deconstruct_result1262 + self.pretty_monus_def(unwrapped1263) else: raise ParseError("No matching rule for instruction") def pretty_assign(self, msg: logic_pb2.Assign): - flat1269 = self._try_flat(msg, self.pretty_assign) - if flat1269 is not None: - assert flat1269 is not None - self.write(flat1269) + flat1279 = self._try_flat(msg, self.pretty_assign) + if flat1279 is not None: + assert flat1279 is not None + self.write(flat1279) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1692 = _dollar_dollar.attrs + _t1712 = _dollar_dollar.attrs else: - _t1692 = None - fields1263 = (_dollar_dollar.name, _dollar_dollar.body, _t1692,) - assert fields1263 is not None - unwrapped_fields1264 = fields1263 + _t1712 = None + fields1273 = (_dollar_dollar.name, _dollar_dollar.body, _t1712,) + assert fields1273 is not None + unwrapped_fields1274 = fields1273 self.write("(assign") self.indent_sexp() self.newline() - field1265 = unwrapped_fields1264[0] - self.pretty_relation_id(field1265) + field1275 = unwrapped_fields1274[0] + self.pretty_relation_id(field1275) self.newline() - field1266 = unwrapped_fields1264[1] - self.pretty_abstraction(field1266) - field1267 = unwrapped_fields1264[2] - if field1267 is not None: + field1276 = unwrapped_fields1274[1] + self.pretty_abstraction(field1276) + field1277 = unwrapped_fields1274[2] + if field1277 is not None: self.newline() - assert field1267 is not None - opt_val1268 = field1267 - self.pretty_attrs(opt_val1268) + assert field1277 is not None + opt_val1278 = field1277 + self.pretty_attrs(opt_val1278) self.dedent() self.write(")") def pretty_upsert(self, msg: logic_pb2.Upsert): - flat1276 = self._try_flat(msg, self.pretty_upsert) - if flat1276 is not None: - assert flat1276 is not None - self.write(flat1276) + flat1286 = self._try_flat(msg, self.pretty_upsert) + if flat1286 is not None: + assert flat1286 is not None + self.write(flat1286) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1693 = _dollar_dollar.attrs + _t1713 = _dollar_dollar.attrs else: - _t1693 = None - fields1270 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1693,) - assert fields1270 is not None - unwrapped_fields1271 = fields1270 + _t1713 = None + fields1280 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1713,) + assert fields1280 is not None + unwrapped_fields1281 = fields1280 self.write("(upsert") self.indent_sexp() self.newline() - field1272 = unwrapped_fields1271[0] - self.pretty_relation_id(field1272) + field1282 = unwrapped_fields1281[0] + self.pretty_relation_id(field1282) self.newline() - field1273 = unwrapped_fields1271[1] - self.pretty_abstraction_with_arity(field1273) - field1274 = unwrapped_fields1271[2] - if field1274 is not None: + field1283 = unwrapped_fields1281[1] + self.pretty_abstraction_with_arity(field1283) + field1284 = unwrapped_fields1281[2] + if field1284 is not None: self.newline() - assert field1274 is not None - opt_val1275 = field1274 - self.pretty_attrs(opt_val1275) + assert field1284 is not None + opt_val1285 = field1284 + self.pretty_attrs(opt_val1285) self.dedent() self.write(")") def pretty_abstraction_with_arity(self, msg: tuple[logic_pb2.Abstraction, int]): - flat1281 = self._try_flat(msg, self.pretty_abstraction_with_arity) - if flat1281 is not None: - assert flat1281 is not None - self.write(flat1281) + flat1291 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1291 is not None: + assert flat1291 is not None + self.write(flat1291) return None else: _dollar_dollar = msg - _t1694 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) - fields1277 = (_t1694, _dollar_dollar[0].value,) - assert fields1277 is not None - unwrapped_fields1278 = fields1277 + _t1714 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + fields1287 = (_t1714, _dollar_dollar[0].value,) + assert fields1287 is not None + unwrapped_fields1288 = fields1287 self.write("(") self.indent() - field1279 = unwrapped_fields1278[0] - self.pretty_bindings(field1279) + field1289 = unwrapped_fields1288[0] + self.pretty_bindings(field1289) self.newline() - field1280 = unwrapped_fields1278[1] - self.pretty_formula(field1280) + field1290 = unwrapped_fields1288[1] + self.pretty_formula(field1290) self.dedent() self.write(")") def pretty_break(self, msg: logic_pb2.Break): - flat1288 = self._try_flat(msg, self.pretty_break) - if flat1288 is not None: - assert flat1288 is not None - self.write(flat1288) + flat1298 = self._try_flat(msg, self.pretty_break) + if flat1298 is not None: + assert flat1298 is not None + self.write(flat1298) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1695 = _dollar_dollar.attrs + _t1715 = _dollar_dollar.attrs else: - _t1695 = None - fields1282 = (_dollar_dollar.name, _dollar_dollar.body, _t1695,) - assert fields1282 is not None - unwrapped_fields1283 = fields1282 + _t1715 = None + fields1292 = (_dollar_dollar.name, _dollar_dollar.body, _t1715,) + assert fields1292 is not None + unwrapped_fields1293 = fields1292 self.write("(break") self.indent_sexp() self.newline() - field1284 = unwrapped_fields1283[0] - self.pretty_relation_id(field1284) + field1294 = unwrapped_fields1293[0] + self.pretty_relation_id(field1294) self.newline() - field1285 = unwrapped_fields1283[1] - self.pretty_abstraction(field1285) - field1286 = unwrapped_fields1283[2] - if field1286 is not None: + field1295 = unwrapped_fields1293[1] + self.pretty_abstraction(field1295) + field1296 = unwrapped_fields1293[2] + if field1296 is not None: self.newline() - assert field1286 is not None - opt_val1287 = field1286 - self.pretty_attrs(opt_val1287) + assert field1296 is not None + opt_val1297 = field1296 + self.pretty_attrs(opt_val1297) self.dedent() self.write(")") def pretty_monoid_def(self, msg: logic_pb2.MonoidDef): - flat1296 = self._try_flat(msg, self.pretty_monoid_def) - if flat1296 is not None: - assert flat1296 is not None - self.write(flat1296) + flat1306 = self._try_flat(msg, self.pretty_monoid_def) + if flat1306 is not None: + assert flat1306 is not None + self.write(flat1306) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1696 = _dollar_dollar.attrs + _t1716 = _dollar_dollar.attrs else: - _t1696 = None - fields1289 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1696,) - assert fields1289 is not None - unwrapped_fields1290 = fields1289 + _t1716 = None + fields1299 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1716,) + assert fields1299 is not None + unwrapped_fields1300 = fields1299 self.write("(monoid") self.indent_sexp() self.newline() - field1291 = unwrapped_fields1290[0] - self.pretty_monoid(field1291) + field1301 = unwrapped_fields1300[0] + self.pretty_monoid(field1301) self.newline() - field1292 = unwrapped_fields1290[1] - self.pretty_relation_id(field1292) + field1302 = unwrapped_fields1300[1] + self.pretty_relation_id(field1302) self.newline() - field1293 = unwrapped_fields1290[2] - self.pretty_abstraction_with_arity(field1293) - field1294 = unwrapped_fields1290[3] - if field1294 is not None: + field1303 = unwrapped_fields1300[2] + self.pretty_abstraction_with_arity(field1303) + field1304 = unwrapped_fields1300[3] + if field1304 is not None: self.newline() - assert field1294 is not None - opt_val1295 = field1294 - self.pretty_attrs(opt_val1295) + assert field1304 is not None + opt_val1305 = field1304 + self.pretty_attrs(opt_val1305) self.dedent() self.write(")") def pretty_monoid(self, msg: logic_pb2.Monoid): - flat1305 = self._try_flat(msg, self.pretty_monoid) - if flat1305 is not None: - assert flat1305 is not None - self.write(flat1305) + flat1315 = self._try_flat(msg, self.pretty_monoid) + if flat1315 is not None: + assert flat1315 is not None + self.write(flat1315) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("or_monoid"): - _t1697 = _dollar_dollar.or_monoid + _t1717 = _dollar_dollar.or_monoid else: - _t1697 = None - deconstruct_result1303 = _t1697 - if deconstruct_result1303 is not None: - assert deconstruct_result1303 is not None - unwrapped1304 = deconstruct_result1303 - self.pretty_or_monoid(unwrapped1304) + _t1717 = None + deconstruct_result1313 = _t1717 + if deconstruct_result1313 is not None: + assert deconstruct_result1313 is not None + unwrapped1314 = deconstruct_result1313 + self.pretty_or_monoid(unwrapped1314) else: _dollar_dollar = msg if _dollar_dollar.HasField("min_monoid"): - _t1698 = _dollar_dollar.min_monoid + _t1718 = _dollar_dollar.min_monoid else: - _t1698 = None - deconstruct_result1301 = _t1698 - if deconstruct_result1301 is not None: - assert deconstruct_result1301 is not None - unwrapped1302 = deconstruct_result1301 - self.pretty_min_monoid(unwrapped1302) + _t1718 = None + deconstruct_result1311 = _t1718 + if deconstruct_result1311 is not None: + assert deconstruct_result1311 is not None + unwrapped1312 = deconstruct_result1311 + self.pretty_min_monoid(unwrapped1312) else: _dollar_dollar = msg if _dollar_dollar.HasField("max_monoid"): - _t1699 = _dollar_dollar.max_monoid + _t1719 = _dollar_dollar.max_monoid else: - _t1699 = None - deconstruct_result1299 = _t1699 - if deconstruct_result1299 is not None: - assert deconstruct_result1299 is not None - unwrapped1300 = deconstruct_result1299 - self.pretty_max_monoid(unwrapped1300) + _t1719 = None + deconstruct_result1309 = _t1719 + if deconstruct_result1309 is not None: + assert deconstruct_result1309 is not None + unwrapped1310 = deconstruct_result1309 + self.pretty_max_monoid(unwrapped1310) else: _dollar_dollar = msg if _dollar_dollar.HasField("sum_monoid"): - _t1700 = _dollar_dollar.sum_monoid + _t1720 = _dollar_dollar.sum_monoid else: - _t1700 = None - deconstruct_result1297 = _t1700 - if deconstruct_result1297 is not None: - assert deconstruct_result1297 is not None - unwrapped1298 = deconstruct_result1297 - self.pretty_sum_monoid(unwrapped1298) + _t1720 = None + deconstruct_result1307 = _t1720 + if deconstruct_result1307 is not None: + assert deconstruct_result1307 is not None + unwrapped1308 = deconstruct_result1307 + self.pretty_sum_monoid(unwrapped1308) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1306 = msg + fields1316 = msg self.write("(or)") def pretty_min_monoid(self, msg: logic_pb2.MinMonoid): - flat1309 = self._try_flat(msg, self.pretty_min_monoid) - if flat1309 is not None: - assert flat1309 is not None - self.write(flat1309) + flat1319 = self._try_flat(msg, self.pretty_min_monoid) + if flat1319 is not None: + assert flat1319 is not None + self.write(flat1319) return None else: _dollar_dollar = msg - fields1307 = _dollar_dollar.type - assert fields1307 is not None - unwrapped_fields1308 = fields1307 + fields1317 = _dollar_dollar.type + assert fields1317 is not None + unwrapped_fields1318 = fields1317 self.write("(min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1308) + self.pretty_type(unwrapped_fields1318) self.dedent() self.write(")") def pretty_max_monoid(self, msg: logic_pb2.MaxMonoid): - flat1312 = self._try_flat(msg, self.pretty_max_monoid) - if flat1312 is not None: - assert flat1312 is not None - self.write(flat1312) + flat1322 = self._try_flat(msg, self.pretty_max_monoid) + if flat1322 is not None: + assert flat1322 is not None + self.write(flat1322) return None else: _dollar_dollar = msg - fields1310 = _dollar_dollar.type - assert fields1310 is not None - unwrapped_fields1311 = fields1310 + fields1320 = _dollar_dollar.type + assert fields1320 is not None + unwrapped_fields1321 = fields1320 self.write("(max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1311) + self.pretty_type(unwrapped_fields1321) self.dedent() self.write(")") def pretty_sum_monoid(self, msg: logic_pb2.SumMonoid): - flat1315 = self._try_flat(msg, self.pretty_sum_monoid) - if flat1315 is not None: - assert flat1315 is not None - self.write(flat1315) + flat1325 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1325 is not None: + assert flat1325 is not None + self.write(flat1325) return None else: _dollar_dollar = msg - fields1313 = _dollar_dollar.type - assert fields1313 is not None - unwrapped_fields1314 = fields1313 + fields1323 = _dollar_dollar.type + assert fields1323 is not None + unwrapped_fields1324 = fields1323 self.write("(sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1314) + self.pretty_type(unwrapped_fields1324) self.dedent() self.write(")") def pretty_monus_def(self, msg: logic_pb2.MonusDef): - flat1323 = self._try_flat(msg, self.pretty_monus_def) - if flat1323 is not None: - assert flat1323 is not None - self.write(flat1323) + flat1333 = self._try_flat(msg, self.pretty_monus_def) + if flat1333 is not None: + assert flat1333 is not None + self.write(flat1333) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1701 = _dollar_dollar.attrs + _t1721 = _dollar_dollar.attrs else: - _t1701 = None - fields1316 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1701,) - assert fields1316 is not None - unwrapped_fields1317 = fields1316 + _t1721 = None + fields1326 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1721,) + assert fields1326 is not None + unwrapped_fields1327 = fields1326 self.write("(monus") self.indent_sexp() self.newline() - field1318 = unwrapped_fields1317[0] - self.pretty_monoid(field1318) + field1328 = unwrapped_fields1327[0] + self.pretty_monoid(field1328) self.newline() - field1319 = unwrapped_fields1317[1] - self.pretty_relation_id(field1319) + field1329 = unwrapped_fields1327[1] + self.pretty_relation_id(field1329) self.newline() - field1320 = unwrapped_fields1317[2] - self.pretty_abstraction_with_arity(field1320) - field1321 = unwrapped_fields1317[3] - if field1321 is not None: + field1330 = unwrapped_fields1327[2] + self.pretty_abstraction_with_arity(field1330) + field1331 = unwrapped_fields1327[3] + if field1331 is not None: self.newline() - assert field1321 is not None - opt_val1322 = field1321 - self.pretty_attrs(opt_val1322) + assert field1331 is not None + opt_val1332 = field1331 + self.pretty_attrs(opt_val1332) self.dedent() self.write(")") def pretty_constraint(self, msg: logic_pb2.Constraint): - flat1330 = self._try_flat(msg, self.pretty_constraint) - if flat1330 is not None: - assert flat1330 is not None - self.write(flat1330) + flat1340 = self._try_flat(msg, self.pretty_constraint) + if flat1340 is not None: + assert flat1340 is not None + self.write(flat1340) return None else: _dollar_dollar = msg - fields1324 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) - assert fields1324 is not None - unwrapped_fields1325 = fields1324 + fields1334 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) + assert fields1334 is not None + unwrapped_fields1335 = fields1334 self.write("(functional_dependency") self.indent_sexp() self.newline() - field1326 = unwrapped_fields1325[0] - self.pretty_relation_id(field1326) + field1336 = unwrapped_fields1335[0] + self.pretty_relation_id(field1336) self.newline() - field1327 = unwrapped_fields1325[1] - self.pretty_abstraction(field1327) + field1337 = unwrapped_fields1335[1] + self.pretty_abstraction(field1337) self.newline() - field1328 = unwrapped_fields1325[2] - self.pretty_functional_dependency_keys(field1328) + field1338 = unwrapped_fields1335[2] + self.pretty_functional_dependency_keys(field1338) self.newline() - field1329 = unwrapped_fields1325[3] - self.pretty_functional_dependency_values(field1329) + field1339 = unwrapped_fields1335[3] + self.pretty_functional_dependency_values(field1339) self.dedent() self.write(")") def pretty_functional_dependency_keys(self, msg: Sequence[logic_pb2.Var]): - flat1334 = self._try_flat(msg, self.pretty_functional_dependency_keys) - if flat1334 is not None: - assert flat1334 is not None - self.write(flat1334) + flat1344 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1344 is not None: + assert flat1344 is not None + self.write(flat1344) return None else: - fields1331 = msg + fields1341 = msg self.write("(keys") self.indent_sexp() - if not len(fields1331) == 0: + if not len(fields1341) == 0: self.newline() - for i1333, elem1332 in enumerate(fields1331): - if (i1333 > 0): + for i1343, elem1342 in enumerate(fields1341): + if (i1343 > 0): self.newline() - self.pretty_var(elem1332) + self.pretty_var(elem1342) self.dedent() self.write(")") def pretty_functional_dependency_values(self, msg: Sequence[logic_pb2.Var]): - flat1338 = self._try_flat(msg, self.pretty_functional_dependency_values) - if flat1338 is not None: - assert flat1338 is not None - self.write(flat1338) + flat1348 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1348 is not None: + assert flat1348 is not None + self.write(flat1348) return None else: - fields1335 = msg + fields1345 = msg self.write("(values") self.indent_sexp() - if not len(fields1335) == 0: + if not len(fields1345) == 0: self.newline() - for i1337, elem1336 in enumerate(fields1335): - if (i1337 > 0): + for i1347, elem1346 in enumerate(fields1345): + if (i1347 > 0): self.newline() - self.pretty_var(elem1336) + self.pretty_var(elem1346) self.dedent() self.write(")") def pretty_data(self, msg: logic_pb2.Data): - flat1347 = self._try_flat(msg, self.pretty_data) - if flat1347 is not None: - assert flat1347 is not None - self.write(flat1347) + flat1357 = self._try_flat(msg, self.pretty_data) + if flat1357 is not None: + assert flat1357 is not None + self.write(flat1357) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("edb"): - _t1702 = _dollar_dollar.edb + _t1722 = _dollar_dollar.edb else: - _t1702 = None - deconstruct_result1345 = _t1702 - if deconstruct_result1345 is not None: - assert deconstruct_result1345 is not None - unwrapped1346 = deconstruct_result1345 - self.pretty_edb(unwrapped1346) + _t1722 = None + deconstruct_result1355 = _t1722 + if deconstruct_result1355 is not None: + assert deconstruct_result1355 is not None + unwrapped1356 = deconstruct_result1355 + self.pretty_edb(unwrapped1356) else: _dollar_dollar = msg if _dollar_dollar.HasField("betree_relation"): - _t1703 = _dollar_dollar.betree_relation + _t1723 = _dollar_dollar.betree_relation else: - _t1703 = None - deconstruct_result1343 = _t1703 - if deconstruct_result1343 is not None: - assert deconstruct_result1343 is not None - unwrapped1344 = deconstruct_result1343 - self.pretty_betree_relation(unwrapped1344) + _t1723 = None + deconstruct_result1353 = _t1723 + if deconstruct_result1353 is not None: + assert deconstruct_result1353 is not None + unwrapped1354 = deconstruct_result1353 + self.pretty_betree_relation(unwrapped1354) else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_data"): - _t1704 = _dollar_dollar.csv_data + _t1724 = _dollar_dollar.csv_data else: - _t1704 = None - deconstruct_result1341 = _t1704 - if deconstruct_result1341 is not None: - assert deconstruct_result1341 is not None - unwrapped1342 = deconstruct_result1341 - self.pretty_csv_data(unwrapped1342) + _t1724 = None + deconstruct_result1351 = _t1724 + if deconstruct_result1351 is not None: + assert deconstruct_result1351 is not None + unwrapped1352 = deconstruct_result1351 + self.pretty_csv_data(unwrapped1352) else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_data"): - _t1705 = _dollar_dollar.iceberg_data + _t1725 = _dollar_dollar.iceberg_data else: - _t1705 = None - deconstruct_result1339 = _t1705 - if deconstruct_result1339 is not None: - assert deconstruct_result1339 is not None - unwrapped1340 = deconstruct_result1339 - self.pretty_iceberg_data(unwrapped1340) + _t1725 = None + deconstruct_result1349 = _t1725 + if deconstruct_result1349 is not None: + assert deconstruct_result1349 is not None + unwrapped1350 = deconstruct_result1349 + self.pretty_iceberg_data(unwrapped1350) else: raise ParseError("No matching rule for data") def pretty_edb(self, msg: logic_pb2.EDB): - flat1353 = self._try_flat(msg, self.pretty_edb) - if flat1353 is not None: - assert flat1353 is not None - self.write(flat1353) + flat1363 = self._try_flat(msg, self.pretty_edb) + if flat1363 is not None: + assert flat1363 is not None + self.write(flat1363) return None else: _dollar_dollar = msg - fields1348 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - assert fields1348 is not None - unwrapped_fields1349 = fields1348 + fields1358 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + assert fields1358 is not None + unwrapped_fields1359 = fields1358 self.write("(edb") self.indent_sexp() self.newline() - field1350 = unwrapped_fields1349[0] - self.pretty_relation_id(field1350) + field1360 = unwrapped_fields1359[0] + self.pretty_relation_id(field1360) self.newline() - field1351 = unwrapped_fields1349[1] - self.pretty_edb_path(field1351) + field1361 = unwrapped_fields1359[1] + self.pretty_edb_path(field1361) self.newline() - field1352 = unwrapped_fields1349[2] - self.pretty_edb_types(field1352) + field1362 = unwrapped_fields1359[2] + self.pretty_edb_types(field1362) self.dedent() self.write(")") def pretty_edb_path(self, msg: Sequence[str]): - flat1357 = self._try_flat(msg, self.pretty_edb_path) - if flat1357 is not None: - assert flat1357 is not None - self.write(flat1357) + flat1367 = self._try_flat(msg, self.pretty_edb_path) + if flat1367 is not None: + assert flat1367 is not None + self.write(flat1367) return None else: - fields1354 = msg + fields1364 = msg self.write("[") self.indent() - for i1356, elem1355 in enumerate(fields1354): - if (i1356 > 0): + for i1366, elem1365 in enumerate(fields1364): + if (i1366 > 0): self.newline() - self.write(self.format_string_value(elem1355)) + self.write(self.format_string_value(elem1365)) self.dedent() self.write("]") def pretty_edb_types(self, msg: Sequence[logic_pb2.Type]): - flat1361 = self._try_flat(msg, self.pretty_edb_types) - if flat1361 is not None: - assert flat1361 is not None - self.write(flat1361) + flat1371 = self._try_flat(msg, self.pretty_edb_types) + if flat1371 is not None: + assert flat1371 is not None + self.write(flat1371) return None else: - fields1358 = msg + fields1368 = msg self.write("[") self.indent() - for i1360, elem1359 in enumerate(fields1358): - if (i1360 > 0): + for i1370, elem1369 in enumerate(fields1368): + if (i1370 > 0): self.newline() - self.pretty_type(elem1359) + self.pretty_type(elem1369) self.dedent() self.write("]") def pretty_betree_relation(self, msg: logic_pb2.BeTreeRelation): - flat1366 = self._try_flat(msg, self.pretty_betree_relation) - if flat1366 is not None: - assert flat1366 is not None - self.write(flat1366) + flat1376 = self._try_flat(msg, self.pretty_betree_relation) + if flat1376 is not None: + assert flat1376 is not None + self.write(flat1376) return None else: _dollar_dollar = msg - fields1362 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - assert fields1362 is not None - unwrapped_fields1363 = fields1362 + fields1372 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + assert fields1372 is not None + unwrapped_fields1373 = fields1372 self.write("(betree_relation") self.indent_sexp() self.newline() - field1364 = unwrapped_fields1363[0] - self.pretty_relation_id(field1364) + field1374 = unwrapped_fields1373[0] + self.pretty_relation_id(field1374) self.newline() - field1365 = unwrapped_fields1363[1] - self.pretty_betree_info(field1365) + field1375 = unwrapped_fields1373[1] + self.pretty_betree_info(field1375) self.dedent() self.write(")") def pretty_betree_info(self, msg: logic_pb2.BeTreeInfo): - flat1372 = self._try_flat(msg, self.pretty_betree_info) - if flat1372 is not None: - assert flat1372 is not None - self.write(flat1372) + flat1382 = self._try_flat(msg, self.pretty_betree_info) + if flat1382 is not None: + assert flat1382 is not None + self.write(flat1382) return None else: _dollar_dollar = msg - _t1706 = self.deconstruct_betree_info_config(_dollar_dollar) - fields1367 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1706,) - assert fields1367 is not None - unwrapped_fields1368 = fields1367 + _t1726 = self.deconstruct_betree_info_config(_dollar_dollar) + fields1377 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1726,) + assert fields1377 is not None + unwrapped_fields1378 = fields1377 self.write("(betree_info") self.indent_sexp() self.newline() - field1369 = unwrapped_fields1368[0] - self.pretty_betree_info_key_types(field1369) + field1379 = unwrapped_fields1378[0] + self.pretty_betree_info_key_types(field1379) self.newline() - field1370 = unwrapped_fields1368[1] - self.pretty_betree_info_value_types(field1370) + field1380 = unwrapped_fields1378[1] + self.pretty_betree_info_value_types(field1380) self.newline() - field1371 = unwrapped_fields1368[2] - self.pretty_config_dict(field1371) + field1381 = unwrapped_fields1378[2] + self.pretty_config_dict(field1381) self.dedent() self.write(")") def pretty_betree_info_key_types(self, msg: Sequence[logic_pb2.Type]): - flat1376 = self._try_flat(msg, self.pretty_betree_info_key_types) - if flat1376 is not None: - assert flat1376 is not None - self.write(flat1376) + flat1386 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1386 is not None: + assert flat1386 is not None + self.write(flat1386) return None else: - fields1373 = msg + fields1383 = msg self.write("(key_types") self.indent_sexp() - if not len(fields1373) == 0: + if not len(fields1383) == 0: self.newline() - for i1375, elem1374 in enumerate(fields1373): - if (i1375 > 0): + for i1385, elem1384 in enumerate(fields1383): + if (i1385 > 0): self.newline() - self.pretty_type(elem1374) + self.pretty_type(elem1384) self.dedent() self.write(")") def pretty_betree_info_value_types(self, msg: Sequence[logic_pb2.Type]): - flat1380 = self._try_flat(msg, self.pretty_betree_info_value_types) - if flat1380 is not None: - assert flat1380 is not None - self.write(flat1380) + flat1390 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1390 is not None: + assert flat1390 is not None + self.write(flat1390) return None else: - fields1377 = msg + fields1387 = msg self.write("(value_types") self.indent_sexp() - if not len(fields1377) == 0: + if not len(fields1387) == 0: self.newline() - for i1379, elem1378 in enumerate(fields1377): - if (i1379 > 0): + for i1389, elem1388 in enumerate(fields1387): + if (i1389 > 0): self.newline() - self.pretty_type(elem1378) + self.pretty_type(elem1388) self.dedent() self.write(")") def pretty_csv_data(self, msg: logic_pb2.CSVData): - flat1387 = self._try_flat(msg, self.pretty_csv_data) - if flat1387 is not None: - assert flat1387 is not None - self.write(flat1387) + flat1397 = self._try_flat(msg, self.pretty_csv_data) + if flat1397 is not None: + assert flat1397 is not None + self.write(flat1397) return None else: _dollar_dollar = msg - fields1381 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - assert fields1381 is not None - unwrapped_fields1382 = fields1381 + fields1391 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + assert fields1391 is not None + unwrapped_fields1392 = fields1391 self.write("(csv_data") self.indent_sexp() self.newline() - field1383 = unwrapped_fields1382[0] - self.pretty_csvlocator(field1383) + field1393 = unwrapped_fields1392[0] + self.pretty_csvlocator(field1393) self.newline() - field1384 = unwrapped_fields1382[1] - self.pretty_csv_config(field1384) + field1394 = unwrapped_fields1392[1] + self.pretty_csv_config(field1394) self.newline() - field1385 = unwrapped_fields1382[2] - self.pretty_gnf_columns(field1385) + field1395 = unwrapped_fields1392[2] + self.pretty_gnf_columns(field1395) self.newline() - field1386 = unwrapped_fields1382[3] - self.pretty_csv_asof(field1386) + field1396 = unwrapped_fields1392[3] + self.pretty_csv_asof(field1396) self.dedent() self.write(")") def pretty_csvlocator(self, msg: logic_pb2.CSVLocator): - flat1394 = self._try_flat(msg, self.pretty_csvlocator) - if flat1394 is not None: - assert flat1394 is not None - self.write(flat1394) + flat1404 = self._try_flat(msg, self.pretty_csvlocator) + if flat1404 is not None: + assert flat1404 is not None + self.write(flat1404) return None else: _dollar_dollar = msg if not len(_dollar_dollar.paths) == 0: - _t1707 = _dollar_dollar.paths + _t1727 = _dollar_dollar.paths else: - _t1707 = None + _t1727 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1708 = _dollar_dollar.inline_data.decode('utf-8') + _t1728 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1708 = None - fields1388 = (_t1707, _t1708,) - assert fields1388 is not None - unwrapped_fields1389 = fields1388 + _t1728 = None + fields1398 = (_t1727, _t1728,) + assert fields1398 is not None + unwrapped_fields1399 = fields1398 self.write("(csv_locator") self.indent_sexp() - field1390 = unwrapped_fields1389[0] - if field1390 is not None: + field1400 = unwrapped_fields1399[0] + if field1400 is not None: self.newline() - assert field1390 is not None - opt_val1391 = field1390 - self.pretty_csv_locator_paths(opt_val1391) - field1392 = unwrapped_fields1389[1] - if field1392 is not None: + assert field1400 is not None + opt_val1401 = field1400 + self.pretty_csv_locator_paths(opt_val1401) + field1402 = unwrapped_fields1399[1] + if field1402 is not None: self.newline() - assert field1392 is not None - opt_val1393 = field1392 - self.pretty_csv_locator_inline_data(opt_val1393) + assert field1402 is not None + opt_val1403 = field1402 + self.pretty_csv_locator_inline_data(opt_val1403) self.dedent() self.write(")") def pretty_csv_locator_paths(self, msg: Sequence[str]): - flat1398 = self._try_flat(msg, self.pretty_csv_locator_paths) - if flat1398 is not None: - assert flat1398 is not None - self.write(flat1398) + flat1408 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1408 is not None: + assert flat1408 is not None + self.write(flat1408) return None else: - fields1395 = msg + fields1405 = msg self.write("(paths") self.indent_sexp() - if not len(fields1395) == 0: + if not len(fields1405) == 0: self.newline() - for i1397, elem1396 in enumerate(fields1395): - if (i1397 > 0): + for i1407, elem1406 in enumerate(fields1405): + if (i1407 > 0): self.newline() - self.write(self.format_string_value(elem1396)) + self.write(self.format_string_value(elem1406)) self.dedent() self.write(")") def pretty_csv_locator_inline_data(self, msg: str): - flat1400 = self._try_flat(msg, self.pretty_csv_locator_inline_data) - if flat1400 is not None: - assert flat1400 is not None - self.write(flat1400) + flat1410 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1410 is not None: + assert flat1410 is not None + self.write(flat1410) return None else: - fields1399 = msg + fields1409 = msg self.write("(inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1399)) + self.write(self.format_string_value(fields1409)) self.dedent() self.write(")") def pretty_csv_config(self, msg: logic_pb2.CSVConfig): - flat1403 = self._try_flat(msg, self.pretty_csv_config) - if flat1403 is not None: - assert flat1403 is not None - self.write(flat1403) + flat1413 = self._try_flat(msg, self.pretty_csv_config) + if flat1413 is not None: + assert flat1413 is not None + self.write(flat1413) return None else: _dollar_dollar = msg - _t1709 = self.deconstruct_csv_config(_dollar_dollar) - fields1401 = _t1709 - assert fields1401 is not None - unwrapped_fields1402 = fields1401 + _t1729 = self.deconstruct_csv_config(_dollar_dollar) + fields1411 = _t1729 + assert fields1411 is not None + unwrapped_fields1412 = fields1411 self.write("(csv_config") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields1402) + self.pretty_config_dict(unwrapped_fields1412) self.dedent() self.write(")") def pretty_gnf_columns(self, msg: Sequence[logic_pb2.GNFColumn]): - flat1407 = self._try_flat(msg, self.pretty_gnf_columns) - if flat1407 is not None: - assert flat1407 is not None - self.write(flat1407) + flat1417 = self._try_flat(msg, self.pretty_gnf_columns) + if flat1417 is not None: + assert flat1417 is not None + self.write(flat1417) return None else: - fields1404 = msg + fields1414 = msg self.write("(columns") self.indent_sexp() - if not len(fields1404) == 0: + if not len(fields1414) == 0: self.newline() - for i1406, elem1405 in enumerate(fields1404): - if (i1406 > 0): + for i1416, elem1415 in enumerate(fields1414): + if (i1416 > 0): self.newline() - self.pretty_gnf_column(elem1405) + self.pretty_gnf_column(elem1415) self.dedent() self.write(")") def pretty_gnf_column(self, msg: logic_pb2.GNFColumn): - flat1416 = self._try_flat(msg, self.pretty_gnf_column) - if flat1416 is not None: - assert flat1416 is not None - self.write(flat1416) + flat1426 = self._try_flat(msg, self.pretty_gnf_column) + if flat1426 is not None: + assert flat1426 is not None + self.write(flat1426) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("target_id"): - _t1710 = _dollar_dollar.target_id + _t1730 = _dollar_dollar.target_id else: - _t1710 = None - fields1408 = (_dollar_dollar.column_path, _t1710, _dollar_dollar.types,) - assert fields1408 is not None - unwrapped_fields1409 = fields1408 + _t1730 = None + fields1418 = (_dollar_dollar.column_path, _t1730, _dollar_dollar.types,) + assert fields1418 is not None + unwrapped_fields1419 = fields1418 self.write("(column") self.indent_sexp() self.newline() - field1410 = unwrapped_fields1409[0] - self.pretty_gnf_column_path(field1410) - field1411 = unwrapped_fields1409[1] - if field1411 is not None: + field1420 = unwrapped_fields1419[0] + self.pretty_gnf_column_path(field1420) + field1421 = unwrapped_fields1419[1] + if field1421 is not None: self.newline() - assert field1411 is not None - opt_val1412 = field1411 - self.pretty_relation_id(opt_val1412) + assert field1421 is not None + opt_val1422 = field1421 + self.pretty_relation_id(opt_val1422) self.newline() self.write("[") - field1413 = unwrapped_fields1409[2] - for i1415, elem1414 in enumerate(field1413): - if (i1415 > 0): + field1423 = unwrapped_fields1419[2] + for i1425, elem1424 in enumerate(field1423): + if (i1425 > 0): self.newline() - self.pretty_type(elem1414) + self.pretty_type(elem1424) self.write("]") self.dedent() self.write(")") def pretty_gnf_column_path(self, msg: Sequence[str]): - flat1423 = self._try_flat(msg, self.pretty_gnf_column_path) - if flat1423 is not None: - assert flat1423 is not None - self.write(flat1423) + flat1433 = self._try_flat(msg, self.pretty_gnf_column_path) + if flat1433 is not None: + assert flat1433 is not None + self.write(flat1433) return None else: _dollar_dollar = msg if len(_dollar_dollar) == 1: - _t1711 = _dollar_dollar[0] + _t1731 = _dollar_dollar[0] else: - _t1711 = None - deconstruct_result1421 = _t1711 - if deconstruct_result1421 is not None: - assert deconstruct_result1421 is not None - unwrapped1422 = deconstruct_result1421 - self.write(self.format_string_value(unwrapped1422)) + _t1731 = None + deconstruct_result1431 = _t1731 + if deconstruct_result1431 is not None: + assert deconstruct_result1431 is not None + unwrapped1432 = deconstruct_result1431 + self.write(self.format_string_value(unwrapped1432)) else: _dollar_dollar = msg if len(_dollar_dollar) != 1: - _t1712 = _dollar_dollar + _t1732 = _dollar_dollar else: - _t1712 = None - deconstruct_result1417 = _t1712 - if deconstruct_result1417 is not None: - assert deconstruct_result1417 is not None - unwrapped1418 = deconstruct_result1417 + _t1732 = None + deconstruct_result1427 = _t1732 + if deconstruct_result1427 is not None: + assert deconstruct_result1427 is not None + unwrapped1428 = deconstruct_result1427 self.write("[") self.indent() - for i1420, elem1419 in enumerate(unwrapped1418): - if (i1420 > 0): + for i1430, elem1429 in enumerate(unwrapped1428): + if (i1430 > 0): self.newline() - self.write(self.format_string_value(elem1419)) + self.write(self.format_string_value(elem1429)) self.dedent() self.write("]") else: raise ParseError("No matching rule for gnf_column_path") def pretty_csv_asof(self, msg: str): - flat1425 = self._try_flat(msg, self.pretty_csv_asof) - if flat1425 is not None: - assert flat1425 is not None - self.write(flat1425) + flat1435 = self._try_flat(msg, self.pretty_csv_asof) + if flat1435 is not None: + assert flat1435 is not None + self.write(flat1435) return None else: - fields1424 = msg + fields1434 = msg self.write("(asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1424)) + self.write(self.format_string_value(fields1434)) self.dedent() self.write(")") def pretty_iceberg_data(self, msg: logic_pb2.IcebergData): - flat1436 = self._try_flat(msg, self.pretty_iceberg_data) - if flat1436 is not None: - assert flat1436 is not None - self.write(flat1436) + flat1449 = self._try_flat(msg, self.pretty_iceberg_data) + if flat1449 is not None: + assert flat1449 is not None + self.write(flat1449) return None else: _dollar_dollar = msg - _t1713 = self.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) - _t1714 = self.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) - fields1426 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1713, _t1714, _dollar_dollar.returns_delta,) - assert fields1426 is not None - unwrapped_fields1427 = fields1426 + if not len(_dollar_dollar.columns) == 0: + _t1733 = _dollar_dollar.columns + else: + _t1733 = None + if _dollar_dollar.HasField("target"): + _t1734 = _dollar_dollar.target + else: + _t1734 = None + _t1735 = self.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1736 = self.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1436 = (_dollar_dollar.locator, _dollar_dollar.config, _t1733, _t1734, _t1735, _t1736, _dollar_dollar.returns_delta,) + assert fields1436 is not None + unwrapped_fields1437 = fields1436 self.write("(iceberg_data") self.indent_sexp() self.newline() - field1428 = unwrapped_fields1427[0] - self.pretty_iceberg_locator(field1428) + field1438 = unwrapped_fields1437[0] + self.pretty_iceberg_locator(field1438) self.newline() - field1429 = unwrapped_fields1427[1] - self.pretty_iceberg_catalog_config(field1429) - self.newline() - field1430 = unwrapped_fields1427[2] - self.pretty_gnf_columns(field1430) - field1431 = unwrapped_fields1427[3] - if field1431 is not None: + field1439 = unwrapped_fields1437[1] + self.pretty_iceberg_catalog_config(field1439) + field1440 = unwrapped_fields1437[2] + if field1440 is not None: + self.newline() + assert field1440 is not None + opt_val1441 = field1440 + self.pretty_gnf_columns(opt_val1441) + field1442 = unwrapped_fields1437[3] + if field1442 is not None: self.newline() - assert field1431 is not None - opt_val1432 = field1431 - self.pretty_iceberg_from_snapshot(opt_val1432) - field1433 = unwrapped_fields1427[4] - if field1433 is not None: + assert field1442 is not None + opt_val1443 = field1442 + self.pretty_full_table(opt_val1443) + field1444 = unwrapped_fields1437[4] + if field1444 is not None: self.newline() - assert field1433 is not None - opt_val1434 = field1433 - self.pretty_iceberg_to_snapshot(opt_val1434) + assert field1444 is not None + opt_val1445 = field1444 + self.pretty_iceberg_from_snapshot(opt_val1445) + field1446 = unwrapped_fields1437[5] + if field1446 is not None: + self.newline() + assert field1446 is not None + opt_val1447 = field1446 + self.pretty_iceberg_to_snapshot(opt_val1447) self.newline() - field1435 = unwrapped_fields1427[5] - self.pretty_boolean_value(field1435) + field1448 = unwrapped_fields1437[6] + self.pretty_boolean_value(field1448) self.dedent() self.write(")") def pretty_iceberg_locator(self, msg: logic_pb2.IcebergLocator): - flat1442 = self._try_flat(msg, self.pretty_iceberg_locator) - if flat1442 is not None: - assert flat1442 is not None - self.write(flat1442) + flat1455 = self._try_flat(msg, self.pretty_iceberg_locator) + if flat1455 is not None: + assert flat1455 is not None + self.write(flat1455) return None else: _dollar_dollar = msg - fields1437 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) - assert fields1437 is not None - unwrapped_fields1438 = fields1437 + fields1450 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + assert fields1450 is not None + unwrapped_fields1451 = fields1450 self.write("(iceberg_locator") self.indent_sexp() self.newline() - field1439 = unwrapped_fields1438[0] - self.pretty_iceberg_locator_table_name(field1439) + field1452 = unwrapped_fields1451[0] + self.pretty_iceberg_locator_table_name(field1452) self.newline() - field1440 = unwrapped_fields1438[1] - self.pretty_iceberg_locator_namespace(field1440) + field1453 = unwrapped_fields1451[1] + self.pretty_iceberg_locator_namespace(field1453) self.newline() - field1441 = unwrapped_fields1438[2] - self.pretty_iceberg_locator_warehouse(field1441) + field1454 = unwrapped_fields1451[2] + self.pretty_iceberg_locator_warehouse(field1454) self.dedent() self.write(")") def pretty_iceberg_locator_table_name(self, msg: str): - flat1444 = self._try_flat(msg, self.pretty_iceberg_locator_table_name) - if flat1444 is not None: - assert flat1444 is not None - self.write(flat1444) + flat1457 = self._try_flat(msg, self.pretty_iceberg_locator_table_name) + if flat1457 is not None: + assert flat1457 is not None + self.write(flat1457) return None else: - fields1443 = msg + fields1456 = msg self.write("(table_name") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1443)) + self.write(self.format_string_value(fields1456)) self.dedent() self.write(")") def pretty_iceberg_locator_namespace(self, msg: Sequence[str]): - flat1448 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) - if flat1448 is not None: - assert flat1448 is not None - self.write(flat1448) + flat1461 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) + if flat1461 is not None: + assert flat1461 is not None + self.write(flat1461) return None else: - fields1445 = msg + fields1458 = msg self.write("(namespace") self.indent_sexp() - if not len(fields1445) == 0: + if not len(fields1458) == 0: self.newline() - for i1447, elem1446 in enumerate(fields1445): - if (i1447 > 0): + for i1460, elem1459 in enumerate(fields1458): + if (i1460 > 0): self.newline() - self.write(self.format_string_value(elem1446)) + self.write(self.format_string_value(elem1459)) self.dedent() self.write(")") def pretty_iceberg_locator_warehouse(self, msg: str): - flat1450 = self._try_flat(msg, self.pretty_iceberg_locator_warehouse) - if flat1450 is not None: - assert flat1450 is not None - self.write(flat1450) + flat1463 = self._try_flat(msg, self.pretty_iceberg_locator_warehouse) + if flat1463 is not None: + assert flat1463 is not None + self.write(flat1463) return None else: - fields1449 = msg + fields1462 = msg self.write("(warehouse") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1449)) + self.write(self.format_string_value(fields1462)) self.dedent() self.write(")") def pretty_iceberg_catalog_config(self, msg: logic_pb2.IcebergCatalogConfig): - flat1458 = self._try_flat(msg, self.pretty_iceberg_catalog_config) - if flat1458 is not None: - assert flat1458 is not None - self.write(flat1458) + flat1471 = self._try_flat(msg, self.pretty_iceberg_catalog_config) + if flat1471 is not None: + assert flat1471 is not None + self.write(flat1471) return None else: _dollar_dollar = msg - _t1715 = self.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) - fields1451 = (_dollar_dollar.catalog_uri, _t1715, sorted(_dollar_dollar.properties.items()), sorted(_dollar_dollar.auth_properties.items()),) - assert fields1451 is not None - unwrapped_fields1452 = fields1451 + _t1737 = self.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1464 = (_dollar_dollar.catalog_uri, _t1737, sorted(_dollar_dollar.properties.items()), sorted(_dollar_dollar.auth_properties.items()),) + assert fields1464 is not None + unwrapped_fields1465 = fields1464 self.write("(iceberg_catalog_config") self.indent_sexp() self.newline() - field1453 = unwrapped_fields1452[0] - self.pretty_iceberg_catalog_uri(field1453) - field1454 = unwrapped_fields1452[1] - if field1454 is not None: + field1466 = unwrapped_fields1465[0] + self.pretty_iceberg_catalog_uri(field1466) + field1467 = unwrapped_fields1465[1] + if field1467 is not None: self.newline() - assert field1454 is not None - opt_val1455 = field1454 - self.pretty_iceberg_catalog_config_scope(opt_val1455) + assert field1467 is not None + opt_val1468 = field1467 + self.pretty_iceberg_catalog_config_scope(opt_val1468) self.newline() - field1456 = unwrapped_fields1452[2] - self.pretty_iceberg_properties(field1456) + field1469 = unwrapped_fields1465[2] + self.pretty_iceberg_properties(field1469) self.newline() - field1457 = unwrapped_fields1452[3] - self.pretty_iceberg_auth_properties(field1457) + field1470 = unwrapped_fields1465[3] + self.pretty_iceberg_auth_properties(field1470) self.dedent() self.write(")") def pretty_iceberg_catalog_uri(self, msg: str): - flat1460 = self._try_flat(msg, self.pretty_iceberg_catalog_uri) - if flat1460 is not None: - assert flat1460 is not None - self.write(flat1460) + flat1473 = self._try_flat(msg, self.pretty_iceberg_catalog_uri) + if flat1473 is not None: + assert flat1473 is not None + self.write(flat1473) return None else: - fields1459 = msg + fields1472 = msg self.write("(catalog_uri") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1459)) + self.write(self.format_string_value(fields1472)) self.dedent() self.write(")") def pretty_iceberg_catalog_config_scope(self, msg: str): - flat1462 = self._try_flat(msg, self.pretty_iceberg_catalog_config_scope) - if flat1462 is not None: - assert flat1462 is not None - self.write(flat1462) + flat1475 = self._try_flat(msg, self.pretty_iceberg_catalog_config_scope) + if flat1475 is not None: + assert flat1475 is not None + self.write(flat1475) return None else: - fields1461 = msg + fields1474 = msg self.write("(scope") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1461)) + self.write(self.format_string_value(fields1474)) self.dedent() self.write(")") def pretty_iceberg_properties(self, msg: Sequence[tuple[str, str]]): - flat1466 = self._try_flat(msg, self.pretty_iceberg_properties) - if flat1466 is not None: - assert flat1466 is not None - self.write(flat1466) + flat1479 = self._try_flat(msg, self.pretty_iceberg_properties) + if flat1479 is not None: + assert flat1479 is not None + self.write(flat1479) return None else: - fields1463 = msg + fields1476 = msg self.write("(properties") self.indent_sexp() - if not len(fields1463) == 0: + if not len(fields1476) == 0: self.newline() - for i1465, elem1464 in enumerate(fields1463): - if (i1465 > 0): + for i1478, elem1477 in enumerate(fields1476): + if (i1478 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1464) + self.pretty_iceberg_property_entry(elem1477) self.dedent() self.write(")") def pretty_iceberg_property_entry(self, msg: tuple[str, str]): - flat1471 = self._try_flat(msg, self.pretty_iceberg_property_entry) - if flat1471 is not None: - assert flat1471 is not None - self.write(flat1471) + flat1484 = self._try_flat(msg, self.pretty_iceberg_property_entry) + if flat1484 is not None: + assert flat1484 is not None + self.write(flat1484) return None else: _dollar_dollar = msg - fields1467 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields1467 is not None - unwrapped_fields1468 = fields1467 + fields1480 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields1480 is not None + unwrapped_fields1481 = fields1480 self.write("(prop") self.indent_sexp() self.newline() - field1469 = unwrapped_fields1468[0] - self.write(self.format_string_value(field1469)) + field1482 = unwrapped_fields1481[0] + self.write(self.format_string_value(field1482)) self.newline() - field1470 = unwrapped_fields1468[1] - self.write(self.format_string_value(field1470)) + field1483 = unwrapped_fields1481[1] + self.write(self.format_string_value(field1483)) self.dedent() self.write(")") def pretty_iceberg_auth_properties(self, msg: Sequence[tuple[str, str]]): - flat1475 = self._try_flat(msg, self.pretty_iceberg_auth_properties) - if flat1475 is not None: - assert flat1475 is not None - self.write(flat1475) + flat1488 = self._try_flat(msg, self.pretty_iceberg_auth_properties) + if flat1488 is not None: + assert flat1488 is not None + self.write(flat1488) return None else: - fields1472 = msg + fields1485 = msg self.write("(auth_properties") self.indent_sexp() - if not len(fields1472) == 0: + if not len(fields1485) == 0: self.newline() - for i1474, elem1473 in enumerate(fields1472): - if (i1474 > 0): + for i1487, elem1486 in enumerate(fields1485): + if (i1487 > 0): self.newline() - self.pretty_iceberg_masked_property_entry(elem1473) + self.pretty_iceberg_masked_property_entry(elem1486) self.dedent() self.write(")") def pretty_iceberg_masked_property_entry(self, msg: tuple[str, str]): - flat1480 = self._try_flat(msg, self.pretty_iceberg_masked_property_entry) - if flat1480 is not None: - assert flat1480 is not None - self.write(flat1480) + flat1493 = self._try_flat(msg, self.pretty_iceberg_masked_property_entry) + if flat1493 is not None: + assert flat1493 is not None + self.write(flat1493) return None else: _dollar_dollar = msg - _t1716 = self.mask_secret_value(_dollar_dollar) - fields1476 = (_dollar_dollar[0], _t1716,) - assert fields1476 is not None - unwrapped_fields1477 = fields1476 + _t1738 = self.mask_secret_value(_dollar_dollar) + fields1489 = (_dollar_dollar[0], _t1738,) + assert fields1489 is not None + unwrapped_fields1490 = fields1489 self.write("(prop") self.indent_sexp() self.newline() - field1478 = unwrapped_fields1477[0] - self.write(self.format_string_value(field1478)) + field1491 = unwrapped_fields1490[0] + self.write(self.format_string_value(field1491)) self.newline() - field1479 = unwrapped_fields1477[1] - self.write(self.format_string_value(field1479)) + field1492 = unwrapped_fields1490[1] + self.write(self.format_string_value(field1492)) + self.dedent() + self.write(")") + + def pretty_full_table(self, msg: logic_pb2.IcebergTarget): + flat1500 = self._try_flat(msg, self.pretty_full_table) + if flat1500 is not None: + assert flat1500 is not None + self.write(flat1500) + return None + else: + _dollar_dollar = msg + fields1494 = (_dollar_dollar.target_id, _dollar_dollar.types,) + assert fields1494 is not None + unwrapped_fields1495 = fields1494 + self.write("(full_table") + self.indent_sexp() + self.newline() + field1496 = unwrapped_fields1495[0] + self.pretty_relation_id(field1496) + self.newline() + self.write("[") + field1497 = unwrapped_fields1495[1] + for i1499, elem1498 in enumerate(field1497): + if (i1499 > 0): + self.newline() + self.pretty_type(elem1498) + self.write("]") self.dedent() self.write(")") def pretty_iceberg_from_snapshot(self, msg: str): - flat1482 = self._try_flat(msg, self.pretty_iceberg_from_snapshot) - if flat1482 is not None: - assert flat1482 is not None - self.write(flat1482) + flat1502 = self._try_flat(msg, self.pretty_iceberg_from_snapshot) + if flat1502 is not None: + assert flat1502 is not None + self.write(flat1502) return None else: - fields1481 = msg + fields1501 = msg self.write("(from_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1481)) + self.write(self.format_string_value(fields1501)) self.dedent() self.write(")") def pretty_iceberg_to_snapshot(self, msg: str): - flat1484 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) - if flat1484 is not None: - assert flat1484 is not None - self.write(flat1484) + flat1504 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) + if flat1504 is not None: + assert flat1504 is not None + self.write(flat1504) return None else: - fields1483 = msg + fields1503 = msg self.write("(to_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1483)) + self.write(self.format_string_value(fields1503)) self.dedent() self.write(")") def pretty_undefine(self, msg: transactions_pb2.Undefine): - flat1487 = self._try_flat(msg, self.pretty_undefine) - if flat1487 is not None: - assert flat1487 is not None - self.write(flat1487) + flat1507 = self._try_flat(msg, self.pretty_undefine) + if flat1507 is not None: + assert flat1507 is not None + self.write(flat1507) return None else: _dollar_dollar = msg - fields1485 = _dollar_dollar.fragment_id - assert fields1485 is not None - unwrapped_fields1486 = fields1485 + fields1505 = _dollar_dollar.fragment_id + assert fields1505 is not None + unwrapped_fields1506 = fields1505 self.write("(undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1486) + self.pretty_fragment_id(unwrapped_fields1506) self.dedent() self.write(")") def pretty_context(self, msg: transactions_pb2.Context): - flat1492 = self._try_flat(msg, self.pretty_context) - if flat1492 is not None: - assert flat1492 is not None - self.write(flat1492) + flat1512 = self._try_flat(msg, self.pretty_context) + if flat1512 is not None: + assert flat1512 is not None + self.write(flat1512) return None else: _dollar_dollar = msg - fields1488 = _dollar_dollar.relations - assert fields1488 is not None - unwrapped_fields1489 = fields1488 + fields1508 = _dollar_dollar.relations + assert fields1508 is not None + unwrapped_fields1509 = fields1508 self.write("(context") self.indent_sexp() - if not len(unwrapped_fields1489) == 0: + if not len(unwrapped_fields1509) == 0: self.newline() - for i1491, elem1490 in enumerate(unwrapped_fields1489): - if (i1491 > 0): + for i1511, elem1510 in enumerate(unwrapped_fields1509): + if (i1511 > 0): self.newline() - self.pretty_relation_id(elem1490) + self.pretty_relation_id(elem1510) self.dedent() self.write(")") def pretty_snapshot(self, msg: transactions_pb2.Snapshot): - flat1499 = self._try_flat(msg, self.pretty_snapshot) - if flat1499 is not None: - assert flat1499 is not None - self.write(flat1499) + flat1519 = self._try_flat(msg, self.pretty_snapshot) + if flat1519 is not None: + assert flat1519 is not None + self.write(flat1519) return None else: _dollar_dollar = msg - fields1493 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - assert fields1493 is not None - unwrapped_fields1494 = fields1493 + fields1513 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + assert fields1513 is not None + unwrapped_fields1514 = fields1513 self.write("(snapshot") self.indent_sexp() self.newline() - field1495 = unwrapped_fields1494[0] - self.pretty_edb_path(field1495) - field1496 = unwrapped_fields1494[1] - if not len(field1496) == 0: + field1515 = unwrapped_fields1514[0] + self.pretty_edb_path(field1515) + field1516 = unwrapped_fields1514[1] + if not len(field1516) == 0: self.newline() - for i1498, elem1497 in enumerate(field1496): - if (i1498 > 0): + for i1518, elem1517 in enumerate(field1516): + if (i1518 > 0): self.newline() - self.pretty_snapshot_mapping(elem1497) + self.pretty_snapshot_mapping(elem1517) self.dedent() self.write(")") def pretty_snapshot_mapping(self, msg: transactions_pb2.SnapshotMapping): - flat1504 = self._try_flat(msg, self.pretty_snapshot_mapping) - if flat1504 is not None: - assert flat1504 is not None - self.write(flat1504) + flat1524 = self._try_flat(msg, self.pretty_snapshot_mapping) + if flat1524 is not None: + assert flat1524 is not None + self.write(flat1524) return None else: _dollar_dollar = msg - fields1500 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - assert fields1500 is not None - unwrapped_fields1501 = fields1500 - field1502 = unwrapped_fields1501[0] - self.pretty_edb_path(field1502) + fields1520 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + assert fields1520 is not None + unwrapped_fields1521 = fields1520 + field1522 = unwrapped_fields1521[0] + self.pretty_edb_path(field1522) self.write(" ") - field1503 = unwrapped_fields1501[1] - self.pretty_relation_id(field1503) + field1523 = unwrapped_fields1521[1] + self.pretty_relation_id(field1523) def pretty_epoch_reads(self, msg: Sequence[transactions_pb2.Read]): - flat1508 = self._try_flat(msg, self.pretty_epoch_reads) - if flat1508 is not None: - assert flat1508 is not None - self.write(flat1508) + flat1528 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1528 is not None: + assert flat1528 is not None + self.write(flat1528) return None else: - fields1505 = msg + fields1525 = msg self.write("(reads") self.indent_sexp() - if not len(fields1505) == 0: + if not len(fields1525) == 0: self.newline() - for i1507, elem1506 in enumerate(fields1505): - if (i1507 > 0): + for i1527, elem1526 in enumerate(fields1525): + if (i1527 > 0): self.newline() - self.pretty_read(elem1506) + self.pretty_read(elem1526) self.dedent() self.write(")") def pretty_read(self, msg: transactions_pb2.Read): - flat1519 = self._try_flat(msg, self.pretty_read) - if flat1519 is not None: - assert flat1519 is not None - self.write(flat1519) + flat1539 = self._try_flat(msg, self.pretty_read) + if flat1539 is not None: + assert flat1539 is not None + self.write(flat1539) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("demand"): - _t1717 = _dollar_dollar.demand + _t1739 = _dollar_dollar.demand else: - _t1717 = None - deconstruct_result1517 = _t1717 - if deconstruct_result1517 is not None: - assert deconstruct_result1517 is not None - unwrapped1518 = deconstruct_result1517 - self.pretty_demand(unwrapped1518) + _t1739 = None + deconstruct_result1537 = _t1739 + if deconstruct_result1537 is not None: + assert deconstruct_result1537 is not None + unwrapped1538 = deconstruct_result1537 + self.pretty_demand(unwrapped1538) else: _dollar_dollar = msg if _dollar_dollar.HasField("output"): - _t1718 = _dollar_dollar.output + _t1740 = _dollar_dollar.output else: - _t1718 = None - deconstruct_result1515 = _t1718 - if deconstruct_result1515 is not None: - assert deconstruct_result1515 is not None - unwrapped1516 = deconstruct_result1515 - self.pretty_output(unwrapped1516) + _t1740 = None + deconstruct_result1535 = _t1740 + if deconstruct_result1535 is not None: + assert deconstruct_result1535 is not None + unwrapped1536 = deconstruct_result1535 + self.pretty_output(unwrapped1536) else: _dollar_dollar = msg if _dollar_dollar.HasField("what_if"): - _t1719 = _dollar_dollar.what_if + _t1741 = _dollar_dollar.what_if else: - _t1719 = None - deconstruct_result1513 = _t1719 - if deconstruct_result1513 is not None: - assert deconstruct_result1513 is not None - unwrapped1514 = deconstruct_result1513 - self.pretty_what_if(unwrapped1514) + _t1741 = None + deconstruct_result1533 = _t1741 + if deconstruct_result1533 is not None: + assert deconstruct_result1533 is not None + unwrapped1534 = deconstruct_result1533 + self.pretty_what_if(unwrapped1534) else: _dollar_dollar = msg if _dollar_dollar.HasField("abort"): - _t1720 = _dollar_dollar.abort + _t1742 = _dollar_dollar.abort else: - _t1720 = None - deconstruct_result1511 = _t1720 - if deconstruct_result1511 is not None: - assert deconstruct_result1511 is not None - unwrapped1512 = deconstruct_result1511 - self.pretty_abort(unwrapped1512) + _t1742 = None + deconstruct_result1531 = _t1742 + if deconstruct_result1531 is not None: + assert deconstruct_result1531 is not None + unwrapped1532 = deconstruct_result1531 + self.pretty_abort(unwrapped1532) else: _dollar_dollar = msg if _dollar_dollar.HasField("export"): - _t1721 = _dollar_dollar.export + _t1743 = _dollar_dollar.export else: - _t1721 = None - deconstruct_result1509 = _t1721 - if deconstruct_result1509 is not None: - assert deconstruct_result1509 is not None - unwrapped1510 = deconstruct_result1509 - self.pretty_export(unwrapped1510) + _t1743 = None + deconstruct_result1529 = _t1743 + if deconstruct_result1529 is not None: + assert deconstruct_result1529 is not None + unwrapped1530 = deconstruct_result1529 + self.pretty_export(unwrapped1530) else: raise ParseError("No matching rule for read") def pretty_demand(self, msg: transactions_pb2.Demand): - flat1522 = self._try_flat(msg, self.pretty_demand) - if flat1522 is not None: - assert flat1522 is not None - self.write(flat1522) + flat1542 = self._try_flat(msg, self.pretty_demand) + if flat1542 is not None: + assert flat1542 is not None + self.write(flat1542) return None else: _dollar_dollar = msg - fields1520 = _dollar_dollar.relation_id - assert fields1520 is not None - unwrapped_fields1521 = fields1520 + fields1540 = _dollar_dollar.relation_id + assert fields1540 is not None + unwrapped_fields1541 = fields1540 self.write("(demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1521) + self.pretty_relation_id(unwrapped_fields1541) self.dedent() self.write(")") def pretty_output(self, msg: transactions_pb2.Output): - flat1527 = self._try_flat(msg, self.pretty_output) - if flat1527 is not None: - assert flat1527 is not None - self.write(flat1527) + flat1547 = self._try_flat(msg, self.pretty_output) + if flat1547 is not None: + assert flat1547 is not None + self.write(flat1547) return None else: _dollar_dollar = msg - fields1523 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - assert fields1523 is not None - unwrapped_fields1524 = fields1523 + fields1543 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + assert fields1543 is not None + unwrapped_fields1544 = fields1543 self.write("(output") self.indent_sexp() self.newline() - field1525 = unwrapped_fields1524[0] - self.pretty_name(field1525) + field1545 = unwrapped_fields1544[0] + self.pretty_name(field1545) self.newline() - field1526 = unwrapped_fields1524[1] - self.pretty_relation_id(field1526) + field1546 = unwrapped_fields1544[1] + self.pretty_relation_id(field1546) self.dedent() self.write(")") def pretty_what_if(self, msg: transactions_pb2.WhatIf): - flat1532 = self._try_flat(msg, self.pretty_what_if) - if flat1532 is not None: - assert flat1532 is not None - self.write(flat1532) + flat1552 = self._try_flat(msg, self.pretty_what_if) + if flat1552 is not None: + assert flat1552 is not None + self.write(flat1552) return None else: _dollar_dollar = msg - fields1528 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - assert fields1528 is not None - unwrapped_fields1529 = fields1528 + fields1548 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + assert fields1548 is not None + unwrapped_fields1549 = fields1548 self.write("(what_if") self.indent_sexp() self.newline() - field1530 = unwrapped_fields1529[0] - self.pretty_name(field1530) + field1550 = unwrapped_fields1549[0] + self.pretty_name(field1550) self.newline() - field1531 = unwrapped_fields1529[1] - self.pretty_epoch(field1531) + field1551 = unwrapped_fields1549[1] + self.pretty_epoch(field1551) self.dedent() self.write(")") def pretty_abort(self, msg: transactions_pb2.Abort): - flat1538 = self._try_flat(msg, self.pretty_abort) - if flat1538 is not None: - assert flat1538 is not None - self.write(flat1538) + flat1558 = self._try_flat(msg, self.pretty_abort) + if flat1558 is not None: + assert flat1558 is not None + self.write(flat1558) return None else: _dollar_dollar = msg if _dollar_dollar.name != "abort": - _t1722 = _dollar_dollar.name + _t1744 = _dollar_dollar.name else: - _t1722 = None - fields1533 = (_t1722, _dollar_dollar.relation_id,) - assert fields1533 is not None - unwrapped_fields1534 = fields1533 + _t1744 = None + fields1553 = (_t1744, _dollar_dollar.relation_id,) + assert fields1553 is not None + unwrapped_fields1554 = fields1553 self.write("(abort") self.indent_sexp() - field1535 = unwrapped_fields1534[0] - if field1535 is not None: + field1555 = unwrapped_fields1554[0] + if field1555 is not None: self.newline() - assert field1535 is not None - opt_val1536 = field1535 - self.pretty_name(opt_val1536) + assert field1555 is not None + opt_val1556 = field1555 + self.pretty_name(opt_val1556) self.newline() - field1537 = unwrapped_fields1534[1] - self.pretty_relation_id(field1537) + field1557 = unwrapped_fields1554[1] + self.pretty_relation_id(field1557) self.dedent() self.write(")") def pretty_export(self, msg: transactions_pb2.Export): - flat1543 = self._try_flat(msg, self.pretty_export) - if flat1543 is not None: - assert flat1543 is not None - self.write(flat1543) + flat1563 = self._try_flat(msg, self.pretty_export) + if flat1563 is not None: + assert flat1563 is not None + self.write(flat1563) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_config"): - _t1723 = _dollar_dollar.csv_config + _t1745 = _dollar_dollar.csv_config else: - _t1723 = None - deconstruct_result1541 = _t1723 - if deconstruct_result1541 is not None: - assert deconstruct_result1541 is not None - unwrapped1542 = deconstruct_result1541 + _t1745 = None + deconstruct_result1561 = _t1745 + if deconstruct_result1561 is not None: + assert deconstruct_result1561 is not None + unwrapped1562 = deconstruct_result1561 self.write("(export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped1542) + self.pretty_export_csv_config(unwrapped1562) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_config"): - _t1724 = _dollar_dollar.iceberg_config + _t1746 = _dollar_dollar.iceberg_config else: - _t1724 = None - deconstruct_result1539 = _t1724 - if deconstruct_result1539 is not None: - assert deconstruct_result1539 is not None - unwrapped1540 = deconstruct_result1539 + _t1746 = None + deconstruct_result1559 = _t1746 + if deconstruct_result1559 is not None: + assert deconstruct_result1559 is not None + unwrapped1560 = deconstruct_result1559 self.write("(export_iceberg") self.indent_sexp() self.newline() - self.pretty_export_iceberg_config(unwrapped1540) + self.pretty_export_iceberg_config(unwrapped1560) self.dedent() self.write(")") else: raise ParseError("No matching rule for export") def pretty_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig): - flat1554 = self._try_flat(msg, self.pretty_export_csv_config) - if flat1554 is not None: - assert flat1554 is not None - self.write(flat1554) + flat1574 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1574 is not None: + assert flat1574 is not None + self.write(flat1574) return None else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) == 0: - _t1725 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1747 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else: - _t1725 = None - deconstruct_result1549 = _t1725 - if deconstruct_result1549 is not None: - assert deconstruct_result1549 is not None - unwrapped1550 = deconstruct_result1549 + _t1747 = None + deconstruct_result1569 = _t1747 + if deconstruct_result1569 is not None: + assert deconstruct_result1569 is not None + unwrapped1570 = deconstruct_result1569 self.write("(export_csv_config_v2") self.indent_sexp() self.newline() - field1551 = unwrapped1550[0] - self.pretty_export_csv_path(field1551) + field1571 = unwrapped1570[0] + self.pretty_export_csv_path(field1571) self.newline() - field1552 = unwrapped1550[1] - self.pretty_export_csv_source(field1552) + field1572 = unwrapped1570[1] + self.pretty_export_csv_source(field1572) self.newline() - field1553 = unwrapped1550[2] - self.pretty_csv_config(field1553) + field1573 = unwrapped1570[2] + self.pretty_csv_config(field1573) self.dedent() self.write(")") else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) != 0: - _t1727 = self.deconstruct_export_csv_config(_dollar_dollar) - _t1726 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1727,) + _t1749 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1748 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1749,) else: - _t1726 = None - deconstruct_result1544 = _t1726 - if deconstruct_result1544 is not None: - assert deconstruct_result1544 is not None - unwrapped1545 = deconstruct_result1544 + _t1748 = None + deconstruct_result1564 = _t1748 + if deconstruct_result1564 is not None: + assert deconstruct_result1564 is not None + unwrapped1565 = deconstruct_result1564 self.write("(export_csv_config") self.indent_sexp() self.newline() - field1546 = unwrapped1545[0] - self.pretty_export_csv_path(field1546) + field1566 = unwrapped1565[0] + self.pretty_export_csv_path(field1566) self.newline() - field1547 = unwrapped1545[1] - self.pretty_export_csv_columns_list(field1547) + field1567 = unwrapped1565[1] + self.pretty_export_csv_columns_list(field1567) self.newline() - field1548 = unwrapped1545[2] - self.pretty_config_dict(field1548) + field1568 = unwrapped1565[2] + self.pretty_config_dict(field1568) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_config") def pretty_export_csv_path(self, msg: str): - flat1556 = self._try_flat(msg, self.pretty_export_csv_path) - if flat1556 is not None: - assert flat1556 is not None - self.write(flat1556) + flat1576 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1576 is not None: + assert flat1576 is not None + self.write(flat1576) return None else: - fields1555 = msg + fields1575 = msg self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1555)) + self.write(self.format_string_value(fields1575)) self.dedent() self.write(")") def pretty_export_csv_source(self, msg: transactions_pb2.ExportCSVSource): - flat1563 = self._try_flat(msg, self.pretty_export_csv_source) - if flat1563 is not None: - assert flat1563 is not None - self.write(flat1563) + flat1583 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1583 is not None: + assert flat1583 is not None + self.write(flat1583) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("gnf_columns"): - _t1728 = _dollar_dollar.gnf_columns.columns + _t1750 = _dollar_dollar.gnf_columns.columns else: - _t1728 = None - deconstruct_result1559 = _t1728 - if deconstruct_result1559 is not None: - assert deconstruct_result1559 is not None - unwrapped1560 = deconstruct_result1559 + _t1750 = None + deconstruct_result1579 = _t1750 + if deconstruct_result1579 is not None: + assert deconstruct_result1579 is not None + unwrapped1580 = deconstruct_result1579 self.write("(gnf_columns") self.indent_sexp() - if not len(unwrapped1560) == 0: + if not len(unwrapped1580) == 0: self.newline() - for i1562, elem1561 in enumerate(unwrapped1560): - if (i1562 > 0): + for i1582, elem1581 in enumerate(unwrapped1580): + if (i1582 > 0): self.newline() - self.pretty_export_csv_column(elem1561) + self.pretty_export_csv_column(elem1581) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("table_def"): - _t1729 = _dollar_dollar.table_def + _t1751 = _dollar_dollar.table_def else: - _t1729 = None - deconstruct_result1557 = _t1729 - if deconstruct_result1557 is not None: - assert deconstruct_result1557 is not None - unwrapped1558 = deconstruct_result1557 + _t1751 = None + deconstruct_result1577 = _t1751 + if deconstruct_result1577 is not None: + assert deconstruct_result1577 is not None + unwrapped1578 = deconstruct_result1577 self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped1558) + self.pretty_relation_id(unwrapped1578) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_source") def pretty_export_csv_column(self, msg: transactions_pb2.ExportCSVColumn): - flat1568 = self._try_flat(msg, self.pretty_export_csv_column) - if flat1568 is not None: - assert flat1568 is not None - self.write(flat1568) + flat1588 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1588 is not None: + assert flat1588 is not None + self.write(flat1588) return None else: _dollar_dollar = msg - fields1564 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - assert fields1564 is not None - unwrapped_fields1565 = fields1564 + fields1584 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + assert fields1584 is not None + unwrapped_fields1585 = fields1584 self.write("(column") self.indent_sexp() self.newline() - field1566 = unwrapped_fields1565[0] - self.write(self.format_string_value(field1566)) + field1586 = unwrapped_fields1585[0] + self.write(self.format_string_value(field1586)) self.newline() - field1567 = unwrapped_fields1565[1] - self.pretty_relation_id(field1567) + field1587 = unwrapped_fields1585[1] + self.pretty_relation_id(field1587) self.dedent() self.write(")") def pretty_export_csv_columns_list(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): - flat1572 = self._try_flat(msg, self.pretty_export_csv_columns_list) - if flat1572 is not None: - assert flat1572 is not None - self.write(flat1572) + flat1592 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1592 is not None: + assert flat1592 is not None + self.write(flat1592) return None else: - fields1569 = msg + fields1589 = msg self.write("(columns") self.indent_sexp() - if not len(fields1569) == 0: + if not len(fields1589) == 0: self.newline() - for i1571, elem1570 in enumerate(fields1569): - if (i1571 > 0): + for i1591, elem1590 in enumerate(fields1589): + if (i1591 > 0): self.newline() - self.pretty_export_csv_column(elem1570) + self.pretty_export_csv_column(elem1590) self.dedent() self.write(")") def pretty_export_iceberg_config(self, msg: transactions_pb2.ExportIcebergConfig): - flat1581 = self._try_flat(msg, self.pretty_export_iceberg_config) - if flat1581 is not None: - assert flat1581 is not None - self.write(flat1581) + flat1601 = self._try_flat(msg, self.pretty_export_iceberg_config) + if flat1601 is not None: + assert flat1601 is not None + self.write(flat1601) return None else: _dollar_dollar = msg - _t1730 = self.deconstruct_export_iceberg_config_optional(_dollar_dollar) - fields1573 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sorted(_dollar_dollar.table_properties.items()), _t1730,) - assert fields1573 is not None - unwrapped_fields1574 = fields1573 + _t1752 = self.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1593 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sorted(_dollar_dollar.table_properties.items()), _t1752,) + assert fields1593 is not None + unwrapped_fields1594 = fields1593 self.write("(export_iceberg_config") self.indent_sexp() self.newline() - field1575 = unwrapped_fields1574[0] - self.pretty_iceberg_locator(field1575) + field1595 = unwrapped_fields1594[0] + self.pretty_iceberg_locator(field1595) self.newline() - field1576 = unwrapped_fields1574[1] - self.pretty_iceberg_catalog_config(field1576) + field1596 = unwrapped_fields1594[1] + self.pretty_iceberg_catalog_config(field1596) self.newline() - field1577 = unwrapped_fields1574[2] - self.pretty_export_iceberg_table_def(field1577) + field1597 = unwrapped_fields1594[2] + self.pretty_export_iceberg_table_def(field1597) self.newline() - field1578 = unwrapped_fields1574[3] - self.pretty_iceberg_table_properties(field1578) - field1579 = unwrapped_fields1574[4] - if field1579 is not None: + field1598 = unwrapped_fields1594[3] + self.pretty_iceberg_table_properties(field1598) + field1599 = unwrapped_fields1594[4] + if field1599 is not None: self.newline() - assert field1579 is not None - opt_val1580 = field1579 - self.pretty_config_dict(opt_val1580) + assert field1599 is not None + opt_val1600 = field1599 + self.pretty_config_dict(opt_val1600) self.dedent() self.write(")") def pretty_export_iceberg_table_def(self, msg: logic_pb2.RelationId): - flat1583 = self._try_flat(msg, self.pretty_export_iceberg_table_def) - if flat1583 is not None: - assert flat1583 is not None - self.write(flat1583) + flat1603 = self._try_flat(msg, self.pretty_export_iceberg_table_def) + if flat1603 is not None: + assert flat1603 is not None + self.write(flat1603) return None else: - fields1582 = msg + fields1602 = msg self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(fields1582) + self.pretty_relation_id(fields1602) self.dedent() self.write(")") def pretty_iceberg_table_properties(self, msg: Sequence[tuple[str, str]]): - flat1587 = self._try_flat(msg, self.pretty_iceberg_table_properties) - if flat1587 is not None: - assert flat1587 is not None - self.write(flat1587) + flat1607 = self._try_flat(msg, self.pretty_iceberg_table_properties) + if flat1607 is not None: + assert flat1607 is not None + self.write(flat1607) return None else: - fields1584 = msg + fields1604 = msg self.write("(table_properties") self.indent_sexp() - if not len(fields1584) == 0: + if not len(fields1604) == 0: self.newline() - for i1586, elem1585 in enumerate(fields1584): - if (i1586 > 0): + for i1606, elem1605 in enumerate(fields1604): + if (i1606 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1585) + self.pretty_iceberg_property_entry(elem1605) self.dedent() self.write(")") @@ -4342,8 +4386,8 @@ def pretty_debug_info(self, msg: fragments_pb2.DebugInfo): for _idx, _rid in enumerate(msg.ids): self.newline() self.write("(") - _t1776 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) - self.pprint_dispatch(_t1776) + _t1798 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1798) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") @@ -4616,6 +4660,8 @@ def pprint_dispatch(self, msg): self.pretty_iceberg_locator(msg) elif isinstance(msg, logic_pb2.IcebergCatalogConfig): self.pretty_iceberg_catalog_config(msg) + elif isinstance(msg, logic_pb2.IcebergTarget): + self.pretty_full_table(msg) elif isinstance(msg, transactions_pb2.Undefine): self.pretty_undefine(msg) elif isinstance(msg, transactions_pb2.Context): diff --git a/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi b/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi index a0eba794..b4115517 100644 --- a/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi @@ -8,7 +8,7 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor class Fragment(_message.Message): - __slots__ = () + __slots__ = ("id", "declarations", "debug_info") ID_FIELD_NUMBER: _ClassVar[int] DECLARATIONS_FIELD_NUMBER: _ClassVar[int] DEBUG_INFO_FIELD_NUMBER: _ClassVar[int] @@ -18,7 +18,7 @@ class Fragment(_message.Message): def __init__(self, id: _Optional[_Union[FragmentId, _Mapping]] = ..., declarations: _Optional[_Iterable[_Union[_logic_pb2.Declaration, _Mapping]]] = ..., debug_info: _Optional[_Union[DebugInfo, _Mapping]] = ...) -> None: ... class DebugInfo(_message.Message): - __slots__ = () + __slots__ = ("ids", "orig_names") IDS_FIELD_NUMBER: _ClassVar[int] ORIG_NAMES_FIELD_NUMBER: _ClassVar[int] ids: _containers.RepeatedCompositeFieldContainer[_logic_pb2.RelationId] @@ -26,7 +26,7 @@ class DebugInfo(_message.Message): def __init__(self, ids: _Optional[_Iterable[_Union[_logic_pb2.RelationId, _Mapping]]] = ..., orig_names: _Optional[_Iterable[str]] = ...) -> None: ... class FragmentId(_message.Message): - __slots__ = () + __slots__ = ("id",) ID_FIELD_NUMBER: _ClassVar[int] id: bytes def __init__(self, id: _Optional[bytes] = ...) -> None: ... diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.py b/sdks/python/src/lqp/proto/v1/logic_pb2.py index f72fb042..8787ae84 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.py +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.py @@ -24,7 +24,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"\xab\x01\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"\xa3\x01\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\x93\x02\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svData\x12\x45\n\x0ciceberg_data\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.IcebergDataH\x00R\x0bicebergDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x8f\x03\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\x12*\n\x11partition_size_mb\x18\x0c \x01(\x03R\x0fpartitionSizeMb\"\xe0\x02\n\x0bIcebergData\x12=\n\x07locator\x18\x01 \x01(\x0b\x32#.relationalai.lqp.v1.IcebergLocatorR\x07locator\x12\x41\n\x06\x63onfig\x18\x02 \x01(\x0b\x32).relationalai.lqp.v1.IcebergCatalogConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12(\n\rfrom_snapshot\x18\x04 \x01(\tH\x00R\x0c\x66romSnapshot\x88\x01\x01\x12$\n\x0bto_snapshot\x18\x05 \x01(\tH\x01R\ntoSnapshot\x88\x01\x01\x12#\n\rreturns_delta\x18\x06 \x01(\x08R\x0creturnsDeltaB\x10\n\x0e_from_snapshotB\x0e\n\x0c_to_snapshot\"k\n\x0eIcebergLocator\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\tnamespace\x18\x02 \x03(\tR\tnamespace\x12\x1c\n\twarehouse\x18\x03 \x01(\tR\twarehouse\"\xa1\x03\n\x14IcebergCatalogConfig\x12\x1f\n\x0b\x63\x61talog_uri\x18\x01 \x01(\tR\ncatalogUri\x12\x19\n\x05scope\x18\x02 \x01(\tH\x00R\x05scope\x88\x01\x01\x12Y\n\nproperties\x18\x03 \x03(\x0b\x32\x39.relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntryR\nproperties\x12\x66\n\x0f\x61uth_properties\x18\x04 \x03(\x0b\x32=.relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntryR\x0e\x61uthProperties\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a\x41\n\x13\x41uthPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06_scope\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\xd5\x07\n\x04Type\x12Q\n\x10unspecified_type\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.UnspecifiedTypeH\x00R\x0funspecifiedType\x12\x42\n\x0bstring_type\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.StringTypeH\x00R\nstringType\x12\x39\n\x08int_type\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.IntTypeH\x00R\x07intType\x12?\n\nfloat_type\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.FloatTypeH\x00R\tfloatType\x12\x45\n\x0cuint128_type\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.UInt128TypeH\x00R\x0buint128Type\x12\x42\n\x0bint128_type\x18\x06 \x01(\x0b\x32\x1f.relationalai.lqp.v1.Int128TypeH\x00R\nint128Type\x12<\n\tdate_type\x18\x07 \x01(\x0b\x32\x1d.relationalai.lqp.v1.DateTypeH\x00R\x08\x64\x61teType\x12H\n\rdatetime_type\x18\x08 \x01(\x0b\x32!.relationalai.lqp.v1.DateTimeTypeH\x00R\x0c\x64\x61tetimeType\x12\x45\n\x0cmissing_type\x18\t \x01(\x0b\x32 .relationalai.lqp.v1.MissingTypeH\x00R\x0bmissingType\x12\x45\n\x0c\x64\x65\x63imal_type\x18\n \x01(\x0b\x32 .relationalai.lqp.v1.DecimalTypeH\x00R\x0b\x64\x65\x63imalType\x12\x45\n\x0c\x62oolean_type\x18\x0b \x01(\x0b\x32 .relationalai.lqp.v1.BooleanTypeH\x00R\x0b\x62ooleanType\x12?\n\nint32_type\x18\x0c \x01(\x0b\x32\x1e.relationalai.lqp.v1.Int32TypeH\x00R\tint32Type\x12\x45\n\x0c\x66loat32_type\x18\r \x01(\x0b\x32 .relationalai.lqp.v1.Float32TypeH\x00R\x0b\x66loat32Type\x12\x42\n\x0buint32_type\x18\x0e \x01(\x0b\x32\x1f.relationalai.lqp.v1.UInt32TypeH\x00R\nuint32TypeB\x06\n\x04type\"\x11\n\x0fUnspecifiedType\"\x0c\n\nStringType\"\t\n\x07IntType\"\x0b\n\tFloatType\"\r\n\x0bUInt128Type\"\x0c\n\nInt128Type\"\n\n\x08\x44\x61teType\"\x0e\n\x0c\x44\x61teTimeType\"\r\n\x0bMissingType\"A\n\x0b\x44\x65\x63imalType\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\"\r\n\x0b\x42ooleanType\"\x0b\n\tInt32Type\"\r\n\x0b\x46loat32Type\"\x0c\n\nUInt32Type\"\xc0\x05\n\x05Value\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x03H\x00R\x08intValue\x12!\n\x0b\x66loat_value\x18\x03 \x01(\x01H\x00R\nfloatValue\x12H\n\ruint128_value\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\x0cuint128Value\x12\x45\n\x0cint128_value\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueH\x00R\x0bint128Value\x12H\n\rmissing_value\x18\x06 \x01(\x0b\x32!.relationalai.lqp.v1.MissingValueH\x00R\x0cmissingValue\x12?\n\ndate_value\x18\x07 \x01(\x0b\x32\x1e.relationalai.lqp.v1.DateValueH\x00R\tdateValue\x12K\n\x0e\x64\x61tetime_value\x18\x08 \x01(\x0b\x32\".relationalai.lqp.v1.DateTimeValueH\x00R\rdatetimeValue\x12H\n\rdecimal_value\x18\t \x01(\x0b\x32!.relationalai.lqp.v1.DecimalValueH\x00R\x0c\x64\x65\x63imalValue\x12%\n\rboolean_value\x18\n \x01(\x08H\x00R\x0c\x62ooleanValue\x12!\n\x0bint32_value\x18\x0b \x01(\x05H\x00R\nint32Value\x12%\n\rfloat32_value\x18\x0c \x01(\x02H\x00R\x0c\x66loat32Value\x12#\n\x0cuint32_value\x18\r \x01(\rH\x00R\x0buint32ValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"\xab\x01\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"\xa3\x01\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\x93\x02\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svData\x12\x45\n\x0ciceberg_data\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.IcebergDataH\x00R\x0bicebergDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x8f\x03\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\x12*\n\x11partition_size_mb\x18\x0c \x01(\x03R\x0fpartitionSizeMb\"~\n\rIcebergTarget\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12/\n\x05types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\xac\x03\n\x0bIcebergData\x12=\n\x07locator\x18\x01 \x01(\x0b\x32#.relationalai.lqp.v1.IcebergLocatorR\x07locator\x12\x41\n\x06\x63onfig\x18\x02 \x01(\x0b\x32).relationalai.lqp.v1.IcebergCatalogConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12(\n\rfrom_snapshot\x18\x04 \x01(\tH\x00R\x0c\x66romSnapshot\x88\x01\x01\x12$\n\x0bto_snapshot\x18\x05 \x01(\tH\x01R\ntoSnapshot\x88\x01\x01\x12#\n\rreturns_delta\x18\x06 \x01(\x08R\x0creturnsDelta\x12?\n\x06target\x18\x07 \x01(\x0b\x32\".relationalai.lqp.v1.IcebergTargetH\x02R\x06target\x88\x01\x01\x42\x10\n\x0e_from_snapshotB\x0e\n\x0c_to_snapshotB\t\n\x07_target\"k\n\x0eIcebergLocator\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\tnamespace\x18\x02 \x03(\tR\tnamespace\x12\x1c\n\twarehouse\x18\x03 \x01(\tR\twarehouse\"\xa1\x03\n\x14IcebergCatalogConfig\x12\x1f\n\x0b\x63\x61talog_uri\x18\x01 \x01(\tR\ncatalogUri\x12\x19\n\x05scope\x18\x02 \x01(\tH\x00R\x05scope\x88\x01\x01\x12Y\n\nproperties\x18\x03 \x03(\x0b\x32\x39.relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntryR\nproperties\x12\x66\n\x0f\x61uth_properties\x18\x04 \x03(\x0b\x32=.relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntryR\x0e\x61uthProperties\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a\x41\n\x13\x41uthPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06_scope\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\xd5\x07\n\x04Type\x12Q\n\x10unspecified_type\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.UnspecifiedTypeH\x00R\x0funspecifiedType\x12\x42\n\x0bstring_type\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.StringTypeH\x00R\nstringType\x12\x39\n\x08int_type\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.IntTypeH\x00R\x07intType\x12?\n\nfloat_type\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.FloatTypeH\x00R\tfloatType\x12\x45\n\x0cuint128_type\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.UInt128TypeH\x00R\x0buint128Type\x12\x42\n\x0bint128_type\x18\x06 \x01(\x0b\x32\x1f.relationalai.lqp.v1.Int128TypeH\x00R\nint128Type\x12<\n\tdate_type\x18\x07 \x01(\x0b\x32\x1d.relationalai.lqp.v1.DateTypeH\x00R\x08\x64\x61teType\x12H\n\rdatetime_type\x18\x08 \x01(\x0b\x32!.relationalai.lqp.v1.DateTimeTypeH\x00R\x0c\x64\x61tetimeType\x12\x45\n\x0cmissing_type\x18\t \x01(\x0b\x32 .relationalai.lqp.v1.MissingTypeH\x00R\x0bmissingType\x12\x45\n\x0c\x64\x65\x63imal_type\x18\n \x01(\x0b\x32 .relationalai.lqp.v1.DecimalTypeH\x00R\x0b\x64\x65\x63imalType\x12\x45\n\x0c\x62oolean_type\x18\x0b \x01(\x0b\x32 .relationalai.lqp.v1.BooleanTypeH\x00R\x0b\x62ooleanType\x12?\n\nint32_type\x18\x0c \x01(\x0b\x32\x1e.relationalai.lqp.v1.Int32TypeH\x00R\tint32Type\x12\x45\n\x0c\x66loat32_type\x18\r \x01(\x0b\x32 .relationalai.lqp.v1.Float32TypeH\x00R\x0b\x66loat32Type\x12\x42\n\x0buint32_type\x18\x0e \x01(\x0b\x32\x1f.relationalai.lqp.v1.UInt32TypeH\x00R\nuint32TypeB\x06\n\x04type\"\x11\n\x0fUnspecifiedType\"\x0c\n\nStringType\"\t\n\x07IntType\"\x0b\n\tFloatType\"\r\n\x0bUInt128Type\"\x0c\n\nInt128Type\"\n\n\x08\x44\x61teType\"\x0e\n\x0c\x44\x61teTimeType\"\r\n\x0bMissingType\"A\n\x0b\x44\x65\x63imalType\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\"\r\n\x0b\x42ooleanType\"\x0b\n\tInt32Type\"\r\n\x0b\x46loat32Type\"\x0c\n\nUInt32Type\"\xc0\x05\n\x05Value\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x03H\x00R\x08intValue\x12!\n\x0b\x66loat_value\x18\x03 \x01(\x01H\x00R\nfloatValue\x12H\n\ruint128_value\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\x0cuint128Value\x12\x45\n\x0cint128_value\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueH\x00R\x0bint128Value\x12H\n\rmissing_value\x18\x06 \x01(\x0b\x32!.relationalai.lqp.v1.MissingValueH\x00R\x0cmissingValue\x12?\n\ndate_value\x18\x07 \x01(\x0b\x32\x1e.relationalai.lqp.v1.DateValueH\x00R\tdateValue\x12K\n\x0e\x64\x61tetime_value\x18\x08 \x01(\x0b\x32\".relationalai.lqp.v1.DateTimeValueH\x00R\rdatetimeValue\x12H\n\rdecimal_value\x18\t \x01(\x0b\x32!.relationalai.lqp.v1.DecimalValueH\x00R\x0c\x64\x65\x63imalValue\x12%\n\rboolean_value\x18\n \x01(\x08H\x00R\x0c\x62ooleanValue\x12!\n\x0bint32_value\x18\x0b \x01(\x05H\x00R\nint32Value\x12%\n\rfloat32_value\x18\x0c \x01(\x02H\x00R\x0c\x66loat32Value\x12#\n\x0cuint32_value\x18\r \x01(\rH\x00R\x0buint32ValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -128,62 +128,64 @@ _globals['_CSVLOCATOR']._serialized_end=6995 _globals['_CSVCONFIG']._serialized_start=6998 _globals['_CSVCONFIG']._serialized_end=7397 - _globals['_ICEBERGDATA']._serialized_start=7400 - _globals['_ICEBERGDATA']._serialized_end=7752 - _globals['_ICEBERGLOCATOR']._serialized_start=7754 - _globals['_ICEBERGLOCATOR']._serialized_end=7861 - _globals['_ICEBERGCATALOGCONFIG']._serialized_start=7864 - _globals['_ICEBERGCATALOGCONFIG']._serialized_end=8281 - _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_start=8143 - _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_end=8204 - _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_start=8206 - _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_end=8271 - _globals['_GNFCOLUMN']._serialized_start=8284 - _globals['_GNFCOLUMN']._serialized_end=8458 - _globals['_RELATIONID']._serialized_start=8460 - _globals['_RELATIONID']._serialized_end=8520 - _globals['_TYPE']._serialized_start=8523 - _globals['_TYPE']._serialized_end=9504 - _globals['_UNSPECIFIEDTYPE']._serialized_start=9506 - _globals['_UNSPECIFIEDTYPE']._serialized_end=9523 - _globals['_STRINGTYPE']._serialized_start=9525 - _globals['_STRINGTYPE']._serialized_end=9537 - _globals['_INTTYPE']._serialized_start=9539 - _globals['_INTTYPE']._serialized_end=9548 - _globals['_FLOATTYPE']._serialized_start=9550 - _globals['_FLOATTYPE']._serialized_end=9561 - _globals['_UINT128TYPE']._serialized_start=9563 - _globals['_UINT128TYPE']._serialized_end=9576 - _globals['_INT128TYPE']._serialized_start=9578 - _globals['_INT128TYPE']._serialized_end=9590 - _globals['_DATETYPE']._serialized_start=9592 - _globals['_DATETYPE']._serialized_end=9602 - _globals['_DATETIMETYPE']._serialized_start=9604 - _globals['_DATETIMETYPE']._serialized_end=9618 - _globals['_MISSINGTYPE']._serialized_start=9620 - _globals['_MISSINGTYPE']._serialized_end=9633 - _globals['_DECIMALTYPE']._serialized_start=9635 - _globals['_DECIMALTYPE']._serialized_end=9700 - _globals['_BOOLEANTYPE']._serialized_start=9702 - _globals['_BOOLEANTYPE']._serialized_end=9715 - _globals['_INT32TYPE']._serialized_start=9717 - _globals['_INT32TYPE']._serialized_end=9728 - _globals['_FLOAT32TYPE']._serialized_start=9730 - _globals['_FLOAT32TYPE']._serialized_end=9743 - _globals['_UINT32TYPE']._serialized_start=9745 - _globals['_UINT32TYPE']._serialized_end=9757 - _globals['_VALUE']._serialized_start=9760 - _globals['_VALUE']._serialized_end=10464 - _globals['_UINT128VALUE']._serialized_start=10466 - _globals['_UINT128VALUE']._serialized_end=10518 - _globals['_INT128VALUE']._serialized_start=10520 - _globals['_INT128VALUE']._serialized_end=10571 - _globals['_MISSINGVALUE']._serialized_start=10573 - _globals['_MISSINGVALUE']._serialized_end=10587 - _globals['_DATEVALUE']._serialized_start=10589 - _globals['_DATEVALUE']._serialized_end=10660 - _globals['_DATETIMEVALUE']._serialized_start=10663 - _globals['_DATETIMEVALUE']._serialized_end=10840 - _globals['_DECIMALVALUE']._serialized_start=10842 - _globals['_DECIMALVALUE']._serialized_end=10964 + _globals['_ICEBERGTARGET']._serialized_start=7399 + _globals['_ICEBERGTARGET']._serialized_end=7525 + _globals['_ICEBERGDATA']._serialized_start=7528 + _globals['_ICEBERGDATA']._serialized_end=7956 + _globals['_ICEBERGLOCATOR']._serialized_start=7958 + _globals['_ICEBERGLOCATOR']._serialized_end=8065 + _globals['_ICEBERGCATALOGCONFIG']._serialized_start=8068 + _globals['_ICEBERGCATALOGCONFIG']._serialized_end=8485 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_start=8347 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_end=8408 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_start=8410 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_end=8475 + _globals['_GNFCOLUMN']._serialized_start=8488 + _globals['_GNFCOLUMN']._serialized_end=8662 + _globals['_RELATIONID']._serialized_start=8664 + _globals['_RELATIONID']._serialized_end=8724 + _globals['_TYPE']._serialized_start=8727 + _globals['_TYPE']._serialized_end=9708 + _globals['_UNSPECIFIEDTYPE']._serialized_start=9710 + _globals['_UNSPECIFIEDTYPE']._serialized_end=9727 + _globals['_STRINGTYPE']._serialized_start=9729 + _globals['_STRINGTYPE']._serialized_end=9741 + _globals['_INTTYPE']._serialized_start=9743 + _globals['_INTTYPE']._serialized_end=9752 + _globals['_FLOATTYPE']._serialized_start=9754 + _globals['_FLOATTYPE']._serialized_end=9765 + _globals['_UINT128TYPE']._serialized_start=9767 + _globals['_UINT128TYPE']._serialized_end=9780 + _globals['_INT128TYPE']._serialized_start=9782 + _globals['_INT128TYPE']._serialized_end=9794 + _globals['_DATETYPE']._serialized_start=9796 + _globals['_DATETYPE']._serialized_end=9806 + _globals['_DATETIMETYPE']._serialized_start=9808 + _globals['_DATETIMETYPE']._serialized_end=9822 + _globals['_MISSINGTYPE']._serialized_start=9824 + _globals['_MISSINGTYPE']._serialized_end=9837 + _globals['_DECIMALTYPE']._serialized_start=9839 + _globals['_DECIMALTYPE']._serialized_end=9904 + _globals['_BOOLEANTYPE']._serialized_start=9906 + _globals['_BOOLEANTYPE']._serialized_end=9919 + _globals['_INT32TYPE']._serialized_start=9921 + _globals['_INT32TYPE']._serialized_end=9932 + _globals['_FLOAT32TYPE']._serialized_start=9934 + _globals['_FLOAT32TYPE']._serialized_end=9947 + _globals['_UINT32TYPE']._serialized_start=9949 + _globals['_UINT32TYPE']._serialized_end=9961 + _globals['_VALUE']._serialized_start=9964 + _globals['_VALUE']._serialized_end=10668 + _globals['_UINT128VALUE']._serialized_start=10670 + _globals['_UINT128VALUE']._serialized_end=10722 + _globals['_INT128VALUE']._serialized_start=10724 + _globals['_INT128VALUE']._serialized_end=10775 + _globals['_MISSINGVALUE']._serialized_start=10777 + _globals['_MISSINGVALUE']._serialized_end=10791 + _globals['_DATEVALUE']._serialized_start=10793 + _globals['_DATEVALUE']._serialized_end=10864 + _globals['_DATETIMEVALUE']._serialized_start=10867 + _globals['_DATETIMEVALUE']._serialized_end=11044 + _globals['_DECIMALVALUE']._serialized_start=11046 + _globals['_DECIMALVALUE']._serialized_end=11168 # @@protoc_insertion_point(module_scope) diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi index 3f33e07d..2840cbae 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi @@ -7,7 +7,7 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor class Declaration(_message.Message): - __slots__ = () + __slots__ = ("algorithm", "constraint", "data") DEF_FIELD_NUMBER: _ClassVar[int] ALGORITHM_FIELD_NUMBER: _ClassVar[int] CONSTRAINT_FIELD_NUMBER: _ClassVar[int] @@ -18,7 +18,7 @@ class Declaration(_message.Message): def __init__(self, algorithm: _Optional[_Union[Algorithm, _Mapping]] = ..., constraint: _Optional[_Union[Constraint, _Mapping]] = ..., data: _Optional[_Union[Data, _Mapping]] = ..., **kwargs) -> None: ... class Def(_message.Message): - __slots__ = () + __slots__ = ("name", "body", "attrs") NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -28,7 +28,7 @@ class Def(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ...) -> None: ... class Constraint(_message.Message): - __slots__ = () + __slots__ = ("name", "functional_dependency") NAME_FIELD_NUMBER: _ClassVar[int] FUNCTIONAL_DEPENDENCY_FIELD_NUMBER: _ClassVar[int] name: RelationId @@ -36,7 +36,7 @@ class Constraint(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., functional_dependency: _Optional[_Union[FunctionalDependency, _Mapping]] = ...) -> None: ... class FunctionalDependency(_message.Message): - __slots__ = () + __slots__ = ("guard", "keys", "values") GUARD_FIELD_NUMBER: _ClassVar[int] KEYS_FIELD_NUMBER: _ClassVar[int] VALUES_FIELD_NUMBER: _ClassVar[int] @@ -46,7 +46,7 @@ class FunctionalDependency(_message.Message): def __init__(self, guard: _Optional[_Union[Abstraction, _Mapping]] = ..., keys: _Optional[_Iterable[_Union[Var, _Mapping]]] = ..., values: _Optional[_Iterable[_Union[Var, _Mapping]]] = ...) -> None: ... class Algorithm(_message.Message): - __slots__ = () + __slots__ = ("body", "attrs") GLOBAL_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -55,13 +55,13 @@ class Algorithm(_message.Message): def __init__(self, body: _Optional[_Union[Script, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ..., **kwargs) -> None: ... class Script(_message.Message): - __slots__ = () + __slots__ = ("constructs",) CONSTRUCTS_FIELD_NUMBER: _ClassVar[int] constructs: _containers.RepeatedCompositeFieldContainer[Construct] def __init__(self, constructs: _Optional[_Iterable[_Union[Construct, _Mapping]]] = ...) -> None: ... class Construct(_message.Message): - __slots__ = () + __slots__ = ("loop", "instruction") LOOP_FIELD_NUMBER: _ClassVar[int] INSTRUCTION_FIELD_NUMBER: _ClassVar[int] loop: Loop @@ -69,7 +69,7 @@ class Construct(_message.Message): def __init__(self, loop: _Optional[_Union[Loop, _Mapping]] = ..., instruction: _Optional[_Union[Instruction, _Mapping]] = ...) -> None: ... class Loop(_message.Message): - __slots__ = () + __slots__ = ("init", "body", "attrs") INIT_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -79,7 +79,7 @@ class Loop(_message.Message): def __init__(self, init: _Optional[_Iterable[_Union[Instruction, _Mapping]]] = ..., body: _Optional[_Union[Script, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ...) -> None: ... class Instruction(_message.Message): - __slots__ = () + __slots__ = ("assign", "upsert", "monoid_def", "monus_def") ASSIGN_FIELD_NUMBER: _ClassVar[int] UPSERT_FIELD_NUMBER: _ClassVar[int] BREAK_FIELD_NUMBER: _ClassVar[int] @@ -92,7 +92,7 @@ class Instruction(_message.Message): def __init__(self, assign: _Optional[_Union[Assign, _Mapping]] = ..., upsert: _Optional[_Union[Upsert, _Mapping]] = ..., monoid_def: _Optional[_Union[MonoidDef, _Mapping]] = ..., monus_def: _Optional[_Union[MonusDef, _Mapping]] = ..., **kwargs) -> None: ... class Assign(_message.Message): - __slots__ = () + __slots__ = ("name", "body", "attrs") NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -102,7 +102,7 @@ class Assign(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ...) -> None: ... class Upsert(_message.Message): - __slots__ = () + __slots__ = ("name", "body", "attrs", "value_arity") NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -114,7 +114,7 @@ class Upsert(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ..., value_arity: _Optional[int] = ...) -> None: ... class Break(_message.Message): - __slots__ = () + __slots__ = ("name", "body", "attrs") NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] ATTRS_FIELD_NUMBER: _ClassVar[int] @@ -124,7 +124,7 @@ class Break(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ...) -> None: ... class MonoidDef(_message.Message): - __slots__ = () + __slots__ = ("monoid", "name", "body", "attrs", "value_arity") MONOID_FIELD_NUMBER: _ClassVar[int] NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] @@ -138,7 +138,7 @@ class MonoidDef(_message.Message): def __init__(self, monoid: _Optional[_Union[Monoid, _Mapping]] = ..., name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ..., value_arity: _Optional[int] = ...) -> None: ... class MonusDef(_message.Message): - __slots__ = () + __slots__ = ("monoid", "name", "body", "attrs", "value_arity") MONOID_FIELD_NUMBER: _ClassVar[int] NAME_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] @@ -152,7 +152,7 @@ class MonusDef(_message.Message): def __init__(self, monoid: _Optional[_Union[Monoid, _Mapping]] = ..., name: _Optional[_Union[RelationId, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., attrs: _Optional[_Iterable[_Union[Attribute, _Mapping]]] = ..., value_arity: _Optional[int] = ...) -> None: ... class Monoid(_message.Message): - __slots__ = () + __slots__ = ("or_monoid", "min_monoid", "max_monoid", "sum_monoid") OR_MONOID_FIELD_NUMBER: _ClassVar[int] MIN_MONOID_FIELD_NUMBER: _ClassVar[int] MAX_MONOID_FIELD_NUMBER: _ClassVar[int] @@ -168,25 +168,25 @@ class OrMonoid(_message.Message): def __init__(self) -> None: ... class MinMonoid(_message.Message): - __slots__ = () + __slots__ = ("type",) TYPE_FIELD_NUMBER: _ClassVar[int] type: Type def __init__(self, type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... class MaxMonoid(_message.Message): - __slots__ = () + __slots__ = ("type",) TYPE_FIELD_NUMBER: _ClassVar[int] type: Type def __init__(self, type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... class SumMonoid(_message.Message): - __slots__ = () + __slots__ = ("type",) TYPE_FIELD_NUMBER: _ClassVar[int] type: Type def __init__(self, type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... class Binding(_message.Message): - __slots__ = () + __slots__ = ("var", "type") VAR_FIELD_NUMBER: _ClassVar[int] TYPE_FIELD_NUMBER: _ClassVar[int] var: Var @@ -194,7 +194,7 @@ class Binding(_message.Message): def __init__(self, var: _Optional[_Union[Var, _Mapping]] = ..., type: _Optional[_Union[Type, _Mapping]] = ...) -> None: ... class Abstraction(_message.Message): - __slots__ = () + __slots__ = ("vars", "value") VARS_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] vars: _containers.RepeatedCompositeFieldContainer[Binding] @@ -202,7 +202,7 @@ class Abstraction(_message.Message): def __init__(self, vars: _Optional[_Iterable[_Union[Binding, _Mapping]]] = ..., value: _Optional[_Union[Formula, _Mapping]] = ...) -> None: ... class Formula(_message.Message): - __slots__ = () + __slots__ = ("exists", "reduce", "conjunction", "disjunction", "ffi", "atom", "pragma", "primitive", "rel_atom", "cast") EXISTS_FIELD_NUMBER: _ClassVar[int] REDUCE_FIELD_NUMBER: _ClassVar[int] CONJUNCTION_FIELD_NUMBER: _ClassVar[int] @@ -227,13 +227,13 @@ class Formula(_message.Message): def __init__(self, exists: _Optional[_Union[Exists, _Mapping]] = ..., reduce: _Optional[_Union[Reduce, _Mapping]] = ..., conjunction: _Optional[_Union[Conjunction, _Mapping]] = ..., disjunction: _Optional[_Union[Disjunction, _Mapping]] = ..., ffi: _Optional[_Union[FFI, _Mapping]] = ..., atom: _Optional[_Union[Atom, _Mapping]] = ..., pragma: _Optional[_Union[Pragma, _Mapping]] = ..., primitive: _Optional[_Union[Primitive, _Mapping]] = ..., rel_atom: _Optional[_Union[RelAtom, _Mapping]] = ..., cast: _Optional[_Union[Cast, _Mapping]] = ..., **kwargs) -> None: ... class Exists(_message.Message): - __slots__ = () + __slots__ = ("body",) BODY_FIELD_NUMBER: _ClassVar[int] body: Abstraction def __init__(self, body: _Optional[_Union[Abstraction, _Mapping]] = ...) -> None: ... class Reduce(_message.Message): - __slots__ = () + __slots__ = ("op", "body", "terms") OP_FIELD_NUMBER: _ClassVar[int] BODY_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] @@ -243,25 +243,25 @@ class Reduce(_message.Message): def __init__(self, op: _Optional[_Union[Abstraction, _Mapping]] = ..., body: _Optional[_Union[Abstraction, _Mapping]] = ..., terms: _Optional[_Iterable[_Union[Term, _Mapping]]] = ...) -> None: ... class Conjunction(_message.Message): - __slots__ = () + __slots__ = ("args",) ARGS_FIELD_NUMBER: _ClassVar[int] args: _containers.RepeatedCompositeFieldContainer[Formula] def __init__(self, args: _Optional[_Iterable[_Union[Formula, _Mapping]]] = ...) -> None: ... class Disjunction(_message.Message): - __slots__ = () + __slots__ = ("args",) ARGS_FIELD_NUMBER: _ClassVar[int] args: _containers.RepeatedCompositeFieldContainer[Formula] def __init__(self, args: _Optional[_Iterable[_Union[Formula, _Mapping]]] = ...) -> None: ... class Not(_message.Message): - __slots__ = () + __slots__ = ("arg",) ARG_FIELD_NUMBER: _ClassVar[int] arg: Formula def __init__(self, arg: _Optional[_Union[Formula, _Mapping]] = ...) -> None: ... class FFI(_message.Message): - __slots__ = () + __slots__ = ("name", "args", "terms") NAME_FIELD_NUMBER: _ClassVar[int] ARGS_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] @@ -271,7 +271,7 @@ class FFI(_message.Message): def __init__(self, name: _Optional[str] = ..., args: _Optional[_Iterable[_Union[Abstraction, _Mapping]]] = ..., terms: _Optional[_Iterable[_Union[Term, _Mapping]]] = ...) -> None: ... class Atom(_message.Message): - __slots__ = () + __slots__ = ("name", "terms") NAME_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] name: RelationId @@ -279,7 +279,7 @@ class Atom(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., terms: _Optional[_Iterable[_Union[Term, _Mapping]]] = ...) -> None: ... class Pragma(_message.Message): - __slots__ = () + __slots__ = ("name", "terms") NAME_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] name: str @@ -287,7 +287,7 @@ class Pragma(_message.Message): def __init__(self, name: _Optional[str] = ..., terms: _Optional[_Iterable[_Union[Term, _Mapping]]] = ...) -> None: ... class Primitive(_message.Message): - __slots__ = () + __slots__ = ("name", "terms") NAME_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] name: str @@ -295,7 +295,7 @@ class Primitive(_message.Message): def __init__(self, name: _Optional[str] = ..., terms: _Optional[_Iterable[_Union[RelTerm, _Mapping]]] = ...) -> None: ... class RelAtom(_message.Message): - __slots__ = () + __slots__ = ("name", "terms") NAME_FIELD_NUMBER: _ClassVar[int] TERMS_FIELD_NUMBER: _ClassVar[int] name: str @@ -303,7 +303,7 @@ class RelAtom(_message.Message): def __init__(self, name: _Optional[str] = ..., terms: _Optional[_Iterable[_Union[RelTerm, _Mapping]]] = ...) -> None: ... class Cast(_message.Message): - __slots__ = () + __slots__ = ("input", "result") INPUT_FIELD_NUMBER: _ClassVar[int] RESULT_FIELD_NUMBER: _ClassVar[int] input: Term @@ -311,7 +311,7 @@ class Cast(_message.Message): def __init__(self, input: _Optional[_Union[Term, _Mapping]] = ..., result: _Optional[_Union[Term, _Mapping]] = ...) -> None: ... class RelTerm(_message.Message): - __slots__ = () + __slots__ = ("specialized_value", "term") SPECIALIZED_VALUE_FIELD_NUMBER: _ClassVar[int] TERM_FIELD_NUMBER: _ClassVar[int] specialized_value: Value @@ -319,7 +319,7 @@ class RelTerm(_message.Message): def __init__(self, specialized_value: _Optional[_Union[Value, _Mapping]] = ..., term: _Optional[_Union[Term, _Mapping]] = ...) -> None: ... class Term(_message.Message): - __slots__ = () + __slots__ = ("var", "constant") VAR_FIELD_NUMBER: _ClassVar[int] CONSTANT_FIELD_NUMBER: _ClassVar[int] var: Var @@ -327,13 +327,13 @@ class Term(_message.Message): def __init__(self, var: _Optional[_Union[Var, _Mapping]] = ..., constant: _Optional[_Union[Value, _Mapping]] = ...) -> None: ... class Var(_message.Message): - __slots__ = () + __slots__ = ("name",) NAME_FIELD_NUMBER: _ClassVar[int] name: str def __init__(self, name: _Optional[str] = ...) -> None: ... class Attribute(_message.Message): - __slots__ = () + __slots__ = ("name", "args") NAME_FIELD_NUMBER: _ClassVar[int] ARGS_FIELD_NUMBER: _ClassVar[int] name: str @@ -341,7 +341,7 @@ class Attribute(_message.Message): def __init__(self, name: _Optional[str] = ..., args: _Optional[_Iterable[_Union[Value, _Mapping]]] = ...) -> None: ... class Data(_message.Message): - __slots__ = () + __slots__ = ("edb", "betree_relation", "csv_data", "iceberg_data") EDB_FIELD_NUMBER: _ClassVar[int] BETREE_RELATION_FIELD_NUMBER: _ClassVar[int] CSV_DATA_FIELD_NUMBER: _ClassVar[int] @@ -353,7 +353,7 @@ class Data(_message.Message): def __init__(self, edb: _Optional[_Union[EDB, _Mapping]] = ..., betree_relation: _Optional[_Union[BeTreeRelation, _Mapping]] = ..., csv_data: _Optional[_Union[CSVData, _Mapping]] = ..., iceberg_data: _Optional[_Union[IcebergData, _Mapping]] = ...) -> None: ... class EDB(_message.Message): - __slots__ = () + __slots__ = ("target_id", "path", "types") TARGET_ID_FIELD_NUMBER: _ClassVar[int] PATH_FIELD_NUMBER: _ClassVar[int] TYPES_FIELD_NUMBER: _ClassVar[int] @@ -363,7 +363,7 @@ class EDB(_message.Message): def __init__(self, target_id: _Optional[_Union[RelationId, _Mapping]] = ..., path: _Optional[_Iterable[str]] = ..., types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ...) -> None: ... class BeTreeRelation(_message.Message): - __slots__ = () + __slots__ = ("name", "relation_info") NAME_FIELD_NUMBER: _ClassVar[int] RELATION_INFO_FIELD_NUMBER: _ClassVar[int] name: RelationId @@ -371,7 +371,7 @@ class BeTreeRelation(_message.Message): def __init__(self, name: _Optional[_Union[RelationId, _Mapping]] = ..., relation_info: _Optional[_Union[BeTreeInfo, _Mapping]] = ...) -> None: ... class BeTreeInfo(_message.Message): - __slots__ = () + __slots__ = ("key_types", "value_types", "storage_config", "relation_locator") KEY_TYPES_FIELD_NUMBER: _ClassVar[int] VALUE_TYPES_FIELD_NUMBER: _ClassVar[int] STORAGE_CONFIG_FIELD_NUMBER: _ClassVar[int] @@ -383,7 +383,7 @@ class BeTreeInfo(_message.Message): def __init__(self, key_types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ..., value_types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ..., storage_config: _Optional[_Union[BeTreeConfig, _Mapping]] = ..., relation_locator: _Optional[_Union[BeTreeLocator, _Mapping]] = ...) -> None: ... class BeTreeConfig(_message.Message): - __slots__ = () + __slots__ = ("epsilon", "max_pivots", "max_deltas", "max_leaf") EPSILON_FIELD_NUMBER: _ClassVar[int] MAX_PIVOTS_FIELD_NUMBER: _ClassVar[int] MAX_DELTAS_FIELD_NUMBER: _ClassVar[int] @@ -395,7 +395,7 @@ class BeTreeConfig(_message.Message): def __init__(self, epsilon: _Optional[float] = ..., max_pivots: _Optional[int] = ..., max_deltas: _Optional[int] = ..., max_leaf: _Optional[int] = ...) -> None: ... class BeTreeLocator(_message.Message): - __slots__ = () + __slots__ = ("root_pageid", "inline_data", "element_count", "tree_height") ROOT_PAGEID_FIELD_NUMBER: _ClassVar[int] INLINE_DATA_FIELD_NUMBER: _ClassVar[int] ELEMENT_COUNT_FIELD_NUMBER: _ClassVar[int] @@ -407,7 +407,7 @@ class BeTreeLocator(_message.Message): def __init__(self, root_pageid: _Optional[_Union[UInt128Value, _Mapping]] = ..., inline_data: _Optional[bytes] = ..., element_count: _Optional[int] = ..., tree_height: _Optional[int] = ...) -> None: ... class CSVData(_message.Message): - __slots__ = () + __slots__ = ("locator", "config", "columns", "asof") LOCATOR_FIELD_NUMBER: _ClassVar[int] CONFIG_FIELD_NUMBER: _ClassVar[int] COLUMNS_FIELD_NUMBER: _ClassVar[int] @@ -419,7 +419,7 @@ class CSVData(_message.Message): def __init__(self, locator: _Optional[_Union[CSVLocator, _Mapping]] = ..., config: _Optional[_Union[CSVConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., asof: _Optional[str] = ...) -> None: ... class CSVLocator(_message.Message): - __slots__ = () + __slots__ = ("paths", "inline_data") PATHS_FIELD_NUMBER: _ClassVar[int] INLINE_DATA_FIELD_NUMBER: _ClassVar[int] paths: _containers.RepeatedScalarFieldContainer[str] @@ -427,7 +427,7 @@ class CSVLocator(_message.Message): def __init__(self, paths: _Optional[_Iterable[str]] = ..., inline_data: _Optional[bytes] = ...) -> None: ... class CSVConfig(_message.Message): - __slots__ = () + __slots__ = ("header_row", "skip", "new_line", "delimiter", "quotechar", "escapechar", "comment", "missing_strings", "decimal_separator", "encoding", "compression", "partition_size_mb") HEADER_ROW_FIELD_NUMBER: _ClassVar[int] SKIP_FIELD_NUMBER: _ClassVar[int] NEW_LINE_FIELD_NUMBER: _ClassVar[int] @@ -454,24 +454,34 @@ class CSVConfig(_message.Message): partition_size_mb: int def __init__(self, header_row: _Optional[int] = ..., skip: _Optional[int] = ..., new_line: _Optional[str] = ..., delimiter: _Optional[str] = ..., quotechar: _Optional[str] = ..., escapechar: _Optional[str] = ..., comment: _Optional[str] = ..., missing_strings: _Optional[_Iterable[str]] = ..., decimal_separator: _Optional[str] = ..., encoding: _Optional[str] = ..., compression: _Optional[str] = ..., partition_size_mb: _Optional[int] = ...) -> None: ... +class IcebergTarget(_message.Message): + __slots__ = ("target_id", "types") + TARGET_ID_FIELD_NUMBER: _ClassVar[int] + TYPES_FIELD_NUMBER: _ClassVar[int] + target_id: RelationId + types: _containers.RepeatedCompositeFieldContainer[Type] + def __init__(self, target_id: _Optional[_Union[RelationId, _Mapping]] = ..., types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ...) -> None: ... + class IcebergData(_message.Message): - __slots__ = () + __slots__ = ("locator", "config", "columns", "from_snapshot", "to_snapshot", "returns_delta", "target") LOCATOR_FIELD_NUMBER: _ClassVar[int] CONFIG_FIELD_NUMBER: _ClassVar[int] COLUMNS_FIELD_NUMBER: _ClassVar[int] FROM_SNAPSHOT_FIELD_NUMBER: _ClassVar[int] TO_SNAPSHOT_FIELD_NUMBER: _ClassVar[int] RETURNS_DELTA_FIELD_NUMBER: _ClassVar[int] + TARGET_FIELD_NUMBER: _ClassVar[int] locator: IcebergLocator config: IcebergCatalogConfig columns: _containers.RepeatedCompositeFieldContainer[GNFColumn] from_snapshot: str to_snapshot: str returns_delta: bool - def __init__(self, locator: _Optional[_Union[IcebergLocator, _Mapping]] = ..., config: _Optional[_Union[IcebergCatalogConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., from_snapshot: _Optional[str] = ..., to_snapshot: _Optional[str] = ..., returns_delta: _Optional[bool] = ...) -> None: ... + target: IcebergTarget + def __init__(self, locator: _Optional[_Union[IcebergLocator, _Mapping]] = ..., config: _Optional[_Union[IcebergCatalogConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., from_snapshot: _Optional[str] = ..., to_snapshot: _Optional[str] = ..., returns_delta: _Optional[bool] = ..., target: _Optional[_Union[IcebergTarget, _Mapping]] = ...) -> None: ... class IcebergLocator(_message.Message): - __slots__ = () + __slots__ = ("table_name", "namespace", "warehouse") TABLE_NAME_FIELD_NUMBER: _ClassVar[int] NAMESPACE_FIELD_NUMBER: _ClassVar[int] WAREHOUSE_FIELD_NUMBER: _ClassVar[int] @@ -481,16 +491,16 @@ class IcebergLocator(_message.Message): def __init__(self, table_name: _Optional[str] = ..., namespace: _Optional[_Iterable[str]] = ..., warehouse: _Optional[str] = ...) -> None: ... class IcebergCatalogConfig(_message.Message): - __slots__ = () + __slots__ = ("catalog_uri", "scope", "properties", "auth_properties") class PropertiesEntry(_message.Message): - __slots__ = () + __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] key: str value: str def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... class AuthPropertiesEntry(_message.Message): - __slots__ = () + __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] key: str @@ -507,7 +517,7 @@ class IcebergCatalogConfig(_message.Message): def __init__(self, catalog_uri: _Optional[str] = ..., scope: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ..., auth_properties: _Optional[_Mapping[str, str]] = ...) -> None: ... class GNFColumn(_message.Message): - __slots__ = () + __slots__ = ("column_path", "target_id", "types") COLUMN_PATH_FIELD_NUMBER: _ClassVar[int] TARGET_ID_FIELD_NUMBER: _ClassVar[int] TYPES_FIELD_NUMBER: _ClassVar[int] @@ -517,7 +527,7 @@ class GNFColumn(_message.Message): def __init__(self, column_path: _Optional[_Iterable[str]] = ..., target_id: _Optional[_Union[RelationId, _Mapping]] = ..., types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ...) -> None: ... class RelationId(_message.Message): - __slots__ = () + __slots__ = ("id_low", "id_high") ID_LOW_FIELD_NUMBER: _ClassVar[int] ID_HIGH_FIELD_NUMBER: _ClassVar[int] id_low: int @@ -525,7 +535,7 @@ class RelationId(_message.Message): def __init__(self, id_low: _Optional[int] = ..., id_high: _Optional[int] = ...) -> None: ... class Type(_message.Message): - __slots__ = () + __slots__ = ("unspecified_type", "string_type", "int_type", "float_type", "uint128_type", "int128_type", "date_type", "datetime_type", "missing_type", "decimal_type", "boolean_type", "int32_type", "float32_type", "uint32_type") UNSPECIFIED_TYPE_FIELD_NUMBER: _ClassVar[int] STRING_TYPE_FIELD_NUMBER: _ClassVar[int] INT_TYPE_FIELD_NUMBER: _ClassVar[int] @@ -593,7 +603,7 @@ class MissingType(_message.Message): def __init__(self) -> None: ... class DecimalType(_message.Message): - __slots__ = () + __slots__ = ("precision", "scale") PRECISION_FIELD_NUMBER: _ClassVar[int] SCALE_FIELD_NUMBER: _ClassVar[int] precision: int @@ -617,7 +627,7 @@ class UInt32Type(_message.Message): def __init__(self) -> None: ... class Value(_message.Message): - __slots__ = () + __slots__ = ("string_value", "int_value", "float_value", "uint128_value", "int128_value", "missing_value", "date_value", "datetime_value", "decimal_value", "boolean_value", "int32_value", "float32_value", "uint32_value") STRING_VALUE_FIELD_NUMBER: _ClassVar[int] INT_VALUE_FIELD_NUMBER: _ClassVar[int] FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] @@ -647,7 +657,7 @@ class Value(_message.Message): def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ..., float_value: _Optional[float] = ..., uint128_value: _Optional[_Union[UInt128Value, _Mapping]] = ..., int128_value: _Optional[_Union[Int128Value, _Mapping]] = ..., missing_value: _Optional[_Union[MissingValue, _Mapping]] = ..., date_value: _Optional[_Union[DateValue, _Mapping]] = ..., datetime_value: _Optional[_Union[DateTimeValue, _Mapping]] = ..., decimal_value: _Optional[_Union[DecimalValue, _Mapping]] = ..., boolean_value: _Optional[bool] = ..., int32_value: _Optional[int] = ..., float32_value: _Optional[float] = ..., uint32_value: _Optional[int] = ...) -> None: ... class UInt128Value(_message.Message): - __slots__ = () + __slots__ = ("low", "high") LOW_FIELD_NUMBER: _ClassVar[int] HIGH_FIELD_NUMBER: _ClassVar[int] low: int @@ -655,7 +665,7 @@ class UInt128Value(_message.Message): def __init__(self, low: _Optional[int] = ..., high: _Optional[int] = ...) -> None: ... class Int128Value(_message.Message): - __slots__ = () + __slots__ = ("low", "high") LOW_FIELD_NUMBER: _ClassVar[int] HIGH_FIELD_NUMBER: _ClassVar[int] low: int @@ -667,7 +677,7 @@ class MissingValue(_message.Message): def __init__(self) -> None: ... class DateValue(_message.Message): - __slots__ = () + __slots__ = ("year", "month", "day") YEAR_FIELD_NUMBER: _ClassVar[int] MONTH_FIELD_NUMBER: _ClassVar[int] DAY_FIELD_NUMBER: _ClassVar[int] @@ -677,7 +687,7 @@ class DateValue(_message.Message): def __init__(self, year: _Optional[int] = ..., month: _Optional[int] = ..., day: _Optional[int] = ...) -> None: ... class DateTimeValue(_message.Message): - __slots__ = () + __slots__ = ("year", "month", "day", "hour", "minute", "second", "microsecond") YEAR_FIELD_NUMBER: _ClassVar[int] MONTH_FIELD_NUMBER: _ClassVar[int] DAY_FIELD_NUMBER: _ClassVar[int] @@ -695,7 +705,7 @@ class DateTimeValue(_message.Message): def __init__(self, year: _Optional[int] = ..., month: _Optional[int] = ..., day: _Optional[int] = ..., hour: _Optional[int] = ..., minute: _Optional[int] = ..., second: _Optional[int] = ..., microsecond: _Optional[int] = ...) -> None: ... class DecimalValue(_message.Message): - __slots__ = () + __slots__ = ("precision", "scale", "value") PRECISION_FIELD_NUMBER: _ClassVar[int] SCALE_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] diff --git a/sdks/python/src/lqp/proto/v1/transactions_pb2.py b/sdks/python/src/lqp/proto/v1/transactions_pb2.py index cc68453c..7485f539 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.py +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.py @@ -26,7 +26,7 @@ from lqp.proto.v1 import logic_pb2 as relationalai_dot_lqp_dot_v1_dot_logic__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&relationalai/lqp/v1/transactions.proto\x12\x13relationalai.lqp.v1\x1a#relationalai/lqp/v1/fragments.proto\x1a\x1frelationalai/lqp/v1/logic.proto\"\xbc\x01\n\x0bTransaction\x12\x32\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x06\x65pochs\x12<\n\tconfigure\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.ConfigureR\tconfigure\x12\x32\n\x04sync\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.SyncH\x00R\x04sync\x88\x01\x01\x42\x07\n\x05_sync\"w\n\tConfigure\x12+\n\x11semantics_version\x18\x01 \x01(\x03R\x10semanticsVersion\x12=\n\nivm_config\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.IVMConfigR\tivmConfig\"H\n\tIVMConfig\x12;\n\x05level\x18\x01 \x01(\x0e\x32%.relationalai.lqp.v1.MaintenanceLevelR\x05level\"E\n\x04Sync\x12=\n\tfragments\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\tfragments\"l\n\x05\x45poch\x12\x32\n\x06writes\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.WriteR\x06writes\x12/\n\x05reads\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.ReadR\x05reads\"\x86\x02\n\x05Write\x12\x35\n\x06\x64\x65\x66ine\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DefineH\x00R\x06\x64\x65\x66ine\x12;\n\x08undefine\x18\x02 \x01(\x0b\x32\x1d.relationalai.lqp.v1.UndefineH\x00R\x08undefine\x12\x38\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.ContextH\x00R\x07\x63ontext\x12;\n\x08snapshot\x18\x05 \x01(\x0b\x32\x1d.relationalai.lqp.v1.SnapshotH\x00R\x08snapshotB\x0c\n\nwrite_typeJ\x04\x08\x04\x10\x05\"C\n\x06\x44\x65\x66ine\x12\x39\n\x08\x66ragment\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.FragmentR\x08\x66ragment\"L\n\x08Undefine\x12@\n\x0b\x66ragment_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\nfragmentId\"H\n\x07\x43ontext\x12=\n\trelations\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\trelations\"\x86\x01\n\x0fSnapshotMapping\x12)\n\x10\x64\x65stination_path\x18\x01 \x03(\tR\x0f\x64\x65stinationPath\x12H\n\x0fsource_relation\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x0esourceRelation\"d\n\x08Snapshot\x12@\n\x08mappings\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.SnapshotMappingR\x08mappings\x12\x16\n\x06prefix\x18\x02 \x03(\tR\x06prefix\"\xc8\x05\n\x0f\x45xportCSVConfig\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x43\n\ncsv_source\x18\n \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVSourceR\tcsvSource\x12=\n\ncsv_config\x18\x0b \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\tcsvConfig\x12G\n\x0c\x64\x61ta_columns\x18\x02 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x0b\x64\x61taColumns\x12*\n\x0epartition_size\x18\x03 \x01(\x03H\x00R\rpartitionSize\x88\x01\x01\x12%\n\x0b\x63ompression\x18\x04 \x01(\tH\x01R\x0b\x63ompression\x88\x01\x01\x12/\n\x11syntax_header_row\x18\x05 \x01(\x08H\x02R\x0fsyntaxHeaderRow\x88\x01\x01\x12\x37\n\x15syntax_missing_string\x18\x06 \x01(\tH\x03R\x13syntaxMissingString\x88\x01\x01\x12&\n\x0csyntax_delim\x18\x07 \x01(\tH\x04R\x0bsyntaxDelim\x88\x01\x01\x12.\n\x10syntax_quotechar\x18\x08 \x01(\tH\x05R\x0fsyntaxQuotechar\x88\x01\x01\x12\x30\n\x11syntax_escapechar\x18\t \x01(\tH\x06R\x10syntaxEscapechar\x88\x01\x01\x42\x11\n\x0f_partition_sizeB\x0e\n\x0c_compressionB\x14\n\x12_syntax_header_rowB\x18\n\x16_syntax_missing_stringB\x0f\n\r_syntax_delimB\x13\n\x11_syntax_quotecharB\x14\n\x12_syntax_escapechar\"t\n\x0f\x45xportCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12@\n\x0b\x63olumn_data\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\ncolumnData\"R\n\x10\x45xportCSVColumns\x12>\n\x07\x63olumns\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x07\x63olumns\"\xa9\x01\n\x0f\x45xportCSVSource\x12H\n\x0bgnf_columns\x18\x01 \x01(\x0b\x32%.relationalai.lqp.v1.ExportCSVColumnsH\x00R\ngnfColumns\x12>\n\ttable_def\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08tableDefB\x0c\n\ncsv_source\"\xa2\x04\n\x13\x45xportIcebergConfig\x12=\n\x07locator\x18\x01 \x01(\x0b\x32#.relationalai.lqp.v1.IcebergLocatorR\x07locator\x12\x41\n\x06\x63onfig\x18\x02 \x01(\x0b\x32).relationalai.lqp.v1.IcebergCatalogConfigR\x06\x63onfig\x12<\n\ttable_def\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08tableDef\x12\x1b\n\x06prefix\x18\x05 \x01(\tH\x00R\x06prefix\x88\x01\x01\x12\x38\n\x16target_file_size_bytes\x18\x06 \x01(\x03H\x01R\x13targetFileSizeBytes\x88\x01\x01\x12 \n\x0b\x63ompression\x18\x07 \x01(\tR\x0b\x63ompression\x12h\n\x10table_properties\x18\x08 \x03(\x0b\x32=.relationalai.lqp.v1.ExportIcebergConfig.TablePropertiesEntryR\x0ftableProperties\x1a\x42\n\x14TablePropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\t\n\x07_prefixB\x19\n\x17_target_file_size_bytes\"\xa4\x02\n\x04Read\x12\x35\n\x06\x64\x65mand\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DemandH\x00R\x06\x64\x65mand\x12\x35\n\x06output\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.OutputH\x00R\x06output\x12\x36\n\x07what_if\x18\x03 \x01(\x0b\x32\x1b.relationalai.lqp.v1.WhatIfH\x00R\x06whatIf\x12\x32\n\x05\x61\x62ort\x18\x04 \x01(\x0b\x32\x1a.relationalai.lqp.v1.AbortH\x00R\x05\x61\x62ort\x12\x35\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExportH\x00R\x06\x65xportB\x0b\n\tread_type\"J\n\x06\x44\x65mand\x12@\n\x0brelation_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"^\n\x06Output\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"\xb3\x01\n\x06\x45xport\x12\x45\n\ncsv_config\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVConfigH\x00R\tcsvConfig\x12Q\n\x0eiceberg_config\x18\x02 \x01(\x0b\x32(.relationalai.lqp.v1.ExportIcebergConfigH\x00R\ricebergConfigB\x0f\n\rexport_config\"R\n\x06WhatIf\x12\x16\n\x06\x62ranch\x18\x01 \x01(\tR\x06\x62ranch\x12\x30\n\x05\x65poch\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x05\x65poch\"]\n\x05\x41\x62ort\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId*\x87\x01\n\x10MaintenanceLevel\x12!\n\x1dMAINTENANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x19\n\x15MAINTENANCE_LEVEL_OFF\x10\x01\x12\x1a\n\x16MAINTENANCE_LEVEL_AUTO\x10\x02\x12\x19\n\x15MAINTENANCE_LEVEL_ALL\x10\x03\x42\x43ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&relationalai/lqp/v1/transactions.proto\x12\x13relationalai.lqp.v1\x1a#relationalai/lqp/v1/fragments.proto\x1a\x1frelationalai/lqp/v1/logic.proto\"\xbc\x01\n\x0bTransaction\x12\x32\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x06\x65pochs\x12<\n\tconfigure\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.ConfigureR\tconfigure\x12\x32\n\x04sync\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.SyncH\x00R\x04sync\x88\x01\x01\x42\x07\n\x05_sync\"w\n\tConfigure\x12+\n\x11semantics_version\x18\x01 \x01(\x03R\x10semanticsVersion\x12=\n\nivm_config\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.IVMConfigR\tivmConfig\"H\n\tIVMConfig\x12;\n\x05level\x18\x01 \x01(\x0e\x32%.relationalai.lqp.v1.MaintenanceLevelR\x05level\"E\n\x04Sync\x12=\n\tfragments\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\tfragments\"l\n\x05\x45poch\x12\x32\n\x06writes\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.WriteR\x06writes\x12/\n\x05reads\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.ReadR\x05reads\"\x86\x02\n\x05Write\x12\x35\n\x06\x64\x65\x66ine\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DefineH\x00R\x06\x64\x65\x66ine\x12;\n\x08undefine\x18\x02 \x01(\x0b\x32\x1d.relationalai.lqp.v1.UndefineH\x00R\x08undefine\x12\x38\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.ContextH\x00R\x07\x63ontext\x12;\n\x08snapshot\x18\x05 \x01(\x0b\x32\x1d.relationalai.lqp.v1.SnapshotH\x00R\x08snapshotB\x0c\n\nwrite_typeJ\x04\x08\x04\x10\x05\"C\n\x06\x44\x65\x66ine\x12\x39\n\x08\x66ragment\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.FragmentR\x08\x66ragment\"L\n\x08Undefine\x12@\n\x0b\x66ragment_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\nfragmentId\"H\n\x07\x43ontext\x12=\n\trelations\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\trelations\"\x86\x01\n\x0fSnapshotMapping\x12)\n\x10\x64\x65stination_path\x18\x01 \x03(\tR\x0f\x64\x65stinationPath\x12H\n\x0fsource_relation\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x0esourceRelation\"d\n\x08Snapshot\x12@\n\x08mappings\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.SnapshotMappingR\x08mappings\x12\x16\n\x06prefix\x18\x02 \x03(\tR\x06prefix\"\xc8\x05\n\x0f\x45xportCSVConfig\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x43\n\ncsv_source\x18\n \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVSourceR\tcsvSource\x12=\n\ncsv_config\x18\x0b \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\tcsvConfig\x12G\n\x0c\x64\x61ta_columns\x18\x02 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x0b\x64\x61taColumns\x12*\n\x0epartition_size\x18\x03 \x01(\x03H\x00R\rpartitionSize\x88\x01\x01\x12%\n\x0b\x63ompression\x18\x04 \x01(\tH\x01R\x0b\x63ompression\x88\x01\x01\x12/\n\x11syntax_header_row\x18\x05 \x01(\x08H\x02R\x0fsyntaxHeaderRow\x88\x01\x01\x12\x37\n\x15syntax_missing_string\x18\x06 \x01(\tH\x03R\x13syntaxMissingString\x88\x01\x01\x12&\n\x0csyntax_delim\x18\x07 \x01(\tH\x04R\x0bsyntaxDelim\x88\x01\x01\x12.\n\x10syntax_quotechar\x18\x08 \x01(\tH\x05R\x0fsyntaxQuotechar\x88\x01\x01\x12\x30\n\x11syntax_escapechar\x18\t \x01(\tH\x06R\x10syntaxEscapechar\x88\x01\x01\x42\x11\n\x0f_partition_sizeB\x0e\n\x0c_compressionB\x14\n\x12_syntax_header_rowB\x18\n\x16_syntax_missing_stringB\x0f\n\r_syntax_delimB\x13\n\x11_syntax_quotecharB\x14\n\x12_syntax_escapechar\"t\n\x0f\x45xportCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12@\n\x0b\x63olumn_data\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\ncolumnData\"R\n\x10\x45xportCSVColumns\x12>\n\x07\x63olumns\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x07\x63olumns\"\xa9\x01\n\x0f\x45xportCSVSource\x12H\n\x0bgnf_columns\x18\x01 \x01(\x0b\x32%.relationalai.lqp.v1.ExportCSVColumnsH\x00R\ngnfColumns\x12>\n\ttable_def\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08tableDefB\x0c\n\ncsv_source\"\xa8\x04\n\x13\x45xportIcebergConfig\x12=\n\x07locator\x18\x01 \x01(\x0b\x32#.relationalai.lqp.v1.IcebergLocatorR\x07locator\x12\x41\n\x06\x63onfig\x18\x02 \x01(\x0b\x32).relationalai.lqp.v1.IcebergCatalogConfigR\x06\x63onfig\x12<\n\ttable_def\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08tableDef\x12\x1b\n\x06prefix\x18\x05 \x01(\tH\x00R\x06prefix\x88\x01\x01\x12\x38\n\x16target_file_size_bytes\x18\x06 \x01(\x03H\x01R\x13targetFileSizeBytes\x88\x01\x01\x12 \n\x0b\x63ompression\x18\x07 \x01(\tR\x0b\x63ompression\x12h\n\x10table_properties\x18\x08 \x03(\x0b\x32=.relationalai.lqp.v1.ExportIcebergConfig.TablePropertiesEntryR\x0ftableProperties\x1a\x42\n\x14TablePropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\t\n\x07_prefixB\x19\n\x17_target_file_size_bytesJ\x04\x08\x04\x10\x05\"\xa4\x02\n\x04Read\x12\x35\n\x06\x64\x65mand\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DemandH\x00R\x06\x64\x65mand\x12\x35\n\x06output\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.OutputH\x00R\x06output\x12\x36\n\x07what_if\x18\x03 \x01(\x0b\x32\x1b.relationalai.lqp.v1.WhatIfH\x00R\x06whatIf\x12\x32\n\x05\x61\x62ort\x18\x04 \x01(\x0b\x32\x1a.relationalai.lqp.v1.AbortH\x00R\x05\x61\x62ort\x12\x35\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExportH\x00R\x06\x65xportB\x0b\n\tread_type\"J\n\x06\x44\x65mand\x12@\n\x0brelation_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"^\n\x06Output\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"\xb3\x01\n\x06\x45xport\x12\x45\n\ncsv_config\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVConfigH\x00R\tcsvConfig\x12Q\n\x0eiceberg_config\x18\x02 \x01(\x0b\x32(.relationalai.lqp.v1.ExportIcebergConfigH\x00R\ricebergConfigB\x0f\n\rexport_config\"R\n\x06WhatIf\x12\x16\n\x06\x62ranch\x18\x01 \x01(\tR\x06\x62ranch\x12\x30\n\x05\x65poch\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x05\x65poch\"]\n\x05\x41\x62ort\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId*\x87\x01\n\x10MaintenanceLevel\x12!\n\x1dMAINTENANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x19\n\x15MAINTENANCE_LEVEL_OFF\x10\x01\x12\x1a\n\x16MAINTENANCE_LEVEL_AUTO\x10\x02\x12\x19\n\x15MAINTENANCE_LEVEL_ALL\x10\x03\x42\x43ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -36,8 +36,8 @@ _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1' _globals['_EXPORTICEBERGCONFIG_TABLEPROPERTIESENTRY']._loaded_options = None _globals['_EXPORTICEBERGCONFIG_TABLEPROPERTIESENTRY']._serialized_options = b'8\001' - _globals['_MAINTENANCELEVEL']._serialized_start=3892 - _globals['_MAINTENANCELEVEL']._serialized_end=4027 + _globals['_MAINTENANCELEVEL']._serialized_start=3898 + _globals['_MAINTENANCELEVEL']._serialized_end=4033 _globals['_TRANSACTION']._serialized_start=134 _globals['_TRANSACTION']._serialized_end=322 _globals['_CONFIGURE']._serialized_start=324 @@ -69,19 +69,19 @@ _globals['_EXPORTCSVSOURCE']._serialized_start=2343 _globals['_EXPORTCSVSOURCE']._serialized_end=2512 _globals['_EXPORTICEBERGCONFIG']._serialized_start=2515 - _globals['_EXPORTICEBERGCONFIG']._serialized_end=3061 + _globals['_EXPORTICEBERGCONFIG']._serialized_end=3067 _globals['_EXPORTICEBERGCONFIG_TABLEPROPERTIESENTRY']._serialized_start=2957 _globals['_EXPORTICEBERGCONFIG_TABLEPROPERTIESENTRY']._serialized_end=3023 - _globals['_READ']._serialized_start=3064 - _globals['_READ']._serialized_end=3356 - _globals['_DEMAND']._serialized_start=3358 - _globals['_DEMAND']._serialized_end=3432 - _globals['_OUTPUT']._serialized_start=3434 - _globals['_OUTPUT']._serialized_end=3528 - _globals['_EXPORT']._serialized_start=3531 - _globals['_EXPORT']._serialized_end=3710 - _globals['_WHATIF']._serialized_start=3712 - _globals['_WHATIF']._serialized_end=3794 - _globals['_ABORT']._serialized_start=3796 - _globals['_ABORT']._serialized_end=3889 + _globals['_READ']._serialized_start=3070 + _globals['_READ']._serialized_end=3362 + _globals['_DEMAND']._serialized_start=3364 + _globals['_DEMAND']._serialized_end=3438 + _globals['_OUTPUT']._serialized_start=3440 + _globals['_OUTPUT']._serialized_end=3534 + _globals['_EXPORT']._serialized_start=3537 + _globals['_EXPORT']._serialized_end=3716 + _globals['_WHATIF']._serialized_start=3718 + _globals['_WHATIF']._serialized_end=3800 + _globals['_ABORT']._serialized_start=3802 + _globals['_ABORT']._serialized_end=3895 # @@protoc_insertion_point(module_scope) diff --git a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi index ebc1695a..f0beccf5 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi @@ -21,7 +21,7 @@ MAINTENANCE_LEVEL_AUTO: MaintenanceLevel MAINTENANCE_LEVEL_ALL: MaintenanceLevel class Transaction(_message.Message): - __slots__ = () + __slots__ = ("epochs", "configure", "sync") EPOCHS_FIELD_NUMBER: _ClassVar[int] CONFIGURE_FIELD_NUMBER: _ClassVar[int] SYNC_FIELD_NUMBER: _ClassVar[int] @@ -31,7 +31,7 @@ class Transaction(_message.Message): def __init__(self, epochs: _Optional[_Iterable[_Union[Epoch, _Mapping]]] = ..., configure: _Optional[_Union[Configure, _Mapping]] = ..., sync: _Optional[_Union[Sync, _Mapping]] = ...) -> None: ... class Configure(_message.Message): - __slots__ = () + __slots__ = ("semantics_version", "ivm_config") SEMANTICS_VERSION_FIELD_NUMBER: _ClassVar[int] IVM_CONFIG_FIELD_NUMBER: _ClassVar[int] semantics_version: int @@ -39,19 +39,19 @@ class Configure(_message.Message): def __init__(self, semantics_version: _Optional[int] = ..., ivm_config: _Optional[_Union[IVMConfig, _Mapping]] = ...) -> None: ... class IVMConfig(_message.Message): - __slots__ = () + __slots__ = ("level",) LEVEL_FIELD_NUMBER: _ClassVar[int] level: MaintenanceLevel def __init__(self, level: _Optional[_Union[MaintenanceLevel, str]] = ...) -> None: ... class Sync(_message.Message): - __slots__ = () + __slots__ = ("fragments",) FRAGMENTS_FIELD_NUMBER: _ClassVar[int] fragments: _containers.RepeatedCompositeFieldContainer[_fragments_pb2.FragmentId] def __init__(self, fragments: _Optional[_Iterable[_Union[_fragments_pb2.FragmentId, _Mapping]]] = ...) -> None: ... class Epoch(_message.Message): - __slots__ = () + __slots__ = ("writes", "reads") WRITES_FIELD_NUMBER: _ClassVar[int] READS_FIELD_NUMBER: _ClassVar[int] writes: _containers.RepeatedCompositeFieldContainer[Write] @@ -59,7 +59,7 @@ class Epoch(_message.Message): def __init__(self, writes: _Optional[_Iterable[_Union[Write, _Mapping]]] = ..., reads: _Optional[_Iterable[_Union[Read, _Mapping]]] = ...) -> None: ... class Write(_message.Message): - __slots__ = () + __slots__ = ("define", "undefine", "context", "snapshot") DEFINE_FIELD_NUMBER: _ClassVar[int] UNDEFINE_FIELD_NUMBER: _ClassVar[int] CONTEXT_FIELD_NUMBER: _ClassVar[int] @@ -71,25 +71,25 @@ class Write(_message.Message): def __init__(self, define: _Optional[_Union[Define, _Mapping]] = ..., undefine: _Optional[_Union[Undefine, _Mapping]] = ..., context: _Optional[_Union[Context, _Mapping]] = ..., snapshot: _Optional[_Union[Snapshot, _Mapping]] = ...) -> None: ... class Define(_message.Message): - __slots__ = () + __slots__ = ("fragment",) FRAGMENT_FIELD_NUMBER: _ClassVar[int] fragment: _fragments_pb2.Fragment def __init__(self, fragment: _Optional[_Union[_fragments_pb2.Fragment, _Mapping]] = ...) -> None: ... class Undefine(_message.Message): - __slots__ = () + __slots__ = ("fragment_id",) FRAGMENT_ID_FIELD_NUMBER: _ClassVar[int] fragment_id: _fragments_pb2.FragmentId def __init__(self, fragment_id: _Optional[_Union[_fragments_pb2.FragmentId, _Mapping]] = ...) -> None: ... class Context(_message.Message): - __slots__ = () + __slots__ = ("relations",) RELATIONS_FIELD_NUMBER: _ClassVar[int] relations: _containers.RepeatedCompositeFieldContainer[_logic_pb2.RelationId] def __init__(self, relations: _Optional[_Iterable[_Union[_logic_pb2.RelationId, _Mapping]]] = ...) -> None: ... class SnapshotMapping(_message.Message): - __slots__ = () + __slots__ = ("destination_path", "source_relation") DESTINATION_PATH_FIELD_NUMBER: _ClassVar[int] SOURCE_RELATION_FIELD_NUMBER: _ClassVar[int] destination_path: _containers.RepeatedScalarFieldContainer[str] @@ -97,7 +97,7 @@ class SnapshotMapping(_message.Message): def __init__(self, destination_path: _Optional[_Iterable[str]] = ..., source_relation: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... class Snapshot(_message.Message): - __slots__ = () + __slots__ = ("mappings", "prefix") MAPPINGS_FIELD_NUMBER: _ClassVar[int] PREFIX_FIELD_NUMBER: _ClassVar[int] mappings: _containers.RepeatedCompositeFieldContainer[SnapshotMapping] @@ -105,7 +105,7 @@ class Snapshot(_message.Message): def __init__(self, mappings: _Optional[_Iterable[_Union[SnapshotMapping, _Mapping]]] = ..., prefix: _Optional[_Iterable[str]] = ...) -> None: ... class ExportCSVConfig(_message.Message): - __slots__ = () + __slots__ = ("path", "csv_source", "csv_config", "data_columns", "partition_size", "compression", "syntax_header_row", "syntax_missing_string", "syntax_delim", "syntax_quotechar", "syntax_escapechar") PATH_FIELD_NUMBER: _ClassVar[int] CSV_SOURCE_FIELD_NUMBER: _ClassVar[int] CSV_CONFIG_FIELD_NUMBER: _ClassVar[int] @@ -131,7 +131,7 @@ class ExportCSVConfig(_message.Message): def __init__(self, path: _Optional[str] = ..., csv_source: _Optional[_Union[ExportCSVSource, _Mapping]] = ..., csv_config: _Optional[_Union[_logic_pb2.CSVConfig, _Mapping]] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., partition_size: _Optional[int] = ..., compression: _Optional[str] = ..., syntax_header_row: _Optional[bool] = ..., syntax_missing_string: _Optional[str] = ..., syntax_delim: _Optional[str] = ..., syntax_quotechar: _Optional[str] = ..., syntax_escapechar: _Optional[str] = ...) -> None: ... class ExportCSVColumn(_message.Message): - __slots__ = () + __slots__ = ("column_name", "column_data") COLUMN_NAME_FIELD_NUMBER: _ClassVar[int] COLUMN_DATA_FIELD_NUMBER: _ClassVar[int] column_name: str @@ -139,13 +139,13 @@ class ExportCSVColumn(_message.Message): def __init__(self, column_name: _Optional[str] = ..., column_data: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... class ExportCSVColumns(_message.Message): - __slots__ = () + __slots__ = ("columns",) COLUMNS_FIELD_NUMBER: _ClassVar[int] columns: _containers.RepeatedCompositeFieldContainer[ExportCSVColumn] def __init__(self, columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ...) -> None: ... class ExportCSVSource(_message.Message): - __slots__ = () + __slots__ = ("gnf_columns", "table_def") GNF_COLUMNS_FIELD_NUMBER: _ClassVar[int] TABLE_DEF_FIELD_NUMBER: _ClassVar[int] gnf_columns: ExportCSVColumns @@ -153,9 +153,9 @@ class ExportCSVSource(_message.Message): def __init__(self, gnf_columns: _Optional[_Union[ExportCSVColumns, _Mapping]] = ..., table_def: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... class ExportIcebergConfig(_message.Message): - __slots__ = () + __slots__ = ("locator", "config", "table_def", "prefix", "target_file_size_bytes", "compression", "table_properties") class TablePropertiesEntry(_message.Message): - __slots__ = () + __slots__ = ("key", "value") KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] key: str @@ -178,7 +178,7 @@ class ExportIcebergConfig(_message.Message): def __init__(self, locator: _Optional[_Union[_logic_pb2.IcebergLocator, _Mapping]] = ..., config: _Optional[_Union[_logic_pb2.IcebergCatalogConfig, _Mapping]] = ..., table_def: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ..., prefix: _Optional[str] = ..., target_file_size_bytes: _Optional[int] = ..., compression: _Optional[str] = ..., table_properties: _Optional[_Mapping[str, str]] = ...) -> None: ... class Read(_message.Message): - __slots__ = () + __slots__ = ("demand", "output", "what_if", "abort", "export") DEMAND_FIELD_NUMBER: _ClassVar[int] OUTPUT_FIELD_NUMBER: _ClassVar[int] WHAT_IF_FIELD_NUMBER: _ClassVar[int] @@ -192,13 +192,13 @@ class Read(_message.Message): def __init__(self, demand: _Optional[_Union[Demand, _Mapping]] = ..., output: _Optional[_Union[Output, _Mapping]] = ..., what_if: _Optional[_Union[WhatIf, _Mapping]] = ..., abort: _Optional[_Union[Abort, _Mapping]] = ..., export: _Optional[_Union[Export, _Mapping]] = ...) -> None: ... class Demand(_message.Message): - __slots__ = () + __slots__ = ("relation_id",) RELATION_ID_FIELD_NUMBER: _ClassVar[int] relation_id: _logic_pb2.RelationId def __init__(self, relation_id: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... class Output(_message.Message): - __slots__ = () + __slots__ = ("name", "relation_id") NAME_FIELD_NUMBER: _ClassVar[int] RELATION_ID_FIELD_NUMBER: _ClassVar[int] name: str @@ -206,7 +206,7 @@ class Output(_message.Message): def __init__(self, name: _Optional[str] = ..., relation_id: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... class Export(_message.Message): - __slots__ = () + __slots__ = ("csv_config", "iceberg_config") CSV_CONFIG_FIELD_NUMBER: _ClassVar[int] ICEBERG_CONFIG_FIELD_NUMBER: _ClassVar[int] csv_config: ExportCSVConfig @@ -214,7 +214,7 @@ class Export(_message.Message): def __init__(self, csv_config: _Optional[_Union[ExportCSVConfig, _Mapping]] = ..., iceberg_config: _Optional[_Union[ExportIcebergConfig, _Mapping]] = ...) -> None: ... class WhatIf(_message.Message): - __slots__ = () + __slots__ = ("branch", "epoch") BRANCH_FIELD_NUMBER: _ClassVar[int] EPOCH_FIELD_NUMBER: _ClassVar[int] branch: str @@ -222,7 +222,7 @@ class WhatIf(_message.Message): def __init__(self, branch: _Optional[str] = ..., epoch: _Optional[_Union[Epoch, _Mapping]] = ...) -> None: ... class Abort(_message.Message): - __slots__ = () + __slots__ = ("name", "relation_id") NAME_FIELD_NUMBER: _ClassVar[int] RELATION_ID_FIELD_NUMBER: _ClassVar[int] name: str diff --git a/tests/bin/iceberg_data_full_table.bin b/tests/bin/iceberg_data_full_table.bin new file mode 100644 index 00000000..8f0a541c Binary files /dev/null and b/tests/bin/iceberg_data_full_table.bin differ diff --git a/tests/lqp/iceberg_data_full_table.lqp b/tests/lqp/iceberg_data_full_table.lqp new file mode 100644 index 00000000..ab515b88 --- /dev/null +++ b/tests/lqp/iceberg_data_full_table.lqp @@ -0,0 +1,16 @@ +(transaction + (epoch + (writes + (define + (fragment :f1 + (iceberg_data + (iceberg_locator + (table_name "edges") + (namespace "graph" "raw") + (warehouse "wh")) + (iceberg_catalog_config + (catalog_uri "https://catalog.example") + (properties (prop "type" "rest")) + (auth_properties)) + (full_table :edges [UINT128 INT INT]) + false)))))) diff --git a/tests/pretty/iceberg_data_full_table.lqp b/tests/pretty/iceberg_data_full_table.lqp new file mode 100644 index 00000000..8d37bf3f --- /dev/null +++ b/tests/pretty/iceberg_data_full_table.lqp @@ -0,0 +1,18 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (iceberg_data + (iceberg_locator + (table_name "edges") + (namespace "graph" "raw") + (warehouse "wh")) + (iceberg_catalog_config + (catalog_uri "https://catalog.example") + (properties (prop "type" "rest")) + (auth_properties)) + (full_table :edges [UINT128 INT INT]) + false)))))) diff --git a/tests/pretty_debug/iceberg_data_full_table.lqp b/tests/pretty_debug/iceberg_data_full_table.lqp new file mode 100644 index 00000000..8b0222c5 --- /dev/null +++ b/tests/pretty_debug/iceberg_data_full_table.lqp @@ -0,0 +1,23 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (iceberg_data + (iceberg_locator + (table_name "edges") + (namespace "graph" "raw") + (warehouse "wh")) + (iceberg_catalog_config + (catalog_uri "https://catalog.example") + (properties (prop "type" "rest")) + (auth_properties)) + (full_table 0x7b31a79c38a81db1da7df4ef1cf8be23 [UINT128 INT INT]) + false)))))) + +;; Debug information +;; ----------------------- +;; Original names +;; ID `0x7b31a79c38a81db1da7df4ef1cf8be23` -> `edges`