From 6304a9b5db7485424fd0415154cdd7139ae6ab9f Mon Sep 17 00:00:00 2001 From: Henrik Barthels <25176271+hbarthels@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:54:16 +0200 Subject: [PATCH 1/2] Add CSV table mode: single-relation loading without row ID Introduces a `table` form for `csv_data` that loads all selected columns into one output relation with schema `key=[T1..TN], value=[]`, dropping the per-column row-ID keying of the existing `columns` form. Proto: - Add `CsvTarget` message (target_id, column_names, types) - Add `optional CsvTarget target = 5` to `CSVData` Grammar: - Add `csv_table` rule: `(table ["col"...] [Type...])` - Rewrite `csv_data` to accept either `gnf_columns?` or `csv_table?` in a single alternative (avoids LL(3) conflict on the shared prefix) - Add construct/deconstruct helpers for the two modes Regenerate parsers, pretty-printers, and proto stubs for Python, Julia, and Go. Add `tests/lqp/csv_table.lqp` with four table-mode variants and corresponding binary/snapshot artifacts. Co-Authored-By: Claude Sonnet 4.5 --- meta/src/meta/grammar.y | 46 +- proto/relationalai/lqp/v1/logic.proto | 7 + sdks/go/src/lqp/v1/logic.pb.go | 969 +-- sdks/go/src/lqp/v1/transactions.pb.go | 128 +- sdks/go/src/parser.go | 5557 +++++++++-------- sdks/go/src/pretty.go | 3890 ++++++------ .../src/gen/relationalai/lqp/v1/logic_pb.jl | 149 +- .../relationalai/lqp/v1/transactions_pb.jl | 1 + .../LogicalQueryProtocol.jl/src/parser.jl | 4667 +++++++------- .../LogicalQueryProtocol.jl/src/pretty.jl | 3922 ++++++------ sdks/python/src/lqp/gen/parser.py | 4737 +++++++------- sdks/python/src/lqp/gen/pretty.py | 4451 ++++++------- .../python/src/lqp/proto/v1/fragments_pb2.pyi | 6 +- sdks/python/src/lqp/proto/v1/logic_pb2.py | 132 +- sdks/python/src/lqp/proto/v1/logic_pb2.pyi | 134 +- .../src/lqp/proto/v1/transactions_pb2.py | 32 +- .../src/lqp/proto/v1/transactions_pb2.pyi | 46 +- tests/bin/csv_table.bin | Bin 0 -> 757 bytes tests/lqp/csv_table.lqp | 42 + tests/pretty/csv_table.lqp | 68 + tests/pretty_debug/csv_table.lqp | 83 + 21 files changed, 14906 insertions(+), 14161 deletions(-) create mode 100644 tests/bin/csv_table.bin create mode 100644 tests/lqp/csv_table.lqp create mode 100644 tests/pretty/csv_table.lqp create mode 100644 tests/pretty_debug/csv_table.lqp diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index 8f2d743e..377d963e 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -91,6 +91,7 @@ %nonterm csv_data logic.CSVData %nonterm csv_locator_inline_data String %nonterm csv_locator_paths Sequence[String] +%nonterm csv_table logic.CSVTarget %nonterm csvlocator logic.CSVLocator %nonterm data logic.Data %nonterm date logic.DateValue @@ -1104,14 +1105,23 @@ gnf_columns csv_asof : "(" "asof" STRING ")" +csv_table + : "(" "table" relation_id "[" STRING* "]" "[" type* "]" ")" + construct: $$ = logic.CSVTarget(target_id=$3, column_names=$5, types=$8) + deconstruct: + $3: logic.RelationId = $$.target_id + $5: Sequence[String] = $$.column_names + $8: Sequence[logic.Type] = $$.types + csv_data - : "(" "csv_data" csvlocator csv_config gnf_columns csv_asof ")" - construct: $$ = logic.CSVData(locator=$3, config=$4, columns=$5, asof=$6) + : "(" "csv_data" csvlocator csv_config gnf_columns? csv_table? csv_asof ")" + construct: $$ = construct_csv_data($3, $4, $5, $6, $7) deconstruct: $3: logic.CSVLocator = $$.locator $4: logic.CSVConfig = $$.config - $5: Sequence[logic.GNFColumn] = $$.columns - $6: String = $$.asof + $5: Optional[Sequence[logic.GNFColumn]] = deconstruct_csv_data_columns_optional($$) + $6: Optional[logic.CSVTarget] = deconstruct_csv_data_target_optional($$) + $7: String = $$.asof csv_locator_paths : "(" "paths" STRING* ")" @@ -1751,6 +1761,34 @@ def deconstruct_iceberg_data_to_snapshot_optional(msg: logic.IcebergData) -> Opt return builtin.none() +def construct_csv_data( + locator: logic.CSVLocator, + config: logic.CSVConfig, + columns_opt: Optional[Sequence[logic.GNFColumn]], + target_opt: Optional[logic.CSVTarget], + asof: String, +) -> logic.CSVData: + return logic.CSVData( + locator=locator, + config=config, + columns=builtin.unwrap_option_or(columns_opt, list[logic.GNFColumn]()), + asof=asof, + target=target_opt, + ) + + +def deconstruct_csv_data_columns_optional(msg: logic.CSVData) -> Optional[Sequence[logic.GNFColumn]]: + if not builtin.has_proto_field(msg, "target"): + return builtin.some(msg.columns) + return builtin.none() + + +def deconstruct_csv_data_target_optional(msg: logic.CSVData) -> Optional[logic.CSVTarget]: + if builtin.has_proto_field(msg, "target"): + return builtin.some(builtin.unwrap_option(msg.target)) + return builtin.none() + + def construct_export_iceberg_config_full( locator: logic.IcebergLocator, config: logic.IcebergCatalogConfig, diff --git a/proto/relationalai/lqp/v1/logic.proto b/proto/relationalai/lqp/v1/logic.proto index 918561b1..972dadac 100644 --- a/proto/relationalai/lqp/v1/logic.proto +++ b/proto/relationalai/lqp/v1/logic.proto @@ -276,11 +276,18 @@ message BeTreeLocator { int64 tree_height = 3; } +message CSVTarget { + RelationId target_id = 1; // Output relation path + repeated string column_names = 2; // CSV column names in order (no METADATA$ columns) + repeated Type types = 3; // Column types in order (same length as column_names) +} + message CSVData { CSVLocator locator = 1; CSVConfig config = 2; repeated GNFColumn columns = 3; string asof = 4; // Blob storage timestamp for freshness requirements + optional CSVTarget target = 5; // If present, single-relation (table) mode; mutually exclusive with columns } message CSVLocator { diff --git a/sdks/go/src/lqp/v1/logic.pb.go b/sdks/go/src/lqp/v1/logic.pb.go index 605c57e0..a6319611 100644 --- a/sdks/go/src/lqp/v1/logic.pb.go +++ b/sdks/go/src/lqp/v1/logic.pb.go @@ -2936,19 +2936,80 @@ func (*BeTreeLocator_RootPageid) isBeTreeLocator_Location() {} func (*BeTreeLocator_InlineData) isBeTreeLocator_Location() {} +type CSVTarget struct { + state protoimpl.MessageState `protogen:"open.v1"` + TargetId *RelationId `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // Output relation path + ColumnNames []string `protobuf:"bytes,2,rep,name=column_names,json=columnNames,proto3" json:"column_names,omitempty"` // CSV column names in order (no METADATA$ columns) + Types []*Type `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` // Column types in order (same length as column_names) + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CSVTarget) Reset() { + *x = CSVTarget{} + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CSVTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CSVTarget) ProtoMessage() {} + +func (x *CSVTarget) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[43] + 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 CSVTarget.ProtoReflect.Descriptor instead. +func (*CSVTarget) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{43} +} + +func (x *CSVTarget) GetTargetId() *RelationId { + if x != nil { + return x.TargetId + } + return nil +} + +func (x *CSVTarget) GetColumnNames() []string { + if x != nil { + return x.ColumnNames + } + return nil +} + +func (x *CSVTarget) GetTypes() []*Type { + if x != nil { + return x.Types + } + return nil +} + type CSVData struct { state protoimpl.MessageState `protogen:"open.v1"` Locator *CSVLocator `protobuf:"bytes,1,opt,name=locator,proto3" json:"locator,omitempty"` Config *CSVConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` Columns []*GNFColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` - Asof string `protobuf:"bytes,4,opt,name=asof,proto3" json:"asof,omitempty"` // Blob storage timestamp for freshness requirements + Asof string `protobuf:"bytes,4,opt,name=asof,proto3" json:"asof,omitempty"` // Blob storage timestamp for freshness requirements + Target *CSVTarget `protobuf:"bytes,5,opt,name=target,proto3,oneof" json:"target,omitempty"` // If present, single-relation (table) mode; mutually exclusive with columns unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CSVData) Reset() { *x = CSVData{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[43] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2960,7 +3021,7 @@ func (x *CSVData) String() string { func (*CSVData) ProtoMessage() {} func (x *CSVData) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[43] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[44] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2973,7 +3034,7 @@ func (x *CSVData) ProtoReflect() protoreflect.Message { // Deprecated: Use CSVData.ProtoReflect.Descriptor instead. func (*CSVData) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{43} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{44} } func (x *CSVData) GetLocator() *CSVLocator { @@ -3004,6 +3065,13 @@ func (x *CSVData) GetAsof() string { return "" } +func (x *CSVData) GetTarget() *CSVTarget { + if x != nil { + return x.Target + } + return nil +} + type CSVLocator struct { state protoimpl.MessageState `protogen:"open.v1"` Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` // URL(s) or filesystem path(s) for partitioned loading @@ -3014,7 +3082,7 @@ type CSVLocator struct { func (x *CSVLocator) Reset() { *x = CSVLocator{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[44] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3026,7 +3094,7 @@ func (x *CSVLocator) String() string { func (*CSVLocator) ProtoMessage() {} func (x *CSVLocator) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[44] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[45] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3039,7 +3107,7 @@ func (x *CSVLocator) ProtoReflect() protoreflect.Message { // Deprecated: Use CSVLocator.ProtoReflect.Descriptor instead. func (*CSVLocator) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{44} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{45} } func (x *CSVLocator) GetPaths() []string { @@ -3083,7 +3151,7 @@ type CSVConfig struct { func (x *CSVConfig) Reset() { *x = CSVConfig{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[45] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3095,7 +3163,7 @@ func (x *CSVConfig) String() string { func (*CSVConfig) ProtoMessage() {} func (x *CSVConfig) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[45] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3108,7 +3176,7 @@ func (x *CSVConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use CSVConfig.ProtoReflect.Descriptor instead. func (*CSVConfig) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{45} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{46} } func (x *CSVConfig) GetHeaderRow() int32 { @@ -3209,7 +3277,7 @@ type IcebergData struct { 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 +3289,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 +3302,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 { @@ -3290,7 +3358,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 +3370,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 +3383,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 +3419,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 +3431,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 +3444,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 +3486,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 +3498,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 +3511,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 +3546,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 +3558,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 +3571,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 +3613,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 +3625,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 +3638,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 +3870,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 +3882,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 +3895,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 +3906,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 +3918,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 +3931,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 +3942,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 +3954,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 +3967,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 +3978,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 +3990,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 +4003,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 +4014,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 +4026,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 +4039,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 +4050,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 +4062,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 +4075,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 +4086,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 +4098,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 +4111,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 +4122,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 +4134,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 +4147,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 +4158,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 +4170,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 +4183,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 +4196,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 +4208,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 +4221,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 +4246,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 +4258,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 +4271,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 +4282,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 +4294,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 +4307,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 +4318,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 +4330,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 +4343,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 +4354,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 +4366,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 +4379,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 +4406,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 +4418,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 +4431,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 +4650,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 +4662,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 +4675,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 +4702,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 +4714,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 +4727,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 +4752,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 +4764,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 +4777,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 +4791,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 +4803,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 +4816,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 +4857,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 +4869,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 +4882,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 +4945,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 +4957,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 +4970,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 { @@ -5349,7 +5417,17 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x72, 0x65, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x43, 0x53, 0x56, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, + 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x09, 0x43, 0x53, 0x56, 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, 0x21, 0x0a, + 0x0c, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 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, 0x22, 0x92, 0x02, 0x0a, 0x07, 0x43, 0x53, 0x56, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 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, 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, @@ -5361,265 +5439,269 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x73, - 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x22, 0x43, - 0x0a, 0x0a, 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, - 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, - 0x68, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x22, 0x8f, 0x03, 0x0a, 0x09, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, - 0x73, 0x6b, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69, 0x6e, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6e, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, - 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x65, - 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, - 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2b, - 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, - 0x61, 0x6c, 0x53, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x65, - 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, - 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, - 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, - 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, - 0x62, 0x65, 0x72, 0x67, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x07, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 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, 0x52, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 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, 0x47, - 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, - 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, - 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x74, - 0x6f, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 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, + 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x12, 0x3b, + 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 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, 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, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x53, 0x56, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, + 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, + 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, 0x03, 0x0a, 0x09, + 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, + 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, + 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, + 0x68, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, + 0x68, 0x61, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, + 0x0f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, + 0x6c, 0x5f, 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x53, 0x65, 0x70, 0x61, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 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, 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, 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, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 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, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 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, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x28, 0x0a, 0x0d, 0x66, 0x72, 0x6f, + 0x6d, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0c, 0x66, 0x72, 0x6f, 0x6d, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, + 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x74, 0x6f, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 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, 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, 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, + 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, 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, + 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, 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, 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, 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, + 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, 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, 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, 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, + 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 +5716,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 @@ -5679,53 +5761,54 @@ var file_relationalai_lqp_v1_logic_proto_goTypes = []any{ (*BeTreeInfo)(nil), // 40: relationalai.lqp.v1.BeTreeInfo (*BeTreeConfig)(nil), // 41: relationalai.lqp.v1.BeTreeConfig (*BeTreeLocator)(nil), // 42: relationalai.lqp.v1.BeTreeLocator - (*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 + (*CSVTarget)(nil), // 43: relationalai.lqp.v1.CSVTarget + (*CSVData)(nil), // 44: relationalai.lqp.v1.CSVData + (*CSVLocator)(nil), // 45: relationalai.lqp.v1.CSVLocator + (*CSVConfig)(nil), // 46: relationalai.lqp.v1.CSVConfig + (*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 +5822,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 +5870,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 + 44, // 88: relationalai.lqp.v1.Data.csv_data:type_name -> relationalai.lqp.v1.CSVData + 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 - 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 + 68, // 98: relationalai.lqp.v1.BeTreeLocator.root_pageid:type_name -> relationalai.lqp.v1.UInt128Value + 51, // 99: relationalai.lqp.v1.CSVTarget.target_id:type_name -> relationalai.lqp.v1.RelationId + 52, // 100: relationalai.lqp.v1.CSVTarget.types:type_name -> relationalai.lqp.v1.Type + 45, // 101: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator + 46, // 102: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig + 50, // 103: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 43, // 104: relationalai.lqp.v1.CSVData.target:type_name -> relationalai.lqp.v1.CSVTarget + 48, // 105: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator + 49, // 106: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergCatalogConfig + 50, // 107: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 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 +5998,11 @@ 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[44].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 +6018,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 +6039,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..cd1d1746 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 _t2124 interface{} if (value != nil && hasProtoField(value, "int32_value")) { return value.GetInt32Value() } - _ = _t2094 + _ = _t2124 return int32(default_) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t2095 interface{} + var _t2125 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t2095 + _ = _t2125 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t2096 interface{} + var _t2126 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t2096 + _ = _t2126 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t2097 interface{} + var _t2127 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t2097 + _ = _t2127 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t2098 interface{} + var _t2128 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t2098 + _ = _t2128 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t2099 interface{} + var _t2129 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t2099 + _ = _t2129 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t2100 interface{} + var _t2130 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t2100 + _ = _t2130 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t2101 interface{} + var _t2131 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t2101 + _ = _t2131 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t2102 interface{} + var _t2132 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t2102 + _ = _t2132 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 + _t2133 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t2133 + _t2134 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t2134 + _t2135 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t2135 + _t2136 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t2136 + _t2137 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t2137 + _t2138 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t2138 + _t2139 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t2139 + _t2140 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t2140 + _t2141 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t2141 + _t2142 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t2142 + _t2143 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") + compression := _t2143 + _t2144 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t2144 + _t2145 := &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 _t2145 } 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)} + _t2146 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t2146 + _t2147 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t2147 + _t2148 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t2148 + _t2149 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t2149 + _t2150 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t2150 + _t2151 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t2151 + _t2152 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t2152 + _t2153 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t2153 + _t2154 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t2154 + _t2155 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t2125.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t2155.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t2125.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t2155.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 := _t2155 + _t2156 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t2156 } 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 + _t2157 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t2157 + _t2158 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t2158 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -822,4259 +822,4312 @@ 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 + _t2159 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t2159 + _t2160 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t2160 + _t2161 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} + return _t2161 } 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 + _t2162 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t2162 + _t2163 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t2163 + _t2164 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t2164 + _t2165 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t2165 + _t2166 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t2166 + _t2167 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t2167 + _t2168 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t2168 + _t2169 := &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 _t2169 } 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 + _t2170 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} + return _t2170 } 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 + _t2171 := &pb.IcebergCatalogConfig{CatalogUri: catalog_uri, Scope: ptr(deref(scope_opt, "")), Properties: props, AuthProperties: auth_props} + return _t2171 } 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 + _t2172 := &pb.IcebergData{Locator: locator, Config: config, Columns: columns, FromSnapshot: ptr(deref(from_snapshot_opt, "")), ToSnapshot: ptr(deref(to_snapshot_opt, "")), ReturnsDelta: returns_delta} + return _t2172 +} + +func (p *Parser) construct_csv_data(locator *pb.CSVLocator, config *pb.CSVConfig, columns_opt []*pb.GNFColumn, target_opt *pb.CSVTarget, asof string) *pb.CSVData { + _t2173 := columns_opt + if columns_opt == nil { + _t2173 = []*pb.GNFColumn{} + } + _t2174 := &pb.CSVData{Locator: locator, Config: config, Columns: _t2173, Asof: asof, Target: target_opt} + return _t2174 } 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 + _t2175 := 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 + _t2175 = [][]interface{}{} + } + cfg := dictFromList(_t2175) + _t2176 := p._extract_value_string(dictGetValue(cfg, "prefix"), "") + prefix := _t2176 + _t2177 := p._extract_value_int64(dictGetValue(cfg, "target_file_size_bytes"), 0) + target_file_size_bytes := _t2177 + _t2178 := p._extract_value_string(dictGetValue(cfg, "compression"), "") + compression := _t2178 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 + _t2179 := &pb.ExportIcebergConfig{Locator: locator, Config: config, TableDef: table_def, Prefix: ptr(prefix), TargetFileSizeBytes: ptr(target_file_size_bytes), Compression: compression, TableProperties: table_props} + return _t2179 } // --- Parse functions --- func (p *Parser) parse_transaction() *pb.Transaction { - span_start671 := int64(p.spanStart()) + span_start683 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("transaction") - var _t1330 *pb.Configure + var _t1354 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t1331 := p.parse_configure() - _t1330 = _t1331 + _t1355 := p.parse_configure() + _t1354 = _t1355 } - configure665 := _t1330 - var _t1332 *pb.Sync + configure677 := _t1354 + var _t1356 *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 + _t1357 := p.parse_sync() + _t1356 = _t1357 + } + sync678 := _t1356 + xs679 := []*pb.Epoch{} + cond680 := p.matchLookaheadLiteral("(", 0) + for cond680 { + _t1358 := p.parse_epoch() + item681 := _t1358 + xs679 = append(xs679, item681) + cond680 = p.matchLookaheadLiteral("(", 0) + } + epochs682 := xs679 p.consumeLiteral(")") - _t1335 := p.default_configure() - _t1336 := configure665 - if configure665 == nil { - _t1336 = _t1335 + _t1359 := p.default_configure() + _t1360 := configure677 + if configure677 == nil { + _t1360 = _t1359 } - _t1337 := &pb.Transaction{Epochs: epochs670, Configure: _t1336, Sync: sync666} - result672 := _t1337 - p.recordSpan(int(span_start671), "Transaction") - return result672 + _t1361 := &pb.Transaction{Epochs: epochs682, Configure: _t1360, Sync: sync678} + result684 := _t1361 + p.recordSpan(int(span_start683), "Transaction") + return result684 } func (p *Parser) parse_configure() *pb.Configure { - span_start674 := int64(p.spanStart()) + span_start686 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("configure") - _t1338 := p.parse_config_dict() - config_dict673 := _t1338 + _t1362 := p.parse_config_dict() + config_dict685 := _t1362 p.consumeLiteral(")") - _t1339 := p.construct_configure(config_dict673) - result675 := _t1339 - p.recordSpan(int(span_start674), "Configure") - return result675 + _t1363 := p.construct_configure(config_dict685) + result687 := _t1363 + p.recordSpan(int(span_start686), "Configure") + return result687 } 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 + xs688 := [][]interface{}{} + cond689 := p.matchLookaheadLiteral(":", 0) + for cond689 { + _t1364 := p.parse_config_key_value() + item690 := _t1364 + xs688 = append(xs688, item690) + cond689 = p.matchLookaheadLiteral(":", 0) + } + config_key_values691 := xs688 p.consumeLiteral("}") - return config_key_values679 + return config_key_values691 } 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} + symbol692 := p.consumeTerminal("SYMBOL").Value.str + _t1365 := p.parse_raw_value() + raw_value693 := _t1365 + return []interface{}{symbol692, raw_value693} } func (p *Parser) parse_raw_value() *pb.Value { - span_start695 := int64(p.spanStart()) - var _t1342 int64 + span_start707 := int64(p.spanStart()) + var _t1366 int64 if p.matchLookaheadLiteral("true", 0) { - _t1342 = 12 + _t1366 = 12 } else { - var _t1343 int64 + var _t1367 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1343 = 11 + _t1367 = 11 } else { - var _t1344 int64 + var _t1368 int64 if p.matchLookaheadLiteral("false", 0) { - _t1344 = 12 + _t1368 = 12 } else { - var _t1345 int64 + var _t1369 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1346 int64 + var _t1370 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1346 = 1 + _t1370 = 1 } else { - var _t1347 int64 + var _t1371 int64 if p.matchLookaheadLiteral("date", 1) { - _t1347 = 0 + _t1371 = 0 } else { - _t1347 = -1 + _t1371 = -1 } - _t1346 = _t1347 + _t1370 = _t1371 } - _t1345 = _t1346 + _t1369 = _t1370 } else { - var _t1348 int64 + var _t1372 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1348 = 7 + _t1372 = 7 } else { - var _t1349 int64 + var _t1373 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1349 = 8 + _t1373 = 8 } else { - var _t1350 int64 + var _t1374 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1350 = 2 + _t1374 = 2 } else { - var _t1351 int64 + var _t1375 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1351 = 3 + _t1375 = 3 } else { - var _t1352 int64 + var _t1376 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1352 = 9 + _t1376 = 9 } else { - var _t1353 int64 + var _t1377 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1353 = 4 + _t1377 = 4 } else { - var _t1354 int64 + var _t1378 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1354 = 5 + _t1378 = 5 } else { - var _t1355 int64 + var _t1379 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1355 = 6 + _t1379 = 6 } else { - var _t1356 int64 + var _t1380 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1356 = 10 + _t1380 = 10 } else { - _t1356 = -1 + _t1380 = -1 } - _t1355 = _t1356 + _t1379 = _t1380 } - _t1354 = _t1355 + _t1378 = _t1379 } - _t1353 = _t1354 + _t1377 = _t1378 } - _t1352 = _t1353 + _t1376 = _t1377 } - _t1351 = _t1352 + _t1375 = _t1376 } - _t1350 = _t1351 + _t1374 = _t1375 } - _t1349 = _t1350 + _t1373 = _t1374 } - _t1348 = _t1349 + _t1372 = _t1373 } - _t1345 = _t1348 + _t1369 = _t1372 } - _t1344 = _t1345 + _t1368 = _t1369 } - _t1343 = _t1344 + _t1367 = _t1368 } - _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 + _t1366 = _t1367 + } + prediction694 := _t1366 + var _t1381 *pb.Value + if prediction694 == 12 { + _t1382 := p.parse_boolean_value() + boolean_value706 := _t1382 + _t1383 := &pb.Value{} + _t1383.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value706} + _t1381 = _t1383 } else { - var _t1360 *pb.Value - if prediction682 == 11 { + var _t1384 *pb.Value + if prediction694 == 11 { p.consumeLiteral("missing") - _t1361 := &pb.MissingValue{} - _t1362 := &pb.Value{} - _t1362.Value = &pb.Value_MissingValue{MissingValue: _t1361} - _t1360 = _t1362 + _t1385 := &pb.MissingValue{} + _t1386 := &pb.Value{} + _t1386.Value = &pb.Value_MissingValue{MissingValue: _t1385} + _t1384 = _t1386 } 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 _t1387 *pb.Value + if prediction694 == 10 { + decimal705 := p.consumeTerminal("DECIMAL").Value.decimal + _t1388 := &pb.Value{} + _t1388.Value = &pb.Value_DecimalValue{DecimalValue: decimal705} + _t1387 = _t1388 } 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 _t1389 *pb.Value + if prediction694 == 9 { + int128704 := p.consumeTerminal("INT128").Value.int128 + _t1390 := &pb.Value{} + _t1390.Value = &pb.Value_Int128Value{Int128Value: int128704} + _t1389 = _t1390 } 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 _t1391 *pb.Value + if prediction694 == 8 { + uint128703 := p.consumeTerminal("UINT128").Value.uint128 + _t1392 := &pb.Value{} + _t1392.Value = &pb.Value_Uint128Value{Uint128Value: uint128703} + _t1391 = _t1392 } 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 _t1393 *pb.Value + if prediction694 == 7 { + uint32702 := p.consumeTerminal("UINT32").Value.u32 + _t1394 := &pb.Value{} + _t1394.Value = &pb.Value_Uint32Value{Uint32Value: uint32702} + _t1393 = _t1394 } 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 _t1395 *pb.Value + if prediction694 == 6 { + float701 := p.consumeTerminal("FLOAT").Value.f64 + _t1396 := &pb.Value{} + _t1396.Value = &pb.Value_FloatValue{FloatValue: float701} + _t1395 = _t1396 } 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 _t1397 *pb.Value + if prediction694 == 5 { + float32700 := p.consumeTerminal("FLOAT32").Value.f32 + _t1398 := &pb.Value{} + _t1398.Value = &pb.Value_Float32Value{Float32Value: float32700} + _t1397 = _t1398 } 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 _t1399 *pb.Value + if prediction694 == 4 { + int699 := p.consumeTerminal("INT").Value.i64 + _t1400 := &pb.Value{} + _t1400.Value = &pb.Value_IntValue{IntValue: int699} + _t1399 = _t1400 } 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 _t1401 *pb.Value + if prediction694 == 3 { + int32698 := p.consumeTerminal("INT32").Value.i32 + _t1402 := &pb.Value{} + _t1402.Value = &pb.Value_Int32Value{Int32Value: int32698} + _t1401 = _t1402 } 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 _t1403 *pb.Value + if prediction694 == 2 { + string697 := p.consumeTerminal("STRING").Value.str + _t1404 := &pb.Value{} + _t1404.Value = &pb.Value_StringValue{StringValue: string697} + _t1403 = _t1404 } 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 _t1405 *pb.Value + if prediction694 == 1 { + _t1406 := p.parse_raw_datetime() + raw_datetime696 := _t1406 + _t1407 := &pb.Value{} + _t1407.Value = &pb.Value_DatetimeValue{DatetimeValue: raw_datetime696} + _t1405 = _t1407 } 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 _t1408 *pb.Value + if prediction694 == 0 { + _t1409 := p.parse_raw_date() + raw_date695 := _t1409 + _t1410 := &pb.Value{} + _t1410.Value = &pb.Value_DateValue{DateValue: raw_date695} + _t1408 = _t1410 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in raw_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1381 = _t1384 + _t1405 = _t1408 } - _t1379 = _t1381 + _t1403 = _t1405 } - _t1377 = _t1379 + _t1401 = _t1403 } - _t1375 = _t1377 + _t1399 = _t1401 } - _t1373 = _t1375 + _t1397 = _t1399 } - _t1371 = _t1373 + _t1395 = _t1397 } - _t1369 = _t1371 + _t1393 = _t1395 } - _t1367 = _t1369 + _t1391 = _t1393 } - _t1365 = _t1367 + _t1389 = _t1391 } - _t1363 = _t1365 + _t1387 = _t1389 } - _t1360 = _t1363 + _t1384 = _t1387 } - _t1357 = _t1360 + _t1381 = _t1384 } - result696 := _t1357 - p.recordSpan(int(span_start695), "Value") - return result696 + result708 := _t1381 + p.recordSpan(int(span_start707), "Value") + return result708 } func (p *Parser) parse_raw_date() *pb.DateValue { - span_start700 := int64(p.spanStart()) + span_start712 := 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 + int709 := p.consumeTerminal("INT").Value.i64 + int_3710 := p.consumeTerminal("INT").Value.i64 + int_4711 := 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 + _t1411 := &pb.DateValue{Year: int32(int709), Month: int32(int_3710), Day: int32(int_4711)} + result713 := _t1411 + p.recordSpan(int(span_start712), "DateValue") + return result713 } func (p *Parser) parse_raw_datetime() *pb.DateTimeValue { - span_start709 := int64(p.spanStart()) + span_start721 := 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 + int714 := p.consumeTerminal("INT").Value.i64 + int_3715 := p.consumeTerminal("INT").Value.i64 + int_4716 := p.consumeTerminal("INT").Value.i64 + int_5717 := p.consumeTerminal("INT").Value.i64 + int_6718 := p.consumeTerminal("INT").Value.i64 + int_7719 := p.consumeTerminal("INT").Value.i64 + var _t1412 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1388 = ptr(p.consumeTerminal("INT").Value.i64) + _t1412 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8708 := _t1388 + int_8720 := _t1412 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 + _t1413 := &pb.DateTimeValue{Year: int32(int714), Month: int32(int_3715), Day: int32(int_4716), Hour: int32(int_5717), Minute: int32(int_6718), Second: int32(int_7719), Microsecond: int32(deref(int_8720, 0))} + result722 := _t1413 + p.recordSpan(int(span_start721), "DateTimeValue") + return result722 } func (p *Parser) parse_boolean_value() bool { - var _t1390 int64 + var _t1414 int64 if p.matchLookaheadLiteral("true", 0) { - _t1390 = 0 + _t1414 = 0 } else { - var _t1391 int64 + var _t1415 int64 if p.matchLookaheadLiteral("false", 0) { - _t1391 = 1 + _t1415 = 1 } else { - _t1391 = -1 + _t1415 = -1 } - _t1390 = _t1391 + _t1414 = _t1415 } - prediction711 := _t1390 - var _t1392 bool - if prediction711 == 1 { + prediction723 := _t1414 + var _t1416 bool + if prediction723 == 1 { p.consumeLiteral("false") - _t1392 = false + _t1416 = false } else { - var _t1393 bool - if prediction711 == 0 { + var _t1417 bool + if prediction723 == 0 { p.consumeLiteral("true") - _t1393 = true + _t1417 = 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 + _t1416 = _t1417 } - return _t1392 + return _t1416 } func (p *Parser) parse_sync() *pb.Sync { - span_start716 := int64(p.spanStart()) + span_start728 := 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 + xs724 := []*pb.FragmentId{} + cond725 := p.matchLookaheadLiteral(":", 0) + for cond725 { + _t1418 := p.parse_fragment_id() + item726 := _t1418 + xs724 = append(xs724, item726) + cond725 = p.matchLookaheadLiteral(":", 0) + } + fragment_ids727 := xs724 p.consumeLiteral(")") - _t1395 := &pb.Sync{Fragments: fragment_ids715} - result717 := _t1395 - p.recordSpan(int(span_start716), "Sync") - return result717 + _t1419 := &pb.Sync{Fragments: fragment_ids727} + result729 := _t1419 + p.recordSpan(int(span_start728), "Sync") + return result729 } func (p *Parser) parse_fragment_id() *pb.FragmentId { - span_start719 := int64(p.spanStart()) + span_start731 := 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 + symbol730 := p.consumeTerminal("SYMBOL").Value.str + result732 := &pb.FragmentId{Id: []byte(symbol730)} + p.recordSpan(int(span_start731), "FragmentId") + return result732 } func (p *Parser) parse_epoch() *pb.Epoch { - span_start723 := int64(p.spanStart()) + span_start735 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t1396 []*pb.Write + var _t1420 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t1397 := p.parse_epoch_writes() - _t1396 = _t1397 + _t1421 := p.parse_epoch_writes() + _t1420 = _t1421 } - epoch_writes721 := _t1396 - var _t1398 []*pb.Read + epoch_writes733 := _t1420 + var _t1422 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t1399 := p.parse_epoch_reads() - _t1398 = _t1399 + _t1423 := p.parse_epoch_reads() + _t1422 = _t1423 } - epoch_reads722 := _t1398 + epoch_reads734 := _t1422 p.consumeLiteral(")") - _t1400 := epoch_writes721 - if epoch_writes721 == nil { - _t1400 = []*pb.Write{} + _t1424 := epoch_writes733 + if epoch_writes733 == nil { + _t1424 = []*pb.Write{} } - _t1401 := epoch_reads722 - if epoch_reads722 == nil { - _t1401 = []*pb.Read{} + _t1425 := epoch_reads734 + if epoch_reads734 == nil { + _t1425 = []*pb.Read{} } - _t1402 := &pb.Epoch{Writes: _t1400, Reads: _t1401} - result724 := _t1402 - p.recordSpan(int(span_start723), "Epoch") - return result724 + _t1426 := &pb.Epoch{Writes: _t1424, Reads: _t1425} + result736 := _t1426 + p.recordSpan(int(span_start735), "Epoch") + return result736 } 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 + xs737 := []*pb.Write{} + cond738 := p.matchLookaheadLiteral("(", 0) + for cond738 { + _t1427 := p.parse_write() + item739 := _t1427 + xs737 = append(xs737, item739) + cond738 = p.matchLookaheadLiteral("(", 0) + } + writes740 := xs737 p.consumeLiteral(")") - return writes728 + return writes740 } func (p *Parser) parse_write() *pb.Write { - span_start734 := int64(p.spanStart()) - var _t1404 int64 + span_start746 := int64(p.spanStart()) + var _t1428 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1405 int64 + var _t1429 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t1405 = 1 + _t1429 = 1 } else { - var _t1406 int64 + var _t1430 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t1406 = 3 + _t1430 = 3 } else { - var _t1407 int64 + var _t1431 int64 if p.matchLookaheadLiteral("define", 1) { - _t1407 = 0 + _t1431 = 0 } else { - var _t1408 int64 + var _t1432 int64 if p.matchLookaheadLiteral("context", 1) { - _t1408 = 2 + _t1432 = 2 } else { - _t1408 = -1 + _t1432 = -1 } - _t1407 = _t1408 + _t1431 = _t1432 } - _t1406 = _t1407 + _t1430 = _t1431 } - _t1405 = _t1406 + _t1429 = _t1430 } - _t1404 = _t1405 + _t1428 = _t1429 } 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 + _t1428 = -1 + } + prediction741 := _t1428 + var _t1433 *pb.Write + if prediction741 == 3 { + _t1434 := p.parse_snapshot() + snapshot745 := _t1434 + _t1435 := &pb.Write{} + _t1435.WriteType = &pb.Write_Snapshot{Snapshot: snapshot745} + _t1433 = _t1435 } 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 _t1436 *pb.Write + if prediction741 == 2 { + _t1437 := p.parse_context() + context744 := _t1437 + _t1438 := &pb.Write{} + _t1438.WriteType = &pb.Write_Context{Context: context744} + _t1436 = _t1438 } 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 _t1439 *pb.Write + if prediction741 == 1 { + _t1440 := p.parse_undefine() + undefine743 := _t1440 + _t1441 := &pb.Write{} + _t1441.WriteType = &pb.Write_Undefine{Undefine: undefine743} + _t1439 = _t1441 } 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 _t1442 *pb.Write + if prediction741 == 0 { + _t1443 := p.parse_define() + define742 := _t1443 + _t1444 := &pb.Write{} + _t1444.WriteType = &pb.Write_Define{Define: define742} + _t1442 = _t1444 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1415 = _t1418 + _t1439 = _t1442 } - _t1412 = _t1415 + _t1436 = _t1439 } - _t1409 = _t1412 + _t1433 = _t1436 } - result735 := _t1409 - p.recordSpan(int(span_start734), "Write") - return result735 + result747 := _t1433 + p.recordSpan(int(span_start746), "Write") + return result747 } func (p *Parser) parse_define() *pb.Define { - span_start737 := int64(p.spanStart()) + span_start749 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("define") - _t1421 := p.parse_fragment() - fragment736 := _t1421 + _t1445 := p.parse_fragment() + fragment748 := _t1445 p.consumeLiteral(")") - _t1422 := &pb.Define{Fragment: fragment736} - result738 := _t1422 - p.recordSpan(int(span_start737), "Define") - return result738 + _t1446 := &pb.Define{Fragment: fragment748} + result750 := _t1446 + p.recordSpan(int(span_start749), "Define") + return result750 } func (p *Parser) parse_fragment() *pb.Fragment { - span_start744 := int64(p.spanStart()) + span_start756 := 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 + _t1447 := p.parse_new_fragment_id() + new_fragment_id751 := _t1447 + xs752 := []*pb.Declaration{} + cond753 := p.matchLookaheadLiteral("(", 0) + for cond753 { + _t1448 := p.parse_declaration() + item754 := _t1448 + xs752 = append(xs752, item754) + cond753 = p.matchLookaheadLiteral("(", 0) + } + declarations755 := xs752 p.consumeLiteral(")") - result745 := p.constructFragment(new_fragment_id739, declarations743) - p.recordSpan(int(span_start744), "Fragment") - return result745 + result757 := p.constructFragment(new_fragment_id751, declarations755) + p.recordSpan(int(span_start756), "Fragment") + return result757 } 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_start759 := int64(p.spanStart()) + _t1449 := p.parse_fragment_id() + fragment_id758 := _t1449 + p.startFragment(fragment_id758) + result760 := fragment_id758 + p.recordSpan(int(span_start759), "FragmentId") + return result760 } func (p *Parser) parse_declaration() *pb.Declaration { - span_start754 := int64(p.spanStart()) - var _t1426 int64 + span_start766 := int64(p.spanStart()) + var _t1450 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1427 int64 + var _t1451 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t1427 = 3 + _t1451 = 3 } else { - var _t1428 int64 + var _t1452 int64 if p.matchLookaheadLiteral("functional_dependency", 1) { - _t1428 = 2 + _t1452 = 2 } else { - var _t1429 int64 + var _t1453 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1429 = 3 + _t1453 = 3 } else { - var _t1430 int64 + var _t1454 int64 if p.matchLookaheadLiteral("def", 1) { - _t1430 = 0 + _t1454 = 0 } else { - var _t1431 int64 + var _t1455 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1431 = 3 + _t1455 = 3 } else { - var _t1432 int64 + var _t1456 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1432 = 3 + _t1456 = 3 } else { - var _t1433 int64 + var _t1457 int64 if p.matchLookaheadLiteral("algorithm", 1) { - _t1433 = 1 + _t1457 = 1 } else { - _t1433 = -1 + _t1457 = -1 } - _t1432 = _t1433 + _t1456 = _t1457 } - _t1431 = _t1432 + _t1455 = _t1456 } - _t1430 = _t1431 + _t1454 = _t1455 } - _t1429 = _t1430 + _t1453 = _t1454 } - _t1428 = _t1429 + _t1452 = _t1453 } - _t1427 = _t1428 + _t1451 = _t1452 } - _t1426 = _t1427 + _t1450 = _t1451 } 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 + _t1450 = -1 + } + prediction761 := _t1450 + var _t1458 *pb.Declaration + if prediction761 == 3 { + _t1459 := p.parse_data() + data765 := _t1459 + _t1460 := &pb.Declaration{} + _t1460.DeclarationType = &pb.Declaration_Data{Data: data765} + _t1458 = _t1460 } 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 _t1461 *pb.Declaration + if prediction761 == 2 { + _t1462 := p.parse_constraint() + constraint764 := _t1462 + _t1463 := &pb.Declaration{} + _t1463.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint764} + _t1461 = _t1463 } 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 _t1464 *pb.Declaration + if prediction761 == 1 { + _t1465 := p.parse_algorithm() + algorithm763 := _t1465 + _t1466 := &pb.Declaration{} + _t1466.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm763} + _t1464 = _t1466 } 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 _t1467 *pb.Declaration + if prediction761 == 0 { + _t1468 := p.parse_def() + def762 := _t1468 + _t1469 := &pb.Declaration{} + _t1469.DeclarationType = &pb.Declaration_Def{Def: def762} + _t1467 = _t1469 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1440 = _t1443 + _t1464 = _t1467 } - _t1437 = _t1440 + _t1461 = _t1464 } - _t1434 = _t1437 + _t1458 = _t1461 } - result755 := _t1434 - p.recordSpan(int(span_start754), "Declaration") - return result755 + result767 := _t1458 + p.recordSpan(int(span_start766), "Declaration") + return result767 } func (p *Parser) parse_def() *pb.Def { - span_start759 := int64(p.spanStart()) + span_start771 := 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 + _t1470 := p.parse_relation_id() + relation_id768 := _t1470 + _t1471 := p.parse_abstraction() + abstraction769 := _t1471 + var _t1472 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1449 := p.parse_attrs() - _t1448 = _t1449 + _t1473 := p.parse_attrs() + _t1472 = _t1473 } - attrs758 := _t1448 + attrs770 := _t1472 p.consumeLiteral(")") - _t1450 := attrs758 - if attrs758 == nil { - _t1450 = []*pb.Attribute{} + _t1474 := attrs770 + if attrs770 == nil { + _t1474 = []*pb.Attribute{} } - _t1451 := &pb.Def{Name: relation_id756, Body: abstraction757, Attrs: _t1450} - result760 := _t1451 - p.recordSpan(int(span_start759), "Def") - return result760 + _t1475 := &pb.Def{Name: relation_id768, Body: abstraction769, Attrs: _t1474} + result772 := _t1475 + p.recordSpan(int(span_start771), "Def") + return result772 } func (p *Parser) parse_relation_id() *pb.RelationId { - span_start764 := int64(p.spanStart()) - var _t1452 int64 + span_start776 := int64(p.spanStart()) + var _t1476 int64 if p.matchLookaheadLiteral(":", 0) { - _t1452 = 0 + _t1476 = 0 } else { - var _t1453 int64 + var _t1477 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1453 = 1 + _t1477 = 1 } else { - _t1453 = -1 + _t1477 = -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} + _t1476 = _t1477 + } + prediction773 := _t1476 + var _t1478 *pb.RelationId + if prediction773 == 1 { + uint128775 := p.consumeTerminal("UINT128").Value.uint128 + _ = uint128775 + _t1478 = &pb.RelationId{IdLow: uint128775.Low, IdHigh: uint128775.High} } else { - var _t1455 *pb.RelationId - if prediction761 == 0 { + var _t1479 *pb.RelationId + if prediction773 == 0 { p.consumeLiteral(":") - symbol762 := p.consumeTerminal("SYMBOL").Value.str - _t1455 = p.relationIdFromString(symbol762) + symbol774 := p.consumeTerminal("SYMBOL").Value.str + _t1479 = p.relationIdFromString(symbol774) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1454 = _t1455 + _t1478 = _t1479 } - result765 := _t1454 - p.recordSpan(int(span_start764), "RelationId") - return result765 + result777 := _t1478 + p.recordSpan(int(span_start776), "RelationId") + return result777 } func (p *Parser) parse_abstraction() *pb.Abstraction { - span_start768 := int64(p.spanStart()) + span_start780 := int64(p.spanStart()) p.consumeLiteral("(") - _t1456 := p.parse_bindings() - bindings766 := _t1456 - _t1457 := p.parse_formula() - formula767 := _t1457 + _t1480 := p.parse_bindings() + bindings778 := _t1480 + _t1481 := p.parse_formula() + formula779 := _t1481 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 + _t1482 := &pb.Abstraction{Vars: listConcat(bindings778[0].([]*pb.Binding), bindings778[1].([]*pb.Binding)), Value: formula779} + result781 := _t1482 + p.recordSpan(int(span_start780), "Abstraction") + return result781 } 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 + xs782 := []*pb.Binding{} + cond783 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond783 { + _t1483 := p.parse_binding() + item784 := _t1483 + xs782 = append(xs782, item784) + cond783 = p.matchLookaheadTerminal("SYMBOL", 0) + } + bindings785 := xs782 + var _t1484 []*pb.Binding if p.matchLookaheadLiteral("|", 0) { - _t1461 := p.parse_value_bindings() - _t1460 = _t1461 + _t1485 := p.parse_value_bindings() + _t1484 = _t1485 } - value_bindings774 := _t1460 + value_bindings786 := _t1484 p.consumeLiteral("]") - _t1462 := value_bindings774 - if value_bindings774 == nil { - _t1462 = []*pb.Binding{} + _t1486 := value_bindings786 + if value_bindings786 == nil { + _t1486 = []*pb.Binding{} } - return []interface{}{bindings773, _t1462} + return []interface{}{bindings785, _t1486} } func (p *Parser) parse_binding() *pb.Binding { - span_start777 := int64(p.spanStart()) - symbol775 := p.consumeTerminal("SYMBOL").Value.str + span_start789 := int64(p.spanStart()) + symbol787 := 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 + _t1487 := p.parse_type() + type788 := _t1487 + _t1488 := &pb.Var{Name: symbol787} + _t1489 := &pb.Binding{Var: _t1488, Type: type788} + result790 := _t1489 + p.recordSpan(int(span_start789), "Binding") + return result790 } func (p *Parser) parse_type() *pb.Type { - span_start794 := int64(p.spanStart()) - var _t1466 int64 + span_start806 := int64(p.spanStart()) + var _t1490 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t1466 = 0 + _t1490 = 0 } else { - var _t1467 int64 + var _t1491 int64 if p.matchLookaheadLiteral("UINT32", 0) { - _t1467 = 13 + _t1491 = 13 } else { - var _t1468 int64 + var _t1492 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t1468 = 4 + _t1492 = 4 } else { - var _t1469 int64 + var _t1493 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t1469 = 1 + _t1493 = 1 } else { - var _t1470 int64 + var _t1494 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t1470 = 8 + _t1494 = 8 } else { - var _t1471 int64 + var _t1495 int64 if p.matchLookaheadLiteral("INT32", 0) { - _t1471 = 11 + _t1495 = 11 } else { - var _t1472 int64 + var _t1496 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t1472 = 5 + _t1496 = 5 } else { - var _t1473 int64 + var _t1497 int64 if p.matchLookaheadLiteral("INT", 0) { - _t1473 = 2 + _t1497 = 2 } else { - var _t1474 int64 + var _t1498 int64 if p.matchLookaheadLiteral("FLOAT32", 0) { - _t1474 = 12 + _t1498 = 12 } else { - var _t1475 int64 + var _t1499 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t1475 = 3 + _t1499 = 3 } else { - var _t1476 int64 + var _t1500 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t1476 = 7 + _t1500 = 7 } else { - var _t1477 int64 + var _t1501 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t1477 = 6 + _t1501 = 6 } else { - var _t1478 int64 + var _t1502 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t1478 = 10 + _t1502 = 10 } else { - var _t1479 int64 + var _t1503 int64 if p.matchLookaheadLiteral("(", 0) { - _t1479 = 9 + _t1503 = 9 } else { - _t1479 = -1 + _t1503 = -1 } - _t1478 = _t1479 + _t1502 = _t1503 } - _t1477 = _t1478 + _t1501 = _t1502 } - _t1476 = _t1477 + _t1500 = _t1501 } - _t1475 = _t1476 + _t1499 = _t1500 } - _t1474 = _t1475 + _t1498 = _t1499 } - _t1473 = _t1474 + _t1497 = _t1498 } - _t1472 = _t1473 + _t1496 = _t1497 } - _t1471 = _t1472 + _t1495 = _t1496 } - _t1470 = _t1471 + _t1494 = _t1495 } - _t1469 = _t1470 + _t1493 = _t1494 } - _t1468 = _t1469 + _t1492 = _t1493 } - _t1467 = _t1468 + _t1491 = _t1492 } - _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 + _t1490 = _t1491 + } + prediction791 := _t1490 + var _t1504 *pb.Type + if prediction791 == 13 { + _t1505 := p.parse_uint32_type() + uint32_type805 := _t1505 + _t1506 := &pb.Type{} + _t1506.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type805} + _t1504 = _t1506 } 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 _t1507 *pb.Type + if prediction791 == 12 { + _t1508 := p.parse_float32_type() + float32_type804 := _t1508 + _t1509 := &pb.Type{} + _t1509.Type = &pb.Type_Float32Type{Float32Type: float32_type804} + _t1507 = _t1509 } 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 _t1510 *pb.Type + if prediction791 == 11 { + _t1511 := p.parse_int32_type() + int32_type803 := _t1511 + _t1512 := &pb.Type{} + _t1512.Type = &pb.Type_Int32Type{Int32Type: int32_type803} + _t1510 = _t1512 } 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 _t1513 *pb.Type + if prediction791 == 10 { + _t1514 := p.parse_boolean_type() + boolean_type802 := _t1514 + _t1515 := &pb.Type{} + _t1515.Type = &pb.Type_BooleanType{BooleanType: boolean_type802} + _t1513 = _t1515 } 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 _t1516 *pb.Type + if prediction791 == 9 { + _t1517 := p.parse_decimal_type() + decimal_type801 := _t1517 + _t1518 := &pb.Type{} + _t1518.Type = &pb.Type_DecimalType{DecimalType: decimal_type801} + _t1516 = _t1518 } 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 _t1519 *pb.Type + if prediction791 == 8 { + _t1520 := p.parse_missing_type() + missing_type800 := _t1520 + _t1521 := &pb.Type{} + _t1521.Type = &pb.Type_MissingType{MissingType: missing_type800} + _t1519 = _t1521 } 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 _t1522 *pb.Type + if prediction791 == 7 { + _t1523 := p.parse_datetime_type() + datetime_type799 := _t1523 + _t1524 := &pb.Type{} + _t1524.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type799} + _t1522 = _t1524 } 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 _t1525 *pb.Type + if prediction791 == 6 { + _t1526 := p.parse_date_type() + date_type798 := _t1526 + _t1527 := &pb.Type{} + _t1527.Type = &pb.Type_DateType{DateType: date_type798} + _t1525 = _t1527 } 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 _t1528 *pb.Type + if prediction791 == 5 { + _t1529 := p.parse_int128_type() + int128_type797 := _t1529 + _t1530 := &pb.Type{} + _t1530.Type = &pb.Type_Int128Type{Int128Type: int128_type797} + _t1528 = _t1530 } 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 _t1531 *pb.Type + if prediction791 == 4 { + _t1532 := p.parse_uint128_type() + uint128_type796 := _t1532 + _t1533 := &pb.Type{} + _t1533.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type796} + _t1531 = _t1533 } 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 _t1534 *pb.Type + if prediction791 == 3 { + _t1535 := p.parse_float_type() + float_type795 := _t1535 + _t1536 := &pb.Type{} + _t1536.Type = &pb.Type_FloatType{FloatType: float_type795} + _t1534 = _t1536 } 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 _t1537 *pb.Type + if prediction791 == 2 { + _t1538 := p.parse_int_type() + int_type794 := _t1538 + _t1539 := &pb.Type{} + _t1539.Type = &pb.Type_IntType{IntType: int_type794} + _t1537 = _t1539 } 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 _t1540 *pb.Type + if prediction791 == 1 { + _t1541 := p.parse_string_type() + string_type793 := _t1541 + _t1542 := &pb.Type{} + _t1542.Type = &pb.Type_StringType{StringType: string_type793} + _t1540 = _t1542 } 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 _t1543 *pb.Type + if prediction791 == 0 { + _t1544 := p.parse_unspecified_type() + unspecified_type792 := _t1544 + _t1545 := &pb.Type{} + _t1545.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type792} + _t1543 = _t1545 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1516 = _t1519 + _t1540 = _t1543 } - _t1513 = _t1516 + _t1537 = _t1540 } - _t1510 = _t1513 + _t1534 = _t1537 } - _t1507 = _t1510 + _t1531 = _t1534 } - _t1504 = _t1507 + _t1528 = _t1531 } - _t1501 = _t1504 + _t1525 = _t1528 } - _t1498 = _t1501 + _t1522 = _t1525 } - _t1495 = _t1498 + _t1519 = _t1522 } - _t1492 = _t1495 + _t1516 = _t1519 } - _t1489 = _t1492 + _t1513 = _t1516 } - _t1486 = _t1489 + _t1510 = _t1513 } - _t1483 = _t1486 + _t1507 = _t1510 } - _t1480 = _t1483 + _t1504 = _t1507 } - result795 := _t1480 - p.recordSpan(int(span_start794), "Type") - return result795 + result807 := _t1504 + p.recordSpan(int(span_start806), "Type") + return result807 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { - span_start796 := int64(p.spanStart()) + span_start808 := int64(p.spanStart()) p.consumeLiteral("UNKNOWN") - _t1522 := &pb.UnspecifiedType{} - result797 := _t1522 - p.recordSpan(int(span_start796), "UnspecifiedType") - return result797 + _t1546 := &pb.UnspecifiedType{} + result809 := _t1546 + p.recordSpan(int(span_start808), "UnspecifiedType") + return result809 } func (p *Parser) parse_string_type() *pb.StringType { - span_start798 := int64(p.spanStart()) + span_start810 := int64(p.spanStart()) p.consumeLiteral("STRING") - _t1523 := &pb.StringType{} - result799 := _t1523 - p.recordSpan(int(span_start798), "StringType") - return result799 + _t1547 := &pb.StringType{} + result811 := _t1547 + p.recordSpan(int(span_start810), "StringType") + return result811 } func (p *Parser) parse_int_type() *pb.IntType { - span_start800 := int64(p.spanStart()) + span_start812 := int64(p.spanStart()) p.consumeLiteral("INT") - _t1524 := &pb.IntType{} - result801 := _t1524 - p.recordSpan(int(span_start800), "IntType") - return result801 + _t1548 := &pb.IntType{} + result813 := _t1548 + p.recordSpan(int(span_start812), "IntType") + return result813 } func (p *Parser) parse_float_type() *pb.FloatType { - span_start802 := int64(p.spanStart()) + span_start814 := int64(p.spanStart()) p.consumeLiteral("FLOAT") - _t1525 := &pb.FloatType{} - result803 := _t1525 - p.recordSpan(int(span_start802), "FloatType") - return result803 + _t1549 := &pb.FloatType{} + result815 := _t1549 + p.recordSpan(int(span_start814), "FloatType") + return result815 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { - span_start804 := int64(p.spanStart()) + span_start816 := int64(p.spanStart()) p.consumeLiteral("UINT128") - _t1526 := &pb.UInt128Type{} - result805 := _t1526 - p.recordSpan(int(span_start804), "UInt128Type") - return result805 + _t1550 := &pb.UInt128Type{} + result817 := _t1550 + p.recordSpan(int(span_start816), "UInt128Type") + return result817 } func (p *Parser) parse_int128_type() *pb.Int128Type { - span_start806 := int64(p.spanStart()) + span_start818 := int64(p.spanStart()) p.consumeLiteral("INT128") - _t1527 := &pb.Int128Type{} - result807 := _t1527 - p.recordSpan(int(span_start806), "Int128Type") - return result807 + _t1551 := &pb.Int128Type{} + result819 := _t1551 + p.recordSpan(int(span_start818), "Int128Type") + return result819 } func (p *Parser) parse_date_type() *pb.DateType { - span_start808 := int64(p.spanStart()) + span_start820 := int64(p.spanStart()) p.consumeLiteral("DATE") - _t1528 := &pb.DateType{} - result809 := _t1528 - p.recordSpan(int(span_start808), "DateType") - return result809 + _t1552 := &pb.DateType{} + result821 := _t1552 + p.recordSpan(int(span_start820), "DateType") + return result821 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { - span_start810 := int64(p.spanStart()) + span_start822 := int64(p.spanStart()) p.consumeLiteral("DATETIME") - _t1529 := &pb.DateTimeType{} - result811 := _t1529 - p.recordSpan(int(span_start810), "DateTimeType") - return result811 + _t1553 := &pb.DateTimeType{} + result823 := _t1553 + p.recordSpan(int(span_start822), "DateTimeType") + return result823 } func (p *Parser) parse_missing_type() *pb.MissingType { - span_start812 := int64(p.spanStart()) + span_start824 := int64(p.spanStart()) p.consumeLiteral("MISSING") - _t1530 := &pb.MissingType{} - result813 := _t1530 - p.recordSpan(int(span_start812), "MissingType") - return result813 + _t1554 := &pb.MissingType{} + result825 := _t1554 + p.recordSpan(int(span_start824), "MissingType") + return result825 } func (p *Parser) parse_decimal_type() *pb.DecimalType { - span_start816 := int64(p.spanStart()) + span_start828 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int814 := p.consumeTerminal("INT").Value.i64 - int_3815 := p.consumeTerminal("INT").Value.i64 + int826 := p.consumeTerminal("INT").Value.i64 + int_3827 := 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 + _t1555 := &pb.DecimalType{Precision: int32(int826), Scale: int32(int_3827)} + result829 := _t1555 + p.recordSpan(int(span_start828), "DecimalType") + return result829 } func (p *Parser) parse_boolean_type() *pb.BooleanType { - span_start818 := int64(p.spanStart()) + span_start830 := int64(p.spanStart()) p.consumeLiteral("BOOLEAN") - _t1532 := &pb.BooleanType{} - result819 := _t1532 - p.recordSpan(int(span_start818), "BooleanType") - return result819 + _t1556 := &pb.BooleanType{} + result831 := _t1556 + p.recordSpan(int(span_start830), "BooleanType") + return result831 } func (p *Parser) parse_int32_type() *pb.Int32Type { - span_start820 := int64(p.spanStart()) + span_start832 := int64(p.spanStart()) p.consumeLiteral("INT32") - _t1533 := &pb.Int32Type{} - result821 := _t1533 - p.recordSpan(int(span_start820), "Int32Type") - return result821 + _t1557 := &pb.Int32Type{} + result833 := _t1557 + p.recordSpan(int(span_start832), "Int32Type") + return result833 } func (p *Parser) parse_float32_type() *pb.Float32Type { - span_start822 := int64(p.spanStart()) + span_start834 := int64(p.spanStart()) p.consumeLiteral("FLOAT32") - _t1534 := &pb.Float32Type{} - result823 := _t1534 - p.recordSpan(int(span_start822), "Float32Type") - return result823 + _t1558 := &pb.Float32Type{} + result835 := _t1558 + p.recordSpan(int(span_start834), "Float32Type") + return result835 } func (p *Parser) parse_uint32_type() *pb.UInt32Type { - span_start824 := int64(p.spanStart()) + span_start836 := int64(p.spanStart()) p.consumeLiteral("UINT32") - _t1535 := &pb.UInt32Type{} - result825 := _t1535 - p.recordSpan(int(span_start824), "UInt32Type") - return result825 + _t1559 := &pb.UInt32Type{} + result837 := _t1559 + p.recordSpan(int(span_start836), "UInt32Type") + return result837 } 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) + xs838 := []*pb.Binding{} + cond839 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond839 { + _t1560 := p.parse_binding() + item840 := _t1560 + xs838 = append(xs838, item840) + cond839 = p.matchLookaheadTerminal("SYMBOL", 0) } - bindings829 := xs826 - return bindings829 + bindings841 := xs838 + return bindings841 } func (p *Parser) parse_formula() *pb.Formula { - span_start844 := int64(p.spanStart()) - var _t1537 int64 + span_start856 := int64(p.spanStart()) + var _t1561 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1538 int64 + var _t1562 int64 if p.matchLookaheadLiteral("true", 1) { - _t1538 = 0 + _t1562 = 0 } else { - var _t1539 int64 + var _t1563 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t1539 = 11 + _t1563 = 11 } else { - var _t1540 int64 + var _t1564 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t1540 = 3 + _t1564 = 3 } else { - var _t1541 int64 + var _t1565 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1541 = 10 + _t1565 = 10 } else { - var _t1542 int64 + var _t1566 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t1542 = 9 + _t1566 = 9 } else { - var _t1543 int64 + var _t1567 int64 if p.matchLookaheadLiteral("or", 1) { - _t1543 = 5 + _t1567 = 5 } else { - var _t1544 int64 + var _t1568 int64 if p.matchLookaheadLiteral("not", 1) { - _t1544 = 6 + _t1568 = 6 } else { - var _t1545 int64 + var _t1569 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t1545 = 7 + _t1569 = 7 } else { - var _t1546 int64 + var _t1570 int64 if p.matchLookaheadLiteral("false", 1) { - _t1546 = 1 + _t1570 = 1 } else { - var _t1547 int64 + var _t1571 int64 if p.matchLookaheadLiteral("exists", 1) { - _t1547 = 2 + _t1571 = 2 } else { - var _t1548 int64 + var _t1572 int64 if p.matchLookaheadLiteral("cast", 1) { - _t1548 = 12 + _t1572 = 12 } else { - var _t1549 int64 + var _t1573 int64 if p.matchLookaheadLiteral("atom", 1) { - _t1549 = 8 + _t1573 = 8 } else { - var _t1550 int64 + var _t1574 int64 if p.matchLookaheadLiteral("and", 1) { - _t1550 = 4 + _t1574 = 4 } else { - var _t1551 int64 + var _t1575 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1551 = 10 + _t1575 = 10 } else { - var _t1552 int64 + var _t1576 int64 if p.matchLookaheadLiteral(">", 1) { - _t1552 = 10 + _t1576 = 10 } else { - var _t1553 int64 + var _t1577 int64 if p.matchLookaheadLiteral("=", 1) { - _t1553 = 10 + _t1577 = 10 } else { - var _t1554 int64 + var _t1578 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1554 = 10 + _t1578 = 10 } else { - var _t1555 int64 + var _t1579 int64 if p.matchLookaheadLiteral("<", 1) { - _t1555 = 10 + _t1579 = 10 } else { - var _t1556 int64 + var _t1580 int64 if p.matchLookaheadLiteral("/", 1) { - _t1556 = 10 + _t1580 = 10 } else { - var _t1557 int64 + var _t1581 int64 if p.matchLookaheadLiteral("-", 1) { - _t1557 = 10 + _t1581 = 10 } else { - var _t1558 int64 + var _t1582 int64 if p.matchLookaheadLiteral("+", 1) { - _t1558 = 10 + _t1582 = 10 } else { - var _t1559 int64 + var _t1583 int64 if p.matchLookaheadLiteral("*", 1) { - _t1559 = 10 + _t1583 = 10 } else { - _t1559 = -1 + _t1583 = -1 } - _t1558 = _t1559 + _t1582 = _t1583 } - _t1557 = _t1558 + _t1581 = _t1582 } - _t1556 = _t1557 + _t1580 = _t1581 } - _t1555 = _t1556 + _t1579 = _t1580 } - _t1554 = _t1555 + _t1578 = _t1579 } - _t1553 = _t1554 + _t1577 = _t1578 } - _t1552 = _t1553 + _t1576 = _t1577 } - _t1551 = _t1552 + _t1575 = _t1576 } - _t1550 = _t1551 + _t1574 = _t1575 } - _t1549 = _t1550 + _t1573 = _t1574 } - _t1548 = _t1549 + _t1572 = _t1573 } - _t1547 = _t1548 + _t1571 = _t1572 } - _t1546 = _t1547 + _t1570 = _t1571 } - _t1545 = _t1546 + _t1569 = _t1570 } - _t1544 = _t1545 + _t1568 = _t1569 } - _t1543 = _t1544 + _t1567 = _t1568 } - _t1542 = _t1543 + _t1566 = _t1567 } - _t1541 = _t1542 + _t1565 = _t1566 } - _t1540 = _t1541 + _t1564 = _t1565 } - _t1539 = _t1540 + _t1563 = _t1564 } - _t1538 = _t1539 + _t1562 = _t1563 } - _t1537 = _t1538 + _t1561 = _t1562 } 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 + _t1561 = -1 + } + prediction842 := _t1561 + var _t1584 *pb.Formula + if prediction842 == 12 { + _t1585 := p.parse_cast() + cast855 := _t1585 + _t1586 := &pb.Formula{} + _t1586.FormulaType = &pb.Formula_Cast{Cast: cast855} + _t1584 = _t1586 } 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 _t1587 *pb.Formula + if prediction842 == 11 { + _t1588 := p.parse_rel_atom() + rel_atom854 := _t1588 + _t1589 := &pb.Formula{} + _t1589.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom854} + _t1587 = _t1589 } 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 _t1590 *pb.Formula + if prediction842 == 10 { + _t1591 := p.parse_primitive() + primitive853 := _t1591 + _t1592 := &pb.Formula{} + _t1592.FormulaType = &pb.Formula_Primitive{Primitive: primitive853} + _t1590 = _t1592 } 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 _t1593 *pb.Formula + if prediction842 == 9 { + _t1594 := p.parse_pragma() + pragma852 := _t1594 + _t1595 := &pb.Formula{} + _t1595.FormulaType = &pb.Formula_Pragma{Pragma: pragma852} + _t1593 = _t1595 } 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 _t1596 *pb.Formula + if prediction842 == 8 { + _t1597 := p.parse_atom() + atom851 := _t1597 + _t1598 := &pb.Formula{} + _t1598.FormulaType = &pb.Formula_Atom{Atom: atom851} + _t1596 = _t1598 } 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 _t1599 *pb.Formula + if prediction842 == 7 { + _t1600 := p.parse_ffi() + ffi850 := _t1600 + _t1601 := &pb.Formula{} + _t1601.FormulaType = &pb.Formula_Ffi{Ffi: ffi850} + _t1599 = _t1601 } 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 _t1602 *pb.Formula + if prediction842 == 6 { + _t1603 := p.parse_not() + not849 := _t1603 + _t1604 := &pb.Formula{} + _t1604.FormulaType = &pb.Formula_Not{Not: not849} + _t1602 = _t1604 } 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 _t1605 *pb.Formula + if prediction842 == 5 { + _t1606 := p.parse_disjunction() + disjunction848 := _t1606 + _t1607 := &pb.Formula{} + _t1607.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction848} + _t1605 = _t1607 } 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 _t1608 *pb.Formula + if prediction842 == 4 { + _t1609 := p.parse_conjunction() + conjunction847 := _t1609 + _t1610 := &pb.Formula{} + _t1610.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction847} + _t1608 = _t1610 } 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 _t1611 *pb.Formula + if prediction842 == 3 { + _t1612 := p.parse_reduce() + reduce846 := _t1612 + _t1613 := &pb.Formula{} + _t1613.FormulaType = &pb.Formula_Reduce{Reduce: reduce846} + _t1611 = _t1613 } 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 _t1614 *pb.Formula + if prediction842 == 2 { + _t1615 := p.parse_exists() + exists845 := _t1615 + _t1616 := &pb.Formula{} + _t1616.FormulaType = &pb.Formula_Exists{Exists: exists845} + _t1614 = _t1616 } 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 _t1617 *pb.Formula + if prediction842 == 1 { + _t1618 := p.parse_false() + false844 := _t1618 + _t1619 := &pb.Formula{} + _t1619.FormulaType = &pb.Formula_Disjunction{Disjunction: false844} + _t1617 = _t1619 } 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 _t1620 *pb.Formula + if prediction842 == 0 { + _t1621 := p.parse_true() + true843 := _t1621 + _t1622 := &pb.Formula{} + _t1622.FormulaType = &pb.Formula_Conjunction{Conjunction: true843} + _t1620 = _t1622 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1593 = _t1596 + _t1617 = _t1620 } - _t1590 = _t1593 + _t1614 = _t1617 } - _t1587 = _t1590 + _t1611 = _t1614 } - _t1584 = _t1587 + _t1608 = _t1611 } - _t1581 = _t1584 + _t1605 = _t1608 } - _t1578 = _t1581 + _t1602 = _t1605 } - _t1575 = _t1578 + _t1599 = _t1602 } - _t1572 = _t1575 + _t1596 = _t1599 } - _t1569 = _t1572 + _t1593 = _t1596 } - _t1566 = _t1569 + _t1590 = _t1593 } - _t1563 = _t1566 + _t1587 = _t1590 } - _t1560 = _t1563 + _t1584 = _t1587 } - result845 := _t1560 - p.recordSpan(int(span_start844), "Formula") - return result845 + result857 := _t1584 + p.recordSpan(int(span_start856), "Formula") + return result857 } func (p *Parser) parse_true() *pb.Conjunction { - span_start846 := int64(p.spanStart()) + span_start858 := 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 + _t1623 := &pb.Conjunction{Args: []*pb.Formula{}} + result859 := _t1623 + p.recordSpan(int(span_start858), "Conjunction") + return result859 } func (p *Parser) parse_false() *pb.Disjunction { - span_start848 := int64(p.spanStart()) + span_start860 := 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 + _t1624 := &pb.Disjunction{Args: []*pb.Formula{}} + result861 := _t1624 + p.recordSpan(int(span_start860), "Disjunction") + return result861 } func (p *Parser) parse_exists() *pb.Exists { - span_start852 := int64(p.spanStart()) + span_start864 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("exists") - _t1601 := p.parse_bindings() - bindings850 := _t1601 - _t1602 := p.parse_formula() - formula851 := _t1602 + _t1625 := p.parse_bindings() + bindings862 := _t1625 + _t1626 := p.parse_formula() + formula863 := _t1626 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 + _t1627 := &pb.Abstraction{Vars: listConcat(bindings862[0].([]*pb.Binding), bindings862[1].([]*pb.Binding)), Value: formula863} + _t1628 := &pb.Exists{Body: _t1627} + result865 := _t1628 + p.recordSpan(int(span_start864), "Exists") + return result865 } func (p *Parser) parse_reduce() *pb.Reduce { - span_start857 := int64(p.spanStart()) + span_start869 := 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 + _t1629 := p.parse_abstraction() + abstraction866 := _t1629 + _t1630 := p.parse_abstraction() + abstraction_3867 := _t1630 + _t1631 := p.parse_terms() + terms868 := _t1631 p.consumeLiteral(")") - _t1608 := &pb.Reduce{Op: abstraction854, Body: abstraction_3855, Terms: terms856} - result858 := _t1608 - p.recordSpan(int(span_start857), "Reduce") - return result858 + _t1632 := &pb.Reduce{Op: abstraction866, Body: abstraction_3867, Terms: terms868} + result870 := _t1632 + p.recordSpan(int(span_start869), "Reduce") + return result870 } 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 + xs871 := []*pb.Term{} + cond872 := (((((((((((((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 cond872 { + _t1633 := p.parse_term() + item873 := _t1633 + xs871 = append(xs871, item873) + cond872 = (((((((((((((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)) + } + terms874 := xs871 p.consumeLiteral(")") - return terms862 + return terms874 } func (p *Parser) parse_term() *pb.Term { - span_start866 := int64(p.spanStart()) - var _t1610 int64 + span_start878 := int64(p.spanStart()) + var _t1634 int64 if p.matchLookaheadLiteral("true", 0) { - _t1610 = 1 + _t1634 = 1 } else { - var _t1611 int64 + var _t1635 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1611 = 1 + _t1635 = 1 } else { - var _t1612 int64 + var _t1636 int64 if p.matchLookaheadLiteral("false", 0) { - _t1612 = 1 + _t1636 = 1 } else { - var _t1613 int64 + var _t1637 int64 if p.matchLookaheadLiteral("(", 0) { - _t1613 = 1 + _t1637 = 1 } else { - var _t1614 int64 + var _t1638 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1614 = 0 + _t1638 = 0 } else { - var _t1615 int64 + var _t1639 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1615 = 1 + _t1639 = 1 } else { - var _t1616 int64 + var _t1640 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1616 = 1 + _t1640 = 1 } else { - var _t1617 int64 + var _t1641 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1617 = 1 + _t1641 = 1 } else { - var _t1618 int64 + var _t1642 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1618 = 1 + _t1642 = 1 } else { - var _t1619 int64 + var _t1643 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1619 = 1 + _t1643 = 1 } else { - var _t1620 int64 + var _t1644 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1620 = 1 + _t1644 = 1 } else { - var _t1621 int64 + var _t1645 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1621 = 1 + _t1645 = 1 } else { - var _t1622 int64 + var _t1646 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1622 = 1 + _t1646 = 1 } else { - var _t1623 int64 + var _t1647 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1623 = 1 + _t1647 = 1 } else { - _t1623 = -1 + _t1647 = -1 } - _t1622 = _t1623 + _t1646 = _t1647 } - _t1621 = _t1622 + _t1645 = _t1646 } - _t1620 = _t1621 + _t1644 = _t1645 } - _t1619 = _t1620 + _t1643 = _t1644 } - _t1618 = _t1619 + _t1642 = _t1643 } - _t1617 = _t1618 + _t1641 = _t1642 } - _t1616 = _t1617 + _t1640 = _t1641 } - _t1615 = _t1616 + _t1639 = _t1640 } - _t1614 = _t1615 + _t1638 = _t1639 } - _t1613 = _t1614 + _t1637 = _t1638 } - _t1612 = _t1613 + _t1636 = _t1637 } - _t1611 = _t1612 + _t1635 = _t1636 } - _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 + _t1634 = _t1635 + } + prediction875 := _t1634 + var _t1648 *pb.Term + if prediction875 == 1 { + _t1649 := p.parse_value() + value877 := _t1649 + _t1650 := &pb.Term{} + _t1650.TermType = &pb.Term_Constant{Constant: value877} + _t1648 = _t1650 } 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 _t1651 *pb.Term + if prediction875 == 0 { + _t1652 := p.parse_var() + var876 := _t1652 + _t1653 := &pb.Term{} + _t1653.TermType = &pb.Term_Var{Var: var876} + _t1651 = _t1653 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1624 = _t1627 + _t1648 = _t1651 } - result867 := _t1624 - p.recordSpan(int(span_start866), "Term") - return result867 + result879 := _t1648 + p.recordSpan(int(span_start878), "Term") + return result879 } 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_start881 := int64(p.spanStart()) + symbol880 := p.consumeTerminal("SYMBOL").Value.str + _t1654 := &pb.Var{Name: symbol880} + result882 := _t1654 + p.recordSpan(int(span_start881), "Var") + return result882 } func (p *Parser) parse_value() *pb.Value { - span_start884 := int64(p.spanStart()) - var _t1631 int64 + span_start896 := int64(p.spanStart()) + var _t1655 int64 if p.matchLookaheadLiteral("true", 0) { - _t1631 = 12 + _t1655 = 12 } else { - var _t1632 int64 + var _t1656 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1632 = 11 + _t1656 = 11 } else { - var _t1633 int64 + var _t1657 int64 if p.matchLookaheadLiteral("false", 0) { - _t1633 = 12 + _t1657 = 12 } else { - var _t1634 int64 + var _t1658 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1635 int64 + var _t1659 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1635 = 1 + _t1659 = 1 } else { - var _t1636 int64 + var _t1660 int64 if p.matchLookaheadLiteral("date", 1) { - _t1636 = 0 + _t1660 = 0 } else { - _t1636 = -1 + _t1660 = -1 } - _t1635 = _t1636 + _t1659 = _t1660 } - _t1634 = _t1635 + _t1658 = _t1659 } else { - var _t1637 int64 + var _t1661 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1637 = 7 + _t1661 = 7 } else { - var _t1638 int64 + var _t1662 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1638 = 8 + _t1662 = 8 } else { - var _t1639 int64 + var _t1663 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1639 = 2 + _t1663 = 2 } else { - var _t1640 int64 + var _t1664 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1640 = 3 + _t1664 = 3 } else { - var _t1641 int64 + var _t1665 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1641 = 9 + _t1665 = 9 } else { - var _t1642 int64 + var _t1666 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1642 = 4 + _t1666 = 4 } else { - var _t1643 int64 + var _t1667 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1643 = 5 + _t1667 = 5 } else { - var _t1644 int64 + var _t1668 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1644 = 6 + _t1668 = 6 } else { - var _t1645 int64 + var _t1669 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1645 = 10 + _t1669 = 10 } else { - _t1645 = -1 + _t1669 = -1 } - _t1644 = _t1645 + _t1668 = _t1669 } - _t1643 = _t1644 + _t1667 = _t1668 } - _t1642 = _t1643 + _t1666 = _t1667 } - _t1641 = _t1642 + _t1665 = _t1666 } - _t1640 = _t1641 + _t1664 = _t1665 } - _t1639 = _t1640 + _t1663 = _t1664 } - _t1638 = _t1639 + _t1662 = _t1663 } - _t1637 = _t1638 + _t1661 = _t1662 } - _t1634 = _t1637 + _t1658 = _t1661 } - _t1633 = _t1634 + _t1657 = _t1658 } - _t1632 = _t1633 + _t1656 = _t1657 } - _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 + _t1655 = _t1656 + } + prediction883 := _t1655 + var _t1670 *pb.Value + if prediction883 == 12 { + _t1671 := p.parse_boolean_value() + boolean_value895 := _t1671 + _t1672 := &pb.Value{} + _t1672.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value895} + _t1670 = _t1672 } else { - var _t1649 *pb.Value - if prediction871 == 11 { + var _t1673 *pb.Value + if prediction883 == 11 { p.consumeLiteral("missing") - _t1650 := &pb.MissingValue{} - _t1651 := &pb.Value{} - _t1651.Value = &pb.Value_MissingValue{MissingValue: _t1650} - _t1649 = _t1651 + _t1674 := &pb.MissingValue{} + _t1675 := &pb.Value{} + _t1675.Value = &pb.Value_MissingValue{MissingValue: _t1674} + _t1673 = _t1675 } 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 _t1676 *pb.Value + if prediction883 == 10 { + formatted_decimal894 := p.consumeTerminal("DECIMAL").Value.decimal + _t1677 := &pb.Value{} + _t1677.Value = &pb.Value_DecimalValue{DecimalValue: formatted_decimal894} + _t1676 = _t1677 } 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 _t1678 *pb.Value + if prediction883 == 9 { + formatted_int128893 := p.consumeTerminal("INT128").Value.int128 + _t1679 := &pb.Value{} + _t1679.Value = &pb.Value_Int128Value{Int128Value: formatted_int128893} + _t1678 = _t1679 } 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 _t1680 *pb.Value + if prediction883 == 8 { + formatted_uint128892 := p.consumeTerminal("UINT128").Value.uint128 + _t1681 := &pb.Value{} + _t1681.Value = &pb.Value_Uint128Value{Uint128Value: formatted_uint128892} + _t1680 = _t1681 } 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 _t1682 *pb.Value + if prediction883 == 7 { + formatted_uint32891 := p.consumeTerminal("UINT32").Value.u32 + _t1683 := &pb.Value{} + _t1683.Value = &pb.Value_Uint32Value{Uint32Value: formatted_uint32891} + _t1682 = _t1683 } 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 _t1684 *pb.Value + if prediction883 == 6 { + formatted_float890 := p.consumeTerminal("FLOAT").Value.f64 + _t1685 := &pb.Value{} + _t1685.Value = &pb.Value_FloatValue{FloatValue: formatted_float890} + _t1684 = _t1685 } 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 _t1686 *pb.Value + if prediction883 == 5 { + formatted_float32889 := p.consumeTerminal("FLOAT32").Value.f32 + _t1687 := &pb.Value{} + _t1687.Value = &pb.Value_Float32Value{Float32Value: formatted_float32889} + _t1686 = _t1687 } 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 _t1688 *pb.Value + if prediction883 == 4 { + formatted_int888 := p.consumeTerminal("INT").Value.i64 + _t1689 := &pb.Value{} + _t1689.Value = &pb.Value_IntValue{IntValue: formatted_int888} + _t1688 = _t1689 } 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 _t1690 *pb.Value + if prediction883 == 3 { + formatted_int32887 := p.consumeTerminal("INT32").Value.i32 + _t1691 := &pb.Value{} + _t1691.Value = &pb.Value_Int32Value{Int32Value: formatted_int32887} + _t1690 = _t1691 } 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 _t1692 *pb.Value + if prediction883 == 2 { + formatted_string886 := p.consumeTerminal("STRING").Value.str + _t1693 := &pb.Value{} + _t1693.Value = &pb.Value_StringValue{StringValue: formatted_string886} + _t1692 = _t1693 } 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 _t1694 *pb.Value + if prediction883 == 1 { + _t1695 := p.parse_datetime() + datetime885 := _t1695 + _t1696 := &pb.Value{} + _t1696.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime885} + _t1694 = _t1696 } 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 _t1697 *pb.Value + if prediction883 == 0 { + _t1698 := p.parse_date() + date884 := _t1698 + _t1699 := &pb.Value{} + _t1699.Value = &pb.Value_DateValue{DateValue: date884} + _t1697 = _t1699 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1670 = _t1673 + _t1694 = _t1697 } - _t1668 = _t1670 + _t1692 = _t1694 } - _t1666 = _t1668 + _t1690 = _t1692 } - _t1664 = _t1666 + _t1688 = _t1690 } - _t1662 = _t1664 + _t1686 = _t1688 } - _t1660 = _t1662 + _t1684 = _t1686 } - _t1658 = _t1660 + _t1682 = _t1684 } - _t1656 = _t1658 + _t1680 = _t1682 } - _t1654 = _t1656 + _t1678 = _t1680 } - _t1652 = _t1654 + _t1676 = _t1678 } - _t1649 = _t1652 + _t1673 = _t1676 } - _t1646 = _t1649 + _t1670 = _t1673 } - result885 := _t1646 - p.recordSpan(int(span_start884), "Value") - return result885 + result897 := _t1670 + p.recordSpan(int(span_start896), "Value") + return result897 } func (p *Parser) parse_date() *pb.DateValue { - span_start889 := int64(p.spanStart()) + span_start901 := 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_int898 := p.consumeTerminal("INT").Value.i64 + formatted_int_3899 := p.consumeTerminal("INT").Value.i64 + formatted_int_4900 := 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 + _t1700 := &pb.DateValue{Year: int32(formatted_int898), Month: int32(formatted_int_3899), Day: int32(formatted_int_4900)} + result902 := _t1700 + p.recordSpan(int(span_start901), "DateValue") + return result902 } func (p *Parser) parse_datetime() *pb.DateTimeValue { - span_start898 := int64(p.spanStart()) + span_start910 := 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_int903 := p.consumeTerminal("INT").Value.i64 + formatted_int_3904 := p.consumeTerminal("INT").Value.i64 + formatted_int_4905 := p.consumeTerminal("INT").Value.i64 + formatted_int_5906 := p.consumeTerminal("INT").Value.i64 + formatted_int_6907 := p.consumeTerminal("INT").Value.i64 + formatted_int_7908 := p.consumeTerminal("INT").Value.i64 + var _t1701 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1677 = ptr(p.consumeTerminal("INT").Value.i64) + _t1701 = ptr(p.consumeTerminal("INT").Value.i64) } - formatted_int_8897 := _t1677 + formatted_int_8909 := _t1701 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 + _t1702 := &pb.DateTimeValue{Year: int32(formatted_int903), Month: int32(formatted_int_3904), Day: int32(formatted_int_4905), Hour: int32(formatted_int_5906), Minute: int32(formatted_int_6907), Second: int32(formatted_int_7908), Microsecond: int32(deref(formatted_int_8909, 0))} + result911 := _t1702 + p.recordSpan(int(span_start910), "DateTimeValue") + return result911 } func (p *Parser) parse_conjunction() *pb.Conjunction { - span_start904 := int64(p.spanStart()) + span_start916 := 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 + xs912 := []*pb.Formula{} + cond913 := p.matchLookaheadLiteral("(", 0) + for cond913 { + _t1703 := p.parse_formula() + item914 := _t1703 + xs912 = append(xs912, item914) + cond913 = p.matchLookaheadLiteral("(", 0) + } + formulas915 := xs912 p.consumeLiteral(")") - _t1680 := &pb.Conjunction{Args: formulas903} - result905 := _t1680 - p.recordSpan(int(span_start904), "Conjunction") - return result905 + _t1704 := &pb.Conjunction{Args: formulas915} + result917 := _t1704 + p.recordSpan(int(span_start916), "Conjunction") + return result917 } func (p *Parser) parse_disjunction() *pb.Disjunction { - span_start910 := int64(p.spanStart()) + span_start922 := 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 + xs918 := []*pb.Formula{} + cond919 := p.matchLookaheadLiteral("(", 0) + for cond919 { + _t1705 := p.parse_formula() + item920 := _t1705 + xs918 = append(xs918, item920) + cond919 = p.matchLookaheadLiteral("(", 0) + } + formulas921 := xs918 p.consumeLiteral(")") - _t1682 := &pb.Disjunction{Args: formulas909} - result911 := _t1682 - p.recordSpan(int(span_start910), "Disjunction") - return result911 + _t1706 := &pb.Disjunction{Args: formulas921} + result923 := _t1706 + p.recordSpan(int(span_start922), "Disjunction") + return result923 } func (p *Parser) parse_not() *pb.Not { - span_start913 := int64(p.spanStart()) + span_start925 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("not") - _t1683 := p.parse_formula() - formula912 := _t1683 + _t1707 := p.parse_formula() + formula924 := _t1707 p.consumeLiteral(")") - _t1684 := &pb.Not{Arg: formula912} - result914 := _t1684 - p.recordSpan(int(span_start913), "Not") - return result914 + _t1708 := &pb.Not{Arg: formula924} + result926 := _t1708 + p.recordSpan(int(span_start925), "Not") + return result926 } func (p *Parser) parse_ffi() *pb.FFI { - span_start918 := int64(p.spanStart()) + span_start930 := 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 + _t1709 := p.parse_name() + name927 := _t1709 + _t1710 := p.parse_ffi_args() + ffi_args928 := _t1710 + _t1711 := p.parse_terms() + terms929 := _t1711 p.consumeLiteral(")") - _t1688 := &pb.FFI{Name: name915, Args: ffi_args916, Terms: terms917} - result919 := _t1688 - p.recordSpan(int(span_start918), "FFI") - return result919 + _t1712 := &pb.FFI{Name: name927, Args: ffi_args928, Terms: terms929} + result931 := _t1712 + p.recordSpan(int(span_start930), "FFI") + return result931 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol920 := p.consumeTerminal("SYMBOL").Value.str - return symbol920 + symbol932 := p.consumeTerminal("SYMBOL").Value.str + return symbol932 } 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 + xs933 := []*pb.Abstraction{} + cond934 := p.matchLookaheadLiteral("(", 0) + for cond934 { + _t1713 := p.parse_abstraction() + item935 := _t1713 + xs933 = append(xs933, item935) + cond934 = p.matchLookaheadLiteral("(", 0) + } + abstractions936 := xs933 p.consumeLiteral(")") - return abstractions924 + return abstractions936 } func (p *Parser) parse_atom() *pb.Atom { - span_start930 := int64(p.spanStart()) + span_start942 := 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 + _t1714 := p.parse_relation_id() + relation_id937 := _t1714 + xs938 := []*pb.Term{} + cond939 := (((((((((((((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 cond939 { + _t1715 := p.parse_term() + item940 := _t1715 + xs938 = append(xs938, item940) + cond939 = (((((((((((((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)) + } + terms941 := xs938 p.consumeLiteral(")") - _t1692 := &pb.Atom{Name: relation_id925, Terms: terms929} - result931 := _t1692 - p.recordSpan(int(span_start930), "Atom") - return result931 + _t1716 := &pb.Atom{Name: relation_id937, Terms: terms941} + result943 := _t1716 + p.recordSpan(int(span_start942), "Atom") + return result943 } func (p *Parser) parse_pragma() *pb.Pragma { - span_start937 := int64(p.spanStart()) + span_start949 := 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 + _t1717 := p.parse_name() + name944 := _t1717 + xs945 := []*pb.Term{} + cond946 := (((((((((((((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 cond946 { + _t1718 := p.parse_term() + item947 := _t1718 + xs945 = append(xs945, item947) + cond946 = (((((((((((((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)) + } + terms948 := xs945 p.consumeLiteral(")") - _t1695 := &pb.Pragma{Name: name932, Terms: terms936} - result938 := _t1695 - p.recordSpan(int(span_start937), "Pragma") - return result938 + _t1719 := &pb.Pragma{Name: name944, Terms: terms948} + result950 := _t1719 + p.recordSpan(int(span_start949), "Pragma") + return result950 } func (p *Parser) parse_primitive() *pb.Primitive { - span_start954 := int64(p.spanStart()) - var _t1696 int64 + span_start966 := int64(p.spanStart()) + var _t1720 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1697 int64 + var _t1721 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1697 = 9 + _t1721 = 9 } else { - var _t1698 int64 + var _t1722 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1698 = 4 + _t1722 = 4 } else { - var _t1699 int64 + var _t1723 int64 if p.matchLookaheadLiteral(">", 1) { - _t1699 = 3 + _t1723 = 3 } else { - var _t1700 int64 + var _t1724 int64 if p.matchLookaheadLiteral("=", 1) { - _t1700 = 0 + _t1724 = 0 } else { - var _t1701 int64 + var _t1725 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1701 = 2 + _t1725 = 2 } else { - var _t1702 int64 + var _t1726 int64 if p.matchLookaheadLiteral("<", 1) { - _t1702 = 1 + _t1726 = 1 } else { - var _t1703 int64 + var _t1727 int64 if p.matchLookaheadLiteral("/", 1) { - _t1703 = 8 + _t1727 = 8 } else { - var _t1704 int64 + var _t1728 int64 if p.matchLookaheadLiteral("-", 1) { - _t1704 = 6 + _t1728 = 6 } else { - var _t1705 int64 + var _t1729 int64 if p.matchLookaheadLiteral("+", 1) { - _t1705 = 5 + _t1729 = 5 } else { - var _t1706 int64 + var _t1730 int64 if p.matchLookaheadLiteral("*", 1) { - _t1706 = 7 + _t1730 = 7 } else { - _t1706 = -1 + _t1730 = -1 } - _t1705 = _t1706 + _t1729 = _t1730 } - _t1704 = _t1705 + _t1728 = _t1729 } - _t1703 = _t1704 + _t1727 = _t1728 } - _t1702 = _t1703 + _t1726 = _t1727 } - _t1701 = _t1702 + _t1725 = _t1726 } - _t1700 = _t1701 + _t1724 = _t1725 } - _t1699 = _t1700 + _t1723 = _t1724 } - _t1698 = _t1699 + _t1722 = _t1723 } - _t1697 = _t1698 + _t1721 = _t1722 } - _t1696 = _t1697 + _t1720 = _t1721 } else { - _t1696 = -1 + _t1720 = -1 } - prediction939 := _t1696 - var _t1707 *pb.Primitive - if prediction939 == 9 { + prediction951 := _t1720 + var _t1731 *pb.Primitive + if prediction951 == 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)) + _t1732 := p.parse_name() + name961 := _t1732 + xs962 := []*pb.RelTerm{} + cond963 := ((((((((((((((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 cond963 { + _t1733 := p.parse_rel_term() + item964 := _t1733 + xs962 = append(xs962, item964) + cond963 = ((((((((((((((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_terms965 := xs962 p.consumeLiteral(")") - _t1710 := &pb.Primitive{Name: name949, Terms: rel_terms953} - _t1707 = _t1710 + _t1734 := &pb.Primitive{Name: name961, Terms: rel_terms965} + _t1731 = _t1734 } else { - var _t1711 *pb.Primitive - if prediction939 == 8 { - _t1712 := p.parse_divide() - divide948 := _t1712 - _t1711 = divide948 + var _t1735 *pb.Primitive + if prediction951 == 8 { + _t1736 := p.parse_divide() + divide960 := _t1736 + _t1735 = divide960 } else { - var _t1713 *pb.Primitive - if prediction939 == 7 { - _t1714 := p.parse_multiply() - multiply947 := _t1714 - _t1713 = multiply947 + var _t1737 *pb.Primitive + if prediction951 == 7 { + _t1738 := p.parse_multiply() + multiply959 := _t1738 + _t1737 = multiply959 } else { - var _t1715 *pb.Primitive - if prediction939 == 6 { - _t1716 := p.parse_minus() - minus946 := _t1716 - _t1715 = minus946 + var _t1739 *pb.Primitive + if prediction951 == 6 { + _t1740 := p.parse_minus() + minus958 := _t1740 + _t1739 = minus958 } else { - var _t1717 *pb.Primitive - if prediction939 == 5 { - _t1718 := p.parse_add() - add945 := _t1718 - _t1717 = add945 + var _t1741 *pb.Primitive + if prediction951 == 5 { + _t1742 := p.parse_add() + add957 := _t1742 + _t1741 = add957 } else { - var _t1719 *pb.Primitive - if prediction939 == 4 { - _t1720 := p.parse_gt_eq() - gt_eq944 := _t1720 - _t1719 = gt_eq944 + var _t1743 *pb.Primitive + if prediction951 == 4 { + _t1744 := p.parse_gt_eq() + gt_eq956 := _t1744 + _t1743 = gt_eq956 } else { - var _t1721 *pb.Primitive - if prediction939 == 3 { - _t1722 := p.parse_gt() - gt943 := _t1722 - _t1721 = gt943 + var _t1745 *pb.Primitive + if prediction951 == 3 { + _t1746 := p.parse_gt() + gt955 := _t1746 + _t1745 = gt955 } else { - var _t1723 *pb.Primitive - if prediction939 == 2 { - _t1724 := p.parse_lt_eq() - lt_eq942 := _t1724 - _t1723 = lt_eq942 + var _t1747 *pb.Primitive + if prediction951 == 2 { + _t1748 := p.parse_lt_eq() + lt_eq954 := _t1748 + _t1747 = lt_eq954 } else { - var _t1725 *pb.Primitive - if prediction939 == 1 { - _t1726 := p.parse_lt() - lt941 := _t1726 - _t1725 = lt941 + var _t1749 *pb.Primitive + if prediction951 == 1 { + _t1750 := p.parse_lt() + lt953 := _t1750 + _t1749 = lt953 } else { - var _t1727 *pb.Primitive - if prediction939 == 0 { - _t1728 := p.parse_eq() - eq940 := _t1728 - _t1727 = eq940 + var _t1751 *pb.Primitive + if prediction951 == 0 { + _t1752 := p.parse_eq() + eq952 := _t1752 + _t1751 = eq952 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1725 = _t1727 + _t1749 = _t1751 } - _t1723 = _t1725 + _t1747 = _t1749 } - _t1721 = _t1723 + _t1745 = _t1747 } - _t1719 = _t1721 + _t1743 = _t1745 } - _t1717 = _t1719 + _t1741 = _t1743 } - _t1715 = _t1717 + _t1739 = _t1741 } - _t1713 = _t1715 + _t1737 = _t1739 } - _t1711 = _t1713 + _t1735 = _t1737 } - _t1707 = _t1711 + _t1731 = _t1735 } - result955 := _t1707 - p.recordSpan(int(span_start954), "Primitive") - return result955 + result967 := _t1731 + p.recordSpan(int(span_start966), "Primitive") + return result967 } func (p *Parser) parse_eq() *pb.Primitive { - span_start958 := int64(p.spanStart()) + span_start970 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("=") - _t1729 := p.parse_term() - term956 := _t1729 - _t1730 := p.parse_term() - term_3957 := _t1730 + _t1753 := p.parse_term() + term968 := _t1753 + _t1754 := p.parse_term() + term_3969 := _t1754 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 + _t1755 := &pb.RelTerm{} + _t1755.RelTermType = &pb.RelTerm_Term{Term: term968} + _t1756 := &pb.RelTerm{} + _t1756.RelTermType = &pb.RelTerm_Term{Term: term_3969} + _t1757 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1755, _t1756}} + result971 := _t1757 + p.recordSpan(int(span_start970), "Primitive") + return result971 } func (p *Parser) parse_lt() *pb.Primitive { - span_start962 := int64(p.spanStart()) + span_start974 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<") - _t1734 := p.parse_term() - term960 := _t1734 - _t1735 := p.parse_term() - term_3961 := _t1735 + _t1758 := p.parse_term() + term972 := _t1758 + _t1759 := p.parse_term() + term_3973 := _t1759 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 + _t1760 := &pb.RelTerm{} + _t1760.RelTermType = &pb.RelTerm_Term{Term: term972} + _t1761 := &pb.RelTerm{} + _t1761.RelTermType = &pb.RelTerm_Term{Term: term_3973} + _t1762 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1760, _t1761}} + result975 := _t1762 + p.recordSpan(int(span_start974), "Primitive") + return result975 } func (p *Parser) parse_lt_eq() *pb.Primitive { - span_start966 := int64(p.spanStart()) + span_start978 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<=") - _t1739 := p.parse_term() - term964 := _t1739 - _t1740 := p.parse_term() - term_3965 := _t1740 + _t1763 := p.parse_term() + term976 := _t1763 + _t1764 := p.parse_term() + term_3977 := _t1764 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 + _t1765 := &pb.RelTerm{} + _t1765.RelTermType = &pb.RelTerm_Term{Term: term976} + _t1766 := &pb.RelTerm{} + _t1766.RelTermType = &pb.RelTerm_Term{Term: term_3977} + _t1767 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1765, _t1766}} + result979 := _t1767 + p.recordSpan(int(span_start978), "Primitive") + return result979 } func (p *Parser) parse_gt() *pb.Primitive { - span_start970 := int64(p.spanStart()) + span_start982 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">") - _t1744 := p.parse_term() - term968 := _t1744 - _t1745 := p.parse_term() - term_3969 := _t1745 + _t1768 := p.parse_term() + term980 := _t1768 + _t1769 := p.parse_term() + term_3981 := _t1769 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 + _t1770 := &pb.RelTerm{} + _t1770.RelTermType = &pb.RelTerm_Term{Term: term980} + _t1771 := &pb.RelTerm{} + _t1771.RelTermType = &pb.RelTerm_Term{Term: term_3981} + _t1772 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1770, _t1771}} + result983 := _t1772 + p.recordSpan(int(span_start982), "Primitive") + return result983 } func (p *Parser) parse_gt_eq() *pb.Primitive { - span_start974 := int64(p.spanStart()) + span_start986 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">=") - _t1749 := p.parse_term() - term972 := _t1749 - _t1750 := p.parse_term() - term_3973 := _t1750 + _t1773 := p.parse_term() + term984 := _t1773 + _t1774 := p.parse_term() + term_3985 := _t1774 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 + _t1775 := &pb.RelTerm{} + _t1775.RelTermType = &pb.RelTerm_Term{Term: term984} + _t1776 := &pb.RelTerm{} + _t1776.RelTermType = &pb.RelTerm_Term{Term: term_3985} + _t1777 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1775, _t1776}} + result987 := _t1777 + p.recordSpan(int(span_start986), "Primitive") + return result987 } func (p *Parser) parse_add() *pb.Primitive { - span_start979 := int64(p.spanStart()) + span_start991 := 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 + _t1778 := p.parse_term() + term988 := _t1778 + _t1779 := p.parse_term() + term_3989 := _t1779 + _t1780 := p.parse_term() + term_4990 := _t1780 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 + _t1781 := &pb.RelTerm{} + _t1781.RelTermType = &pb.RelTerm_Term{Term: term988} + _t1782 := &pb.RelTerm{} + _t1782.RelTermType = &pb.RelTerm_Term{Term: term_3989} + _t1783 := &pb.RelTerm{} + _t1783.RelTermType = &pb.RelTerm_Term{Term: term_4990} + _t1784 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1781, _t1782, _t1783}} + result992 := _t1784 + p.recordSpan(int(span_start991), "Primitive") + return result992 } func (p *Parser) parse_minus() *pb.Primitive { - span_start984 := int64(p.spanStart()) + span_start996 := 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 + _t1785 := p.parse_term() + term993 := _t1785 + _t1786 := p.parse_term() + term_3994 := _t1786 + _t1787 := p.parse_term() + term_4995 := _t1787 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 + _t1788 := &pb.RelTerm{} + _t1788.RelTermType = &pb.RelTerm_Term{Term: term993} + _t1789 := &pb.RelTerm{} + _t1789.RelTermType = &pb.RelTerm_Term{Term: term_3994} + _t1790 := &pb.RelTerm{} + _t1790.RelTermType = &pb.RelTerm_Term{Term: term_4995} + _t1791 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1788, _t1789, _t1790}} + result997 := _t1791 + p.recordSpan(int(span_start996), "Primitive") + return result997 } func (p *Parser) parse_multiply() *pb.Primitive { - span_start989 := int64(p.spanStart()) + span_start1001 := 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 + _t1792 := p.parse_term() + term998 := _t1792 + _t1793 := p.parse_term() + term_3999 := _t1793 + _t1794 := p.parse_term() + term_41000 := _t1794 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 + _t1795 := &pb.RelTerm{} + _t1795.RelTermType = &pb.RelTerm_Term{Term: term998} + _t1796 := &pb.RelTerm{} + _t1796.RelTermType = &pb.RelTerm_Term{Term: term_3999} + _t1797 := &pb.RelTerm{} + _t1797.RelTermType = &pb.RelTerm_Term{Term: term_41000} + _t1798 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1795, _t1796, _t1797}} + result1002 := _t1798 + p.recordSpan(int(span_start1001), "Primitive") + return result1002 } func (p *Parser) parse_divide() *pb.Primitive { - span_start994 := int64(p.spanStart()) + span_start1006 := 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 + _t1799 := p.parse_term() + term1003 := _t1799 + _t1800 := p.parse_term() + term_31004 := _t1800 + _t1801 := p.parse_term() + term_41005 := _t1801 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 + _t1802 := &pb.RelTerm{} + _t1802.RelTermType = &pb.RelTerm_Term{Term: term1003} + _t1803 := &pb.RelTerm{} + _t1803.RelTermType = &pb.RelTerm_Term{Term: term_31004} + _t1804 := &pb.RelTerm{} + _t1804.RelTermType = &pb.RelTerm_Term{Term: term_41005} + _t1805 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1802, _t1803, _t1804}} + result1007 := _t1805 + p.recordSpan(int(span_start1006), "Primitive") + return result1007 } func (p *Parser) parse_rel_term() *pb.RelTerm { - span_start999 := int64(p.spanStart()) - var _t1782 int64 + span_start1011 := int64(p.spanStart()) + var _t1806 int64 if p.matchLookaheadLiteral("true", 0) { - _t1782 = 1 + _t1806 = 1 } else { - var _t1783 int64 + var _t1807 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1783 = 1 + _t1807 = 1 } else { - var _t1784 int64 + var _t1808 int64 if p.matchLookaheadLiteral("false", 0) { - _t1784 = 1 + _t1808 = 1 } else { - var _t1785 int64 + var _t1809 int64 if p.matchLookaheadLiteral("(", 0) { - _t1785 = 1 + _t1809 = 1 } else { - var _t1786 int64 + var _t1810 int64 if p.matchLookaheadLiteral("#", 0) { - _t1786 = 0 + _t1810 = 0 } else { - var _t1787 int64 + var _t1811 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1787 = 1 + _t1811 = 1 } else { - var _t1788 int64 + var _t1812 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1788 = 1 + _t1812 = 1 } else { - var _t1789 int64 + var _t1813 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1789 = 1 + _t1813 = 1 } else { - var _t1790 int64 + var _t1814 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1790 = 1 + _t1814 = 1 } else { - var _t1791 int64 + var _t1815 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1791 = 1 + _t1815 = 1 } else { - var _t1792 int64 + var _t1816 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1792 = 1 + _t1816 = 1 } else { - var _t1793 int64 + var _t1817 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1793 = 1 + _t1817 = 1 } else { - var _t1794 int64 + var _t1818 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1794 = 1 + _t1818 = 1 } else { - var _t1795 int64 + var _t1819 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1795 = 1 + _t1819 = 1 } else { - var _t1796 int64 + var _t1820 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1796 = 1 + _t1820 = 1 } else { - _t1796 = -1 + _t1820 = -1 } - _t1795 = _t1796 + _t1819 = _t1820 } - _t1794 = _t1795 + _t1818 = _t1819 } - _t1793 = _t1794 + _t1817 = _t1818 } - _t1792 = _t1793 + _t1816 = _t1817 } - _t1791 = _t1792 + _t1815 = _t1816 } - _t1790 = _t1791 + _t1814 = _t1815 } - _t1789 = _t1790 + _t1813 = _t1814 } - _t1788 = _t1789 + _t1812 = _t1813 } - _t1787 = _t1788 + _t1811 = _t1812 } - _t1786 = _t1787 + _t1810 = _t1811 } - _t1785 = _t1786 + _t1809 = _t1810 } - _t1784 = _t1785 + _t1808 = _t1809 } - _t1783 = _t1784 + _t1807 = _t1808 } - _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 + _t1806 = _t1807 + } + prediction1008 := _t1806 + var _t1821 *pb.RelTerm + if prediction1008 == 1 { + _t1822 := p.parse_term() + term1010 := _t1822 + _t1823 := &pb.RelTerm{} + _t1823.RelTermType = &pb.RelTerm_Term{Term: term1010} + _t1821 = _t1823 } 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 _t1824 *pb.RelTerm + if prediction1008 == 0 { + _t1825 := p.parse_specialized_value() + specialized_value1009 := _t1825 + _t1826 := &pb.RelTerm{} + _t1826.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value1009} + _t1824 = _t1826 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1797 = _t1800 + _t1821 = _t1824 } - result1000 := _t1797 - p.recordSpan(int(span_start999), "RelTerm") - return result1000 + result1012 := _t1821 + p.recordSpan(int(span_start1011), "RelTerm") + return result1012 } func (p *Parser) parse_specialized_value() *pb.Value { - span_start1002 := int64(p.spanStart()) + span_start1014 := int64(p.spanStart()) p.consumeLiteral("#") - _t1803 := p.parse_raw_value() - raw_value1001 := _t1803 - result1003 := raw_value1001 - p.recordSpan(int(span_start1002), "Value") - return result1003 + _t1827 := p.parse_raw_value() + raw_value1013 := _t1827 + result1015 := raw_value1013 + p.recordSpan(int(span_start1014), "Value") + return result1015 } func (p *Parser) parse_rel_atom() *pb.RelAtom { - span_start1009 := int64(p.spanStart()) + span_start1021 := 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 + _t1828 := p.parse_name() + name1016 := _t1828 + xs1017 := []*pb.RelTerm{} + cond1018 := ((((((((((((((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 cond1018 { + _t1829 := p.parse_rel_term() + item1019 := _t1829 + xs1017 = append(xs1017, item1019) + cond1018 = ((((((((((((((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_terms1020 := xs1017 p.consumeLiteral(")") - _t1806 := &pb.RelAtom{Name: name1004, Terms: rel_terms1008} - result1010 := _t1806 - p.recordSpan(int(span_start1009), "RelAtom") - return result1010 + _t1830 := &pb.RelAtom{Name: name1016, Terms: rel_terms1020} + result1022 := _t1830 + p.recordSpan(int(span_start1021), "RelAtom") + return result1022 } func (p *Parser) parse_cast() *pb.Cast { - span_start1013 := int64(p.spanStart()) + span_start1025 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("cast") - _t1807 := p.parse_term() - term1011 := _t1807 - _t1808 := p.parse_term() - term_31012 := _t1808 + _t1831 := p.parse_term() + term1023 := _t1831 + _t1832 := p.parse_term() + term_31024 := _t1832 p.consumeLiteral(")") - _t1809 := &pb.Cast{Input: term1011, Result: term_31012} - result1014 := _t1809 - p.recordSpan(int(span_start1013), "Cast") - return result1014 + _t1833 := &pb.Cast{Input: term1023, Result: term_31024} + result1026 := _t1833 + p.recordSpan(int(span_start1025), "Cast") + return result1026 } 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 + xs1027 := []*pb.Attribute{} + cond1028 := p.matchLookaheadLiteral("(", 0) + for cond1028 { + _t1834 := p.parse_attribute() + item1029 := _t1834 + xs1027 = append(xs1027, item1029) + cond1028 = p.matchLookaheadLiteral("(", 0) + } + attributes1030 := xs1027 p.consumeLiteral(")") - return attributes1018 + return attributes1030 } func (p *Parser) parse_attribute() *pb.Attribute { - span_start1024 := int64(p.spanStart()) + span_start1036 := 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 + _t1835 := p.parse_name() + name1031 := _t1835 + xs1032 := []*pb.Value{} + cond1033 := ((((((((((((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 cond1033 { + _t1836 := p.parse_raw_value() + item1034 := _t1836 + xs1032 = append(xs1032, item1034) + cond1033 = ((((((((((((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_values1035 := xs1032 p.consumeLiteral(")") - _t1813 := &pb.Attribute{Name: name1019, Args: raw_values1023} - result1025 := _t1813 - p.recordSpan(int(span_start1024), "Attribute") - return result1025 + _t1837 := &pb.Attribute{Name: name1031, Args: raw_values1035} + result1037 := _t1837 + p.recordSpan(int(span_start1036), "Attribute") + return result1037 } func (p *Parser) parse_algorithm() *pb.Algorithm { - span_start1032 := int64(p.spanStart()) + span_start1044 := 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 + xs1038 := []*pb.RelationId{} + cond1039 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1039 { + _t1838 := p.parse_relation_id() + item1040 := _t1838 + xs1038 = append(xs1038, item1040) + cond1039 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1041 := xs1038 + _t1839 := p.parse_script() + script1042 := _t1839 + var _t1840 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1817 := p.parse_attrs() - _t1816 = _t1817 + _t1841 := p.parse_attrs() + _t1840 = _t1841 } - attrs1031 := _t1816 + attrs1043 := _t1840 p.consumeLiteral(")") - _t1818 := attrs1031 - if attrs1031 == nil { - _t1818 = []*pb.Attribute{} + _t1842 := attrs1043 + if attrs1043 == nil { + _t1842 = []*pb.Attribute{} } - _t1819 := &pb.Algorithm{Global: relation_ids1029, Body: script1030, Attrs: _t1818} - result1033 := _t1819 - p.recordSpan(int(span_start1032), "Algorithm") - return result1033 + _t1843 := &pb.Algorithm{Global: relation_ids1041, Body: script1042, Attrs: _t1842} + result1045 := _t1843 + p.recordSpan(int(span_start1044), "Algorithm") + return result1045 } func (p *Parser) parse_script() *pb.Script { - span_start1038 := int64(p.spanStart()) + span_start1050 := 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 + xs1046 := []*pb.Construct{} + cond1047 := p.matchLookaheadLiteral("(", 0) + for cond1047 { + _t1844 := p.parse_construct() + item1048 := _t1844 + xs1046 = append(xs1046, item1048) + cond1047 = p.matchLookaheadLiteral("(", 0) + } + constructs1049 := xs1046 p.consumeLiteral(")") - _t1821 := &pb.Script{Constructs: constructs1037} - result1039 := _t1821 - p.recordSpan(int(span_start1038), "Script") - return result1039 + _t1845 := &pb.Script{Constructs: constructs1049} + result1051 := _t1845 + p.recordSpan(int(span_start1050), "Script") + return result1051 } func (p *Parser) parse_construct() *pb.Construct { - span_start1043 := int64(p.spanStart()) - var _t1822 int64 + span_start1055 := int64(p.spanStart()) + var _t1846 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1823 int64 + var _t1847 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1823 = 1 + _t1847 = 1 } else { - var _t1824 int64 + var _t1848 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1824 = 1 + _t1848 = 1 } else { - var _t1825 int64 + var _t1849 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1825 = 1 + _t1849 = 1 } else { - var _t1826 int64 + var _t1850 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1826 = 0 + _t1850 = 0 } else { - var _t1827 int64 + var _t1851 int64 if p.matchLookaheadLiteral("break", 1) { - _t1827 = 1 + _t1851 = 1 } else { - var _t1828 int64 + var _t1852 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1828 = 1 + _t1852 = 1 } else { - _t1828 = -1 + _t1852 = -1 } - _t1827 = _t1828 + _t1851 = _t1852 } - _t1826 = _t1827 + _t1850 = _t1851 } - _t1825 = _t1826 + _t1849 = _t1850 } - _t1824 = _t1825 + _t1848 = _t1849 } - _t1823 = _t1824 + _t1847 = _t1848 } - _t1822 = _t1823 + _t1846 = _t1847 } 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 + _t1846 = -1 + } + prediction1052 := _t1846 + var _t1853 *pb.Construct + if prediction1052 == 1 { + _t1854 := p.parse_instruction() + instruction1054 := _t1854 + _t1855 := &pb.Construct{} + _t1855.ConstructType = &pb.Construct_Instruction{Instruction: instruction1054} + _t1853 = _t1855 } 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 _t1856 *pb.Construct + if prediction1052 == 0 { + _t1857 := p.parse_loop() + loop1053 := _t1857 + _t1858 := &pb.Construct{} + _t1858.ConstructType = &pb.Construct_Loop{Loop: loop1053} + _t1856 = _t1858 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1829 = _t1832 + _t1853 = _t1856 } - result1044 := _t1829 - p.recordSpan(int(span_start1043), "Construct") - return result1044 + result1056 := _t1853 + p.recordSpan(int(span_start1055), "Construct") + return result1056 } func (p *Parser) parse_loop() *pb.Loop { - span_start1048 := int64(p.spanStart()) + span_start1060 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("loop") - _t1835 := p.parse_init() - init1045 := _t1835 - _t1836 := p.parse_script() - script1046 := _t1836 - var _t1837 []*pb.Attribute + _t1859 := p.parse_init() + init1057 := _t1859 + _t1860 := p.parse_script() + script1058 := _t1860 + var _t1861 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1838 := p.parse_attrs() - _t1837 = _t1838 + _t1862 := p.parse_attrs() + _t1861 = _t1862 } - attrs1047 := _t1837 + attrs1059 := _t1861 p.consumeLiteral(")") - _t1839 := attrs1047 - if attrs1047 == nil { - _t1839 = []*pb.Attribute{} + _t1863 := attrs1059 + if attrs1059 == nil { + _t1863 = []*pb.Attribute{} } - _t1840 := &pb.Loop{Init: init1045, Body: script1046, Attrs: _t1839} - result1049 := _t1840 - p.recordSpan(int(span_start1048), "Loop") - return result1049 + _t1864 := &pb.Loop{Init: init1057, Body: script1058, Attrs: _t1863} + result1061 := _t1864 + p.recordSpan(int(span_start1060), "Loop") + return result1061 } 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 + xs1062 := []*pb.Instruction{} + cond1063 := p.matchLookaheadLiteral("(", 0) + for cond1063 { + _t1865 := p.parse_instruction() + item1064 := _t1865 + xs1062 = append(xs1062, item1064) + cond1063 = p.matchLookaheadLiteral("(", 0) + } + instructions1065 := xs1062 p.consumeLiteral(")") - return instructions1053 + return instructions1065 } func (p *Parser) parse_instruction() *pb.Instruction { - span_start1060 := int64(p.spanStart()) - var _t1842 int64 + span_start1072 := int64(p.spanStart()) + var _t1866 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1843 int64 + var _t1867 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1843 = 1 + _t1867 = 1 } else { - var _t1844 int64 + var _t1868 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1844 = 4 + _t1868 = 4 } else { - var _t1845 int64 + var _t1869 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1845 = 3 + _t1869 = 3 } else { - var _t1846 int64 + var _t1870 int64 if p.matchLookaheadLiteral("break", 1) { - _t1846 = 2 + _t1870 = 2 } else { - var _t1847 int64 + var _t1871 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1847 = 0 + _t1871 = 0 } else { - _t1847 = -1 + _t1871 = -1 } - _t1846 = _t1847 + _t1870 = _t1871 } - _t1845 = _t1846 + _t1869 = _t1870 } - _t1844 = _t1845 + _t1868 = _t1869 } - _t1843 = _t1844 + _t1867 = _t1868 } - _t1842 = _t1843 + _t1866 = _t1867 } 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 + _t1866 = -1 + } + prediction1066 := _t1866 + var _t1872 *pb.Instruction + if prediction1066 == 4 { + _t1873 := p.parse_monus_def() + monus_def1071 := _t1873 + _t1874 := &pb.Instruction{} + _t1874.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def1071} + _t1872 = _t1874 } 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 _t1875 *pb.Instruction + if prediction1066 == 3 { + _t1876 := p.parse_monoid_def() + monoid_def1070 := _t1876 + _t1877 := &pb.Instruction{} + _t1877.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def1070} + _t1875 = _t1877 } 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 _t1878 *pb.Instruction + if prediction1066 == 2 { + _t1879 := p.parse_break() + break1069 := _t1879 + _t1880 := &pb.Instruction{} + _t1880.InstrType = &pb.Instruction_Break{Break: break1069} + _t1878 = _t1880 } 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 _t1881 *pb.Instruction + if prediction1066 == 1 { + _t1882 := p.parse_upsert() + upsert1068 := _t1882 + _t1883 := &pb.Instruction{} + _t1883.InstrType = &pb.Instruction_Upsert{Upsert: upsert1068} + _t1881 = _t1883 } 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 _t1884 *pb.Instruction + if prediction1066 == 0 { + _t1885 := p.parse_assign() + assign1067 := _t1885 + _t1886 := &pb.Instruction{} + _t1886.InstrType = &pb.Instruction_Assign{Assign: assign1067} + _t1884 = _t1886 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1857 = _t1860 + _t1881 = _t1884 } - _t1854 = _t1857 + _t1878 = _t1881 } - _t1851 = _t1854 + _t1875 = _t1878 } - _t1848 = _t1851 + _t1872 = _t1875 } - result1061 := _t1848 - p.recordSpan(int(span_start1060), "Instruction") - return result1061 + result1073 := _t1872 + p.recordSpan(int(span_start1072), "Instruction") + return result1073 } func (p *Parser) parse_assign() *pb.Assign { - span_start1065 := int64(p.spanStart()) + span_start1077 := 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 + _t1887 := p.parse_relation_id() + relation_id1074 := _t1887 + _t1888 := p.parse_abstraction() + abstraction1075 := _t1888 + var _t1889 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1866 := p.parse_attrs() - _t1865 = _t1866 + _t1890 := p.parse_attrs() + _t1889 = _t1890 } - attrs1064 := _t1865 + attrs1076 := _t1889 p.consumeLiteral(")") - _t1867 := attrs1064 - if attrs1064 == nil { - _t1867 = []*pb.Attribute{} + _t1891 := attrs1076 + if attrs1076 == nil { + _t1891 = []*pb.Attribute{} } - _t1868 := &pb.Assign{Name: relation_id1062, Body: abstraction1063, Attrs: _t1867} - result1066 := _t1868 - p.recordSpan(int(span_start1065), "Assign") - return result1066 + _t1892 := &pb.Assign{Name: relation_id1074, Body: abstraction1075, Attrs: _t1891} + result1078 := _t1892 + p.recordSpan(int(span_start1077), "Assign") + return result1078 } func (p *Parser) parse_upsert() *pb.Upsert { - span_start1070 := int64(p.spanStart()) + span_start1082 := 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 + _t1893 := p.parse_relation_id() + relation_id1079 := _t1893 + _t1894 := p.parse_abstraction_with_arity() + abstraction_with_arity1080 := _t1894 + var _t1895 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1872 := p.parse_attrs() - _t1871 = _t1872 + _t1896 := p.parse_attrs() + _t1895 = _t1896 } - attrs1069 := _t1871 + attrs1081 := _t1895 p.consumeLiteral(")") - _t1873 := attrs1069 - if attrs1069 == nil { - _t1873 = []*pb.Attribute{} + _t1897 := attrs1081 + if attrs1081 == nil { + _t1897 = []*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 + _t1898 := &pb.Upsert{Name: relation_id1079, Body: abstraction_with_arity1080[0].(*pb.Abstraction), Attrs: _t1897, ValueArity: abstraction_with_arity1080[1].(int64)} + result1083 := _t1898 + p.recordSpan(int(span_start1082), "Upsert") + return result1083 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1875 := p.parse_bindings() - bindings1072 := _t1875 - _t1876 := p.parse_formula() - formula1073 := _t1876 + _t1899 := p.parse_bindings() + bindings1084 := _t1899 + _t1900 := p.parse_formula() + formula1085 := _t1900 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)))} + _t1901 := &pb.Abstraction{Vars: listConcat(bindings1084[0].([]*pb.Binding), bindings1084[1].([]*pb.Binding)), Value: formula1085} + return []interface{}{_t1901, int64(len(bindings1084[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { - span_start1077 := int64(p.spanStart()) + span_start1089 := 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 + _t1902 := p.parse_relation_id() + relation_id1086 := _t1902 + _t1903 := p.parse_abstraction() + abstraction1087 := _t1903 + var _t1904 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1881 := p.parse_attrs() - _t1880 = _t1881 + _t1905 := p.parse_attrs() + _t1904 = _t1905 } - attrs1076 := _t1880 + attrs1088 := _t1904 p.consumeLiteral(")") - _t1882 := attrs1076 - if attrs1076 == nil { - _t1882 = []*pb.Attribute{} + _t1906 := attrs1088 + if attrs1088 == nil { + _t1906 = []*pb.Attribute{} } - _t1883 := &pb.Break{Name: relation_id1074, Body: abstraction1075, Attrs: _t1882} - result1078 := _t1883 - p.recordSpan(int(span_start1077), "Break") - return result1078 + _t1907 := &pb.Break{Name: relation_id1086, Body: abstraction1087, Attrs: _t1906} + result1090 := _t1907 + p.recordSpan(int(span_start1089), "Break") + return result1090 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { - span_start1083 := int64(p.spanStart()) + span_start1095 := 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 + _t1908 := p.parse_monoid() + monoid1091 := _t1908 + _t1909 := p.parse_relation_id() + relation_id1092 := _t1909 + _t1910 := p.parse_abstraction_with_arity() + abstraction_with_arity1093 := _t1910 + var _t1911 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1888 := p.parse_attrs() - _t1887 = _t1888 + _t1912 := p.parse_attrs() + _t1911 = _t1912 } - attrs1082 := _t1887 + attrs1094 := _t1911 p.consumeLiteral(")") - _t1889 := attrs1082 - if attrs1082 == nil { - _t1889 = []*pb.Attribute{} + _t1913 := attrs1094 + if attrs1094 == nil { + _t1913 = []*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 + _t1914 := &pb.MonoidDef{Monoid: monoid1091, Name: relation_id1092, Body: abstraction_with_arity1093[0].(*pb.Abstraction), Attrs: _t1913, ValueArity: abstraction_with_arity1093[1].(int64)} + result1096 := _t1914 + p.recordSpan(int(span_start1095), "MonoidDef") + return result1096 } func (p *Parser) parse_monoid() *pb.Monoid { - span_start1090 := int64(p.spanStart()) - var _t1891 int64 + span_start1102 := int64(p.spanStart()) + var _t1915 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1892 int64 + var _t1916 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1892 = 3 + _t1916 = 3 } else { - var _t1893 int64 + var _t1917 int64 if p.matchLookaheadLiteral("or", 1) { - _t1893 = 0 + _t1917 = 0 } else { - var _t1894 int64 + var _t1918 int64 if p.matchLookaheadLiteral("min", 1) { - _t1894 = 1 + _t1918 = 1 } else { - var _t1895 int64 + var _t1919 int64 if p.matchLookaheadLiteral("max", 1) { - _t1895 = 2 + _t1919 = 2 } else { - _t1895 = -1 + _t1919 = -1 } - _t1894 = _t1895 + _t1918 = _t1919 } - _t1893 = _t1894 + _t1917 = _t1918 } - _t1892 = _t1893 + _t1916 = _t1917 } - _t1891 = _t1892 + _t1915 = _t1916 } 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 + _t1915 = -1 + } + prediction1097 := _t1915 + var _t1920 *pb.Monoid + if prediction1097 == 3 { + _t1921 := p.parse_sum_monoid() + sum_monoid1101 := _t1921 + _t1922 := &pb.Monoid{} + _t1922.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1101} + _t1920 = _t1922 } 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 _t1923 *pb.Monoid + if prediction1097 == 2 { + _t1924 := p.parse_max_monoid() + max_monoid1100 := _t1924 + _t1925 := &pb.Monoid{} + _t1925.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1100} + _t1923 = _t1925 } 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 _t1926 *pb.Monoid + if prediction1097 == 1 { + _t1927 := p.parse_min_monoid() + min_monoid1099 := _t1927 + _t1928 := &pb.Monoid{} + _t1928.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1099} + _t1926 = _t1928 } 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 _t1929 *pb.Monoid + if prediction1097 == 0 { + _t1930 := p.parse_or_monoid() + or_monoid1098 := _t1930 + _t1931 := &pb.Monoid{} + _t1931.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1098} + _t1929 = _t1931 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1902 = _t1905 + _t1926 = _t1929 } - _t1899 = _t1902 + _t1923 = _t1926 } - _t1896 = _t1899 + _t1920 = _t1923 } - result1091 := _t1896 - p.recordSpan(int(span_start1090), "Monoid") - return result1091 + result1103 := _t1920 + p.recordSpan(int(span_start1102), "Monoid") + return result1103 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { - span_start1092 := int64(p.spanStart()) + span_start1104 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1908 := &pb.OrMonoid{} - result1093 := _t1908 - p.recordSpan(int(span_start1092), "OrMonoid") - return result1093 + _t1932 := &pb.OrMonoid{} + result1105 := _t1932 + p.recordSpan(int(span_start1104), "OrMonoid") + return result1105 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { - span_start1095 := int64(p.spanStart()) + span_start1107 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("min") - _t1909 := p.parse_type() - type1094 := _t1909 + _t1933 := p.parse_type() + type1106 := _t1933 p.consumeLiteral(")") - _t1910 := &pb.MinMonoid{Type: type1094} - result1096 := _t1910 - p.recordSpan(int(span_start1095), "MinMonoid") - return result1096 + _t1934 := &pb.MinMonoid{Type: type1106} + result1108 := _t1934 + p.recordSpan(int(span_start1107), "MinMonoid") + return result1108 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { - span_start1098 := int64(p.spanStart()) + span_start1110 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("max") - _t1911 := p.parse_type() - type1097 := _t1911 + _t1935 := p.parse_type() + type1109 := _t1935 p.consumeLiteral(")") - _t1912 := &pb.MaxMonoid{Type: type1097} - result1099 := _t1912 - p.recordSpan(int(span_start1098), "MaxMonoid") - return result1099 + _t1936 := &pb.MaxMonoid{Type: type1109} + result1111 := _t1936 + p.recordSpan(int(span_start1110), "MaxMonoid") + return result1111 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { - span_start1101 := int64(p.spanStart()) + span_start1113 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sum") - _t1913 := p.parse_type() - type1100 := _t1913 + _t1937 := p.parse_type() + type1112 := _t1937 p.consumeLiteral(")") - _t1914 := &pb.SumMonoid{Type: type1100} - result1102 := _t1914 - p.recordSpan(int(span_start1101), "SumMonoid") - return result1102 + _t1938 := &pb.SumMonoid{Type: type1112} + result1114 := _t1938 + p.recordSpan(int(span_start1113), "SumMonoid") + return result1114 } func (p *Parser) parse_monus_def() *pb.MonusDef { - span_start1107 := int64(p.spanStart()) + span_start1119 := 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 + _t1939 := p.parse_monoid() + monoid1115 := _t1939 + _t1940 := p.parse_relation_id() + relation_id1116 := _t1940 + _t1941 := p.parse_abstraction_with_arity() + abstraction_with_arity1117 := _t1941 + var _t1942 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1919 := p.parse_attrs() - _t1918 = _t1919 + _t1943 := p.parse_attrs() + _t1942 = _t1943 } - attrs1106 := _t1918 + attrs1118 := _t1942 p.consumeLiteral(")") - _t1920 := attrs1106 - if attrs1106 == nil { - _t1920 = []*pb.Attribute{} + _t1944 := attrs1118 + if attrs1118 == nil { + _t1944 = []*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 + _t1945 := &pb.MonusDef{Monoid: monoid1115, Name: relation_id1116, Body: abstraction_with_arity1117[0].(*pb.Abstraction), Attrs: _t1944, ValueArity: abstraction_with_arity1117[1].(int64)} + result1120 := _t1945 + p.recordSpan(int(span_start1119), "MonusDef") + return result1120 } func (p *Parser) parse_constraint() *pb.Constraint { - span_start1113 := int64(p.spanStart()) + span_start1125 := 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 + _t1946 := p.parse_relation_id() + relation_id1121 := _t1946 + _t1947 := p.parse_abstraction() + abstraction1122 := _t1947 + _t1948 := p.parse_functional_dependency_keys() + functional_dependency_keys1123 := _t1948 + _t1949 := p.parse_functional_dependency_values() + functional_dependency_values1124 := _t1949 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 + _t1950 := &pb.FunctionalDependency{Guard: abstraction1122, Keys: functional_dependency_keys1123, Values: functional_dependency_values1124} + _t1951 := &pb.Constraint{Name: relation_id1121} + _t1951.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1950} + result1126 := _t1951 + p.recordSpan(int(span_start1125), "Constraint") + return result1126 } 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 + xs1127 := []*pb.Var{} + cond1128 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1128 { + _t1952 := p.parse_var() + item1129 := _t1952 + xs1127 = append(xs1127, item1129) + cond1128 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1130 := xs1127 p.consumeLiteral(")") - return vars1118 + return vars1130 } 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 + xs1131 := []*pb.Var{} + cond1132 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1132 { + _t1953 := p.parse_var() + item1133 := _t1953 + xs1131 = append(xs1131, item1133) + cond1132 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1134 := xs1131 p.consumeLiteral(")") - return vars1122 + return vars1134 } func (p *Parser) parse_data() *pb.Data { - span_start1128 := int64(p.spanStart()) - var _t1930 int64 + span_start1140 := int64(p.spanStart()) + var _t1954 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1931 int64 + var _t1955 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t1931 = 3 + _t1955 = 3 } else { - var _t1932 int64 + var _t1956 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1932 = 0 + _t1956 = 0 } else { - var _t1933 int64 + var _t1957 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1933 = 2 + _t1957 = 2 } else { - var _t1934 int64 + var _t1958 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1934 = 1 + _t1958 = 1 } else { - _t1934 = -1 + _t1958 = -1 } - _t1933 = _t1934 + _t1957 = _t1958 } - _t1932 = _t1933 + _t1956 = _t1957 } - _t1931 = _t1932 + _t1955 = _t1956 } - _t1930 = _t1931 + _t1954 = _t1955 } 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 + _t1954 = -1 + } + prediction1135 := _t1954 + var _t1959 *pb.Data + if prediction1135 == 3 { + _t1960 := p.parse_iceberg_data() + iceberg_data1139 := _t1960 + _t1961 := &pb.Data{} + _t1961.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1139} + _t1959 = _t1961 } 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 _t1962 *pb.Data + if prediction1135 == 2 { + _t1963 := p.parse_csv_data() + csv_data1138 := _t1963 + _t1964 := &pb.Data{} + _t1964.DataType = &pb.Data_CsvData{CsvData: csv_data1138} + _t1962 = _t1964 } 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 _t1965 *pb.Data + if prediction1135 == 1 { + _t1966 := p.parse_betree_relation() + betree_relation1137 := _t1966 + _t1967 := &pb.Data{} + _t1967.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1137} + _t1965 = _t1967 } 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 _t1968 *pb.Data + if prediction1135 == 0 { + _t1969 := p.parse_edb() + edb1136 := _t1969 + _t1970 := &pb.Data{} + _t1970.DataType = &pb.Data_Edb{Edb: edb1136} + _t1968 = _t1970 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1941 = _t1944 + _t1965 = _t1968 } - _t1938 = _t1941 + _t1962 = _t1965 } - _t1935 = _t1938 + _t1959 = _t1962 } - result1129 := _t1935 - p.recordSpan(int(span_start1128), "Data") - return result1129 + result1141 := _t1959 + p.recordSpan(int(span_start1140), "Data") + return result1141 } func (p *Parser) parse_edb() *pb.EDB { - span_start1133 := int64(p.spanStart()) + span_start1145 := 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 + _t1971 := p.parse_relation_id() + relation_id1142 := _t1971 + _t1972 := p.parse_edb_path() + edb_path1143 := _t1972 + _t1973 := p.parse_edb_types() + edb_types1144 := _t1973 p.consumeLiteral(")") - _t1950 := &pb.EDB{TargetId: relation_id1130, Path: edb_path1131, Types: edb_types1132} - result1134 := _t1950 - p.recordSpan(int(span_start1133), "EDB") - return result1134 + _t1974 := &pb.EDB{TargetId: relation_id1142, Path: edb_path1143, Types: edb_types1144} + result1146 := _t1974 + p.recordSpan(int(span_start1145), "EDB") + return result1146 } 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 + xs1147 := []string{} + cond1148 := p.matchLookaheadTerminal("STRING", 0) + for cond1148 { + item1149 := p.consumeTerminal("STRING").Value.str + xs1147 = append(xs1147, item1149) + cond1148 = p.matchLookaheadTerminal("STRING", 0) + } + strings1150 := xs1147 p.consumeLiteral("]") - return strings1138 + return strings1150 } 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 + xs1151 := []*pb.Type{} + cond1152 := (((((((((((((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 cond1152 { + _t1975 := p.parse_type() + item1153 := _t1975 + xs1151 = append(xs1151, item1153) + cond1152 = (((((((((((((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)) + } + types1154 := xs1151 p.consumeLiteral("]") - return types1142 + return types1154 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { - span_start1145 := int64(p.spanStart()) + span_start1157 := 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 + _t1976 := p.parse_relation_id() + relation_id1155 := _t1976 + _t1977 := p.parse_betree_info() + betree_info1156 := _t1977 p.consumeLiteral(")") - _t1954 := &pb.BeTreeRelation{Name: relation_id1143, RelationInfo: betree_info1144} - result1146 := _t1954 - p.recordSpan(int(span_start1145), "BeTreeRelation") - return result1146 + _t1978 := &pb.BeTreeRelation{Name: relation_id1155, RelationInfo: betree_info1156} + result1158 := _t1978 + p.recordSpan(int(span_start1157), "BeTreeRelation") + return result1158 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { - span_start1150 := int64(p.spanStart()) + span_start1162 := 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 + _t1979 := p.parse_betree_info_key_types() + betree_info_key_types1159 := _t1979 + _t1980 := p.parse_betree_info_value_types() + betree_info_value_types1160 := _t1980 + _t1981 := p.parse_config_dict() + config_dict1161 := _t1981 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 + _t1982 := p.construct_betree_info(betree_info_key_types1159, betree_info_value_types1160, config_dict1161) + result1163 := _t1982 + p.recordSpan(int(span_start1162), "BeTreeInfo") + return result1163 } 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 + 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 { + _t1983 := p.parse_type() + item1166 := _t1983 + 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 types1155 + return types1167 } 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 + xs1168 := []*pb.Type{} + cond1169 := (((((((((((((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 cond1169 { + _t1984 := p.parse_type() + item1170 := _t1984 + xs1168 = append(xs1168, item1170) + cond1169 = (((((((((((((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)) + } + types1171 := xs1168 p.consumeLiteral(")") - return types1159 + return types1171 } func (p *Parser) parse_csv_data() *pb.CSVData { - span_start1164 := int64(p.spanStart()) + span_start1177 := 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 + _t1985 := p.parse_csvlocator() + csvlocator1172 := _t1985 + _t1986 := p.parse_csv_config() + csv_config1173 := _t1986 + var _t1987 []*pb.GNFColumn + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("columns", 1)) { + _t1988 := p.parse_gnf_columns() + _t1987 = _t1988 + } + gnf_columns1174 := _t1987 + var _t1989 *pb.CSVTarget + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("table", 1)) { + _t1990 := p.parse_csv_table() + _t1989 = _t1990 + } + csv_table1175 := _t1989 + _t1991 := p.parse_csv_asof() + csv_asof1176 := _t1991 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 + _t1992 := p.construct_csv_data(csvlocator1172, csv_config1173, gnf_columns1174, csv_table1175, csv_asof1176) + result1178 := _t1992 + p.recordSpan(int(span_start1177), "CSVData") + return result1178 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { - span_start1168 := int64(p.spanStart()) + span_start1181 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t1966 []string + var _t1993 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t1967 := p.parse_csv_locator_paths() - _t1966 = _t1967 + _t1994 := p.parse_csv_locator_paths() + _t1993 = _t1994 } - csv_locator_paths1166 := _t1966 - var _t1968 *string + csv_locator_paths1179 := _t1993 + var _t1995 *string if p.matchLookaheadLiteral("(", 0) { - _t1969 := p.parse_csv_locator_inline_data() - _t1968 = ptr(_t1969) + _t1996 := p.parse_csv_locator_inline_data() + _t1995 = ptr(_t1996) } - csv_locator_inline_data1167 := _t1968 + csv_locator_inline_data1180 := _t1995 p.consumeLiteral(")") - _t1970 := csv_locator_paths1166 - if csv_locator_paths1166 == nil { - _t1970 = []string{} + _t1997 := csv_locator_paths1179 + if csv_locator_paths1179 == nil { + _t1997 = []string{} } - _t1971 := &pb.CSVLocator{Paths: _t1970, InlineData: []byte(deref(csv_locator_inline_data1167, ""))} - result1169 := _t1971 - p.recordSpan(int(span_start1168), "CSVLocator") - return result1169 + _t1998 := &pb.CSVLocator{Paths: _t1997, InlineData: []byte(deref(csv_locator_inline_data1180, ""))} + result1182 := _t1998 + p.recordSpan(int(span_start1181), "CSVLocator") + return result1182 } 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 + xs1183 := []string{} + cond1184 := p.matchLookaheadTerminal("STRING", 0) + for cond1184 { + item1185 := p.consumeTerminal("STRING").Value.str + xs1183 = append(xs1183, item1185) + cond1184 = p.matchLookaheadTerminal("STRING", 0) + } + strings1186 := xs1183 p.consumeLiteral(")") - return strings1173 + return strings1186 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - string1174 := p.consumeTerminal("STRING").Value.str + string1187 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1174 + return string1187 } func (p *Parser) parse_csv_config() *pb.CSVConfig { - span_start1176 := int64(p.spanStart()) + span_start1189 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t1972 := p.parse_config_dict() - config_dict1175 := _t1972 + _t1999 := p.parse_config_dict() + config_dict1188 := _t1999 p.consumeLiteral(")") - _t1973 := p.construct_csv_config(config_dict1175) - result1177 := _t1973 - p.recordSpan(int(span_start1176), "CSVConfig") - return result1177 + _t2000 := p.construct_csv_config(config_dict1188) + result1190 := _t2000 + p.recordSpan(int(span_start1189), "CSVConfig") + return result1190 } 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 + xs1191 := []*pb.GNFColumn{} + cond1192 := p.matchLookaheadLiteral("(", 0) + for cond1192 { + _t2001 := p.parse_gnf_column() + item1193 := _t2001 + xs1191 = append(xs1191, item1193) + cond1192 = p.matchLookaheadLiteral("(", 0) + } + gnf_columns1194 := xs1191 p.consumeLiteral(")") - return gnf_columns1181 + return gnf_columns1194 } func (p *Parser) parse_gnf_column() *pb.GNFColumn { - span_start1188 := int64(p.spanStart()) + span_start1201 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - _t1975 := p.parse_gnf_column_path() - gnf_column_path1182 := _t1975 - var _t1976 *pb.RelationId + _t2002 := p.parse_gnf_column_path() + gnf_column_path1195 := _t2002 + var _t2003 *pb.RelationId if (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) { - _t1977 := p.parse_relation_id() - _t1976 = _t1977 + _t2004 := p.parse_relation_id() + _t2003 = _t2004 } - relation_id1183 := _t1976 + relation_id1196 := _t2003 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 + xs1197 := []*pb.Type{} + cond1198 := (((((((((((((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 cond1198 { + _t2005 := p.parse_type() + item1199 := _t2005 + xs1197 = append(xs1197, item1199) + cond1198 = (((((((((((((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)) + } + types1200 := xs1197 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 + _t2006 := &pb.GNFColumn{ColumnPath: gnf_column_path1195, TargetId: relation_id1196, Types: types1200} + result1202 := _t2006 + p.recordSpan(int(span_start1201), "GNFColumn") + return result1202 } func (p *Parser) parse_gnf_column_path() []string { - var _t1980 int64 + var _t2007 int64 if p.matchLookaheadLiteral("[", 0) { - _t1980 = 1 + _t2007 = 1 } else { - var _t1981 int64 + var _t2008 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1981 = 0 + _t2008 = 0 } else { - _t1981 = -1 + _t2008 = -1 } - _t1980 = _t1981 + _t2007 = _t2008 } - prediction1190 := _t1980 - var _t1982 []string - if prediction1190 == 1 { + prediction1203 := _t2007 + var _t2009 []string + if prediction1203 == 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) + xs1205 := []string{} + cond1206 := p.matchLookaheadTerminal("STRING", 0) + for cond1206 { + item1207 := p.consumeTerminal("STRING").Value.str + xs1205 = append(xs1205, item1207) + cond1206 = p.matchLookaheadTerminal("STRING", 0) } - strings1195 := xs1192 + strings1208 := xs1205 p.consumeLiteral("]") - _t1982 = strings1195 + _t2009 = strings1208 } else { - var _t1983 []string - if prediction1190 == 0 { - string1191 := p.consumeTerminal("STRING").Value.str - _ = string1191 - _t1983 = []string{string1191} + var _t2010 []string + if prediction1203 == 0 { + string1204 := p.consumeTerminal("STRING").Value.str + _ = string1204 + _t2010 = []string{string1204} } 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 + _t2009 = _t2010 } - return _t1982 + return _t2009 +} + +func (p *Parser) parse_csv_table() *pb.CSVTarget { + span_start1218 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("table") + _t2011 := p.parse_relation_id() + relation_id1209 := _t2011 + p.consumeLiteral("[") + xs1210 := []string{} + cond1211 := p.matchLookaheadTerminal("STRING", 0) + for cond1211 { + item1212 := p.consumeTerminal("STRING").Value.str + xs1210 = append(xs1210, item1212) + cond1211 = p.matchLookaheadTerminal("STRING", 0) + } + strings1213 := xs1210 + p.consumeLiteral("]") + p.consumeLiteral("[") + xs1214 := []*pb.Type{} + cond1215 := (((((((((((((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 cond1215 { + _t2012 := p.parse_type() + item1216 := _t2012 + xs1214 = append(xs1214, item1216) + cond1215 = (((((((((((((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)) + } + types1217 := xs1214 + p.consumeLiteral("]") + p.consumeLiteral(")") + _t2013 := &pb.CSVTarget{TargetId: relation_id1209, ColumnNames: strings1213, Types: types1217} + result1219 := _t2013 + p.recordSpan(int(span_start1218), "CSVTarget") + return result1219 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string1196 := p.consumeTerminal("STRING").Value.str + string1220 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1196 + return string1220 } func (p *Parser) parse_iceberg_data() *pb.IcebergData { - span_start1203 := int64(p.spanStart()) + span_start1227 := 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 + _t2014 := p.parse_iceberg_locator() + iceberg_locator1221 := _t2014 + _t2015 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1222 := _t2015 + _t2016 := p.parse_gnf_columns() + gnf_columns1223 := _t2016 + var _t2017 *string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("from_snapshot", 1)) { - _t1988 := p.parse_iceberg_from_snapshot() - _t1987 = ptr(_t1988) + _t2018 := p.parse_iceberg_from_snapshot() + _t2017 = ptr(_t2018) } - iceberg_from_snapshot1200 := _t1987 - var _t1989 *string + iceberg_from_snapshot1224 := _t2017 + var _t2019 *string if p.matchLookaheadLiteral("(", 0) { - _t1990 := p.parse_iceberg_to_snapshot() - _t1989 = ptr(_t1990) + _t2020 := p.parse_iceberg_to_snapshot() + _t2019 = ptr(_t2020) } - iceberg_to_snapshot1201 := _t1989 - _t1991 := p.parse_boolean_value() - boolean_value1202 := _t1991 + iceberg_to_snapshot1225 := _t2019 + _t2021 := p.parse_boolean_value() + boolean_value1226 := _t2021 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 + _t2022 := p.construct_iceberg_data(iceberg_locator1221, iceberg_catalog_config1222, gnf_columns1223, iceberg_from_snapshot1224, iceberg_to_snapshot1225, boolean_value1226) + result1228 := _t2022 + p.recordSpan(int(span_start1227), "IcebergData") + return result1228 } func (p *Parser) parse_iceberg_locator() *pb.IcebergLocator { - span_start1208 := int64(p.spanStart()) + span_start1232 := 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 + _t2023 := p.parse_iceberg_locator_table_name() + iceberg_locator_table_name1229 := _t2023 + _t2024 := p.parse_iceberg_locator_namespace() + iceberg_locator_namespace1230 := _t2024 + _t2025 := p.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1231 := _t2025 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 + _t2026 := &pb.IcebergLocator{TableName: iceberg_locator_table_name1229, Namespace: iceberg_locator_namespace1230, Warehouse: iceberg_locator_warehouse1231} + result1233 := _t2026 + p.recordSpan(int(span_start1232), "IcebergLocator") + return result1233 } func (p *Parser) parse_iceberg_locator_table_name() string { p.consumeLiteral("(") p.consumeLiteral("table_name") - string1210 := p.consumeTerminal("STRING").Value.str + string1234 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1210 + return string1234 } 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 + xs1235 := []string{} + cond1236 := p.matchLookaheadTerminal("STRING", 0) + for cond1236 { + item1237 := p.consumeTerminal("STRING").Value.str + xs1235 = append(xs1235, item1237) + cond1236 = p.matchLookaheadTerminal("STRING", 0) + } + strings1238 := xs1235 p.consumeLiteral(")") - return strings1214 + return strings1238 } func (p *Parser) parse_iceberg_locator_warehouse() string { p.consumeLiteral("(") p.consumeLiteral("warehouse") - string1215 := p.consumeTerminal("STRING").Value.str + string1239 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1215 + return string1239 } func (p *Parser) parse_iceberg_catalog_config() *pb.IcebergCatalogConfig { - span_start1220 := int64(p.spanStart()) + span_start1244 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_catalog_config") - _t1997 := p.parse_iceberg_catalog_uri() - iceberg_catalog_uri1216 := _t1997 - var _t1998 *string + _t2027 := p.parse_iceberg_catalog_uri() + iceberg_catalog_uri1240 := _t2027 + var _t2028 *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 + _t2029 := p.parse_iceberg_catalog_config_scope() + _t2028 = ptr(_t2029) + } + iceberg_catalog_config_scope1241 := _t2028 + _t2030 := p.parse_iceberg_properties() + iceberg_properties1242 := _t2030 + _t2031 := p.parse_iceberg_auth_properties() + iceberg_auth_properties1243 := _t2031 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 + _t2032 := p.construct_iceberg_catalog_config(iceberg_catalog_uri1240, iceberg_catalog_config_scope1241, iceberg_properties1242, iceberg_auth_properties1243) + result1245 := _t2032 + p.recordSpan(int(span_start1244), "IcebergCatalogConfig") + return result1245 } func (p *Parser) parse_iceberg_catalog_uri() string { p.consumeLiteral("(") p.consumeLiteral("catalog_uri") - string1222 := p.consumeTerminal("STRING").Value.str + string1246 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1222 + return string1246 } func (p *Parser) parse_iceberg_catalog_config_scope() string { p.consumeLiteral("(") p.consumeLiteral("scope") - string1223 := p.consumeTerminal("STRING").Value.str + string1247 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1223 + return string1247 } 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 + xs1248 := [][]interface{}{} + cond1249 := p.matchLookaheadLiteral("(", 0) + for cond1249 { + _t2033 := p.parse_iceberg_property_entry() + item1250 := _t2033 + xs1248 = append(xs1248, item1250) + cond1249 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1251 := xs1248 p.consumeLiteral(")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1251 } 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 + string1252 := p.consumeTerminal("STRING").Value.str + string_31253 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1228, string_31229} + return []interface{}{string1252, string_31253} } 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 + xs1254 := [][]interface{}{} + cond1255 := p.matchLookaheadLiteral("(", 0) + for cond1255 { + _t2034 := p.parse_iceberg_masked_property_entry() + item1256 := _t2034 + xs1254 = append(xs1254, item1256) + cond1255 = p.matchLookaheadLiteral("(", 0) + } + iceberg_masked_property_entrys1257 := xs1254 p.consumeLiteral(")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1257 } 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 + string1258 := p.consumeTerminal("STRING").Value.str + string_31259 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1234, string_31235} + return []interface{}{string1258, string_31259} } func (p *Parser) parse_iceberg_from_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("from_snapshot") - string1236 := p.consumeTerminal("STRING").Value.str + string1260 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1236 + return string1260 } func (p *Parser) parse_iceberg_to_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("to_snapshot") - string1237 := p.consumeTerminal("STRING").Value.str + string1261 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1237 + return string1261 } func (p *Parser) parse_undefine() *pb.Undefine { - span_start1239 := int64(p.spanStart()) + span_start1263 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("undefine") - _t2005 := p.parse_fragment_id() - fragment_id1238 := _t2005 + _t2035 := p.parse_fragment_id() + fragment_id1262 := _t2035 p.consumeLiteral(")") - _t2006 := &pb.Undefine{FragmentId: fragment_id1238} - result1240 := _t2006 - p.recordSpan(int(span_start1239), "Undefine") - return result1240 + _t2036 := &pb.Undefine{FragmentId: fragment_id1262} + result1264 := _t2036 + p.recordSpan(int(span_start1263), "Undefine") + return result1264 } func (p *Parser) parse_context() *pb.Context { - span_start1245 := int64(p.spanStart()) + span_start1269 := 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 + xs1265 := []*pb.RelationId{} + cond1266 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1266 { + _t2037 := p.parse_relation_id() + item1267 := _t2037 + xs1265 = append(xs1265, item1267) + cond1266 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1268 := xs1265 p.consumeLiteral(")") - _t2008 := &pb.Context{Relations: relation_ids1244} - result1246 := _t2008 - p.recordSpan(int(span_start1245), "Context") - return result1246 + _t2038 := &pb.Context{Relations: relation_ids1268} + result1270 := _t2038 + p.recordSpan(int(span_start1269), "Context") + return result1270 } func (p *Parser) parse_snapshot() *pb.Snapshot { - span_start1252 := int64(p.spanStart()) + span_start1276 := 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 + _t2039 := p.parse_edb_path() + edb_path1271 := _t2039 + xs1272 := []*pb.SnapshotMapping{} + cond1273 := p.matchLookaheadLiteral("[", 0) + for cond1273 { + _t2040 := p.parse_snapshot_mapping() + item1274 := _t2040 + xs1272 = append(xs1272, item1274) + cond1273 = p.matchLookaheadLiteral("[", 0) + } + snapshot_mappings1275 := xs1272 p.consumeLiteral(")") - _t2011 := &pb.Snapshot{Prefix: edb_path1247, Mappings: snapshot_mappings1251} - result1253 := _t2011 - p.recordSpan(int(span_start1252), "Snapshot") - return result1253 + _t2041 := &pb.Snapshot{Prefix: edb_path1271, Mappings: snapshot_mappings1275} + result1277 := _t2041 + p.recordSpan(int(span_start1276), "Snapshot") + return result1277 } 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_start1280 := int64(p.spanStart()) + _t2042 := p.parse_edb_path() + edb_path1278 := _t2042 + _t2043 := p.parse_relation_id() + relation_id1279 := _t2043 + _t2044 := &pb.SnapshotMapping{DestinationPath: edb_path1278, SourceRelation: relation_id1279} + result1281 := _t2044 + p.recordSpan(int(span_start1280), "SnapshotMapping") + return result1281 } 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 + xs1282 := []*pb.Read{} + cond1283 := p.matchLookaheadLiteral("(", 0) + for cond1283 { + _t2045 := p.parse_read() + item1284 := _t2045 + xs1282 = append(xs1282, item1284) + cond1283 = p.matchLookaheadLiteral("(", 0) + } + reads1285 := xs1282 p.consumeLiteral(")") - return reads1261 + return reads1285 } func (p *Parser) parse_read() *pb.Read { - span_start1268 := int64(p.spanStart()) - var _t2016 int64 + span_start1292 := int64(p.spanStart()) + var _t2046 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2017 int64 + var _t2047 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t2017 = 2 + _t2047 = 2 } else { - var _t2018 int64 + var _t2048 int64 if p.matchLookaheadLiteral("output", 1) { - _t2018 = 1 + _t2048 = 1 } else { - var _t2019 int64 + var _t2049 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2019 = 4 + _t2049 = 4 } else { - var _t2020 int64 + var _t2050 int64 if p.matchLookaheadLiteral("export", 1) { - _t2020 = 4 + _t2050 = 4 } else { - var _t2021 int64 + var _t2051 int64 if p.matchLookaheadLiteral("demand", 1) { - _t2021 = 0 + _t2051 = 0 } else { - var _t2022 int64 + var _t2052 int64 if p.matchLookaheadLiteral("abort", 1) { - _t2022 = 3 + _t2052 = 3 } else { - _t2022 = -1 + _t2052 = -1 } - _t2021 = _t2022 + _t2051 = _t2052 } - _t2020 = _t2021 + _t2050 = _t2051 } - _t2019 = _t2020 + _t2049 = _t2050 } - _t2018 = _t2019 + _t2048 = _t2049 } - _t2017 = _t2018 + _t2047 = _t2048 } - _t2016 = _t2017 + _t2046 = _t2047 } 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 + _t2046 = -1 + } + prediction1286 := _t2046 + var _t2053 *pb.Read + if prediction1286 == 4 { + _t2054 := p.parse_export() + export1291 := _t2054 + _t2055 := &pb.Read{} + _t2055.ReadType = &pb.Read_Export{Export: export1291} + _t2053 = _t2055 } 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 _t2056 *pb.Read + if prediction1286 == 3 { + _t2057 := p.parse_abort() + abort1290 := _t2057 + _t2058 := &pb.Read{} + _t2058.ReadType = &pb.Read_Abort{Abort: abort1290} + _t2056 = _t2058 } 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 _t2059 *pb.Read + if prediction1286 == 2 { + _t2060 := p.parse_what_if() + what_if1289 := _t2060 + _t2061 := &pb.Read{} + _t2061.ReadType = &pb.Read_WhatIf{WhatIf: what_if1289} + _t2059 = _t2061 } 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 _t2062 *pb.Read + if prediction1286 == 1 { + _t2063 := p.parse_output() + output1288 := _t2063 + _t2064 := &pb.Read{} + _t2064.ReadType = &pb.Read_Output{Output: output1288} + _t2062 = _t2064 } 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 _t2065 *pb.Read + if prediction1286 == 0 { + _t2066 := p.parse_demand() + demand1287 := _t2066 + _t2067 := &pb.Read{} + _t2067.ReadType = &pb.Read_Demand{Demand: demand1287} + _t2065 = _t2067 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2032 = _t2035 + _t2062 = _t2065 } - _t2029 = _t2032 + _t2059 = _t2062 } - _t2026 = _t2029 + _t2056 = _t2059 } - _t2023 = _t2026 + _t2053 = _t2056 } - result1269 := _t2023 - p.recordSpan(int(span_start1268), "Read") - return result1269 + result1293 := _t2053 + p.recordSpan(int(span_start1292), "Read") + return result1293 } func (p *Parser) parse_demand() *pb.Demand { - span_start1271 := int64(p.spanStart()) + span_start1295 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("demand") - _t2038 := p.parse_relation_id() - relation_id1270 := _t2038 + _t2068 := p.parse_relation_id() + relation_id1294 := _t2068 p.consumeLiteral(")") - _t2039 := &pb.Demand{RelationId: relation_id1270} - result1272 := _t2039 - p.recordSpan(int(span_start1271), "Demand") - return result1272 + _t2069 := &pb.Demand{RelationId: relation_id1294} + result1296 := _t2069 + p.recordSpan(int(span_start1295), "Demand") + return result1296 } func (p *Parser) parse_output() *pb.Output { - span_start1275 := int64(p.spanStart()) + span_start1299 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("output") - _t2040 := p.parse_name() - name1273 := _t2040 - _t2041 := p.parse_relation_id() - relation_id1274 := _t2041 + _t2070 := p.parse_name() + name1297 := _t2070 + _t2071 := p.parse_relation_id() + relation_id1298 := _t2071 p.consumeLiteral(")") - _t2042 := &pb.Output{Name: name1273, RelationId: relation_id1274} - result1276 := _t2042 - p.recordSpan(int(span_start1275), "Output") - return result1276 + _t2072 := &pb.Output{Name: name1297, RelationId: relation_id1298} + result1300 := _t2072 + p.recordSpan(int(span_start1299), "Output") + return result1300 } func (p *Parser) parse_what_if() *pb.WhatIf { - span_start1279 := int64(p.spanStart()) + span_start1303 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("what_if") - _t2043 := p.parse_name() - name1277 := _t2043 - _t2044 := p.parse_epoch() - epoch1278 := _t2044 + _t2073 := p.parse_name() + name1301 := _t2073 + _t2074 := p.parse_epoch() + epoch1302 := _t2074 p.consumeLiteral(")") - _t2045 := &pb.WhatIf{Branch: name1277, Epoch: epoch1278} - result1280 := _t2045 - p.recordSpan(int(span_start1279), "WhatIf") - return result1280 + _t2075 := &pb.WhatIf{Branch: name1301, Epoch: epoch1302} + result1304 := _t2075 + p.recordSpan(int(span_start1303), "WhatIf") + return result1304 } func (p *Parser) parse_abort() *pb.Abort { - span_start1283 := int64(p.spanStart()) + span_start1307 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("abort") - var _t2046 *string + var _t2076 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t2047 := p.parse_name() - _t2046 = ptr(_t2047) + _t2077 := p.parse_name() + _t2076 = ptr(_t2077) } - name1281 := _t2046 - _t2048 := p.parse_relation_id() - relation_id1282 := _t2048 + name1305 := _t2076 + _t2078 := p.parse_relation_id() + relation_id1306 := _t2078 p.consumeLiteral(")") - _t2049 := &pb.Abort{Name: deref(name1281, "abort"), RelationId: relation_id1282} - result1284 := _t2049 - p.recordSpan(int(span_start1283), "Abort") - return result1284 + _t2079 := &pb.Abort{Name: deref(name1305, "abort"), RelationId: relation_id1306} + result1308 := _t2079 + p.recordSpan(int(span_start1307), "Abort") + return result1308 } func (p *Parser) parse_export() *pb.Export { - span_start1288 := int64(p.spanStart()) - var _t2050 int64 + span_start1312 := int64(p.spanStart()) + var _t2080 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2051 int64 + var _t2081 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2051 = 1 + _t2081 = 1 } else { - var _t2052 int64 + var _t2082 int64 if p.matchLookaheadLiteral("export", 1) { - _t2052 = 0 + _t2082 = 0 } else { - _t2052 = -1 + _t2082 = -1 } - _t2051 = _t2052 + _t2081 = _t2082 } - _t2050 = _t2051 + _t2080 = _t2081 } else { - _t2050 = -1 + _t2080 = -1 } - prediction1285 := _t2050 - var _t2053 *pb.Export - if prediction1285 == 1 { + prediction1309 := _t2080 + var _t2083 *pb.Export + if prediction1309 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_iceberg") - _t2054 := p.parse_export_iceberg_config() - export_iceberg_config1287 := _t2054 + _t2084 := p.parse_export_iceberg_config() + export_iceberg_config1311 := _t2084 p.consumeLiteral(")") - _t2055 := &pb.Export{} - _t2055.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1287} - _t2053 = _t2055 + _t2085 := &pb.Export{} + _t2085.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1311} + _t2083 = _t2085 } else { - var _t2056 *pb.Export - if prediction1285 == 0 { + var _t2086 *pb.Export + if prediction1309 == 0 { p.consumeLiteral("(") p.consumeLiteral("export") - _t2057 := p.parse_export_csv_config() - export_csv_config1286 := _t2057 + _t2087 := p.parse_export_csv_config() + export_csv_config1310 := _t2087 p.consumeLiteral(")") - _t2058 := &pb.Export{} - _t2058.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1286} - _t2056 = _t2058 + _t2088 := &pb.Export{} + _t2088.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1310} + _t2086 = _t2088 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2053 = _t2056 + _t2083 = _t2086 } - result1289 := _t2053 - p.recordSpan(int(span_start1288), "Export") - return result1289 + result1313 := _t2083 + p.recordSpan(int(span_start1312), "Export") + return result1313 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - span_start1297 := int64(p.spanStart()) - var _t2059 int64 + span_start1321 := int64(p.spanStart()) + var _t2089 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2060 int64 + var _t2090 int64 if p.matchLookaheadLiteral("export_csv_config_v2", 1) { - _t2060 = 0 + _t2090 = 0 } else { - var _t2061 int64 + var _t2091 int64 if p.matchLookaheadLiteral("export_csv_config", 1) { - _t2061 = 1 + _t2091 = 1 } else { - _t2061 = -1 + _t2091 = -1 } - _t2060 = _t2061 + _t2090 = _t2091 } - _t2059 = _t2060 + _t2089 = _t2090 } else { - _t2059 = -1 + _t2089 = -1 } - prediction1290 := _t2059 - var _t2062 *pb.ExportCSVConfig - if prediction1290 == 1 { + prediction1314 := _t2089 + var _t2092 *pb.ExportCSVConfig + if prediction1314 == 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 + _t2093 := p.parse_export_csv_path() + export_csv_path1318 := _t2093 + _t2094 := p.parse_export_csv_columns_list() + export_csv_columns_list1319 := _t2094 + _t2095 := p.parse_config_dict() + config_dict1320 := _t2095 p.consumeLiteral(")") - _t2066 := p.construct_export_csv_config(export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2062 = _t2066 + _t2096 := p.construct_export_csv_config(export_csv_path1318, export_csv_columns_list1319, config_dict1320) + _t2092 = _t2096 } else { - var _t2067 *pb.ExportCSVConfig - if prediction1290 == 0 { + var _t2097 *pb.ExportCSVConfig + if prediction1314 == 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 + _t2098 := p.parse_export_csv_path() + export_csv_path1315 := _t2098 + _t2099 := p.parse_export_csv_source() + export_csv_source1316 := _t2099 + _t2100 := p.parse_csv_config() + csv_config1317 := _t2100 p.consumeLiteral(")") - _t2071 := p.construct_export_csv_config_with_source(export_csv_path1291, export_csv_source1292, csv_config1293) - _t2067 = _t2071 + _t2101 := p.construct_export_csv_config_with_source(export_csv_path1315, export_csv_source1316, csv_config1317) + _t2097 = _t2101 } 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 + _t2092 = _t2097 } - result1298 := _t2062 - p.recordSpan(int(span_start1297), "ExportCSVConfig") - return result1298 + result1322 := _t2092 + p.recordSpan(int(span_start1321), "ExportCSVConfig") + return result1322 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string1299 := p.consumeTerminal("STRING").Value.str + string1323 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1299 + return string1323 } func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { - span_start1306 := int64(p.spanStart()) - var _t2072 int64 + span_start1330 := int64(p.spanStart()) + var _t2102 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2073 int64 + var _t2103 int64 if p.matchLookaheadLiteral("table_def", 1) { - _t2073 = 1 + _t2103 = 1 } else { - var _t2074 int64 + var _t2104 int64 if p.matchLookaheadLiteral("gnf_columns", 1) { - _t2074 = 0 + _t2104 = 0 } else { - _t2074 = -1 + _t2104 = -1 } - _t2073 = _t2074 + _t2103 = _t2104 } - _t2072 = _t2073 + _t2102 = _t2103 } else { - _t2072 = -1 + _t2102 = -1 } - prediction1300 := _t2072 - var _t2075 *pb.ExportCSVSource - if prediction1300 == 1 { + prediction1324 := _t2102 + var _t2105 *pb.ExportCSVSource + if prediction1324 == 1 { p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2076 := p.parse_relation_id() - relation_id1305 := _t2076 + _t2106 := p.parse_relation_id() + relation_id1329 := _t2106 p.consumeLiteral(")") - _t2077 := &pb.ExportCSVSource{} - _t2077.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1305} - _t2075 = _t2077 + _t2107 := &pb.ExportCSVSource{} + _t2107.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1329} + _t2105 = _t2107 } else { - var _t2078 *pb.ExportCSVSource - if prediction1300 == 0 { + var _t2108 *pb.ExportCSVSource + if prediction1324 == 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) + xs1325 := []*pb.ExportCSVColumn{} + cond1326 := p.matchLookaheadLiteral("(", 0) + for cond1326 { + _t2109 := p.parse_export_csv_column() + item1327 := _t2109 + xs1325 = append(xs1325, item1327) + cond1326 = p.matchLookaheadLiteral("(", 0) } - export_csv_columns1304 := xs1301 + export_csv_columns1328 := xs1325 p.consumeLiteral(")") - _t2080 := &pb.ExportCSVColumns{Columns: export_csv_columns1304} - _t2081 := &pb.ExportCSVSource{} - _t2081.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2080} - _t2078 = _t2081 + _t2110 := &pb.ExportCSVColumns{Columns: export_csv_columns1328} + _t2111 := &pb.ExportCSVSource{} + _t2111.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2110} + _t2108 = _t2111 } 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 + _t2105 = _t2108 } - result1307 := _t2075 - p.recordSpan(int(span_start1306), "ExportCSVSource") - return result1307 + result1331 := _t2105 + p.recordSpan(int(span_start1330), "ExportCSVSource") + return result1331 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { - span_start1310 := int64(p.spanStart()) + span_start1334 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - string1308 := p.consumeTerminal("STRING").Value.str - _t2082 := p.parse_relation_id() - relation_id1309 := _t2082 + string1332 := p.consumeTerminal("STRING").Value.str + _t2112 := p.parse_relation_id() + relation_id1333 := _t2112 p.consumeLiteral(")") - _t2083 := &pb.ExportCSVColumn{ColumnName: string1308, ColumnData: relation_id1309} - result1311 := _t2083 - p.recordSpan(int(span_start1310), "ExportCSVColumn") - return result1311 + _t2113 := &pb.ExportCSVColumn{ColumnName: string1332, ColumnData: relation_id1333} + result1335 := _t2113 + p.recordSpan(int(span_start1334), "ExportCSVColumn") + return result1335 } 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 + xs1336 := []*pb.ExportCSVColumn{} + cond1337 := p.matchLookaheadLiteral("(", 0) + for cond1337 { + _t2114 := p.parse_export_csv_column() + item1338 := _t2114 + xs1336 = append(xs1336, item1338) + cond1337 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns1339 := xs1336 p.consumeLiteral(")") - return export_csv_columns1315 + return export_csv_columns1339 } func (p *Parser) parse_export_iceberg_config() *pb.ExportIcebergConfig { - span_start1321 := int64(p.spanStart()) + span_start1345 := 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{} + _t2115 := p.parse_iceberg_locator() + iceberg_locator1340 := _t2115 + _t2116 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1341 := _t2116 + _t2117 := p.parse_export_iceberg_table_def() + export_iceberg_table_def1342 := _t2117 + _t2118 := p.parse_iceberg_table_properties() + iceberg_table_properties1343 := _t2118 + var _t2119 [][]interface{} if p.matchLookaheadLiteral("{", 0) { - _t2090 := p.parse_config_dict() - _t2089 = _t2090 + _t2120 := p.parse_config_dict() + _t2119 = _t2120 } - config_dict1320 := _t2089 + config_dict1344 := _t2119 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 + _t2121 := p.construct_export_iceberg_config_full(iceberg_locator1340, iceberg_catalog_config1341, export_iceberg_table_def1342, iceberg_table_properties1343, config_dict1344) + result1346 := _t2121 + p.recordSpan(int(span_start1345), "ExportIcebergConfig") + return result1346 } func (p *Parser) parse_export_iceberg_table_def() *pb.RelationId { - span_start1324 := int64(p.spanStart()) + span_start1348 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2092 := p.parse_relation_id() - relation_id1323 := _t2092 + _t2122 := p.parse_relation_id() + relation_id1347 := _t2122 p.consumeLiteral(")") - result1325 := relation_id1323 - p.recordSpan(int(span_start1324), "RelationId") - return result1325 + result1349 := relation_id1347 + p.recordSpan(int(span_start1348), "RelationId") + return result1349 } 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 + xs1350 := [][]interface{}{} + cond1351 := p.matchLookaheadLiteral("(", 0) + for cond1351 { + _t2123 := p.parse_iceberg_property_entry() + item1352 := _t2123 + xs1350 = append(xs1350, item1352) + cond1351 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1353 := xs1350 p.consumeLiteral(")") - return iceberg_property_entrys1329 + return iceberg_property_entrys1353 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index a23112f6..fc49d341 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 + _t1759 := &pb.Value{} + _t1759.Value = &pb.Value_Int32Value{Int32Value: v} + return _t1759 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1732 := &pb.Value{} - _t1732.Value = &pb.Value_IntValue{IntValue: v} - return _t1732 + _t1760 := &pb.Value{} + _t1760.Value = &pb.Value_IntValue{IntValue: v} + return _t1760 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1733 := &pb.Value{} - _t1733.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1733 + _t1761 := &pb.Value{} + _t1761.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1761 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1734 := &pb.Value{} - _t1734.Value = &pb.Value_StringValue{StringValue: v} - return _t1734 + _t1762 := &pb.Value{} + _t1762.Value = &pb.Value_StringValue{StringValue: v} + return _t1762 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1735 := &pb.Value{} - _t1735.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1735 + _t1763 := &pb.Value{} + _t1763.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1763 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1736 := &pb.Value{} - _t1736.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1736 + _t1764 := &pb.Value{} + _t1764.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1764 } 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}) + _t1765 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1765}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1738 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1738}) + _t1766 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1766}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1739 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1739}) + _t1767 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1767}) } } } - _t1740 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1740}) + _t1768 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1768}) 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}) + _t1769 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1769}) + _t1770 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1770}) 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}) + _t1771 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1771}) + } + _t1772 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1772}) + _t1773 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1773}) + _t1774 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1774}) if msg.GetComment() != "" { - _t1747 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1747}) + _t1775 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1775}) } 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}) + _t1776 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1776}) + } + _t1777 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1777}) + _t1778 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1778}) + _t1779 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1779}) if msg.GetPartitionSizeMb() != 0 { - _t1752 := p._make_value_int64(msg.GetPartitionSizeMb()) - result = append(result, []interface{}{"csv_partition_size_mb", _t1752}) + _t1780 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1780}) } 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}) + _t1781 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1781}) + _t1782 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1782}) + _t1783 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1783}) + _t1784 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1784}) 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}) + _t1785 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1785}) } } 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}) + _t1786 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1786}) } } - _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}) + _t1787 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1787}) + _t1788 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1788}) 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}) + _t1789 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1789}) } if msg.Compression != nil { - _t1762 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1762}) + _t1790 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1790}) } if msg.SyntaxHeaderRow != nil { - _t1763 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1763}) + _t1791 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1791}) } if msg.SyntaxMissingString != nil { - _t1764 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1764}) + _t1792 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1792}) } if msg.SyntaxDelim != nil { - _t1765 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1765}) + _t1793 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1793}) } if msg.SyntaxQuotechar != nil { - _t1766 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1766}) + _t1794 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1794}) } if msg.SyntaxEscapechar != nil { - _t1767 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1767}) + _t1795 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1795}) } return listSort(result) } @@ -503,51 +503,69 @@ 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 _t1796 interface{} if *msg.Scope != "" { return ptr(*msg.Scope) } - _ = _t1768 + _ = _t1796 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_from_snapshot_optional(msg *pb.IcebergData) *string { - var _t1769 interface{} + var _t1797 interface{} if *msg.FromSnapshot != "" { return ptr(*msg.FromSnapshot) } - _ = _t1769 + _ = _t1797 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_to_snapshot_optional(msg *pb.IcebergData) *string { - var _t1770 interface{} + var _t1798 interface{} if *msg.ToSnapshot != "" { return ptr(*msg.ToSnapshot) } - _ = _t1770 + _ = _t1798 + return nil +} + +func (p *PrettyPrinter) deconstruct_csv_data_columns_optional(msg *pb.CSVData) []*pb.GNFColumn { + var _t1799 interface{} + if !(hasProtoField(msg, "target")) { + return msg.GetColumns() + } + _ = _t1799 + return nil +} + +func (p *PrettyPrinter) deconstruct_csv_data_target_optional(msg *pb.CSVData) *pb.CSVTarget { + var _t1800 interface{} + if hasProtoField(msg, "target") { + return msg.GetTarget() + } + _ = _t1800 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}) + _t1801 := p._make_value_string(*msg.Prefix) + result = append(result, []interface{}{"prefix", _t1801}) } if *msg.TargetFileSizeBytes != 0 { - _t1772 := p._make_value_int64(*msg.TargetFileSizeBytes) - result = append(result, []interface{}{"target_file_size_bytes", _t1772}) + _t1802 := p._make_value_int64(*msg.TargetFileSizeBytes) + result = append(result, []interface{}{"target_file_size_bytes", _t1802}) } if msg.GetCompression() != "" { - _t1773 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"compression", _t1773}) + _t1803 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"compression", _t1803}) } - var _t1774 interface{} + var _t1804 interface{} if int64(len(result)) == 0 { return nil } - _ = _t1774 + _ = _t1804 return listSort(result) } @@ -558,11 +576,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 _t1805 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1775 + _ = _t1805 return nil } @@ -580,45 +598,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) + flat816 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat816 != nil { + p.write(*flat816) return nil } else { _dollar_dollar := msg - var _t1588 *pb.Configure + var _t1614 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1588 = _dollar_dollar.GetConfigure() + _t1614 = _dollar_dollar.GetConfigure() } - var _t1589 *pb.Sync + var _t1615 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1589 = _dollar_dollar.GetSync() + _t1615 = _dollar_dollar.GetSync() } - fields794 := []interface{}{_t1588, _t1589, _dollar_dollar.GetEpochs()} - unwrapped_fields795 := fields794 + fields807 := []interface{}{_t1614, _t1615, _dollar_dollar.GetEpochs()} + unwrapped_fields808 := fields807 p.write("(") p.write("transaction") p.indentSexp() - field796 := unwrapped_fields795[0].(*pb.Configure) - if field796 != nil { + field809 := unwrapped_fields808[0].(*pb.Configure) + if field809 != nil { p.newline() - opt_val797 := field796 - p.pretty_configure(opt_val797) + opt_val810 := field809 + p.pretty_configure(opt_val810) } - field798 := unwrapped_fields795[1].(*pb.Sync) - if field798 != nil { + field811 := unwrapped_fields808[1].(*pb.Sync) + if field811 != nil { p.newline() - opt_val799 := field798 - p.pretty_sync(opt_val799) + opt_val812 := field811 + p.pretty_sync(opt_val812) } - field800 := unwrapped_fields795[2].([]*pb.Epoch) - if !(len(field800) == 0) { + field813 := unwrapped_fields808[2].([]*pb.Epoch) + if !(len(field813) == 0) { p.newline() - for i802, elem801 := range field800 { - if (i802 > 0) { + for i815, elem814 := range field813 { + if (i815 > 0) { p.newline() } - p.pretty_epoch(elem801) + p.pretty_epoch(elem814) } } p.dedent() @@ -628,20 +646,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) + flat819 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat819 != nil { + p.write(*flat819) return nil } else { _dollar_dollar := msg - _t1590 := p.deconstruct_configure(_dollar_dollar) - fields804 := _t1590 - unwrapped_fields805 := fields804 + _t1616 := p.deconstruct_configure(_dollar_dollar) + fields817 := _t1616 + unwrapped_fields818 := fields817 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields805) + p.pretty_config_dict(unwrapped_fields818) p.dedent() p.write(")") } @@ -649,21 +667,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) + flat823 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat823 != nil { + p.write(*flat823) return nil } else { - fields807 := msg + fields820 := msg p.write("{") p.indent() - if !(len(fields807) == 0) { + if !(len(fields820) == 0) { p.newline() - for i809, elem808 := range fields807 { - if (i809 > 0) { + for i822, elem821 := range fields820 { + if (i822 > 0) { p.newline() } - p.pretty_config_key_value(elem808) + p.pretty_config_key_value(elem821) } } p.dedent() @@ -673,152 +691,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) + flat828 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat828 != nil { + p.write(*flat828) return nil } else { _dollar_dollar := msg - fields811 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} - unwrapped_fields812 := fields811 + fields824 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} + unwrapped_fields825 := fields824 p.write(":") - field813 := unwrapped_fields812[0].(string) - p.write(field813) + field826 := unwrapped_fields825[0].(string) + p.write(field826) p.write(" ") - field814 := unwrapped_fields812[1].(*pb.Value) - p.pretty_raw_value(field814) + field827 := unwrapped_fields825[1].(*pb.Value) + p.pretty_raw_value(field827) } 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) + flat854 := p.tryFlat(msg, func() { p.pretty_raw_value(msg) }) + if flat854 != nil { + p.write(*flat854) return nil } else { _dollar_dollar := msg - var _t1591 *pb.DateValue + var _t1617 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1591 = _dollar_dollar.GetDateValue() + _t1617 = _dollar_dollar.GetDateValue() } - deconstruct_result839 := _t1591 - if deconstruct_result839 != nil { - unwrapped840 := deconstruct_result839 - p.pretty_raw_date(unwrapped840) + deconstruct_result852 := _t1617 + if deconstruct_result852 != nil { + unwrapped853 := deconstruct_result852 + p.pretty_raw_date(unwrapped853) } else { _dollar_dollar := msg - var _t1592 *pb.DateTimeValue + var _t1618 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1592 = _dollar_dollar.GetDatetimeValue() + _t1618 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result837 := _t1592 - if deconstruct_result837 != nil { - unwrapped838 := deconstruct_result837 - p.pretty_raw_datetime(unwrapped838) + deconstruct_result850 := _t1618 + if deconstruct_result850 != nil { + unwrapped851 := deconstruct_result850 + p.pretty_raw_datetime(unwrapped851) } else { _dollar_dollar := msg - var _t1593 *string + var _t1619 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1593 = ptr(_dollar_dollar.GetStringValue()) + _t1619 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result835 := _t1593 - if deconstruct_result835 != nil { - unwrapped836 := *deconstruct_result835 - p.write(p.formatStringValue(unwrapped836)) + deconstruct_result848 := _t1619 + if deconstruct_result848 != nil { + unwrapped849 := *deconstruct_result848 + p.write(p.formatStringValue(unwrapped849)) } else { _dollar_dollar := msg - var _t1594 *int32 + var _t1620 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1594 = ptr(_dollar_dollar.GetInt32Value()) + _t1620 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result833 := _t1594 - if deconstruct_result833 != nil { - unwrapped834 := *deconstruct_result833 - p.write(fmt.Sprintf("%di32", unwrapped834)) + deconstruct_result846 := _t1620 + if deconstruct_result846 != nil { + unwrapped847 := *deconstruct_result846 + p.write(fmt.Sprintf("%di32", unwrapped847)) } else { _dollar_dollar := msg - var _t1595 *int64 + var _t1621 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1595 = ptr(_dollar_dollar.GetIntValue()) + _t1621 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result831 := _t1595 - if deconstruct_result831 != nil { - unwrapped832 := *deconstruct_result831 - p.write(fmt.Sprintf("%d", unwrapped832)) + deconstruct_result844 := _t1621 + if deconstruct_result844 != nil { + unwrapped845 := *deconstruct_result844 + p.write(fmt.Sprintf("%d", unwrapped845)) } else { _dollar_dollar := msg - var _t1596 *float32 + var _t1622 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1596 = ptr(_dollar_dollar.GetFloat32Value()) + _t1622 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result829 := _t1596 - if deconstruct_result829 != nil { - unwrapped830 := *deconstruct_result829 - p.write(formatFloat32(unwrapped830)) + deconstruct_result842 := _t1622 + if deconstruct_result842 != nil { + unwrapped843 := *deconstruct_result842 + p.write(formatFloat32(unwrapped843)) } else { _dollar_dollar := msg - var _t1597 *float64 + var _t1623 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1597 = ptr(_dollar_dollar.GetFloatValue()) + _t1623 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result827 := _t1597 - if deconstruct_result827 != nil { - unwrapped828 := *deconstruct_result827 - p.write(formatFloat64(unwrapped828)) + deconstruct_result840 := _t1623 + if deconstruct_result840 != nil { + unwrapped841 := *deconstruct_result840 + p.write(formatFloat64(unwrapped841)) } else { _dollar_dollar := msg - var _t1598 *uint32 + var _t1624 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1598 = ptr(_dollar_dollar.GetUint32Value()) + _t1624 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result825 := _t1598 - if deconstruct_result825 != nil { - unwrapped826 := *deconstruct_result825 - p.write(fmt.Sprintf("%du32", unwrapped826)) + deconstruct_result838 := _t1624 + if deconstruct_result838 != nil { + unwrapped839 := *deconstruct_result838 + p.write(fmt.Sprintf("%du32", unwrapped839)) } else { _dollar_dollar := msg - var _t1599 *pb.UInt128Value + var _t1625 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1599 = _dollar_dollar.GetUint128Value() + _t1625 = _dollar_dollar.GetUint128Value() } - deconstruct_result823 := _t1599 - if deconstruct_result823 != nil { - unwrapped824 := deconstruct_result823 - p.write(p.formatUint128(unwrapped824)) + deconstruct_result836 := _t1625 + if deconstruct_result836 != nil { + unwrapped837 := deconstruct_result836 + p.write(p.formatUint128(unwrapped837)) } else { _dollar_dollar := msg - var _t1600 *pb.Int128Value + var _t1626 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1600 = _dollar_dollar.GetInt128Value() + _t1626 = _dollar_dollar.GetInt128Value() } - deconstruct_result821 := _t1600 - if deconstruct_result821 != nil { - unwrapped822 := deconstruct_result821 - p.write(p.formatInt128(unwrapped822)) + deconstruct_result834 := _t1626 + if deconstruct_result834 != nil { + unwrapped835 := deconstruct_result834 + p.write(p.formatInt128(unwrapped835)) } else { _dollar_dollar := msg - var _t1601 *pb.DecimalValue + var _t1627 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1601 = _dollar_dollar.GetDecimalValue() + _t1627 = _dollar_dollar.GetDecimalValue() } - deconstruct_result819 := _t1601 - if deconstruct_result819 != nil { - unwrapped820 := deconstruct_result819 - p.write(p.formatDecimal(unwrapped820)) + deconstruct_result832 := _t1627 + if deconstruct_result832 != nil { + unwrapped833 := deconstruct_result832 + p.write(p.formatDecimal(unwrapped833)) } else { _dollar_dollar := msg - var _t1602 *bool + var _t1628 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1602 = ptr(_dollar_dollar.GetBooleanValue()) + _t1628 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result817 := _t1602 - if deconstruct_result817 != nil { - unwrapped818 := *deconstruct_result817 - p.pretty_boolean_value(unwrapped818) + deconstruct_result830 := _t1628 + if deconstruct_result830 != nil { + unwrapped831 := *deconstruct_result830 + p.pretty_boolean_value(unwrapped831) } else { - fields816 := msg - _ = fields816 + fields829 := msg + _ = fields829 p.write("missing") } } @@ -837,26 +855,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) + flat860 := p.tryFlat(msg, func() { p.pretty_raw_date(msg) }) + if flat860 != nil { + p.write(*flat860) return nil } else { _dollar_dollar := msg - fields842 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields843 := fields842 + fields855 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields856 := fields855 p.write("(") p.write("date") p.indentSexp() p.newline() - field844 := unwrapped_fields843[0].(int64) - p.write(fmt.Sprintf("%d", field844)) + field857 := unwrapped_fields856[0].(int64) + p.write(fmt.Sprintf("%d", field857)) p.newline() - field845 := unwrapped_fields843[1].(int64) - p.write(fmt.Sprintf("%d", field845)) + field858 := unwrapped_fields856[1].(int64) + p.write(fmt.Sprintf("%d", field858)) p.newline() - field846 := unwrapped_fields843[2].(int64) - p.write(fmt.Sprintf("%d", field846)) + field859 := unwrapped_fields856[2].(int64) + p.write(fmt.Sprintf("%d", field859)) p.dedent() p.write(")") } @@ -864,40 +882,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) + flat871 := p.tryFlat(msg, func() { p.pretty_raw_datetime(msg) }) + if flat871 != nil { + p.write(*flat871) 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 + fields861 := []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_fields862 := fields861 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field850 := unwrapped_fields849[0].(int64) - p.write(fmt.Sprintf("%d", field850)) + field863 := unwrapped_fields862[0].(int64) + p.write(fmt.Sprintf("%d", field863)) p.newline() - field851 := unwrapped_fields849[1].(int64) - p.write(fmt.Sprintf("%d", field851)) + field864 := unwrapped_fields862[1].(int64) + p.write(fmt.Sprintf("%d", field864)) p.newline() - field852 := unwrapped_fields849[2].(int64) - p.write(fmt.Sprintf("%d", field852)) + field865 := unwrapped_fields862[2].(int64) + p.write(fmt.Sprintf("%d", field865)) p.newline() - field853 := unwrapped_fields849[3].(int64) - p.write(fmt.Sprintf("%d", field853)) + field866 := unwrapped_fields862[3].(int64) + p.write(fmt.Sprintf("%d", field866)) p.newline() - field854 := unwrapped_fields849[4].(int64) - p.write(fmt.Sprintf("%d", field854)) + field867 := unwrapped_fields862[4].(int64) + p.write(fmt.Sprintf("%d", field867)) p.newline() - field855 := unwrapped_fields849[5].(int64) - p.write(fmt.Sprintf("%d", field855)) - field856 := unwrapped_fields849[6].(*int64) - if field856 != nil { + field868 := unwrapped_fields862[5].(int64) + p.write(fmt.Sprintf("%d", field868)) + field869 := unwrapped_fields862[6].(*int64) + if field869 != nil { p.newline() - opt_val857 := *field856 - p.write(fmt.Sprintf("%d", opt_val857)) + opt_val870 := *field869 + p.write(fmt.Sprintf("%d", opt_val870)) } p.dedent() p.write(")") @@ -907,25 +925,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 _t1629 []interface{} if _dollar_dollar { - _t1603 = []interface{}{} + _t1629 = []interface{}{} } - deconstruct_result861 := _t1603 - if deconstruct_result861 != nil { - unwrapped862 := deconstruct_result861 - _ = unwrapped862 + deconstruct_result874 := _t1629 + if deconstruct_result874 != nil { + unwrapped875 := deconstruct_result874 + _ = unwrapped875 p.write("true") } else { _dollar_dollar := msg - var _t1604 []interface{} + var _t1630 []interface{} if !(_dollar_dollar) { - _t1604 = []interface{}{} + _t1630 = []interface{}{} } - deconstruct_result859 := _t1604 - if deconstruct_result859 != nil { - unwrapped860 := deconstruct_result859 - _ = unwrapped860 + deconstruct_result872 := _t1630 + if deconstruct_result872 != nil { + unwrapped873 := deconstruct_result872 + _ = unwrapped873 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -935,24 +953,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) + flat880 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat880 != nil { + p.write(*flat880) return nil } else { _dollar_dollar := msg - fields863 := _dollar_dollar.GetFragments() - unwrapped_fields864 := fields863 + fields876 := _dollar_dollar.GetFragments() + unwrapped_fields877 := fields876 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields864) == 0) { + if !(len(unwrapped_fields877) == 0) { p.newline() - for i866, elem865 := range unwrapped_fields864 { - if (i866 > 0) { + for i879, elem878 := range unwrapped_fields877 { + if (i879 > 0) { p.newline() } - p.pretty_fragment_id(elem865) + p.pretty_fragment_id(elem878) } } p.dedent() @@ -962,51 +980,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) + flat883 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat883 != nil { + p.write(*flat883) return nil } else { _dollar_dollar := msg - fields868 := p.fragmentIdToString(_dollar_dollar) - unwrapped_fields869 := fields868 + fields881 := p.fragmentIdToString(_dollar_dollar) + unwrapped_fields882 := fields881 p.write(":") - p.write(unwrapped_fields869) + p.write(unwrapped_fields882) } 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) + flat890 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat890 != nil { + p.write(*flat890) return nil } else { _dollar_dollar := msg - var _t1605 []*pb.Write + var _t1631 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1605 = _dollar_dollar.GetWrites() + _t1631 = _dollar_dollar.GetWrites() } - var _t1606 []*pb.Read + var _t1632 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1606 = _dollar_dollar.GetReads() + _t1632 = _dollar_dollar.GetReads() } - fields871 := []interface{}{_t1605, _t1606} - unwrapped_fields872 := fields871 + fields884 := []interface{}{_t1631, _t1632} + unwrapped_fields885 := fields884 p.write("(") p.write("epoch") p.indentSexp() - field873 := unwrapped_fields872[0].([]*pb.Write) - if field873 != nil { + field886 := unwrapped_fields885[0].([]*pb.Write) + if field886 != nil { p.newline() - opt_val874 := field873 - p.pretty_epoch_writes(opt_val874) + opt_val887 := field886 + p.pretty_epoch_writes(opt_val887) } - field875 := unwrapped_fields872[1].([]*pb.Read) - if field875 != nil { + field888 := unwrapped_fields885[1].([]*pb.Read) + if field888 != nil { p.newline() - opt_val876 := field875 - p.pretty_epoch_reads(opt_val876) + opt_val889 := field888 + p.pretty_epoch_reads(opt_val889) } p.dedent() p.write(")") @@ -1015,22 +1033,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) + flat894 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat894 != nil { + p.write(*flat894) return nil } else { - fields878 := msg + fields891 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields878) == 0) { + if !(len(fields891) == 0) { p.newline() - for i880, elem879 := range fields878 { - if (i880 > 0) { + for i893, elem892 := range fields891 { + if (i893 > 0) { p.newline() } - p.pretty_write(elem879) + p.pretty_write(elem892) } } p.dedent() @@ -1040,50 +1058,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) + flat903 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat903 != nil { + p.write(*flat903) return nil } else { _dollar_dollar := msg - var _t1607 *pb.Define + var _t1633 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1607 = _dollar_dollar.GetDefine() + _t1633 = _dollar_dollar.GetDefine() } - deconstruct_result888 := _t1607 - if deconstruct_result888 != nil { - unwrapped889 := deconstruct_result888 - p.pretty_define(unwrapped889) + deconstruct_result901 := _t1633 + if deconstruct_result901 != nil { + unwrapped902 := deconstruct_result901 + p.pretty_define(unwrapped902) } else { _dollar_dollar := msg - var _t1608 *pb.Undefine + var _t1634 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1608 = _dollar_dollar.GetUndefine() + _t1634 = _dollar_dollar.GetUndefine() } - deconstruct_result886 := _t1608 - if deconstruct_result886 != nil { - unwrapped887 := deconstruct_result886 - p.pretty_undefine(unwrapped887) + deconstruct_result899 := _t1634 + if deconstruct_result899 != nil { + unwrapped900 := deconstruct_result899 + p.pretty_undefine(unwrapped900) } else { _dollar_dollar := msg - var _t1609 *pb.Context + var _t1635 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1609 = _dollar_dollar.GetContext() + _t1635 = _dollar_dollar.GetContext() } - deconstruct_result884 := _t1609 - if deconstruct_result884 != nil { - unwrapped885 := deconstruct_result884 - p.pretty_context(unwrapped885) + deconstruct_result897 := _t1635 + if deconstruct_result897 != nil { + unwrapped898 := deconstruct_result897 + p.pretty_context(unwrapped898) } else { _dollar_dollar := msg - var _t1610 *pb.Snapshot + var _t1636 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1610 = _dollar_dollar.GetSnapshot() + _t1636 = _dollar_dollar.GetSnapshot() } - deconstruct_result882 := _t1610 - if deconstruct_result882 != nil { - unwrapped883 := deconstruct_result882 - p.pretty_snapshot(unwrapped883) + deconstruct_result895 := _t1636 + if deconstruct_result895 != nil { + unwrapped896 := deconstruct_result895 + p.pretty_snapshot(unwrapped896) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -1095,19 +1113,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) + flat906 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat906 != nil { + p.write(*flat906) return nil } else { _dollar_dollar := msg - fields891 := _dollar_dollar.GetFragment() - unwrapped_fields892 := fields891 + fields904 := _dollar_dollar.GetFragment() + unwrapped_fields905 := fields904 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields892) + p.pretty_fragment(unwrapped_fields905) p.dedent() p.write(")") } @@ -1115,29 +1133,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) + flat913 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat913 != nil { + p.write(*flat913) return nil } else { _dollar_dollar := msg p.startPrettyFragment(_dollar_dollar) - fields894 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} - unwrapped_fields895 := fields894 + fields907 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} + unwrapped_fields908 := fields907 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) { + field909 := unwrapped_fields908[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field909) + field910 := unwrapped_fields908[1].([]*pb.Declaration) + if !(len(field910) == 0) { p.newline() - for i899, elem898 := range field897 { - if (i899 > 0) { + for i912, elem911 := range field910 { + if (i912 > 0) { p.newline() } - p.pretty_declaration(elem898) + p.pretty_declaration(elem911) } } p.dedent() @@ -1147,62 +1165,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) + flat915 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat915 != nil { + p.write(*flat915) return nil } else { - fields901 := msg - p.pretty_fragment_id(fields901) + fields914 := msg + p.pretty_fragment_id(fields914) } 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) + flat924 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat924 != nil { + p.write(*flat924) return nil } else { _dollar_dollar := msg - var _t1611 *pb.Def + var _t1637 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1611 = _dollar_dollar.GetDef() + _t1637 = _dollar_dollar.GetDef() } - deconstruct_result909 := _t1611 - if deconstruct_result909 != nil { - unwrapped910 := deconstruct_result909 - p.pretty_def(unwrapped910) + deconstruct_result922 := _t1637 + if deconstruct_result922 != nil { + unwrapped923 := deconstruct_result922 + p.pretty_def(unwrapped923) } else { _dollar_dollar := msg - var _t1612 *pb.Algorithm + var _t1638 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1612 = _dollar_dollar.GetAlgorithm() + _t1638 = _dollar_dollar.GetAlgorithm() } - deconstruct_result907 := _t1612 - if deconstruct_result907 != nil { - unwrapped908 := deconstruct_result907 - p.pretty_algorithm(unwrapped908) + deconstruct_result920 := _t1638 + if deconstruct_result920 != nil { + unwrapped921 := deconstruct_result920 + p.pretty_algorithm(unwrapped921) } else { _dollar_dollar := msg - var _t1613 *pb.Constraint + var _t1639 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1613 = _dollar_dollar.GetConstraint() + _t1639 = _dollar_dollar.GetConstraint() } - deconstruct_result905 := _t1613 - if deconstruct_result905 != nil { - unwrapped906 := deconstruct_result905 - p.pretty_constraint(unwrapped906) + deconstruct_result918 := _t1639 + if deconstruct_result918 != nil { + unwrapped919 := deconstruct_result918 + p.pretty_constraint(unwrapped919) } else { _dollar_dollar := msg - var _t1614 *pb.Data + var _t1640 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1614 = _dollar_dollar.GetData() + _t1640 = _dollar_dollar.GetData() } - deconstruct_result903 := _t1614 - if deconstruct_result903 != nil { - unwrapped904 := deconstruct_result903 - p.pretty_data(unwrapped904) + deconstruct_result916 := _t1640 + if deconstruct_result916 != nil { + unwrapped917 := deconstruct_result916 + p.pretty_data(unwrapped917) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1214,32 +1232,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) + flat931 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat931 != nil { + p.write(*flat931) return nil } else { _dollar_dollar := msg - var _t1615 []*pb.Attribute + var _t1641 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1615 = _dollar_dollar.GetAttrs() + _t1641 = _dollar_dollar.GetAttrs() } - fields912 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1615} - unwrapped_fields913 := fields912 + fields925 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1641} + unwrapped_fields926 := fields925 p.write("(") p.write("def") p.indentSexp() p.newline() - field914 := unwrapped_fields913[0].(*pb.RelationId) - p.pretty_relation_id(field914) + field927 := unwrapped_fields926[0].(*pb.RelationId) + p.pretty_relation_id(field927) p.newline() - field915 := unwrapped_fields913[1].(*pb.Abstraction) - p.pretty_abstraction(field915) - field916 := unwrapped_fields913[2].([]*pb.Attribute) - if field916 != nil { + field928 := unwrapped_fields926[1].(*pb.Abstraction) + p.pretty_abstraction(field928) + field929 := unwrapped_fields926[2].([]*pb.Attribute) + if field929 != nil { p.newline() - opt_val917 := field916 - p.pretty_attrs(opt_val917) + opt_val930 := field929 + p.pretty_attrs(opt_val930) } p.dedent() p.write(")") @@ -1248,29 +1266,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) + flat936 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat936 != nil { + p.write(*flat936) return nil } else { _dollar_dollar := msg - var _t1616 *string + var _t1642 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1617 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1616 = ptr(_t1617) + _t1643 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1642 = ptr(_t1643) } - deconstruct_result921 := _t1616 - if deconstruct_result921 != nil { - unwrapped922 := *deconstruct_result921 + deconstruct_result934 := _t1642 + if deconstruct_result934 != nil { + unwrapped935 := *deconstruct_result934 p.write(":") - p.write(unwrapped922) + p.write(unwrapped935) } 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)) + _t1644 := p.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result932 := _t1644 + if deconstruct_result932 != nil { + unwrapped933 := deconstruct_result932 + p.write(p.formatUint128(unwrapped933)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1280,22 +1298,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) + flat941 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat941 != nil { + p.write(*flat941) return nil } else { _dollar_dollar := msg - _t1619 := p.deconstruct_bindings(_dollar_dollar) - fields924 := []interface{}{_t1619, _dollar_dollar.GetValue()} - unwrapped_fields925 := fields924 + _t1645 := p.deconstruct_bindings(_dollar_dollar) + fields937 := []interface{}{_t1645, _dollar_dollar.GetValue()} + unwrapped_fields938 := fields937 p.write("(") p.indent() - field926 := unwrapped_fields925[0].([]interface{}) - p.pretty_bindings(field926) + field939 := unwrapped_fields938[0].([]interface{}) + p.pretty_bindings(field939) p.newline() - field927 := unwrapped_fields925[1].(*pb.Formula) - p.pretty_formula(field927) + field940 := unwrapped_fields938[1].(*pb.Formula) + p.pretty_formula(field940) p.dedent() p.write(")") } @@ -1303,32 +1321,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) + flat949 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat949 != nil { + p.write(*flat949) return nil } else { _dollar_dollar := msg - var _t1620 []*pb.Binding + var _t1646 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1620 = _dollar_dollar[1].([]*pb.Binding) + _t1646 = _dollar_dollar[1].([]*pb.Binding) } - fields929 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1620} - unwrapped_fields930 := fields929 + fields942 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1646} + unwrapped_fields943 := fields942 p.write("[") p.indent() - field931 := unwrapped_fields930[0].([]*pb.Binding) - for i933, elem932 := range field931 { - if (i933 > 0) { + field944 := unwrapped_fields943[0].([]*pb.Binding) + for i946, elem945 := range field944 { + if (i946 > 0) { p.newline() } - p.pretty_binding(elem932) + p.pretty_binding(elem945) } - field934 := unwrapped_fields930[1].([]*pb.Binding) - if field934 != nil { + field947 := unwrapped_fields943[1].([]*pb.Binding) + if field947 != nil { p.newline() - opt_val935 := field934 - p.pretty_value_bindings(opt_val935) + opt_val948 := field947 + p.pretty_value_bindings(opt_val948) } p.dedent() p.write("]") @@ -1337,168 +1355,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) + flat954 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat954 != nil { + p.write(*flat954) 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) + fields950 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} + unwrapped_fields951 := fields950 + field952 := unwrapped_fields951[0].(string) + p.write(field952) p.write("::") - field940 := unwrapped_fields938[1].(*pb.Type) - p.pretty_type(field940) + field953 := unwrapped_fields951[1].(*pb.Type) + p.pretty_type(field953) } 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) + flat983 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat983 != nil { + p.write(*flat983) return nil } else { _dollar_dollar := msg - var _t1621 *pb.UnspecifiedType + var _t1647 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1621 = _dollar_dollar.GetUnspecifiedType() + _t1647 = _dollar_dollar.GetUnspecifiedType() } - deconstruct_result968 := _t1621 - if deconstruct_result968 != nil { - unwrapped969 := deconstruct_result968 - p.pretty_unspecified_type(unwrapped969) + deconstruct_result981 := _t1647 + if deconstruct_result981 != nil { + unwrapped982 := deconstruct_result981 + p.pretty_unspecified_type(unwrapped982) } else { _dollar_dollar := msg - var _t1622 *pb.StringType + var _t1648 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1622 = _dollar_dollar.GetStringType() + _t1648 = _dollar_dollar.GetStringType() } - deconstruct_result966 := _t1622 - if deconstruct_result966 != nil { - unwrapped967 := deconstruct_result966 - p.pretty_string_type(unwrapped967) + deconstruct_result979 := _t1648 + if deconstruct_result979 != nil { + unwrapped980 := deconstruct_result979 + p.pretty_string_type(unwrapped980) } else { _dollar_dollar := msg - var _t1623 *pb.IntType + var _t1649 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1623 = _dollar_dollar.GetIntType() + _t1649 = _dollar_dollar.GetIntType() } - deconstruct_result964 := _t1623 - if deconstruct_result964 != nil { - unwrapped965 := deconstruct_result964 - p.pretty_int_type(unwrapped965) + deconstruct_result977 := _t1649 + if deconstruct_result977 != nil { + unwrapped978 := deconstruct_result977 + p.pretty_int_type(unwrapped978) } else { _dollar_dollar := msg - var _t1624 *pb.FloatType + var _t1650 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1624 = _dollar_dollar.GetFloatType() + _t1650 = _dollar_dollar.GetFloatType() } - deconstruct_result962 := _t1624 - if deconstruct_result962 != nil { - unwrapped963 := deconstruct_result962 - p.pretty_float_type(unwrapped963) + deconstruct_result975 := _t1650 + if deconstruct_result975 != nil { + unwrapped976 := deconstruct_result975 + p.pretty_float_type(unwrapped976) } else { _dollar_dollar := msg - var _t1625 *pb.UInt128Type + var _t1651 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1625 = _dollar_dollar.GetUint128Type() + _t1651 = _dollar_dollar.GetUint128Type() } - deconstruct_result960 := _t1625 - if deconstruct_result960 != nil { - unwrapped961 := deconstruct_result960 - p.pretty_uint128_type(unwrapped961) + deconstruct_result973 := _t1651 + if deconstruct_result973 != nil { + unwrapped974 := deconstruct_result973 + p.pretty_uint128_type(unwrapped974) } else { _dollar_dollar := msg - var _t1626 *pb.Int128Type + var _t1652 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1626 = _dollar_dollar.GetInt128Type() + _t1652 = _dollar_dollar.GetInt128Type() } - deconstruct_result958 := _t1626 - if deconstruct_result958 != nil { - unwrapped959 := deconstruct_result958 - p.pretty_int128_type(unwrapped959) + deconstruct_result971 := _t1652 + if deconstruct_result971 != nil { + unwrapped972 := deconstruct_result971 + p.pretty_int128_type(unwrapped972) } else { _dollar_dollar := msg - var _t1627 *pb.DateType + var _t1653 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1627 = _dollar_dollar.GetDateType() + _t1653 = _dollar_dollar.GetDateType() } - deconstruct_result956 := _t1627 - if deconstruct_result956 != nil { - unwrapped957 := deconstruct_result956 - p.pretty_date_type(unwrapped957) + deconstruct_result969 := _t1653 + if deconstruct_result969 != nil { + unwrapped970 := deconstruct_result969 + p.pretty_date_type(unwrapped970) } else { _dollar_dollar := msg - var _t1628 *pb.DateTimeType + var _t1654 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1628 = _dollar_dollar.GetDatetimeType() + _t1654 = _dollar_dollar.GetDatetimeType() } - deconstruct_result954 := _t1628 - if deconstruct_result954 != nil { - unwrapped955 := deconstruct_result954 - p.pretty_datetime_type(unwrapped955) + deconstruct_result967 := _t1654 + if deconstruct_result967 != nil { + unwrapped968 := deconstruct_result967 + p.pretty_datetime_type(unwrapped968) } else { _dollar_dollar := msg - var _t1629 *pb.MissingType + var _t1655 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1629 = _dollar_dollar.GetMissingType() + _t1655 = _dollar_dollar.GetMissingType() } - deconstruct_result952 := _t1629 - if deconstruct_result952 != nil { - unwrapped953 := deconstruct_result952 - p.pretty_missing_type(unwrapped953) + deconstruct_result965 := _t1655 + if deconstruct_result965 != nil { + unwrapped966 := deconstruct_result965 + p.pretty_missing_type(unwrapped966) } else { _dollar_dollar := msg - var _t1630 *pb.DecimalType + var _t1656 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1630 = _dollar_dollar.GetDecimalType() + _t1656 = _dollar_dollar.GetDecimalType() } - deconstruct_result950 := _t1630 - if deconstruct_result950 != nil { - unwrapped951 := deconstruct_result950 - p.pretty_decimal_type(unwrapped951) + deconstruct_result963 := _t1656 + if deconstruct_result963 != nil { + unwrapped964 := deconstruct_result963 + p.pretty_decimal_type(unwrapped964) } else { _dollar_dollar := msg - var _t1631 *pb.BooleanType + var _t1657 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1631 = _dollar_dollar.GetBooleanType() + _t1657 = _dollar_dollar.GetBooleanType() } - deconstruct_result948 := _t1631 - if deconstruct_result948 != nil { - unwrapped949 := deconstruct_result948 - p.pretty_boolean_type(unwrapped949) + deconstruct_result961 := _t1657 + if deconstruct_result961 != nil { + unwrapped962 := deconstruct_result961 + p.pretty_boolean_type(unwrapped962) } else { _dollar_dollar := msg - var _t1632 *pb.Int32Type + var _t1658 *pb.Int32Type if hasProtoField(_dollar_dollar, "int32_type") { - _t1632 = _dollar_dollar.GetInt32Type() + _t1658 = _dollar_dollar.GetInt32Type() } - deconstruct_result946 := _t1632 - if deconstruct_result946 != nil { - unwrapped947 := deconstruct_result946 - p.pretty_int32_type(unwrapped947) + deconstruct_result959 := _t1658 + if deconstruct_result959 != nil { + unwrapped960 := deconstruct_result959 + p.pretty_int32_type(unwrapped960) } else { _dollar_dollar := msg - var _t1633 *pb.Float32Type + var _t1659 *pb.Float32Type if hasProtoField(_dollar_dollar, "float32_type") { - _t1633 = _dollar_dollar.GetFloat32Type() + _t1659 = _dollar_dollar.GetFloat32Type() } - deconstruct_result944 := _t1633 - if deconstruct_result944 != nil { - unwrapped945 := deconstruct_result944 - p.pretty_float32_type(unwrapped945) + deconstruct_result957 := _t1659 + if deconstruct_result957 != nil { + unwrapped958 := deconstruct_result957 + p.pretty_float32_type(unwrapped958) } else { _dollar_dollar := msg - var _t1634 *pb.UInt32Type + var _t1660 *pb.UInt32Type if hasProtoField(_dollar_dollar, "uint32_type") { - _t1634 = _dollar_dollar.GetUint32Type() + _t1660 = _dollar_dollar.GetUint32Type() } - deconstruct_result942 := _t1634 - if deconstruct_result942 != nil { - unwrapped943 := deconstruct_result942 - p.pretty_uint32_type(unwrapped943) + deconstruct_result955 := _t1660 + if deconstruct_result955 != nil { + unwrapped956 := deconstruct_result955 + p.pretty_uint32_type(unwrapped956) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1520,86 +1538,86 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields971 := msg - _ = fields971 + fields984 := msg + _ = fields984 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields972 := msg - _ = fields972 + fields985 := msg + _ = fields985 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields973 := msg - _ = fields973 + fields986 := msg + _ = fields986 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields974 := msg - _ = fields974 + fields987 := msg + _ = fields987 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields975 := msg - _ = fields975 + fields988 := msg + _ = fields988 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields976 := msg - _ = fields976 + fields989 := msg + _ = fields989 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields977 := msg - _ = fields977 + fields990 := msg + _ = fields990 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields978 := msg - _ = fields978 + fields991 := msg + _ = fields991 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields979 := msg - _ = fields979 + fields992 := msg + _ = fields992 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) + flat997 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat997 != nil { + p.write(*flat997) return nil } else { _dollar_dollar := msg - fields980 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} - unwrapped_fields981 := fields980 + fields993 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} + unwrapped_fields994 := fields993 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field982 := unwrapped_fields981[0].(int64) - p.write(fmt.Sprintf("%d", field982)) + field995 := unwrapped_fields994[0].(int64) + p.write(fmt.Sprintf("%d", field995)) p.newline() - field983 := unwrapped_fields981[1].(int64) - p.write(fmt.Sprintf("%d", field983)) + field996 := unwrapped_fields994[1].(int64) + p.write(fmt.Sprintf("%d", field996)) p.dedent() p.write(")") } @@ -1607,48 +1625,48 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields985 := msg - _ = fields985 + fields998 := msg + _ = fields998 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_int32_type(msg *pb.Int32Type) interface{} { - fields986 := msg - _ = fields986 + fields999 := msg + _ = fields999 p.write("INT32") return nil } func (p *PrettyPrinter) pretty_float32_type(msg *pb.Float32Type) interface{} { - fields987 := msg - _ = fields987 + fields1000 := msg + _ = fields1000 p.write("FLOAT32") return nil } func (p *PrettyPrinter) pretty_uint32_type(msg *pb.UInt32Type) interface{} { - fields988 := msg - _ = fields988 + fields1001 := msg + _ = fields1001 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) + flat1005 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat1005 != nil { + p.write(*flat1005) return nil } else { - fields989 := msg + fields1002 := msg p.write("|") - if !(len(fields989) == 0) { + if !(len(fields1002) == 0) { p.write(" ") - for i991, elem990 := range fields989 { - if (i991 > 0) { + for i1004, elem1003 := range fields1002 { + if (i1004 > 0) { p.newline() } - p.pretty_binding(elem990) + p.pretty_binding(elem1003) } } } @@ -1656,140 +1674,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) + flat1032 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat1032 != nil { + p.write(*flat1032) return nil } else { _dollar_dollar := msg - var _t1635 *pb.Conjunction + var _t1661 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1635 = _dollar_dollar.GetConjunction() + _t1661 = _dollar_dollar.GetConjunction() } - deconstruct_result1017 := _t1635 - if deconstruct_result1017 != nil { - unwrapped1018 := deconstruct_result1017 - p.pretty_true(unwrapped1018) + deconstruct_result1030 := _t1661 + if deconstruct_result1030 != nil { + unwrapped1031 := deconstruct_result1030 + p.pretty_true(unwrapped1031) } else { _dollar_dollar := msg - var _t1636 *pb.Disjunction + var _t1662 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1636 = _dollar_dollar.GetDisjunction() + _t1662 = _dollar_dollar.GetDisjunction() } - deconstruct_result1015 := _t1636 - if deconstruct_result1015 != nil { - unwrapped1016 := deconstruct_result1015 - p.pretty_false(unwrapped1016) + deconstruct_result1028 := _t1662 + if deconstruct_result1028 != nil { + unwrapped1029 := deconstruct_result1028 + p.pretty_false(unwrapped1029) } else { _dollar_dollar := msg - var _t1637 *pb.Exists + var _t1663 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1637 = _dollar_dollar.GetExists() + _t1663 = _dollar_dollar.GetExists() } - deconstruct_result1013 := _t1637 - if deconstruct_result1013 != nil { - unwrapped1014 := deconstruct_result1013 - p.pretty_exists(unwrapped1014) + deconstruct_result1026 := _t1663 + if deconstruct_result1026 != nil { + unwrapped1027 := deconstruct_result1026 + p.pretty_exists(unwrapped1027) } else { _dollar_dollar := msg - var _t1638 *pb.Reduce + var _t1664 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1638 = _dollar_dollar.GetReduce() + _t1664 = _dollar_dollar.GetReduce() } - deconstruct_result1011 := _t1638 - if deconstruct_result1011 != nil { - unwrapped1012 := deconstruct_result1011 - p.pretty_reduce(unwrapped1012) + deconstruct_result1024 := _t1664 + if deconstruct_result1024 != nil { + unwrapped1025 := deconstruct_result1024 + p.pretty_reduce(unwrapped1025) } else { _dollar_dollar := msg - var _t1639 *pb.Conjunction + var _t1665 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1639 = _dollar_dollar.GetConjunction() + _t1665 = _dollar_dollar.GetConjunction() } - deconstruct_result1009 := _t1639 - if deconstruct_result1009 != nil { - unwrapped1010 := deconstruct_result1009 - p.pretty_conjunction(unwrapped1010) + deconstruct_result1022 := _t1665 + if deconstruct_result1022 != nil { + unwrapped1023 := deconstruct_result1022 + p.pretty_conjunction(unwrapped1023) } else { _dollar_dollar := msg - var _t1640 *pb.Disjunction + var _t1666 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1640 = _dollar_dollar.GetDisjunction() + _t1666 = _dollar_dollar.GetDisjunction() } - deconstruct_result1007 := _t1640 - if deconstruct_result1007 != nil { - unwrapped1008 := deconstruct_result1007 - p.pretty_disjunction(unwrapped1008) + deconstruct_result1020 := _t1666 + if deconstruct_result1020 != nil { + unwrapped1021 := deconstruct_result1020 + p.pretty_disjunction(unwrapped1021) } else { _dollar_dollar := msg - var _t1641 *pb.Not + var _t1667 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1641 = _dollar_dollar.GetNot() + _t1667 = _dollar_dollar.GetNot() } - deconstruct_result1005 := _t1641 - if deconstruct_result1005 != nil { - unwrapped1006 := deconstruct_result1005 - p.pretty_not(unwrapped1006) + deconstruct_result1018 := _t1667 + if deconstruct_result1018 != nil { + unwrapped1019 := deconstruct_result1018 + p.pretty_not(unwrapped1019) } else { _dollar_dollar := msg - var _t1642 *pb.FFI + var _t1668 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1642 = _dollar_dollar.GetFfi() + _t1668 = _dollar_dollar.GetFfi() } - deconstruct_result1003 := _t1642 - if deconstruct_result1003 != nil { - unwrapped1004 := deconstruct_result1003 - p.pretty_ffi(unwrapped1004) + deconstruct_result1016 := _t1668 + if deconstruct_result1016 != nil { + unwrapped1017 := deconstruct_result1016 + p.pretty_ffi(unwrapped1017) } else { _dollar_dollar := msg - var _t1643 *pb.Atom + var _t1669 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1643 = _dollar_dollar.GetAtom() + _t1669 = _dollar_dollar.GetAtom() } - deconstruct_result1001 := _t1643 - if deconstruct_result1001 != nil { - unwrapped1002 := deconstruct_result1001 - p.pretty_atom(unwrapped1002) + deconstruct_result1014 := _t1669 + if deconstruct_result1014 != nil { + unwrapped1015 := deconstruct_result1014 + p.pretty_atom(unwrapped1015) } else { _dollar_dollar := msg - var _t1644 *pb.Pragma + var _t1670 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1644 = _dollar_dollar.GetPragma() + _t1670 = _dollar_dollar.GetPragma() } - deconstruct_result999 := _t1644 - if deconstruct_result999 != nil { - unwrapped1000 := deconstruct_result999 - p.pretty_pragma(unwrapped1000) + deconstruct_result1012 := _t1670 + if deconstruct_result1012 != nil { + unwrapped1013 := deconstruct_result1012 + p.pretty_pragma(unwrapped1013) } else { _dollar_dollar := msg - var _t1645 *pb.Primitive + var _t1671 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1645 = _dollar_dollar.GetPrimitive() + _t1671 = _dollar_dollar.GetPrimitive() } - deconstruct_result997 := _t1645 - if deconstruct_result997 != nil { - unwrapped998 := deconstruct_result997 - p.pretty_primitive(unwrapped998) + deconstruct_result1010 := _t1671 + if deconstruct_result1010 != nil { + unwrapped1011 := deconstruct_result1010 + p.pretty_primitive(unwrapped1011) } else { _dollar_dollar := msg - var _t1646 *pb.RelAtom + var _t1672 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1646 = _dollar_dollar.GetRelAtom() + _t1672 = _dollar_dollar.GetRelAtom() } - deconstruct_result995 := _t1646 - if deconstruct_result995 != nil { - unwrapped996 := deconstruct_result995 - p.pretty_rel_atom(unwrapped996) + deconstruct_result1008 := _t1672 + if deconstruct_result1008 != nil { + unwrapped1009 := deconstruct_result1008 + p.pretty_rel_atom(unwrapped1009) } else { _dollar_dollar := msg - var _t1647 *pb.Cast + var _t1673 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1647 = _dollar_dollar.GetCast() + _t1673 = _dollar_dollar.GetCast() } - deconstruct_result993 := _t1647 - if deconstruct_result993 != nil { - unwrapped994 := deconstruct_result993 - p.pretty_cast(unwrapped994) + deconstruct_result1006 := _t1673 + if deconstruct_result1006 != nil { + unwrapped1007 := deconstruct_result1006 + p.pretty_cast(unwrapped1007) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1810,8 +1828,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields1020 := msg - _ = fields1020 + fields1033 := msg + _ = fields1033 p.write("(") p.write("true") p.write(")") @@ -1819,8 +1837,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields1021 := msg - _ = fields1021 + fields1034 := msg + _ = fields1034 p.write("(") p.write("false") p.write(")") @@ -1828,24 +1846,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) + flat1039 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat1039 != nil { + p.write(*flat1039) return nil } else { _dollar_dollar := msg - _t1648 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - fields1022 := []interface{}{_t1648, _dollar_dollar.GetBody().GetValue()} - unwrapped_fields1023 := fields1022 + _t1674 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + fields1035 := []interface{}{_t1674, _dollar_dollar.GetBody().GetValue()} + unwrapped_fields1036 := fields1035 p.write("(") p.write("exists") p.indentSexp() p.newline() - field1024 := unwrapped_fields1023[0].([]interface{}) - p.pretty_bindings(field1024) + field1037 := unwrapped_fields1036[0].([]interface{}) + p.pretty_bindings(field1037) p.newline() - field1025 := unwrapped_fields1023[1].(*pb.Formula) - p.pretty_formula(field1025) + field1038 := unwrapped_fields1036[1].(*pb.Formula) + p.pretty_formula(field1038) p.dedent() p.write(")") } @@ -1853,26 +1871,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) + flat1045 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat1045 != nil { + p.write(*flat1045) return nil } else { _dollar_dollar := msg - fields1027 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} - unwrapped_fields1028 := fields1027 + fields1040 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} + unwrapped_fields1041 := fields1040 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field1029 := unwrapped_fields1028[0].(*pb.Abstraction) - p.pretty_abstraction(field1029) + field1042 := unwrapped_fields1041[0].(*pb.Abstraction) + p.pretty_abstraction(field1042) p.newline() - field1030 := unwrapped_fields1028[1].(*pb.Abstraction) - p.pretty_abstraction(field1030) + field1043 := unwrapped_fields1041[1].(*pb.Abstraction) + p.pretty_abstraction(field1043) p.newline() - field1031 := unwrapped_fields1028[2].([]*pb.Term) - p.pretty_terms(field1031) + field1044 := unwrapped_fields1041[2].([]*pb.Term) + p.pretty_terms(field1044) p.dedent() p.write(")") } @@ -1880,22 +1898,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) + flat1049 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat1049 != nil { + p.write(*flat1049) return nil } else { - fields1033 := msg + fields1046 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields1033) == 0) { + if !(len(fields1046) == 0) { p.newline() - for i1035, elem1034 := range fields1033 { - if (i1035 > 0) { + for i1048, elem1047 := range fields1046 { + if (i1048 > 0) { p.newline() } - p.pretty_term(elem1034) + p.pretty_term(elem1047) } } p.dedent() @@ -1905,30 +1923,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) + flat1054 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat1054 != nil { + p.write(*flat1054) return nil } else { _dollar_dollar := msg - var _t1649 *pb.Var + var _t1675 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1649 = _dollar_dollar.GetVar() + _t1675 = _dollar_dollar.GetVar() } - deconstruct_result1039 := _t1649 - if deconstruct_result1039 != nil { - unwrapped1040 := deconstruct_result1039 - p.pretty_var(unwrapped1040) + deconstruct_result1052 := _t1675 + if deconstruct_result1052 != nil { + unwrapped1053 := deconstruct_result1052 + p.pretty_var(unwrapped1053) } else { _dollar_dollar := msg - var _t1650 *pb.Value + var _t1676 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1650 = _dollar_dollar.GetConstant() + _t1676 = _dollar_dollar.GetConstant() } - deconstruct_result1037 := _t1650 - if deconstruct_result1037 != nil { - unwrapped1038 := deconstruct_result1037 - p.pretty_value(unwrapped1038) + deconstruct_result1050 := _t1676 + if deconstruct_result1050 != nil { + unwrapped1051 := deconstruct_result1050 + p.pretty_value(unwrapped1051) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -1938,147 +1956,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) + flat1057 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat1057 != nil { + p.write(*flat1057) return nil } else { _dollar_dollar := msg - fields1042 := _dollar_dollar.GetName() - unwrapped_fields1043 := fields1042 - p.write(unwrapped_fields1043) + fields1055 := _dollar_dollar.GetName() + unwrapped_fields1056 := fields1055 + p.write(unwrapped_fields1056) } 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) + flat1083 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat1083 != nil { + p.write(*flat1083) return nil } else { _dollar_dollar := msg - var _t1651 *pb.DateValue + var _t1677 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1651 = _dollar_dollar.GetDateValue() + _t1677 = _dollar_dollar.GetDateValue() } - deconstruct_result1068 := _t1651 - if deconstruct_result1068 != nil { - unwrapped1069 := deconstruct_result1068 - p.pretty_date(unwrapped1069) + deconstruct_result1081 := _t1677 + if deconstruct_result1081 != nil { + unwrapped1082 := deconstruct_result1081 + p.pretty_date(unwrapped1082) } else { _dollar_dollar := msg - var _t1652 *pb.DateTimeValue + var _t1678 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1652 = _dollar_dollar.GetDatetimeValue() + _t1678 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result1066 := _t1652 - if deconstruct_result1066 != nil { - unwrapped1067 := deconstruct_result1066 - p.pretty_datetime(unwrapped1067) + deconstruct_result1079 := _t1678 + if deconstruct_result1079 != nil { + unwrapped1080 := deconstruct_result1079 + p.pretty_datetime(unwrapped1080) } else { _dollar_dollar := msg - var _t1653 *string + var _t1679 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1653 = ptr(_dollar_dollar.GetStringValue()) + _t1679 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result1064 := _t1653 - if deconstruct_result1064 != nil { - unwrapped1065 := *deconstruct_result1064 - p.write(p.formatStringValue(unwrapped1065)) + deconstruct_result1077 := _t1679 + if deconstruct_result1077 != nil { + unwrapped1078 := *deconstruct_result1077 + p.write(p.formatStringValue(unwrapped1078)) } else { _dollar_dollar := msg - var _t1654 *int32 + var _t1680 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1654 = ptr(_dollar_dollar.GetInt32Value()) + _t1680 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result1062 := _t1654 - if deconstruct_result1062 != nil { - unwrapped1063 := *deconstruct_result1062 - p.write(fmt.Sprintf("%di32", unwrapped1063)) + deconstruct_result1075 := _t1680 + if deconstruct_result1075 != nil { + unwrapped1076 := *deconstruct_result1075 + p.write(fmt.Sprintf("%di32", unwrapped1076)) } else { _dollar_dollar := msg - var _t1655 *int64 + var _t1681 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1655 = ptr(_dollar_dollar.GetIntValue()) + _t1681 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result1060 := _t1655 - if deconstruct_result1060 != nil { - unwrapped1061 := *deconstruct_result1060 - p.write(fmt.Sprintf("%d", unwrapped1061)) + deconstruct_result1073 := _t1681 + if deconstruct_result1073 != nil { + unwrapped1074 := *deconstruct_result1073 + p.write(fmt.Sprintf("%d", unwrapped1074)) } else { _dollar_dollar := msg - var _t1656 *float32 + var _t1682 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1656 = ptr(_dollar_dollar.GetFloat32Value()) + _t1682 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result1058 := _t1656 - if deconstruct_result1058 != nil { - unwrapped1059 := *deconstruct_result1058 - p.write(formatFloat32(unwrapped1059)) + deconstruct_result1071 := _t1682 + if deconstruct_result1071 != nil { + unwrapped1072 := *deconstruct_result1071 + p.write(formatFloat32(unwrapped1072)) } else { _dollar_dollar := msg - var _t1657 *float64 + var _t1683 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1657 = ptr(_dollar_dollar.GetFloatValue()) + _t1683 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result1056 := _t1657 - if deconstruct_result1056 != nil { - unwrapped1057 := *deconstruct_result1056 - p.write(formatFloat64(unwrapped1057)) + deconstruct_result1069 := _t1683 + if deconstruct_result1069 != nil { + unwrapped1070 := *deconstruct_result1069 + p.write(formatFloat64(unwrapped1070)) } else { _dollar_dollar := msg - var _t1658 *uint32 + var _t1684 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1658 = ptr(_dollar_dollar.GetUint32Value()) + _t1684 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result1054 := _t1658 - if deconstruct_result1054 != nil { - unwrapped1055 := *deconstruct_result1054 - p.write(fmt.Sprintf("%du32", unwrapped1055)) + deconstruct_result1067 := _t1684 + if deconstruct_result1067 != nil { + unwrapped1068 := *deconstruct_result1067 + p.write(fmt.Sprintf("%du32", unwrapped1068)) } else { _dollar_dollar := msg - var _t1659 *pb.UInt128Value + var _t1685 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1659 = _dollar_dollar.GetUint128Value() + _t1685 = _dollar_dollar.GetUint128Value() } - deconstruct_result1052 := _t1659 - if deconstruct_result1052 != nil { - unwrapped1053 := deconstruct_result1052 - p.write(p.formatUint128(unwrapped1053)) + deconstruct_result1065 := _t1685 + if deconstruct_result1065 != nil { + unwrapped1066 := deconstruct_result1065 + p.write(p.formatUint128(unwrapped1066)) } else { _dollar_dollar := msg - var _t1660 *pb.Int128Value + var _t1686 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1660 = _dollar_dollar.GetInt128Value() + _t1686 = _dollar_dollar.GetInt128Value() } - deconstruct_result1050 := _t1660 - if deconstruct_result1050 != nil { - unwrapped1051 := deconstruct_result1050 - p.write(p.formatInt128(unwrapped1051)) + deconstruct_result1063 := _t1686 + if deconstruct_result1063 != nil { + unwrapped1064 := deconstruct_result1063 + p.write(p.formatInt128(unwrapped1064)) } else { _dollar_dollar := msg - var _t1661 *pb.DecimalValue + var _t1687 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1661 = _dollar_dollar.GetDecimalValue() + _t1687 = _dollar_dollar.GetDecimalValue() } - deconstruct_result1048 := _t1661 - if deconstruct_result1048 != nil { - unwrapped1049 := deconstruct_result1048 - p.write(p.formatDecimal(unwrapped1049)) + deconstruct_result1061 := _t1687 + if deconstruct_result1061 != nil { + unwrapped1062 := deconstruct_result1061 + p.write(p.formatDecimal(unwrapped1062)) } else { _dollar_dollar := msg - var _t1662 *bool + var _t1688 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1662 = ptr(_dollar_dollar.GetBooleanValue()) + _t1688 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result1046 := _t1662 - if deconstruct_result1046 != nil { - unwrapped1047 := *deconstruct_result1046 - p.pretty_boolean_value(unwrapped1047) + deconstruct_result1059 := _t1688 + if deconstruct_result1059 != nil { + unwrapped1060 := *deconstruct_result1059 + p.pretty_boolean_value(unwrapped1060) } else { - fields1045 := msg - _ = fields1045 + fields1058 := msg + _ = fields1058 p.write("missing") } } @@ -2097,26 +2115,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) + flat1089 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat1089 != nil { + p.write(*flat1089) return nil } else { _dollar_dollar := msg - fields1071 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields1072 := fields1071 + fields1084 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields1085 := fields1084 p.write("(") p.write("date") p.indentSexp() p.newline() - field1073 := unwrapped_fields1072[0].(int64) - p.write(fmt.Sprintf("%d", field1073)) + field1086 := unwrapped_fields1085[0].(int64) + p.write(fmt.Sprintf("%d", field1086)) p.newline() - field1074 := unwrapped_fields1072[1].(int64) - p.write(fmt.Sprintf("%d", field1074)) + field1087 := unwrapped_fields1085[1].(int64) + p.write(fmt.Sprintf("%d", field1087)) p.newline() - field1075 := unwrapped_fields1072[2].(int64) - p.write(fmt.Sprintf("%d", field1075)) + field1088 := unwrapped_fields1085[2].(int64) + p.write(fmt.Sprintf("%d", field1088)) p.dedent() p.write(")") } @@ -2124,40 +2142,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) + flat1100 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat1100 != nil { + p.write(*flat1100) 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 + fields1090 := []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_fields1091 := fields1090 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field1079 := unwrapped_fields1078[0].(int64) - p.write(fmt.Sprintf("%d", field1079)) + field1092 := unwrapped_fields1091[0].(int64) + p.write(fmt.Sprintf("%d", field1092)) p.newline() - field1080 := unwrapped_fields1078[1].(int64) - p.write(fmt.Sprintf("%d", field1080)) + field1093 := unwrapped_fields1091[1].(int64) + p.write(fmt.Sprintf("%d", field1093)) p.newline() - field1081 := unwrapped_fields1078[2].(int64) - p.write(fmt.Sprintf("%d", field1081)) + field1094 := unwrapped_fields1091[2].(int64) + p.write(fmt.Sprintf("%d", field1094)) p.newline() - field1082 := unwrapped_fields1078[3].(int64) - p.write(fmt.Sprintf("%d", field1082)) + field1095 := unwrapped_fields1091[3].(int64) + p.write(fmt.Sprintf("%d", field1095)) p.newline() - field1083 := unwrapped_fields1078[4].(int64) - p.write(fmt.Sprintf("%d", field1083)) + field1096 := unwrapped_fields1091[4].(int64) + p.write(fmt.Sprintf("%d", field1096)) p.newline() - field1084 := unwrapped_fields1078[5].(int64) - p.write(fmt.Sprintf("%d", field1084)) - field1085 := unwrapped_fields1078[6].(*int64) - if field1085 != nil { + field1097 := unwrapped_fields1091[5].(int64) + p.write(fmt.Sprintf("%d", field1097)) + field1098 := unwrapped_fields1091[6].(*int64) + if field1098 != nil { p.newline() - opt_val1086 := *field1085 - p.write(fmt.Sprintf("%d", opt_val1086)) + opt_val1099 := *field1098 + p.write(fmt.Sprintf("%d", opt_val1099)) } p.dedent() p.write(")") @@ -2166,24 +2184,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) + flat1105 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat1105 != nil { + p.write(*flat1105) return nil } else { _dollar_dollar := msg - fields1088 := _dollar_dollar.GetArgs() - unwrapped_fields1089 := fields1088 + fields1101 := _dollar_dollar.GetArgs() + unwrapped_fields1102 := fields1101 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields1089) == 0) { + if !(len(unwrapped_fields1102) == 0) { p.newline() - for i1091, elem1090 := range unwrapped_fields1089 { - if (i1091 > 0) { + for i1104, elem1103 := range unwrapped_fields1102 { + if (i1104 > 0) { p.newline() } - p.pretty_formula(elem1090) + p.pretty_formula(elem1103) } } p.dedent() @@ -2193,24 +2211,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) + flat1110 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat1110 != nil { + p.write(*flat1110) return nil } else { _dollar_dollar := msg - fields1093 := _dollar_dollar.GetArgs() - unwrapped_fields1094 := fields1093 + fields1106 := _dollar_dollar.GetArgs() + unwrapped_fields1107 := fields1106 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields1094) == 0) { + if !(len(unwrapped_fields1107) == 0) { p.newline() - for i1096, elem1095 := range unwrapped_fields1094 { - if (i1096 > 0) { + for i1109, elem1108 := range unwrapped_fields1107 { + if (i1109 > 0) { p.newline() } - p.pretty_formula(elem1095) + p.pretty_formula(elem1108) } } p.dedent() @@ -2220,19 +2238,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) + flat1113 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat1113 != nil { + p.write(*flat1113) return nil } else { _dollar_dollar := msg - fields1098 := _dollar_dollar.GetArg() - unwrapped_fields1099 := fields1098 + fields1111 := _dollar_dollar.GetArg() + unwrapped_fields1112 := fields1111 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields1099) + p.pretty_formula(unwrapped_fields1112) p.dedent() p.write(")") } @@ -2240,26 +2258,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) + flat1119 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat1119 != nil { + p.write(*flat1119) return nil } else { _dollar_dollar := msg - fields1101 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} - unwrapped_fields1102 := fields1101 + fields1114 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} + unwrapped_fields1115 := fields1114 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field1103 := unwrapped_fields1102[0].(string) - p.pretty_name(field1103) + field1116 := unwrapped_fields1115[0].(string) + p.pretty_name(field1116) p.newline() - field1104 := unwrapped_fields1102[1].([]*pb.Abstraction) - p.pretty_ffi_args(field1104) + field1117 := unwrapped_fields1115[1].([]*pb.Abstraction) + p.pretty_ffi_args(field1117) p.newline() - field1105 := unwrapped_fields1102[2].([]*pb.Term) - p.pretty_terms(field1105) + field1118 := unwrapped_fields1115[2].([]*pb.Term) + p.pretty_terms(field1118) p.dedent() p.write(")") } @@ -2267,35 +2285,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) + flat1121 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat1121 != nil { + p.write(*flat1121) return nil } else { - fields1107 := msg + fields1120 := msg p.write(":") - p.write(fields1107) + p.write(fields1120) } 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) + flat1125 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat1125 != nil { + p.write(*flat1125) return nil } else { - fields1109 := msg + fields1122 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields1109) == 0) { + if !(len(fields1122) == 0) { p.newline() - for i1111, elem1110 := range fields1109 { - if (i1111 > 0) { + for i1124, elem1123 := range fields1122 { + if (i1124 > 0) { p.newline() } - p.pretty_abstraction(elem1110) + p.pretty_abstraction(elem1123) } } p.dedent() @@ -2305,28 +2323,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) + flat1132 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat1132 != nil { + p.write(*flat1132) return nil } else { _dollar_dollar := msg - fields1113 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1114 := fields1113 + fields1126 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1127 := fields1126 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) { + field1128 := unwrapped_fields1127[0].(*pb.RelationId) + p.pretty_relation_id(field1128) + field1129 := unwrapped_fields1127[1].([]*pb.Term) + if !(len(field1129) == 0) { p.newline() - for i1118, elem1117 := range field1116 { - if (i1118 > 0) { + for i1131, elem1130 := range field1129 { + if (i1131 > 0) { p.newline() } - p.pretty_term(elem1117) + p.pretty_term(elem1130) } } p.dedent() @@ -2336,28 +2354,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) + flat1139 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat1139 != nil { + p.write(*flat1139) return nil } else { _dollar_dollar := msg - fields1120 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1121 := fields1120 + fields1133 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1134 := fields1133 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) { + field1135 := unwrapped_fields1134[0].(string) + p.pretty_name(field1135) + field1136 := unwrapped_fields1134[1].([]*pb.Term) + if !(len(field1136) == 0) { p.newline() - for i1125, elem1124 := range field1123 { - if (i1125 > 0) { + for i1138, elem1137 := range field1136 { + if (i1138 > 0) { p.newline() } - p.pretty_term(elem1124) + p.pretty_term(elem1137) } } p.dedent() @@ -2367,109 +2385,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) + flat1155 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat1155 != nil { + p.write(*flat1155) return nil } else { _dollar_dollar := msg - var _t1663 []interface{} + var _t1689 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1663 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1689 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1141 := _t1663 - if guard_result1141 != nil { + guard_result1154 := _t1689 + if guard_result1154 != nil { p.pretty_eq(msg) } else { _dollar_dollar := msg - var _t1664 []interface{} + var _t1690 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1664 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1690 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1140 := _t1664 - if guard_result1140 != nil { + guard_result1153 := _t1690 + if guard_result1153 != nil { p.pretty_lt(msg) } else { _dollar_dollar := msg - var _t1665 []interface{} + var _t1691 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1665 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1691 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1139 := _t1665 - if guard_result1139 != nil { + guard_result1152 := _t1691 + if guard_result1152 != nil { p.pretty_lt_eq(msg) } else { _dollar_dollar := msg - var _t1666 []interface{} + var _t1692 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1666 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1692 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1138 := _t1666 - if guard_result1138 != nil { + guard_result1151 := _t1692 + if guard_result1151 != nil { p.pretty_gt(msg) } else { _dollar_dollar := msg - var _t1667 []interface{} + var _t1693 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1667 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1693 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1137 := _t1667 - if guard_result1137 != nil { + guard_result1150 := _t1693 + if guard_result1150 != nil { p.pretty_gt_eq(msg) } else { _dollar_dollar := msg - var _t1668 []interface{} + var _t1694 []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()} + _t1694 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1136 := _t1668 - if guard_result1136 != nil { + guard_result1149 := _t1694 + if guard_result1149 != nil { p.pretty_add(msg) } else { _dollar_dollar := msg - var _t1669 []interface{} + var _t1695 []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()} + _t1695 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1135 := _t1669 - if guard_result1135 != nil { + guard_result1148 := _t1695 + if guard_result1148 != nil { p.pretty_minus(msg) } else { _dollar_dollar := msg - var _t1670 []interface{} + var _t1696 []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()} + _t1696 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1134 := _t1670 - if guard_result1134 != nil { + guard_result1147 := _t1696 + if guard_result1147 != nil { p.pretty_multiply(msg) } else { _dollar_dollar := msg - var _t1671 []interface{} + var _t1697 []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()} + _t1697 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1133 := _t1671 - if guard_result1133 != nil { + guard_result1146 := _t1697 + if guard_result1146 != nil { p.pretty_divide(msg) } else { _dollar_dollar := msg - fields1127 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1128 := fields1127 + fields1140 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1141 := fields1140 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) { + field1142 := unwrapped_fields1141[0].(string) + p.pretty_name(field1142) + field1143 := unwrapped_fields1141[1].([]*pb.RelTerm) + if !(len(field1143) == 0) { p.newline() - for i1132, elem1131 := range field1130 { - if (i1132 > 0) { + for i1145, elem1144 := range field1143 { + if (i1145 > 0) { p.newline() } - p.pretty_rel_term(elem1131) + p.pretty_rel_term(elem1144) } } p.dedent() @@ -2488,27 +2506,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) + flat1160 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat1160 != nil { + p.write(*flat1160) return nil } else { _dollar_dollar := msg - var _t1672 []interface{} + var _t1698 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1672 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1698 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1143 := _t1672 - unwrapped_fields1144 := fields1143 + fields1156 := _t1698 + unwrapped_fields1157 := fields1156 p.write("(") p.write("=") p.indentSexp() p.newline() - field1145 := unwrapped_fields1144[0].(*pb.Term) - p.pretty_term(field1145) + field1158 := unwrapped_fields1157[0].(*pb.Term) + p.pretty_term(field1158) p.newline() - field1146 := unwrapped_fields1144[1].(*pb.Term) - p.pretty_term(field1146) + field1159 := unwrapped_fields1157[1].(*pb.Term) + p.pretty_term(field1159) p.dedent() p.write(")") } @@ -2516,27 +2534,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) + flat1165 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat1165 != nil { + p.write(*flat1165) return nil } else { _dollar_dollar := msg - var _t1673 []interface{} + var _t1699 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1673 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1699 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1148 := _t1673 - unwrapped_fields1149 := fields1148 + fields1161 := _t1699 + unwrapped_fields1162 := fields1161 p.write("(") p.write("<") p.indentSexp() p.newline() - field1150 := unwrapped_fields1149[0].(*pb.Term) - p.pretty_term(field1150) + field1163 := unwrapped_fields1162[0].(*pb.Term) + p.pretty_term(field1163) p.newline() - field1151 := unwrapped_fields1149[1].(*pb.Term) - p.pretty_term(field1151) + field1164 := unwrapped_fields1162[1].(*pb.Term) + p.pretty_term(field1164) p.dedent() p.write(")") } @@ -2544,27 +2562,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) + flat1170 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat1170 != nil { + p.write(*flat1170) return nil } else { _dollar_dollar := msg - var _t1674 []interface{} + var _t1700 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1674 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1700 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1153 := _t1674 - unwrapped_fields1154 := fields1153 + fields1166 := _t1700 + unwrapped_fields1167 := fields1166 p.write("(") p.write("<=") p.indentSexp() p.newline() - field1155 := unwrapped_fields1154[0].(*pb.Term) - p.pretty_term(field1155) + field1168 := unwrapped_fields1167[0].(*pb.Term) + p.pretty_term(field1168) p.newline() - field1156 := unwrapped_fields1154[1].(*pb.Term) - p.pretty_term(field1156) + field1169 := unwrapped_fields1167[1].(*pb.Term) + p.pretty_term(field1169) p.dedent() p.write(")") } @@ -2572,27 +2590,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) + flat1175 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat1175 != nil { + p.write(*flat1175) return nil } else { _dollar_dollar := msg - var _t1675 []interface{} + var _t1701 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1675 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1701 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1158 := _t1675 - unwrapped_fields1159 := fields1158 + fields1171 := _t1701 + unwrapped_fields1172 := fields1171 p.write("(") p.write(">") p.indentSexp() p.newline() - field1160 := unwrapped_fields1159[0].(*pb.Term) - p.pretty_term(field1160) + field1173 := unwrapped_fields1172[0].(*pb.Term) + p.pretty_term(field1173) p.newline() - field1161 := unwrapped_fields1159[1].(*pb.Term) - p.pretty_term(field1161) + field1174 := unwrapped_fields1172[1].(*pb.Term) + p.pretty_term(field1174) p.dedent() p.write(")") } @@ -2600,27 +2618,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) + flat1180 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat1180 != nil { + p.write(*flat1180) return nil } else { _dollar_dollar := msg - var _t1676 []interface{} + var _t1702 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1676 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1702 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1163 := _t1676 - unwrapped_fields1164 := fields1163 + fields1176 := _t1702 + unwrapped_fields1177 := fields1176 p.write("(") p.write(">=") p.indentSexp() p.newline() - field1165 := unwrapped_fields1164[0].(*pb.Term) - p.pretty_term(field1165) + field1178 := unwrapped_fields1177[0].(*pb.Term) + p.pretty_term(field1178) p.newline() - field1166 := unwrapped_fields1164[1].(*pb.Term) - p.pretty_term(field1166) + field1179 := unwrapped_fields1177[1].(*pb.Term) + p.pretty_term(field1179) p.dedent() p.write(")") } @@ -2628,30 +2646,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) + flat1186 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat1186 != nil { + p.write(*flat1186) return nil } else { _dollar_dollar := msg - var _t1677 []interface{} + var _t1703 []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()} + _t1703 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1168 := _t1677 - unwrapped_fields1169 := fields1168 + fields1181 := _t1703 + unwrapped_fields1182 := fields1181 p.write("(") p.write("+") p.indentSexp() p.newline() - field1170 := unwrapped_fields1169[0].(*pb.Term) - p.pretty_term(field1170) + field1183 := unwrapped_fields1182[0].(*pb.Term) + p.pretty_term(field1183) p.newline() - field1171 := unwrapped_fields1169[1].(*pb.Term) - p.pretty_term(field1171) + field1184 := unwrapped_fields1182[1].(*pb.Term) + p.pretty_term(field1184) p.newline() - field1172 := unwrapped_fields1169[2].(*pb.Term) - p.pretty_term(field1172) + field1185 := unwrapped_fields1182[2].(*pb.Term) + p.pretty_term(field1185) p.dedent() p.write(")") } @@ -2659,30 +2677,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) + flat1192 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat1192 != nil { + p.write(*flat1192) return nil } else { _dollar_dollar := msg - var _t1678 []interface{} + var _t1704 []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()} + _t1704 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1174 := _t1678 - unwrapped_fields1175 := fields1174 + fields1187 := _t1704 + unwrapped_fields1188 := fields1187 p.write("(") p.write("-") p.indentSexp() p.newline() - field1176 := unwrapped_fields1175[0].(*pb.Term) - p.pretty_term(field1176) + field1189 := unwrapped_fields1188[0].(*pb.Term) + p.pretty_term(field1189) p.newline() - field1177 := unwrapped_fields1175[1].(*pb.Term) - p.pretty_term(field1177) + field1190 := unwrapped_fields1188[1].(*pb.Term) + p.pretty_term(field1190) p.newline() - field1178 := unwrapped_fields1175[2].(*pb.Term) - p.pretty_term(field1178) + field1191 := unwrapped_fields1188[2].(*pb.Term) + p.pretty_term(field1191) p.dedent() p.write(")") } @@ -2690,30 +2708,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) + flat1198 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat1198 != nil { + p.write(*flat1198) return nil } else { _dollar_dollar := msg - var _t1679 []interface{} + var _t1705 []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()} + _t1705 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1180 := _t1679 - unwrapped_fields1181 := fields1180 + fields1193 := _t1705 + unwrapped_fields1194 := fields1193 p.write("(") p.write("*") p.indentSexp() p.newline() - field1182 := unwrapped_fields1181[0].(*pb.Term) - p.pretty_term(field1182) + field1195 := unwrapped_fields1194[0].(*pb.Term) + p.pretty_term(field1195) p.newline() - field1183 := unwrapped_fields1181[1].(*pb.Term) - p.pretty_term(field1183) + field1196 := unwrapped_fields1194[1].(*pb.Term) + p.pretty_term(field1196) p.newline() - field1184 := unwrapped_fields1181[2].(*pb.Term) - p.pretty_term(field1184) + field1197 := unwrapped_fields1194[2].(*pb.Term) + p.pretty_term(field1197) p.dedent() p.write(")") } @@ -2721,30 +2739,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) + flat1204 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat1204 != nil { + p.write(*flat1204) return nil } else { _dollar_dollar := msg - var _t1680 []interface{} + var _t1706 []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()} + _t1706 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1186 := _t1680 - unwrapped_fields1187 := fields1186 + fields1199 := _t1706 + unwrapped_fields1200 := fields1199 p.write("(") p.write("/") p.indentSexp() p.newline() - field1188 := unwrapped_fields1187[0].(*pb.Term) - p.pretty_term(field1188) + field1201 := unwrapped_fields1200[0].(*pb.Term) + p.pretty_term(field1201) p.newline() - field1189 := unwrapped_fields1187[1].(*pb.Term) - p.pretty_term(field1189) + field1202 := unwrapped_fields1200[1].(*pb.Term) + p.pretty_term(field1202) p.newline() - field1190 := unwrapped_fields1187[2].(*pb.Term) - p.pretty_term(field1190) + field1203 := unwrapped_fields1200[2].(*pb.Term) + p.pretty_term(field1203) p.dedent() p.write(")") } @@ -2752,30 +2770,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) + flat1209 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat1209 != nil { + p.write(*flat1209) return nil } else { _dollar_dollar := msg - var _t1681 *pb.Value + var _t1707 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1681 = _dollar_dollar.GetSpecializedValue() + _t1707 = _dollar_dollar.GetSpecializedValue() } - deconstruct_result1194 := _t1681 - if deconstruct_result1194 != nil { - unwrapped1195 := deconstruct_result1194 - p.pretty_specialized_value(unwrapped1195) + deconstruct_result1207 := _t1707 + if deconstruct_result1207 != nil { + unwrapped1208 := deconstruct_result1207 + p.pretty_specialized_value(unwrapped1208) } else { _dollar_dollar := msg - var _t1682 *pb.Term + var _t1708 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1682 = _dollar_dollar.GetTerm() + _t1708 = _dollar_dollar.GetTerm() } - deconstruct_result1192 := _t1682 - if deconstruct_result1192 != nil { - unwrapped1193 := deconstruct_result1192 - p.pretty_term(unwrapped1193) + deconstruct_result1205 := _t1708 + if deconstruct_result1205 != nil { + unwrapped1206 := deconstruct_result1205 + p.pretty_term(unwrapped1206) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2785,41 +2803,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) + flat1211 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat1211 != nil { + p.write(*flat1211) return nil } else { - fields1197 := msg + fields1210 := msg p.write("#") - p.pretty_raw_value(fields1197) + p.pretty_raw_value(fields1210) } 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) + flat1218 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat1218 != nil { + p.write(*flat1218) return nil } else { _dollar_dollar := msg - fields1199 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1200 := fields1199 + fields1212 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1213 := fields1212 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) { + field1214 := unwrapped_fields1213[0].(string) + p.pretty_name(field1214) + field1215 := unwrapped_fields1213[1].([]*pb.RelTerm) + if !(len(field1215) == 0) { p.newline() - for i1204, elem1203 := range field1202 { - if (i1204 > 0) { + for i1217, elem1216 := range field1215 { + if (i1217 > 0) { p.newline() } - p.pretty_rel_term(elem1203) + p.pretty_rel_term(elem1216) } } p.dedent() @@ -2829,23 +2847,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) + flat1223 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1223 != nil { + p.write(*flat1223) return nil } else { _dollar_dollar := msg - fields1206 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} - unwrapped_fields1207 := fields1206 + fields1219 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} + unwrapped_fields1220 := fields1219 p.write("(") p.write("cast") p.indentSexp() p.newline() - field1208 := unwrapped_fields1207[0].(*pb.Term) - p.pretty_term(field1208) + field1221 := unwrapped_fields1220[0].(*pb.Term) + p.pretty_term(field1221) p.newline() - field1209 := unwrapped_fields1207[1].(*pb.Term) - p.pretty_term(field1209) + field1222 := unwrapped_fields1220[1].(*pb.Term) + p.pretty_term(field1222) p.dedent() p.write(")") } @@ -2853,22 +2871,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) + flat1227 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1227 != nil { + p.write(*flat1227) return nil } else { - fields1211 := msg + fields1224 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields1211) == 0) { + if !(len(fields1224) == 0) { p.newline() - for i1213, elem1212 := range fields1211 { - if (i1213 > 0) { + for i1226, elem1225 := range fields1224 { + if (i1226 > 0) { p.newline() } - p.pretty_attribute(elem1212) + p.pretty_attribute(elem1225) } } p.dedent() @@ -2878,28 +2896,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) + flat1234 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1234 != nil { + p.write(*flat1234) return nil } else { _dollar_dollar := msg - fields1215 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} - unwrapped_fields1216 := fields1215 + fields1228 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} + unwrapped_fields1229 := fields1228 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) { + field1230 := unwrapped_fields1229[0].(string) + p.pretty_name(field1230) + field1231 := unwrapped_fields1229[1].([]*pb.Value) + if !(len(field1231) == 0) { p.newline() - for i1220, elem1219 := range field1218 { - if (i1220 > 0) { + for i1233, elem1232 := range field1231 { + if (i1233 > 0) { p.newline() } - p.pretty_raw_value(elem1219) + p.pretty_raw_value(elem1232) } } p.dedent() @@ -2909,39 +2927,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) + flat1243 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1243 != nil { + p.write(*flat1243) return nil } else { _dollar_dollar := msg - var _t1683 []*pb.Attribute + var _t1709 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1683 = _dollar_dollar.GetAttrs() + _t1709 = _dollar_dollar.GetAttrs() } - fields1222 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1683} - unwrapped_fields1223 := fields1222 + fields1235 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1709} + unwrapped_fields1236 := fields1235 p.write("(") p.write("algorithm") p.indentSexp() - field1224 := unwrapped_fields1223[0].([]*pb.RelationId) - if !(len(field1224) == 0) { + field1237 := unwrapped_fields1236[0].([]*pb.RelationId) + if !(len(field1237) == 0) { p.newline() - for i1226, elem1225 := range field1224 { - if (i1226 > 0) { + for i1239, elem1238 := range field1237 { + if (i1239 > 0) { p.newline() } - p.pretty_relation_id(elem1225) + p.pretty_relation_id(elem1238) } } p.newline() - field1227 := unwrapped_fields1223[1].(*pb.Script) - p.pretty_script(field1227) - field1228 := unwrapped_fields1223[2].([]*pb.Attribute) - if field1228 != nil { + field1240 := unwrapped_fields1236[1].(*pb.Script) + p.pretty_script(field1240) + field1241 := unwrapped_fields1236[2].([]*pb.Attribute) + if field1241 != nil { p.newline() - opt_val1229 := field1228 - p.pretty_attrs(opt_val1229) + opt_val1242 := field1241 + p.pretty_attrs(opt_val1242) } p.dedent() p.write(")") @@ -2950,24 +2968,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) + flat1248 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1248 != nil { + p.write(*flat1248) return nil } else { _dollar_dollar := msg - fields1231 := _dollar_dollar.GetConstructs() - unwrapped_fields1232 := fields1231 + fields1244 := _dollar_dollar.GetConstructs() + unwrapped_fields1245 := fields1244 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1232) == 0) { + if !(len(unwrapped_fields1245) == 0) { p.newline() - for i1234, elem1233 := range unwrapped_fields1232 { - if (i1234 > 0) { + for i1247, elem1246 := range unwrapped_fields1245 { + if (i1247 > 0) { p.newline() } - p.pretty_construct(elem1233) + p.pretty_construct(elem1246) } } p.dedent() @@ -2977,30 +2995,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) + flat1253 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1253 != nil { + p.write(*flat1253) return nil } else { _dollar_dollar := msg - var _t1684 *pb.Loop + var _t1710 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1684 = _dollar_dollar.GetLoop() + _t1710 = _dollar_dollar.GetLoop() } - deconstruct_result1238 := _t1684 - if deconstruct_result1238 != nil { - unwrapped1239 := deconstruct_result1238 - p.pretty_loop(unwrapped1239) + deconstruct_result1251 := _t1710 + if deconstruct_result1251 != nil { + unwrapped1252 := deconstruct_result1251 + p.pretty_loop(unwrapped1252) } else { _dollar_dollar := msg - var _t1685 *pb.Instruction + var _t1711 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1685 = _dollar_dollar.GetInstruction() + _t1711 = _dollar_dollar.GetInstruction() } - deconstruct_result1236 := _t1685 - if deconstruct_result1236 != nil { - unwrapped1237 := deconstruct_result1236 - p.pretty_instruction(unwrapped1237) + deconstruct_result1249 := _t1711 + if deconstruct_result1249 != nil { + unwrapped1250 := deconstruct_result1249 + p.pretty_instruction(unwrapped1250) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -3010,32 +3028,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) + flat1260 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1260 != nil { + p.write(*flat1260) return nil } else { _dollar_dollar := msg - var _t1686 []*pb.Attribute + var _t1712 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1686 = _dollar_dollar.GetAttrs() + _t1712 = _dollar_dollar.GetAttrs() } - fields1241 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1686} - unwrapped_fields1242 := fields1241 + fields1254 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1712} + unwrapped_fields1255 := fields1254 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1243 := unwrapped_fields1242[0].([]*pb.Instruction) - p.pretty_init(field1243) + field1256 := unwrapped_fields1255[0].([]*pb.Instruction) + p.pretty_init(field1256) p.newline() - field1244 := unwrapped_fields1242[1].(*pb.Script) - p.pretty_script(field1244) - field1245 := unwrapped_fields1242[2].([]*pb.Attribute) - if field1245 != nil { + field1257 := unwrapped_fields1255[1].(*pb.Script) + p.pretty_script(field1257) + field1258 := unwrapped_fields1255[2].([]*pb.Attribute) + if field1258 != nil { p.newline() - opt_val1246 := field1245 - p.pretty_attrs(opt_val1246) + opt_val1259 := field1258 + p.pretty_attrs(opt_val1259) } p.dedent() p.write(")") @@ -3044,22 +3062,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) + flat1264 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1264 != nil { + p.write(*flat1264) return nil } else { - fields1248 := msg + fields1261 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1248) == 0) { + if !(len(fields1261) == 0) { p.newline() - for i1250, elem1249 := range fields1248 { - if (i1250 > 0) { + for i1263, elem1262 := range fields1261 { + if (i1263 > 0) { p.newline() } - p.pretty_instruction(elem1249) + p.pretty_instruction(elem1262) } } p.dedent() @@ -3069,60 +3087,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) + flat1275 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1275 != nil { + p.write(*flat1275) return nil } else { _dollar_dollar := msg - var _t1687 *pb.Assign + var _t1713 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1687 = _dollar_dollar.GetAssign() + _t1713 = _dollar_dollar.GetAssign() } - deconstruct_result1260 := _t1687 - if deconstruct_result1260 != nil { - unwrapped1261 := deconstruct_result1260 - p.pretty_assign(unwrapped1261) + deconstruct_result1273 := _t1713 + if deconstruct_result1273 != nil { + unwrapped1274 := deconstruct_result1273 + p.pretty_assign(unwrapped1274) } else { _dollar_dollar := msg - var _t1688 *pb.Upsert + var _t1714 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1688 = _dollar_dollar.GetUpsert() + _t1714 = _dollar_dollar.GetUpsert() } - deconstruct_result1258 := _t1688 - if deconstruct_result1258 != nil { - unwrapped1259 := deconstruct_result1258 - p.pretty_upsert(unwrapped1259) + deconstruct_result1271 := _t1714 + if deconstruct_result1271 != nil { + unwrapped1272 := deconstruct_result1271 + p.pretty_upsert(unwrapped1272) } else { _dollar_dollar := msg - var _t1689 *pb.Break + var _t1715 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1689 = _dollar_dollar.GetBreak() + _t1715 = _dollar_dollar.GetBreak() } - deconstruct_result1256 := _t1689 - if deconstruct_result1256 != nil { - unwrapped1257 := deconstruct_result1256 - p.pretty_break(unwrapped1257) + deconstruct_result1269 := _t1715 + if deconstruct_result1269 != nil { + unwrapped1270 := deconstruct_result1269 + p.pretty_break(unwrapped1270) } else { _dollar_dollar := msg - var _t1690 *pb.MonoidDef + var _t1716 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1690 = _dollar_dollar.GetMonoidDef() + _t1716 = _dollar_dollar.GetMonoidDef() } - deconstruct_result1254 := _t1690 - if deconstruct_result1254 != nil { - unwrapped1255 := deconstruct_result1254 - p.pretty_monoid_def(unwrapped1255) + deconstruct_result1267 := _t1716 + if deconstruct_result1267 != nil { + unwrapped1268 := deconstruct_result1267 + p.pretty_monoid_def(unwrapped1268) } else { _dollar_dollar := msg - var _t1691 *pb.MonusDef + var _t1717 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1691 = _dollar_dollar.GetMonusDef() + _t1717 = _dollar_dollar.GetMonusDef() } - deconstruct_result1252 := _t1691 - if deconstruct_result1252 != nil { - unwrapped1253 := deconstruct_result1252 - p.pretty_monus_def(unwrapped1253) + deconstruct_result1265 := _t1717 + if deconstruct_result1265 != nil { + unwrapped1266 := deconstruct_result1265 + p.pretty_monus_def(unwrapped1266) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -3135,32 +3153,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) + flat1282 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1282 != nil { + p.write(*flat1282) return nil } else { _dollar_dollar := msg - var _t1692 []*pb.Attribute + var _t1718 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1692 = _dollar_dollar.GetAttrs() + _t1718 = _dollar_dollar.GetAttrs() } - fields1263 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1692} - unwrapped_fields1264 := fields1263 + fields1276 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1718} + unwrapped_fields1277 := fields1276 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1265 := unwrapped_fields1264[0].(*pb.RelationId) - p.pretty_relation_id(field1265) + field1278 := unwrapped_fields1277[0].(*pb.RelationId) + p.pretty_relation_id(field1278) p.newline() - field1266 := unwrapped_fields1264[1].(*pb.Abstraction) - p.pretty_abstraction(field1266) - field1267 := unwrapped_fields1264[2].([]*pb.Attribute) - if field1267 != nil { + field1279 := unwrapped_fields1277[1].(*pb.Abstraction) + p.pretty_abstraction(field1279) + field1280 := unwrapped_fields1277[2].([]*pb.Attribute) + if field1280 != nil { p.newline() - opt_val1268 := field1267 - p.pretty_attrs(opt_val1268) + opt_val1281 := field1280 + p.pretty_attrs(opt_val1281) } p.dedent() p.write(")") @@ -3169,32 +3187,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) + flat1289 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1289 != nil { + p.write(*flat1289) return nil } else { _dollar_dollar := msg - var _t1693 []*pb.Attribute + var _t1719 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1693 = _dollar_dollar.GetAttrs() + _t1719 = _dollar_dollar.GetAttrs() } - fields1270 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1693} - unwrapped_fields1271 := fields1270 + fields1283 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1719} + unwrapped_fields1284 := fields1283 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1272 := unwrapped_fields1271[0].(*pb.RelationId) - p.pretty_relation_id(field1272) + field1285 := unwrapped_fields1284[0].(*pb.RelationId) + p.pretty_relation_id(field1285) p.newline() - field1273 := unwrapped_fields1271[1].([]interface{}) - p.pretty_abstraction_with_arity(field1273) - field1274 := unwrapped_fields1271[2].([]*pb.Attribute) - if field1274 != nil { + field1286 := unwrapped_fields1284[1].([]interface{}) + p.pretty_abstraction_with_arity(field1286) + field1287 := unwrapped_fields1284[2].([]*pb.Attribute) + if field1287 != nil { p.newline() - opt_val1275 := field1274 - p.pretty_attrs(opt_val1275) + opt_val1288 := field1287 + p.pretty_attrs(opt_val1288) } p.dedent() p.write(")") @@ -3203,22 +3221,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) + flat1294 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1294 != nil { + p.write(*flat1294) 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 + _t1720 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + fields1290 := []interface{}{_t1720, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + unwrapped_fields1291 := fields1290 p.write("(") p.indent() - field1279 := unwrapped_fields1278[0].([]interface{}) - p.pretty_bindings(field1279) + field1292 := unwrapped_fields1291[0].([]interface{}) + p.pretty_bindings(field1292) p.newline() - field1280 := unwrapped_fields1278[1].(*pb.Formula) - p.pretty_formula(field1280) + field1293 := unwrapped_fields1291[1].(*pb.Formula) + p.pretty_formula(field1293) p.dedent() p.write(")") } @@ -3226,32 +3244,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) + flat1301 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1301 != nil { + p.write(*flat1301) return nil } else { _dollar_dollar := msg - var _t1695 []*pb.Attribute + var _t1721 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1695 = _dollar_dollar.GetAttrs() + _t1721 = _dollar_dollar.GetAttrs() } - fields1282 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1695} - unwrapped_fields1283 := fields1282 + fields1295 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1721} + unwrapped_fields1296 := fields1295 p.write("(") p.write("break") p.indentSexp() p.newline() - field1284 := unwrapped_fields1283[0].(*pb.RelationId) - p.pretty_relation_id(field1284) + field1297 := unwrapped_fields1296[0].(*pb.RelationId) + p.pretty_relation_id(field1297) p.newline() - field1285 := unwrapped_fields1283[1].(*pb.Abstraction) - p.pretty_abstraction(field1285) - field1286 := unwrapped_fields1283[2].([]*pb.Attribute) - if field1286 != nil { + field1298 := unwrapped_fields1296[1].(*pb.Abstraction) + p.pretty_abstraction(field1298) + field1299 := unwrapped_fields1296[2].([]*pb.Attribute) + if field1299 != nil { p.newline() - opt_val1287 := field1286 - p.pretty_attrs(opt_val1287) + opt_val1300 := field1299 + p.pretty_attrs(opt_val1300) } p.dedent() p.write(")") @@ -3260,35 +3278,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) + flat1309 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1309 != nil { + p.write(*flat1309) return nil } else { _dollar_dollar := msg - var _t1696 []*pb.Attribute + var _t1722 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1696 = _dollar_dollar.GetAttrs() + _t1722 = _dollar_dollar.GetAttrs() } - fields1289 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1696} - unwrapped_fields1290 := fields1289 + fields1302 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1722} + unwrapped_fields1303 := fields1302 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1291 := unwrapped_fields1290[0].(*pb.Monoid) - p.pretty_monoid(field1291) + field1304 := unwrapped_fields1303[0].(*pb.Monoid) + p.pretty_monoid(field1304) p.newline() - field1292 := unwrapped_fields1290[1].(*pb.RelationId) - p.pretty_relation_id(field1292) + field1305 := unwrapped_fields1303[1].(*pb.RelationId) + p.pretty_relation_id(field1305) p.newline() - field1293 := unwrapped_fields1290[2].([]interface{}) - p.pretty_abstraction_with_arity(field1293) - field1294 := unwrapped_fields1290[3].([]*pb.Attribute) - if field1294 != nil { + field1306 := unwrapped_fields1303[2].([]interface{}) + p.pretty_abstraction_with_arity(field1306) + field1307 := unwrapped_fields1303[3].([]*pb.Attribute) + if field1307 != nil { p.newline() - opt_val1295 := field1294 - p.pretty_attrs(opt_val1295) + opt_val1308 := field1307 + p.pretty_attrs(opt_val1308) } p.dedent() p.write(")") @@ -3297,50 +3315,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) + flat1318 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1318 != nil { + p.write(*flat1318) return nil } else { _dollar_dollar := msg - var _t1697 *pb.OrMonoid + var _t1723 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1697 = _dollar_dollar.GetOrMonoid() + _t1723 = _dollar_dollar.GetOrMonoid() } - deconstruct_result1303 := _t1697 - if deconstruct_result1303 != nil { - unwrapped1304 := deconstruct_result1303 - p.pretty_or_monoid(unwrapped1304) + deconstruct_result1316 := _t1723 + if deconstruct_result1316 != nil { + unwrapped1317 := deconstruct_result1316 + p.pretty_or_monoid(unwrapped1317) } else { _dollar_dollar := msg - var _t1698 *pb.MinMonoid + var _t1724 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1698 = _dollar_dollar.GetMinMonoid() + _t1724 = _dollar_dollar.GetMinMonoid() } - deconstruct_result1301 := _t1698 - if deconstruct_result1301 != nil { - unwrapped1302 := deconstruct_result1301 - p.pretty_min_monoid(unwrapped1302) + deconstruct_result1314 := _t1724 + if deconstruct_result1314 != nil { + unwrapped1315 := deconstruct_result1314 + p.pretty_min_monoid(unwrapped1315) } else { _dollar_dollar := msg - var _t1699 *pb.MaxMonoid + var _t1725 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1699 = _dollar_dollar.GetMaxMonoid() + _t1725 = _dollar_dollar.GetMaxMonoid() } - deconstruct_result1299 := _t1699 - if deconstruct_result1299 != nil { - unwrapped1300 := deconstruct_result1299 - p.pretty_max_monoid(unwrapped1300) + deconstruct_result1312 := _t1725 + if deconstruct_result1312 != nil { + unwrapped1313 := deconstruct_result1312 + p.pretty_max_monoid(unwrapped1313) } else { _dollar_dollar := msg - var _t1700 *pb.SumMonoid + var _t1726 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1700 = _dollar_dollar.GetSumMonoid() + _t1726 = _dollar_dollar.GetSumMonoid() } - deconstruct_result1297 := _t1700 - if deconstruct_result1297 != nil { - unwrapped1298 := deconstruct_result1297 - p.pretty_sum_monoid(unwrapped1298) + deconstruct_result1310 := _t1726 + if deconstruct_result1310 != nil { + unwrapped1311 := deconstruct_result1310 + p.pretty_sum_monoid(unwrapped1311) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -3352,8 +3370,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1306 := msg - _ = fields1306 + fields1319 := msg + _ = fields1319 p.write("(") p.write("or") p.write(")") @@ -3361,19 +3379,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) + flat1322 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1322 != nil { + p.write(*flat1322) return nil } else { _dollar_dollar := msg - fields1307 := _dollar_dollar.GetType() - unwrapped_fields1308 := fields1307 + fields1320 := _dollar_dollar.GetType() + unwrapped_fields1321 := fields1320 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1308) + p.pretty_type(unwrapped_fields1321) p.dedent() p.write(")") } @@ -3381,19 +3399,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) + flat1325 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1325 != nil { + p.write(*flat1325) return nil } else { _dollar_dollar := msg - fields1310 := _dollar_dollar.GetType() - unwrapped_fields1311 := fields1310 + fields1323 := _dollar_dollar.GetType() + unwrapped_fields1324 := fields1323 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1311) + p.pretty_type(unwrapped_fields1324) p.dedent() p.write(")") } @@ -3401,19 +3419,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) + flat1328 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1328 != nil { + p.write(*flat1328) return nil } else { _dollar_dollar := msg - fields1313 := _dollar_dollar.GetType() - unwrapped_fields1314 := fields1313 + fields1326 := _dollar_dollar.GetType() + unwrapped_fields1327 := fields1326 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1314) + p.pretty_type(unwrapped_fields1327) p.dedent() p.write(")") } @@ -3421,35 +3439,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) + flat1336 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1336 != nil { + p.write(*flat1336) return nil } else { _dollar_dollar := msg - var _t1701 []*pb.Attribute + var _t1727 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1701 = _dollar_dollar.GetAttrs() + _t1727 = _dollar_dollar.GetAttrs() } - fields1316 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1701} - unwrapped_fields1317 := fields1316 + fields1329 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1727} + unwrapped_fields1330 := fields1329 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1318 := unwrapped_fields1317[0].(*pb.Monoid) - p.pretty_monoid(field1318) + field1331 := unwrapped_fields1330[0].(*pb.Monoid) + p.pretty_monoid(field1331) p.newline() - field1319 := unwrapped_fields1317[1].(*pb.RelationId) - p.pretty_relation_id(field1319) + field1332 := unwrapped_fields1330[1].(*pb.RelationId) + p.pretty_relation_id(field1332) p.newline() - field1320 := unwrapped_fields1317[2].([]interface{}) - p.pretty_abstraction_with_arity(field1320) - field1321 := unwrapped_fields1317[3].([]*pb.Attribute) - if field1321 != nil { + field1333 := unwrapped_fields1330[2].([]interface{}) + p.pretty_abstraction_with_arity(field1333) + field1334 := unwrapped_fields1330[3].([]*pb.Attribute) + if field1334 != nil { p.newline() - opt_val1322 := field1321 - p.pretty_attrs(opt_val1322) + opt_val1335 := field1334 + p.pretty_attrs(opt_val1335) } p.dedent() p.write(")") @@ -3458,29 +3476,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) + flat1343 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1343 != nil { + p.write(*flat1343) 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 + fields1337 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} + unwrapped_fields1338 := fields1337 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1326 := unwrapped_fields1325[0].(*pb.RelationId) - p.pretty_relation_id(field1326) + field1339 := unwrapped_fields1338[0].(*pb.RelationId) + p.pretty_relation_id(field1339) p.newline() - field1327 := unwrapped_fields1325[1].(*pb.Abstraction) - p.pretty_abstraction(field1327) + field1340 := unwrapped_fields1338[1].(*pb.Abstraction) + p.pretty_abstraction(field1340) p.newline() - field1328 := unwrapped_fields1325[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1328) + field1341 := unwrapped_fields1338[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1341) p.newline() - field1329 := unwrapped_fields1325[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1329) + field1342 := unwrapped_fields1338[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1342) p.dedent() p.write(")") } @@ -3488,22 +3506,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) + flat1347 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1347 != nil { + p.write(*flat1347) return nil } else { - fields1331 := msg + fields1344 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1331) == 0) { + if !(len(fields1344) == 0) { p.newline() - for i1333, elem1332 := range fields1331 { - if (i1333 > 0) { + for i1346, elem1345 := range fields1344 { + if (i1346 > 0) { p.newline() } - p.pretty_var(elem1332) + p.pretty_var(elem1345) } } p.dedent() @@ -3513,22 +3531,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) + flat1351 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1351 != nil { + p.write(*flat1351) return nil } else { - fields1335 := msg + fields1348 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1335) == 0) { + if !(len(fields1348) == 0) { p.newline() - for i1337, elem1336 := range fields1335 { - if (i1337 > 0) { + for i1350, elem1349 := range fields1348 { + if (i1350 > 0) { p.newline() } - p.pretty_var(elem1336) + p.pretty_var(elem1349) } } p.dedent() @@ -3538,50 +3556,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) + flat1360 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1360 != nil { + p.write(*flat1360) return nil } else { _dollar_dollar := msg - var _t1702 *pb.EDB + var _t1728 *pb.EDB if hasProtoField(_dollar_dollar, "edb") { - _t1702 = _dollar_dollar.GetEdb() + _t1728 = _dollar_dollar.GetEdb() } - deconstruct_result1345 := _t1702 - if deconstruct_result1345 != nil { - unwrapped1346 := deconstruct_result1345 - p.pretty_edb(unwrapped1346) + deconstruct_result1358 := _t1728 + if deconstruct_result1358 != nil { + unwrapped1359 := deconstruct_result1358 + p.pretty_edb(unwrapped1359) } else { _dollar_dollar := msg - var _t1703 *pb.BeTreeRelation + var _t1729 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1703 = _dollar_dollar.GetBetreeRelation() + _t1729 = _dollar_dollar.GetBetreeRelation() } - deconstruct_result1343 := _t1703 - if deconstruct_result1343 != nil { - unwrapped1344 := deconstruct_result1343 - p.pretty_betree_relation(unwrapped1344) + deconstruct_result1356 := _t1729 + if deconstruct_result1356 != nil { + unwrapped1357 := deconstruct_result1356 + p.pretty_betree_relation(unwrapped1357) } else { _dollar_dollar := msg - var _t1704 *pb.CSVData + var _t1730 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1704 = _dollar_dollar.GetCsvData() + _t1730 = _dollar_dollar.GetCsvData() } - deconstruct_result1341 := _t1704 - if deconstruct_result1341 != nil { - unwrapped1342 := deconstruct_result1341 - p.pretty_csv_data(unwrapped1342) + deconstruct_result1354 := _t1730 + if deconstruct_result1354 != nil { + unwrapped1355 := deconstruct_result1354 + p.pretty_csv_data(unwrapped1355) } else { _dollar_dollar := msg - var _t1705 *pb.IcebergData + var _t1731 *pb.IcebergData if hasProtoField(_dollar_dollar, "iceberg_data") { - _t1705 = _dollar_dollar.GetIcebergData() + _t1731 = _dollar_dollar.GetIcebergData() } - deconstruct_result1339 := _t1705 - if deconstruct_result1339 != nil { - unwrapped1340 := deconstruct_result1339 - p.pretty_iceberg_data(unwrapped1340) + deconstruct_result1352 := _t1731 + if deconstruct_result1352 != nil { + unwrapped1353 := deconstruct_result1352 + p.pretty_iceberg_data(unwrapped1353) } else { panic(ParseError{msg: "No matching rule for data"}) } @@ -3593,26 +3611,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) + flat1366 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) + if flat1366 != nil { + p.write(*flat1366) return nil } else { _dollar_dollar := msg - fields1348 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} - unwrapped_fields1349 := fields1348 + fields1361 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} + unwrapped_fields1362 := fields1361 p.write("(") p.write("edb") p.indentSexp() p.newline() - field1350 := unwrapped_fields1349[0].(*pb.RelationId) - p.pretty_relation_id(field1350) + field1363 := unwrapped_fields1362[0].(*pb.RelationId) + p.pretty_relation_id(field1363) p.newline() - field1351 := unwrapped_fields1349[1].([]string) - p.pretty_edb_path(field1351) + field1364 := unwrapped_fields1362[1].([]string) + p.pretty_edb_path(field1364) p.newline() - field1352 := unwrapped_fields1349[2].([]*pb.Type) - p.pretty_edb_types(field1352) + field1365 := unwrapped_fields1362[2].([]*pb.Type) + p.pretty_edb_types(field1365) p.dedent() p.write(")") } @@ -3620,19 +3638,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) + flat1370 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) + if flat1370 != nil { + p.write(*flat1370) return nil } else { - fields1354 := msg + fields1367 := msg p.write("[") p.indent() - for i1356, elem1355 := range fields1354 { - if (i1356 > 0) { + for i1369, elem1368 := range fields1367 { + if (i1369 > 0) { p.newline() } - p.write(p.formatStringValue(elem1355)) + p.write(p.formatStringValue(elem1368)) } p.dedent() p.write("]") @@ -3641,19 +3659,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) + flat1374 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) + if flat1374 != nil { + p.write(*flat1374) return nil } else { - fields1358 := msg + fields1371 := msg p.write("[") p.indent() - for i1360, elem1359 := range fields1358 { - if (i1360 > 0) { + for i1373, elem1372 := range fields1371 { + if (i1373 > 0) { p.newline() } - p.pretty_type(elem1359) + p.pretty_type(elem1372) } p.dedent() p.write("]") @@ -3662,23 +3680,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) + flat1379 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1379 != nil { + p.write(*flat1379) return nil } else { _dollar_dollar := msg - fields1362 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} - unwrapped_fields1363 := fields1362 + fields1375 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} + unwrapped_fields1376 := fields1375 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1364 := unwrapped_fields1363[0].(*pb.RelationId) - p.pretty_relation_id(field1364) + field1377 := unwrapped_fields1376[0].(*pb.RelationId) + p.pretty_relation_id(field1377) p.newline() - field1365 := unwrapped_fields1363[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1365) + field1378 := unwrapped_fields1376[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1378) p.dedent() p.write(")") } @@ -3686,27 +3704,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) + flat1385 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1385 != nil { + p.write(*flat1385) 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 + _t1732 := p.deconstruct_betree_info_config(_dollar_dollar) + fields1380 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1732} + unwrapped_fields1381 := fields1380 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1369 := unwrapped_fields1368[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1369) + field1382 := unwrapped_fields1381[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1382) p.newline() - field1370 := unwrapped_fields1368[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1370) + field1383 := unwrapped_fields1381[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1383) p.newline() - field1371 := unwrapped_fields1368[2].([][]interface{}) - p.pretty_config_dict(field1371) + field1384 := unwrapped_fields1381[2].([][]interface{}) + p.pretty_config_dict(field1384) p.dedent() p.write(")") } @@ -3714,22 +3732,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) + flat1389 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1389 != nil { + p.write(*flat1389) return nil } else { - fields1373 := msg + fields1386 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1373) == 0) { + if !(len(fields1386) == 0) { p.newline() - for i1375, elem1374 := range fields1373 { - if (i1375 > 0) { + for i1388, elem1387 := range fields1386 { + if (i1388 > 0) { p.newline() } - p.pretty_type(elem1374) + p.pretty_type(elem1387) } } p.dedent() @@ -3739,22 +3757,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) + flat1393 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1393 != nil { + p.write(*flat1393) return nil } else { - fields1377 := msg + fields1390 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1377) == 0) { + if !(len(fields1390) == 0) { p.newline() - for i1379, elem1378 := range fields1377 { - if (i1379 > 0) { + for i1392, elem1391 := range fields1390 { + if (i1392 > 0) { p.newline() } - p.pretty_type(elem1378) + p.pretty_type(elem1391) } } p.dedent() @@ -3764,29 +3782,40 @@ 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) + flat1403 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1403 != nil { + p.write(*flat1403) return nil } else { _dollar_dollar := msg - fields1381 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} - unwrapped_fields1382 := fields1381 + _t1733 := p.deconstruct_csv_data_columns_optional(_dollar_dollar) + _t1734 := p.deconstruct_csv_data_target_optional(_dollar_dollar) + fields1394 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _t1733, _t1734, _dollar_dollar.GetAsof()} + unwrapped_fields1395 := fields1394 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1383 := unwrapped_fields1382[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1383) + field1396 := unwrapped_fields1395[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1396) p.newline() - field1384 := unwrapped_fields1382[1].(*pb.CSVConfig) - p.pretty_csv_config(field1384) - p.newline() - field1385 := unwrapped_fields1382[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1385) + field1397 := unwrapped_fields1395[1].(*pb.CSVConfig) + p.pretty_csv_config(field1397) + field1398 := unwrapped_fields1395[2].([]*pb.GNFColumn) + if field1398 != nil { + p.newline() + opt_val1399 := field1398 + p.pretty_gnf_columns(opt_val1399) + } + field1400 := unwrapped_fields1395[3].(*pb.CSVTarget) + if field1400 != nil { + p.newline() + opt_val1401 := field1400 + p.pretty_csv_table(opt_val1401) + } p.newline() - field1386 := unwrapped_fields1382[3].(string) - p.pretty_csv_asof(field1386) + field1402 := unwrapped_fields1395[4].(string) + p.pretty_csv_asof(field1402) p.dedent() p.write(")") } @@ -3794,36 +3823,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) + flat1410 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1410 != nil { + p.write(*flat1410) return nil } else { _dollar_dollar := msg - var _t1707 []string + var _t1735 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1707 = _dollar_dollar.GetPaths() + _t1735 = _dollar_dollar.GetPaths() } - var _t1708 *string + var _t1736 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1708 = ptr(string(_dollar_dollar.GetInlineData())) + _t1736 = ptr(string(_dollar_dollar.GetInlineData())) } - fields1388 := []interface{}{_t1707, _t1708} - unwrapped_fields1389 := fields1388 + fields1404 := []interface{}{_t1735, _t1736} + unwrapped_fields1405 := fields1404 p.write("(") p.write("csv_locator") p.indentSexp() - field1390 := unwrapped_fields1389[0].([]string) - if field1390 != nil { + field1406 := unwrapped_fields1405[0].([]string) + if field1406 != nil { p.newline() - opt_val1391 := field1390 - p.pretty_csv_locator_paths(opt_val1391) + opt_val1407 := field1406 + p.pretty_csv_locator_paths(opt_val1407) } - field1392 := unwrapped_fields1389[1].(*string) - if field1392 != nil { + field1408 := unwrapped_fields1405[1].(*string) + if field1408 != nil { p.newline() - opt_val1393 := *field1392 - p.pretty_csv_locator_inline_data(opt_val1393) + opt_val1409 := *field1408 + p.pretty_csv_locator_inline_data(opt_val1409) } p.dedent() p.write(")") @@ -3832,22 +3861,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) + flat1414 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1414 != nil { + p.write(*flat1414) return nil } else { - fields1395 := msg + fields1411 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1395) == 0) { + if !(len(fields1411) == 0) { p.newline() - for i1397, elem1396 := range fields1395 { - if (i1397 > 0) { + for i1413, elem1412 := range fields1411 { + if (i1413 > 0) { p.newline() } - p.write(p.formatStringValue(elem1396)) + p.write(p.formatStringValue(elem1412)) } } p.dedent() @@ -3857,17 +3886,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) + flat1416 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1416 != nil { + p.write(*flat1416) return nil } else { - fields1399 := msg + fields1415 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1399)) + p.write(p.formatStringValue(fields1415)) p.dedent() p.write(")") } @@ -3875,20 +3904,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) + flat1419 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1419 != nil { + p.write(*flat1419) return nil } else { _dollar_dollar := msg - _t1709 := p.deconstruct_csv_config(_dollar_dollar) - fields1401 := _t1709 - unwrapped_fields1402 := fields1401 + _t1737 := p.deconstruct_csv_config(_dollar_dollar) + fields1417 := _t1737 + unwrapped_fields1418 := fields1417 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields1402) + p.pretty_config_dict(unwrapped_fields1418) p.dedent() p.write(")") } @@ -3896,22 +3925,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) + flat1423 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) + if flat1423 != nil { + p.write(*flat1423) return nil } else { - fields1404 := msg + fields1420 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1404) == 0) { + if !(len(fields1420) == 0) { p.newline() - for i1406, elem1405 := range fields1404 { - if (i1406 > 0) { + for i1422, elem1421 := range fields1420 { + if (i1422 > 0) { p.newline() } - p.pretty_gnf_column(elem1405) + p.pretty_gnf_column(elem1421) } } p.dedent() @@ -3921,38 +3950,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) + flat1432 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) + if flat1432 != nil { + p.write(*flat1432) return nil } else { _dollar_dollar := msg - var _t1710 *pb.RelationId + var _t1738 *pb.RelationId if hasProtoField(_dollar_dollar, "target_id") { - _t1710 = _dollar_dollar.GetTargetId() + _t1738 = _dollar_dollar.GetTargetId() } - fields1408 := []interface{}{_dollar_dollar.GetColumnPath(), _t1710, _dollar_dollar.GetTypes()} - unwrapped_fields1409 := fields1408 + fields1424 := []interface{}{_dollar_dollar.GetColumnPath(), _t1738, _dollar_dollar.GetTypes()} + unwrapped_fields1425 := fields1424 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 { + field1426 := unwrapped_fields1425[0].([]string) + p.pretty_gnf_column_path(field1426) + field1427 := unwrapped_fields1425[1].(*pb.RelationId) + if field1427 != nil { p.newline() - opt_val1412 := field1411 - p.pretty_relation_id(opt_val1412) + opt_val1428 := field1427 + p.pretty_relation_id(opt_val1428) } p.newline() p.write("[") - field1413 := unwrapped_fields1409[2].([]*pb.Type) - for i1415, elem1414 := range field1413 { - if (i1415 > 0) { + field1429 := unwrapped_fields1425[2].([]*pb.Type) + for i1431, elem1430 := range field1429 { + if (i1431 > 0) { p.newline() } - p.pretty_type(elem1414) + p.pretty_type(elem1430) } p.write("]") p.dedent() @@ -3962,36 +3991,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) + flat1439 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) + if flat1439 != nil { + p.write(*flat1439) return nil } else { _dollar_dollar := msg - var _t1711 *string + var _t1739 *string if int64(len(_dollar_dollar)) == 1 { - _t1711 = ptr(_dollar_dollar[0]) + _t1739 = ptr(_dollar_dollar[0]) } - deconstruct_result1421 := _t1711 - if deconstruct_result1421 != nil { - unwrapped1422 := *deconstruct_result1421 - p.write(p.formatStringValue(unwrapped1422)) + deconstruct_result1437 := _t1739 + if deconstruct_result1437 != nil { + unwrapped1438 := *deconstruct_result1437 + p.write(p.formatStringValue(unwrapped1438)) } else { _dollar_dollar := msg - var _t1712 []string + var _t1740 []string if int64(len(_dollar_dollar)) != 1 { - _t1712 = _dollar_dollar + _t1740 = _dollar_dollar } - deconstruct_result1417 := _t1712 - if deconstruct_result1417 != nil { - unwrapped1418 := deconstruct_result1417 + deconstruct_result1433 := _t1740 + if deconstruct_result1433 != nil { + unwrapped1434 := deconstruct_result1433 p.write("[") p.indent() - for i1420, elem1419 := range unwrapped1418 { - if (i1420 > 0) { + for i1436, elem1435 := range unwrapped1434 { + if (i1436 > 0) { p.newline() } - p.write(p.formatStringValue(elem1419)) + p.write(p.formatStringValue(elem1435)) } p.dedent() p.write("]") @@ -4003,18 +4032,59 @@ func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { return nil } +func (p *PrettyPrinter) pretty_csv_table(msg *pb.CSVTarget) interface{} { + flat1449 := p.tryFlat(msg, func() { p.pretty_csv_table(msg) }) + if flat1449 != nil { + p.write(*flat1449) + return nil + } else { + _dollar_dollar := msg + fields1440 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetColumnNames(), _dollar_dollar.GetTypes()} + unwrapped_fields1441 := fields1440 + p.write("(") + p.write("table") + p.indentSexp() + p.newline() + field1442 := unwrapped_fields1441[0].(*pb.RelationId) + p.pretty_relation_id(field1442) + p.newline() + p.write("[") + field1443 := unwrapped_fields1441[1].([]string) + for i1445, elem1444 := range field1443 { + if (i1445 > 0) { + p.newline() + } + p.write(p.formatStringValue(elem1444)) + } + p.write("]") + p.newline() + p.write("[") + field1446 := unwrapped_fields1441[2].([]*pb.Type) + for i1448, elem1447 := range field1446 { + if (i1448 > 0) { + p.newline() + } + p.pretty_type(elem1447) + } + p.write("]") + p.dedent() + p.write(")") + } + return nil +} + 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) + flat1451 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1451 != nil { + p.write(*flat1451) return nil } else { - fields1424 := msg + fields1450 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1424)) + p.write(p.formatStringValue(fields1450)) p.dedent() p.write(")") } @@ -4022,43 +4092,43 @@ 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) + flat1462 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) + if flat1462 != nil { + p.write(*flat1462) 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 + _t1741 := p.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1742 := p.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1452 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _t1741, _t1742, _dollar_dollar.GetReturnsDelta()} + unwrapped_fields1453 := fields1452 p.write("(") p.write("iceberg_data") p.indentSexp() p.newline() - field1428 := unwrapped_fields1427[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1428) + field1454 := unwrapped_fields1453[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1454) p.newline() - field1429 := unwrapped_fields1427[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1429) + field1455 := unwrapped_fields1453[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1455) p.newline() - field1430 := unwrapped_fields1427[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1430) - field1431 := unwrapped_fields1427[3].(*string) - if field1431 != nil { + field1456 := unwrapped_fields1453[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1456) + field1457 := unwrapped_fields1453[3].(*string) + if field1457 != nil { p.newline() - opt_val1432 := *field1431 - p.pretty_iceberg_from_snapshot(opt_val1432) + opt_val1458 := *field1457 + p.pretty_iceberg_from_snapshot(opt_val1458) } - field1433 := unwrapped_fields1427[4].(*string) - if field1433 != nil { + field1459 := unwrapped_fields1453[4].(*string) + if field1459 != nil { p.newline() - opt_val1434 := *field1433 - p.pretty_iceberg_to_snapshot(opt_val1434) + opt_val1460 := *field1459 + p.pretty_iceberg_to_snapshot(opt_val1460) } p.newline() - field1435 := unwrapped_fields1427[5].(bool) - p.pretty_boolean_value(field1435) + field1461 := unwrapped_fields1453[5].(bool) + p.pretty_boolean_value(field1461) p.dedent() p.write(")") } @@ -4066,26 +4136,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) + flat1468 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) + if flat1468 != nil { + p.write(*flat1468) return nil } else { _dollar_dollar := msg - fields1437 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} - unwrapped_fields1438 := fields1437 + fields1463 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} + unwrapped_fields1464 := fields1463 p.write("(") p.write("iceberg_locator") p.indentSexp() p.newline() - field1439 := unwrapped_fields1438[0].(string) - p.pretty_iceberg_locator_table_name(field1439) + field1465 := unwrapped_fields1464[0].(string) + p.pretty_iceberg_locator_table_name(field1465) p.newline() - field1440 := unwrapped_fields1438[1].([]string) - p.pretty_iceberg_locator_namespace(field1440) + field1466 := unwrapped_fields1464[1].([]string) + p.pretty_iceberg_locator_namespace(field1466) p.newline() - field1441 := unwrapped_fields1438[2].(string) - p.pretty_iceberg_locator_warehouse(field1441) + field1467 := unwrapped_fields1464[2].(string) + p.pretty_iceberg_locator_warehouse(field1467) p.dedent() p.write(")") } @@ -4093,17 +4163,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) + flat1470 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_table_name(msg) }) + if flat1470 != nil { + p.write(*flat1470) return nil } else { - fields1443 := msg + fields1469 := msg p.write("(") p.write("table_name") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1443)) + p.write(p.formatStringValue(fields1469)) p.dedent() p.write(")") } @@ -4111,22 +4181,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) + flat1474 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) + if flat1474 != nil { + p.write(*flat1474) return nil } else { - fields1445 := msg + fields1471 := msg p.write("(") p.write("namespace") p.indentSexp() - if !(len(fields1445) == 0) { + if !(len(fields1471) == 0) { p.newline() - for i1447, elem1446 := range fields1445 { - if (i1447 > 0) { + for i1473, elem1472 := range fields1471 { + if (i1473 > 0) { p.newline() } - p.write(p.formatStringValue(elem1446)) + p.write(p.formatStringValue(elem1472)) } } p.dedent() @@ -4136,17 +4206,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) + flat1476 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_warehouse(msg) }) + if flat1476 != nil { + p.write(*flat1476) return nil } else { - fields1449 := msg + fields1475 := msg p.write("(") p.write("warehouse") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1449)) + p.write(p.formatStringValue(fields1475)) p.dedent() p.write(")") } @@ -4154,33 +4224,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) + flat1484 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config(msg) }) + if flat1484 != nil { + p.write(*flat1484) 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 + _t1743 := p.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1477 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1743, dictToPairs(_dollar_dollar.GetProperties()), dictToPairs(_dollar_dollar.GetAuthProperties())} + unwrapped_fields1478 := fields1477 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 { + field1479 := unwrapped_fields1478[0].(string) + p.pretty_iceberg_catalog_uri(field1479) + field1480 := unwrapped_fields1478[1].(*string) + if field1480 != nil { p.newline() - opt_val1455 := *field1454 - p.pretty_iceberg_catalog_config_scope(opt_val1455) + opt_val1481 := *field1480 + p.pretty_iceberg_catalog_config_scope(opt_val1481) } p.newline() - field1456 := unwrapped_fields1452[2].([][]interface{}) - p.pretty_iceberg_properties(field1456) + field1482 := unwrapped_fields1478[2].([][]interface{}) + p.pretty_iceberg_properties(field1482) p.newline() - field1457 := unwrapped_fields1452[3].([][]interface{}) - p.pretty_iceberg_auth_properties(field1457) + field1483 := unwrapped_fields1478[3].([][]interface{}) + p.pretty_iceberg_auth_properties(field1483) p.dedent() p.write(")") } @@ -4188,17 +4258,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) + flat1486 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_uri(msg) }) + if flat1486 != nil { + p.write(*flat1486) return nil } else { - fields1459 := msg + fields1485 := msg p.write("(") p.write("catalog_uri") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1459)) + p.write(p.formatStringValue(fields1485)) p.dedent() p.write(")") } @@ -4206,17 +4276,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) + flat1488 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config_scope(msg) }) + if flat1488 != nil { + p.write(*flat1488) return nil } else { - fields1461 := msg + fields1487 := msg p.write("(") p.write("scope") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1461)) + p.write(p.formatStringValue(fields1487)) p.dedent() p.write(")") } @@ -4224,22 +4294,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) + flat1492 := p.tryFlat(msg, func() { p.pretty_iceberg_properties(msg) }) + if flat1492 != nil { + p.write(*flat1492) return nil } else { - fields1463 := msg + fields1489 := msg p.write("(") p.write("properties") p.indentSexp() - if !(len(fields1463) == 0) { + if !(len(fields1489) == 0) { p.newline() - for i1465, elem1464 := range fields1463 { - if (i1465 > 0) { + for i1491, elem1490 := range fields1489 { + if (i1491 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1464) + p.pretty_iceberg_property_entry(elem1490) } } p.dedent() @@ -4249,23 +4319,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) + flat1497 := p.tryFlat(msg, func() { p.pretty_iceberg_property_entry(msg) }) + if flat1497 != nil { + p.write(*flat1497) return nil } else { _dollar_dollar := msg - fields1467 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} - unwrapped_fields1468 := fields1467 + fields1493 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} + unwrapped_fields1494 := fields1493 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1469 := unwrapped_fields1468[0].(string) - p.write(p.formatStringValue(field1469)) + field1495 := unwrapped_fields1494[0].(string) + p.write(p.formatStringValue(field1495)) p.newline() - field1470 := unwrapped_fields1468[1].(string) - p.write(p.formatStringValue(field1470)) + field1496 := unwrapped_fields1494[1].(string) + p.write(p.formatStringValue(field1496)) p.dedent() p.write(")") } @@ -4273,22 +4343,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) + flat1501 := p.tryFlat(msg, func() { p.pretty_iceberg_auth_properties(msg) }) + if flat1501 != nil { + p.write(*flat1501) return nil } else { - fields1472 := msg + fields1498 := msg p.write("(") p.write("auth_properties") p.indentSexp() - if !(len(fields1472) == 0) { + if !(len(fields1498) == 0) { p.newline() - for i1474, elem1473 := range fields1472 { - if (i1474 > 0) { + for i1500, elem1499 := range fields1498 { + if (i1500 > 0) { p.newline() } - p.pretty_iceberg_masked_property_entry(elem1473) + p.pretty_iceberg_masked_property_entry(elem1499) } } p.dedent() @@ -4298,24 +4368,24 @@ 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) + flat1506 := p.tryFlat(msg, func() { p.pretty_iceberg_masked_property_entry(msg) }) + if flat1506 != nil { + p.write(*flat1506) return nil } else { _dollar_dollar := msg - _t1716 := p.mask_secret_value(_dollar_dollar) - fields1476 := []interface{}{_dollar_dollar[0].(string), _t1716} - unwrapped_fields1477 := fields1476 + _t1744 := p.mask_secret_value(_dollar_dollar) + fields1502 := []interface{}{_dollar_dollar[0].(string), _t1744} + unwrapped_fields1503 := fields1502 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1478 := unwrapped_fields1477[0].(string) - p.write(p.formatStringValue(field1478)) + field1504 := unwrapped_fields1503[0].(string) + p.write(p.formatStringValue(field1504)) p.newline() - field1479 := unwrapped_fields1477[1].(string) - p.write(p.formatStringValue(field1479)) + field1505 := unwrapped_fields1503[1].(string) + p.write(p.formatStringValue(field1505)) p.dedent() p.write(")") } @@ -4323,17 +4393,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) + flat1508 := p.tryFlat(msg, func() { p.pretty_iceberg_from_snapshot(msg) }) + if flat1508 != nil { + p.write(*flat1508) return nil } else { - fields1481 := msg + fields1507 := msg p.write("(") p.write("from_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1481)) + p.write(p.formatStringValue(fields1507)) p.dedent() p.write(")") } @@ -4341,17 +4411,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) + flat1510 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) + if flat1510 != nil { + p.write(*flat1510) return nil } else { - fields1483 := msg + fields1509 := msg p.write("(") p.write("to_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1483)) + p.write(p.formatStringValue(fields1509)) p.dedent() p.write(")") } @@ -4359,19 +4429,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) + flat1513 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1513 != nil { + p.write(*flat1513) return nil } else { _dollar_dollar := msg - fields1485 := _dollar_dollar.GetFragmentId() - unwrapped_fields1486 := fields1485 + fields1511 := _dollar_dollar.GetFragmentId() + unwrapped_fields1512 := fields1511 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1486) + p.pretty_fragment_id(unwrapped_fields1512) p.dedent() p.write(")") } @@ -4379,24 +4449,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) + flat1518 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1518 != nil { + p.write(*flat1518) return nil } else { _dollar_dollar := msg - fields1488 := _dollar_dollar.GetRelations() - unwrapped_fields1489 := fields1488 + fields1514 := _dollar_dollar.GetRelations() + unwrapped_fields1515 := fields1514 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1489) == 0) { + if !(len(unwrapped_fields1515) == 0) { p.newline() - for i1491, elem1490 := range unwrapped_fields1489 { - if (i1491 > 0) { + for i1517, elem1516 := range unwrapped_fields1515 { + if (i1517 > 0) { p.newline() } - p.pretty_relation_id(elem1490) + p.pretty_relation_id(elem1516) } } p.dedent() @@ -4406,28 +4476,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) + flat1525 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1525 != nil { + p.write(*flat1525) return nil } else { _dollar_dollar := msg - fields1493 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} - unwrapped_fields1494 := fields1493 + fields1519 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} + unwrapped_fields1520 := fields1519 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) { + field1521 := unwrapped_fields1520[0].([]string) + p.pretty_edb_path(field1521) + field1522 := unwrapped_fields1520[1].([]*pb.SnapshotMapping) + if !(len(field1522) == 0) { p.newline() - for i1498, elem1497 := range field1496 { - if (i1498 > 0) { + for i1524, elem1523 := range field1522 { + if (i1524 > 0) { p.newline() } - p.pretty_snapshot_mapping(elem1497) + p.pretty_snapshot_mapping(elem1523) } } p.dedent() @@ -4437,40 +4507,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) + flat1530 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) + if flat1530 != nil { + p.write(*flat1530) 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) + fields1526 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} + unwrapped_fields1527 := fields1526 + field1528 := unwrapped_fields1527[0].([]string) + p.pretty_edb_path(field1528) p.write(" ") - field1503 := unwrapped_fields1501[1].(*pb.RelationId) - p.pretty_relation_id(field1503) + field1529 := unwrapped_fields1527[1].(*pb.RelationId) + p.pretty_relation_id(field1529) } 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) + flat1534 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1534 != nil { + p.write(*flat1534) return nil } else { - fields1505 := msg + fields1531 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1505) == 0) { + if !(len(fields1531) == 0) { p.newline() - for i1507, elem1506 := range fields1505 { - if (i1507 > 0) { + for i1533, elem1532 := range fields1531 { + if (i1533 > 0) { p.newline() } - p.pretty_read(elem1506) + p.pretty_read(elem1532) } } p.dedent() @@ -4480,60 +4550,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) + flat1545 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1545 != nil { + p.write(*flat1545) return nil } else { _dollar_dollar := msg - var _t1717 *pb.Demand + var _t1745 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1717 = _dollar_dollar.GetDemand() + _t1745 = _dollar_dollar.GetDemand() } - deconstruct_result1517 := _t1717 - if deconstruct_result1517 != nil { - unwrapped1518 := deconstruct_result1517 - p.pretty_demand(unwrapped1518) + deconstruct_result1543 := _t1745 + if deconstruct_result1543 != nil { + unwrapped1544 := deconstruct_result1543 + p.pretty_demand(unwrapped1544) } else { _dollar_dollar := msg - var _t1718 *pb.Output + var _t1746 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1718 = _dollar_dollar.GetOutput() + _t1746 = _dollar_dollar.GetOutput() } - deconstruct_result1515 := _t1718 - if deconstruct_result1515 != nil { - unwrapped1516 := deconstruct_result1515 - p.pretty_output(unwrapped1516) + deconstruct_result1541 := _t1746 + if deconstruct_result1541 != nil { + unwrapped1542 := deconstruct_result1541 + p.pretty_output(unwrapped1542) } else { _dollar_dollar := msg - var _t1719 *pb.WhatIf + var _t1747 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1719 = _dollar_dollar.GetWhatIf() + _t1747 = _dollar_dollar.GetWhatIf() } - deconstruct_result1513 := _t1719 - if deconstruct_result1513 != nil { - unwrapped1514 := deconstruct_result1513 - p.pretty_what_if(unwrapped1514) + deconstruct_result1539 := _t1747 + if deconstruct_result1539 != nil { + unwrapped1540 := deconstruct_result1539 + p.pretty_what_if(unwrapped1540) } else { _dollar_dollar := msg - var _t1720 *pb.Abort + var _t1748 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1720 = _dollar_dollar.GetAbort() + _t1748 = _dollar_dollar.GetAbort() } - deconstruct_result1511 := _t1720 - if deconstruct_result1511 != nil { - unwrapped1512 := deconstruct_result1511 - p.pretty_abort(unwrapped1512) + deconstruct_result1537 := _t1748 + if deconstruct_result1537 != nil { + unwrapped1538 := deconstruct_result1537 + p.pretty_abort(unwrapped1538) } else { _dollar_dollar := msg - var _t1721 *pb.Export + var _t1749 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1721 = _dollar_dollar.GetExport() + _t1749 = _dollar_dollar.GetExport() } - deconstruct_result1509 := _t1721 - if deconstruct_result1509 != nil { - unwrapped1510 := deconstruct_result1509 - p.pretty_export(unwrapped1510) + deconstruct_result1535 := _t1749 + if deconstruct_result1535 != nil { + unwrapped1536 := deconstruct_result1535 + p.pretty_export(unwrapped1536) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -4546,19 +4616,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) + flat1548 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1548 != nil { + p.write(*flat1548) return nil } else { _dollar_dollar := msg - fields1520 := _dollar_dollar.GetRelationId() - unwrapped_fields1521 := fields1520 + fields1546 := _dollar_dollar.GetRelationId() + unwrapped_fields1547 := fields1546 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1521) + p.pretty_relation_id(unwrapped_fields1547) p.dedent() p.write(")") } @@ -4566,23 +4636,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) + flat1553 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1553 != nil { + p.write(*flat1553) return nil } else { _dollar_dollar := msg - fields1523 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} - unwrapped_fields1524 := fields1523 + fields1549 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} + unwrapped_fields1550 := fields1549 p.write("(") p.write("output") p.indentSexp() p.newline() - field1525 := unwrapped_fields1524[0].(string) - p.pretty_name(field1525) + field1551 := unwrapped_fields1550[0].(string) + p.pretty_name(field1551) p.newline() - field1526 := unwrapped_fields1524[1].(*pb.RelationId) - p.pretty_relation_id(field1526) + field1552 := unwrapped_fields1550[1].(*pb.RelationId) + p.pretty_relation_id(field1552) p.dedent() p.write(")") } @@ -4590,23 +4660,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) + flat1558 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1558 != nil { + p.write(*flat1558) return nil } else { _dollar_dollar := msg - fields1528 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} - unwrapped_fields1529 := fields1528 + fields1554 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} + unwrapped_fields1555 := fields1554 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1530 := unwrapped_fields1529[0].(string) - p.pretty_name(field1530) + field1556 := unwrapped_fields1555[0].(string) + p.pretty_name(field1556) p.newline() - field1531 := unwrapped_fields1529[1].(*pb.Epoch) - p.pretty_epoch(field1531) + field1557 := unwrapped_fields1555[1].(*pb.Epoch) + p.pretty_epoch(field1557) p.dedent() p.write(")") } @@ -4614,30 +4684,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) + flat1564 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1564 != nil { + p.write(*flat1564) return nil } else { _dollar_dollar := msg - var _t1722 *string + var _t1750 *string if _dollar_dollar.GetName() != "abort" { - _t1722 = ptr(_dollar_dollar.GetName()) + _t1750 = ptr(_dollar_dollar.GetName()) } - fields1533 := []interface{}{_t1722, _dollar_dollar.GetRelationId()} - unwrapped_fields1534 := fields1533 + fields1559 := []interface{}{_t1750, _dollar_dollar.GetRelationId()} + unwrapped_fields1560 := fields1559 p.write("(") p.write("abort") p.indentSexp() - field1535 := unwrapped_fields1534[0].(*string) - if field1535 != nil { + field1561 := unwrapped_fields1560[0].(*string) + if field1561 != nil { p.newline() - opt_val1536 := *field1535 - p.pretty_name(opt_val1536) + opt_val1562 := *field1561 + p.pretty_name(opt_val1562) } p.newline() - field1537 := unwrapped_fields1534[1].(*pb.RelationId) - p.pretty_relation_id(field1537) + field1563 := unwrapped_fields1560[1].(*pb.RelationId) + p.pretty_relation_id(field1563) p.dedent() p.write(")") } @@ -4645,40 +4715,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) + flat1569 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1569 != nil { + p.write(*flat1569) return nil } else { _dollar_dollar := msg - var _t1723 *pb.ExportCSVConfig + var _t1751 *pb.ExportCSVConfig if hasProtoField(_dollar_dollar, "csv_config") { - _t1723 = _dollar_dollar.GetCsvConfig() + _t1751 = _dollar_dollar.GetCsvConfig() } - deconstruct_result1541 := _t1723 - if deconstruct_result1541 != nil { - unwrapped1542 := deconstruct_result1541 + deconstruct_result1567 := _t1751 + if deconstruct_result1567 != nil { + unwrapped1568 := deconstruct_result1567 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped1542) + p.pretty_export_csv_config(unwrapped1568) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1724 *pb.ExportIcebergConfig + var _t1752 *pb.ExportIcebergConfig if hasProtoField(_dollar_dollar, "iceberg_config") { - _t1724 = _dollar_dollar.GetIcebergConfig() + _t1752 = _dollar_dollar.GetIcebergConfig() } - deconstruct_result1539 := _t1724 - if deconstruct_result1539 != nil { - unwrapped1540 := deconstruct_result1539 + deconstruct_result1565 := _t1752 + if deconstruct_result1565 != nil { + unwrapped1566 := deconstruct_result1565 p.write("(") p.write("export_iceberg") p.indentSexp() p.newline() - p.pretty_export_iceberg_config(unwrapped1540) + p.pretty_export_iceberg_config(unwrapped1566) p.dedent() p.write(")") } else { @@ -4690,55 +4760,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) + flat1580 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1580 != nil { + p.write(*flat1580) return nil } else { _dollar_dollar := msg - var _t1725 []interface{} + var _t1753 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) == 0 { - _t1725 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + _t1753 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} } - deconstruct_result1549 := _t1725 - if deconstruct_result1549 != nil { - unwrapped1550 := deconstruct_result1549 + deconstruct_result1575 := _t1753 + if deconstruct_result1575 != nil { + unwrapped1576 := deconstruct_result1575 p.write("(") p.write("export_csv_config_v2") p.indentSexp() p.newline() - field1551 := unwrapped1550[0].(string) - p.pretty_export_csv_path(field1551) + field1577 := unwrapped1576[0].(string) + p.pretty_export_csv_path(field1577) p.newline() - field1552 := unwrapped1550[1].(*pb.ExportCSVSource) - p.pretty_export_csv_source(field1552) + field1578 := unwrapped1576[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1578) p.newline() - field1553 := unwrapped1550[2].(*pb.CSVConfig) - p.pretty_csv_config(field1553) + field1579 := unwrapped1576[2].(*pb.CSVConfig) + p.pretty_csv_config(field1579) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1726 []interface{} + var _t1754 []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} + _t1755 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1754 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1755} } - deconstruct_result1544 := _t1726 - if deconstruct_result1544 != nil { - unwrapped1545 := deconstruct_result1544 + deconstruct_result1570 := _t1754 + if deconstruct_result1570 != nil { + unwrapped1571 := deconstruct_result1570 p.write("(") p.write("export_csv_config") p.indentSexp() p.newline() - field1546 := unwrapped1545[0].(string) - p.pretty_export_csv_path(field1546) + field1572 := unwrapped1571[0].(string) + p.pretty_export_csv_path(field1572) p.newline() - field1547 := unwrapped1545[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns_list(field1547) + field1573 := unwrapped1571[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1573) p.newline() - field1548 := unwrapped1545[2].([][]interface{}) - p.pretty_config_dict(field1548) + field1574 := unwrapped1571[2].([][]interface{}) + p.pretty_config_dict(field1574) p.dedent() p.write(")") } else { @@ -4750,17 +4820,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) + flat1582 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1582 != nil { + p.write(*flat1582) return nil } else { - fields1555 := msg + fields1581 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1555)) + p.write(p.formatStringValue(fields1581)) p.dedent() p.write(")") } @@ -4768,47 +4838,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) + flat1589 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1589 != nil { + p.write(*flat1589) return nil } else { _dollar_dollar := msg - var _t1728 []*pb.ExportCSVColumn + var _t1756 []*pb.ExportCSVColumn if hasProtoField(_dollar_dollar, "gnf_columns") { - _t1728 = _dollar_dollar.GetGnfColumns().GetColumns() + _t1756 = _dollar_dollar.GetGnfColumns().GetColumns() } - deconstruct_result1559 := _t1728 - if deconstruct_result1559 != nil { - unwrapped1560 := deconstruct_result1559 + deconstruct_result1585 := _t1756 + if deconstruct_result1585 != nil { + unwrapped1586 := deconstruct_result1585 p.write("(") p.write("gnf_columns") p.indentSexp() - if !(len(unwrapped1560) == 0) { + if !(len(unwrapped1586) == 0) { p.newline() - for i1562, elem1561 := range unwrapped1560 { - if (i1562 > 0) { + for i1588, elem1587 := range unwrapped1586 { + if (i1588 > 0) { p.newline() } - p.pretty_export_csv_column(elem1561) + p.pretty_export_csv_column(elem1587) } } p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1729 *pb.RelationId + var _t1757 *pb.RelationId if hasProtoField(_dollar_dollar, "table_def") { - _t1729 = _dollar_dollar.GetTableDef() + _t1757 = _dollar_dollar.GetTableDef() } - deconstruct_result1557 := _t1729 - if deconstruct_result1557 != nil { - unwrapped1558 := deconstruct_result1557 + deconstruct_result1583 := _t1757 + if deconstruct_result1583 != nil { + unwrapped1584 := deconstruct_result1583 p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped1558) + p.pretty_relation_id(unwrapped1584) p.dedent() p.write(")") } else { @@ -4820,23 +4890,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) + flat1594 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1594 != nil { + p.write(*flat1594) return nil } else { _dollar_dollar := msg - fields1564 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} - unwrapped_fields1565 := fields1564 + fields1590 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} + unwrapped_fields1591 := fields1590 p.write("(") p.write("column") p.indentSexp() p.newline() - field1566 := unwrapped_fields1565[0].(string) - p.write(p.formatStringValue(field1566)) + field1592 := unwrapped_fields1591[0].(string) + p.write(p.formatStringValue(field1592)) p.newline() - field1567 := unwrapped_fields1565[1].(*pb.RelationId) - p.pretty_relation_id(field1567) + field1593 := unwrapped_fields1591[1].(*pb.RelationId) + p.pretty_relation_id(field1593) p.dedent() p.write(")") } @@ -4844,22 +4914,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) + flat1598 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1598 != nil { + p.write(*flat1598) return nil } else { - fields1569 := msg + fields1595 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1569) == 0) { + if !(len(fields1595) == 0) { p.newline() - for i1571, elem1570 := range fields1569 { - if (i1571 > 0) { + for i1597, elem1596 := range fields1595 { + if (i1597 > 0) { p.newline() } - p.pretty_export_csv_column(elem1570) + p.pretty_export_csv_column(elem1596) } } p.dedent() @@ -4869,35 +4939,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) + flat1607 := p.tryFlat(msg, func() { p.pretty_export_iceberg_config(msg) }) + if flat1607 != nil { + p.write(*flat1607) 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 + _t1758 := p.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1599 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetTableDef(), dictToPairs(_dollar_dollar.GetTableProperties()), _t1758} + unwrapped_fields1600 := fields1599 p.write("(") p.write("export_iceberg_config") p.indentSexp() p.newline() - field1575 := unwrapped_fields1574[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1575) + field1601 := unwrapped_fields1600[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1601) p.newline() - field1576 := unwrapped_fields1574[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1576) + field1602 := unwrapped_fields1600[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1602) p.newline() - field1577 := unwrapped_fields1574[2].(*pb.RelationId) - p.pretty_export_iceberg_table_def(field1577) + field1603 := unwrapped_fields1600[2].(*pb.RelationId) + p.pretty_export_iceberg_table_def(field1603) p.newline() - field1578 := unwrapped_fields1574[3].([][]interface{}) - p.pretty_iceberg_table_properties(field1578) - field1579 := unwrapped_fields1574[4].([][]interface{}) - if field1579 != nil { + field1604 := unwrapped_fields1600[3].([][]interface{}) + p.pretty_iceberg_table_properties(field1604) + field1605 := unwrapped_fields1600[4].([][]interface{}) + if field1605 != nil { p.newline() - opt_val1580 := field1579 - p.pretty_config_dict(opt_val1580) + opt_val1606 := field1605 + p.pretty_config_dict(opt_val1606) } p.dedent() p.write(")") @@ -4906,17 +4976,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) + flat1609 := p.tryFlat(msg, func() { p.pretty_export_iceberg_table_def(msg) }) + if flat1609 != nil { + p.write(*flat1609) return nil } else { - fields1582 := msg + fields1608 := msg p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(fields1582) + p.pretty_relation_id(fields1608) p.dedent() p.write(")") } @@ -4924,22 +4994,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) + flat1613 := p.tryFlat(msg, func() { p.pretty_iceberg_table_properties(msg) }) + if flat1613 != nil { + p.write(*flat1613) return nil } else { - fields1584 := msg + fields1610 := msg p.write("(") p.write("table_properties") p.indentSexp() - if !(len(fields1584) == 0) { + if !(len(fields1610) == 0) { p.newline() - for i1586, elem1585 := range fields1584 { - if (i1586 > 0) { + for i1612, elem1611 := range fields1610 { + if (i1612 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1585) + p.pretty_iceberg_property_entry(elem1611) } } p.dedent() @@ -4957,8 +5027,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) + _t1806 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1806) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") @@ -5289,6 +5359,8 @@ func (p *PrettyPrinter) pprintDispatch(msg interface{}) { p.pretty_gnf_columns(m) case *pb.GNFColumn: p.pretty_gnf_column(m) + case *pb.CSVTarget: + p.pretty_csv_table(m) case *pb.IcebergData: p.pretty_iceberg_data(m) case *pb.IcebergLocator: 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..427620dd 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 CSVTarget, MinMonoid, SumMonoid, MaxMonoid, BeTreeInfo, Binding, EDB, Attribute +export Term, IcebergData, CSVData, 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,49 @@ function PB._encoded_size(x::GNFColumn) return encoded_size end +struct CSVTarget + target_id::Union{Nothing,RelationId} + column_names::Vector{String} + types::Vector{var"#Type"} +end +CSVTarget(;target_id = nothing, column_names = Vector{String}(), types = Vector{var"#Type"}()) = CSVTarget(target_id, column_names, types) +PB.default_values(::Type{CSVTarget}) = (;target_id = nothing, column_names = Vector{String}(), types = Vector{var"#Type"}()) +PB.field_numbers(::Type{CSVTarget}) = (;target_id = 1, column_names = 2, types = 3) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVTarget}, _endpos::Int=0, _group::Bool=false) + target_id = Ref{Union{Nothing,RelationId}}(nothing) + column_names = PB.BufferedVector{String}() + 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, column_names) + elseif field_number == 3 + PB.decode!(d, types) + else + Base.skip(d, wire_type) + end + end + return CSVTarget(target_id[], column_names[], types[]) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::CSVTarget) + initpos = position(e.io) + !isnothing(x.target_id) && PB.encode(e, 1, x.target_id) + !isempty(x.column_names) && PB.encode(e, 2, x.column_names) + !isempty(x.types) && PB.encode(e, 3, x.types) + return position(e.io) - initpos +end +function PB._encoded_size(x::CSVTarget) + encoded_size = 0 + !isnothing(x.target_id) && (encoded_size += PB._encoded_size(x.target_id, 1)) + !isempty(x.column_names) && (encoded_size += PB._encoded_size(x.column_names, 2)) + !isempty(x.types) && (encoded_size += PB._encoded_size(x.types, 3)) + return encoded_size +end + struct MinMonoid var"#type"::Union{Nothing,var"#Type"} end @@ -1568,21 +1611,25 @@ function PB._encoded_size(x::Term) return encoded_size end -struct CSVData - locator::Union{Nothing,CSVLocator} - config::Union{Nothing,CSVConfig} +struct IcebergData + locator::Union{Nothing,IcebergLocator} + config::Union{Nothing,IcebergCatalogConfig} columns::Vector{GNFColumn} - asof::String + from_snapshot::String + to_snapshot::String + returns_delta::Bool end -CSVData(;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), asof = "") = CSVData(locator, config, columns, asof) -PB.default_values(::Type{CSVData}) = (;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), asof = "") -PB.field_numbers(::Type{CSVData}) = (;locator = 1, config = 2, columns = 3, asof = 4) +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) -function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVData}, _endpos::Int=0, _group::Bool=false) - locator = Ref{Union{Nothing,CSVLocator}}(nothing) - config = Ref{Union{Nothing,CSVConfig}}(nothing) +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::Int=0, _group::Bool=false) + locator = Ref{Union{Nothing,IcebergLocator}}(nothing) + config = Ref{Union{Nothing,IcebergCatalogConfig}}(nothing) columns = PB.BufferedVector{GNFColumn}() - asof = "" + from_snapshot = "" + to_snapshot = "" + returns_delta = false while !PB.message_done(d, _endpos, _group) field_number, wire_type = PB.decode_tag(d) if field_number == 1 @@ -1592,50 +1639,56 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVData}, _endpos::Int=0 elseif field_number == 3 PB.decode!(d, columns) elseif field_number == 4 - asof = PB.decode(d, String) + from_snapshot = PB.decode(d, String) + elseif field_number == 5 + to_snapshot = PB.decode(d, String) + elseif field_number == 6 + returns_delta = PB.decode(d, Bool) else Base.skip(d, wire_type) end end - return CSVData(locator[], config[], columns[], asof) + return IcebergData(locator[], config[], columns[], from_snapshot, to_snapshot, returns_delta) end -function PB.encode(e::PB.AbstractProtoEncoder, x::CSVData) +function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergData) initpos = position(e.io) !isnothing(x.locator) && PB.encode(e, 1, x.locator) !isnothing(x.config) && PB.encode(e, 2, x.config) !isempty(x.columns) && PB.encode(e, 3, x.columns) - !isempty(x.asof) && PB.encode(e, 4, x.asof) + !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) return position(e.io) - initpos end -function PB._encoded_size(x::CSVData) +function PB._encoded_size(x::IcebergData) encoded_size = 0 !isnothing(x.locator) && (encoded_size += PB._encoded_size(x.locator, 1)) !isnothing(x.config) && (encoded_size += PB._encoded_size(x.config, 2)) !isempty(x.columns) && (encoded_size += PB._encoded_size(x.columns, 3)) - !isempty(x.asof) && (encoded_size += PB._encoded_size(x.asof, 4)) + !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)) return encoded_size end -struct IcebergData - locator::Union{Nothing,IcebergLocator} - config::Union{Nothing,IcebergCatalogConfig} +struct CSVData + locator::Union{Nothing,CSVLocator} + config::Union{Nothing,CSVConfig} columns::Vector{GNFColumn} - from_snapshot::String - to_snapshot::String - returns_delta::Bool + asof::String + target::Union{Nothing,CSVTarget} 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) +CSVData(;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), asof = "", target = nothing) = CSVData(locator, config, columns, asof, target) +PB.default_values(::Type{CSVData}) = (;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), asof = "", target = nothing) +PB.field_numbers(::Type{CSVData}) = (;locator = 1, config = 2, columns = 3, asof = 4, target = 5) -function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::Int=0, _group::Bool=false) - locator = Ref{Union{Nothing,IcebergLocator}}(nothing) - config = Ref{Union{Nothing,IcebergCatalogConfig}}(nothing) +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVData}, _endpos::Int=0, _group::Bool=false) + locator = Ref{Union{Nothing,CSVLocator}}(nothing) + config = Ref{Union{Nothing,CSVConfig}}(nothing) columns = PB.BufferedVector{GNFColumn}() - from_snapshot = "" - to_snapshot = "" - returns_delta = false + asof = "" + target = Ref{Union{Nothing,CSVTarget}}(nothing) while !PB.message_done(d, _endpos, _group) field_number, wire_type = PB.decode_tag(d) if field_number == 1 @@ -1645,36 +1698,32 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::I elseif field_number == 3 PB.decode!(d, columns) elseif field_number == 4 - from_snapshot = PB.decode(d, String) + asof = PB.decode(d, String) elseif field_number == 5 - to_snapshot = PB.decode(d, String) - elseif field_number == 6 - returns_delta = PB.decode(d, Bool) + PB.decode!(d, target) else Base.skip(d, wire_type) end end - return IcebergData(locator[], config[], columns[], from_snapshot, to_snapshot, returns_delta) + return CSVData(locator[], config[], columns[], asof, target[]) end -function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergData) +function PB.encode(e::PB.AbstractProtoEncoder, x::CSVData) initpos = position(e.io) !isnothing(x.locator) && PB.encode(e, 1, x.locator) !isnothing(x.config) && PB.encode(e, 2, x.config) !isempty(x.columns) && PB.encode(e, 3, x.columns) - !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) + !isempty(x.asof) && PB.encode(e, 4, x.asof) + !isnothing(x.target) && PB.encode(e, 5, x.target) return position(e.io) - initpos end -function PB._encoded_size(x::IcebergData) +function PB._encoded_size(x::CSVData) encoded_size = 0 !isnothing(x.locator) && (encoded_size += PB._encoded_size(x.locator, 1)) !isnothing(x.config) && (encoded_size += PB._encoded_size(x.config, 2)) !isempty(x.columns) && (encoded_size += PB._encoded_size(x.columns, 3)) - !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)) + !isempty(x.asof) && (encoded_size += PB._encoded_size(x.asof, 4)) + !isnothing(x.target) && (encoded_size += PB._encoded_size(x.target, 5)) 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..cb3b27ca 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 + _t2111 = 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 + _t2112 = 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 + _t2113 = 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 + _t2114 = 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 + _t2115 = 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 + _t2116 = 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 + _t2117 = 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 + _t2118 = 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 + _t2119 = 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 + _t2120 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t2120 + _t2121 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t2121 + _t2122 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t2122 + _t2123 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t2123 + _t2124 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t2124 + _t2125 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t2125 + _t2126 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t2126 + _t2127 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t2127 + _t2128 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t2128 + _t2129 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t2129 + _t2130 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") + compression = _t2130 + _t2131 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t2131 + _t2132 = 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 _t2132 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 + _t2133 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t2133 + _t2134 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t2134 + _t2135 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t2135 + _t2136 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t2136 + _t2137 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2137 + _t2138 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t2138 + _t2139 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t2139 + _t2140 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t2140 + _t2141 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t2141 + _t2142 = 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 = _t2142 + _t2143 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2143 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 + _t2144 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2144 + _t2145 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2145 end function construct_configure(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.Configure @@ -531,3840 +531,3891 @@ 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 + _t2146 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t2146 + _t2147 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t2147 + _t2148 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t2148 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 + _t2149 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t2149 + _t2150 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t2150 + _t2151 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t2151 + _t2152 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t2152 + _t2153 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t2153 + _t2154 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t2154 + _t2155 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t2155 + _t2156 = 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 _t2156 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 + _t2157 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t2157 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 + _t2158 = Proto.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope_opt) ? scope_opt : ""), properties=props, auth_properties=auth_props) + return _t2158 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 + _t2159 = 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 _t2159 +end + +function construct_csv_data(parser::ParserState, locator::Proto.CSVLocator, config::Proto.CSVConfig, columns_opt::Union{Nothing, Vector{Proto.GNFColumn}}, target_opt::Union{Nothing, Proto.CSVTarget}, asof::String)::Proto.CSVData + _t2160 = Proto.CSVData(locator=locator, config=config, columns=(!isnothing(columns_opt) ? columns_opt : Proto.GNFColumn[]), asof=asof, target=target_opt) + return _t2160 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 + _t2161 = _extract_value_string(parser, get(cfg, "prefix", nothing), "") + prefix = _t2161 + _t2162 = _extract_value_int64(parser, get(cfg, "target_file_size_bytes", nothing), 0) + target_file_size_bytes = _t2162 + _t2163 = _extract_value_string(parser, get(cfg, "compression", nothing), "") + compression = _t2163 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 + _t2164 = 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 _t2164 end # --- Parse functions --- function parse_transaction(parser::ParserState)::Proto.Transaction - span_start671 = span_start(parser) + span_start683 = 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 + _t1355 = parse_configure(parser) + _t1354 = _t1355 else - _t1330 = nothing + _t1354 = nothing end - configure665 = _t1330 + configure677 = _t1354 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t1333 = parse_sync(parser) - _t1332 = _t1333 + _t1357 = parse_sync(parser) + _t1356 = _t1357 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 + _t1356 = nothing + end + sync678 = _t1356 + xs679 = Proto.Epoch[] + cond680 = match_lookahead_literal(parser, "(", 0) + while cond680 + _t1358 = parse_epoch(parser) + item681 = _t1358 + push!(xs679, item681) + cond680 = match_lookahead_literal(parser, "(", 0) + end + epochs682 = xs679 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 + _t1359 = default_configure(parser) + _t1360 = Proto.Transaction(epochs=epochs682, configure=(!isnothing(configure677) ? configure677 : _t1359), sync=sync678) + result684 = _t1360 + record_span!(parser, span_start683, "Transaction") + return result684 end function parse_configure(parser::ParserState)::Proto.Configure - span_start674 = span_start(parser) + span_start686 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t1337 = parse_config_dict(parser) - config_dict673 = _t1337 + _t1361 = parse_config_dict(parser) + config_dict685 = _t1361 consume_literal!(parser, ")") - _t1338 = construct_configure(parser, config_dict673) - result675 = _t1338 - record_span!(parser, span_start674, "Configure") - return result675 + _t1362 = construct_configure(parser, config_dict685) + result687 = _t1362 + record_span!(parser, span_start686, "Configure") + return result687 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 + xs688 = Tuple{String, Proto.Value}[] + cond689 = match_lookahead_literal(parser, ":", 0) + while cond689 + _t1363 = parse_config_key_value(parser) + item690 = _t1363 + push!(xs688, item690) + cond689 = match_lookahead_literal(parser, ":", 0) + end + config_key_values691 = xs688 consume_literal!(parser, "}") - return config_key_values679 + return config_key_values691 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,) + symbol692 = consume_terminal!(parser, "SYMBOL") + _t1364 = parse_raw_value(parser) + raw_value693 = _t1364 + return (symbol692, raw_value693,) end function parse_raw_value(parser::ParserState)::Proto.Value - span_start695 = span_start(parser) + span_start707 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1341 = 12 + _t1365 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1342 = 11 + _t1366 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1343 = 12 + _t1367 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1345 = 1 + _t1369 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1346 = 0 + _t1370 = 0 else - _t1346 = -1 + _t1370 = -1 end - _t1345 = _t1346 + _t1369 = _t1370 end - _t1344 = _t1345 + _t1368 = _t1369 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1347 = 7 + _t1371 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1348 = 8 + _t1372 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1349 = 2 + _t1373 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1350 = 3 + _t1374 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1351 = 9 + _t1375 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1352 = 4 + _t1376 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1353 = 5 + _t1377 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1354 = 6 + _t1378 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1355 = 10 + _t1379 = 10 else - _t1355 = -1 + _t1379 = -1 end - _t1354 = _t1355 + _t1378 = _t1379 end - _t1353 = _t1354 + _t1377 = _t1378 end - _t1352 = _t1353 + _t1376 = _t1377 end - _t1351 = _t1352 + _t1375 = _t1376 end - _t1350 = _t1351 + _t1374 = _t1375 end - _t1349 = _t1350 + _t1373 = _t1374 end - _t1348 = _t1349 + _t1372 = _t1373 end - _t1347 = _t1348 + _t1371 = _t1372 end - _t1344 = _t1347 + _t1368 = _t1371 end - _t1343 = _t1344 + _t1367 = _t1368 end - _t1342 = _t1343 + _t1366 = _t1367 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 + _t1365 = _t1366 + end + prediction694 = _t1365 + if prediction694 == 12 + _t1381 = parse_boolean_value(parser) + boolean_value706 = _t1381 + _t1382 = Proto.Value(value=OneOf(:boolean_value, boolean_value706)) + _t1380 = _t1382 else - if prediction682 == 11 + if prediction694 == 11 consume_literal!(parser, "missing") - _t1360 = Proto.MissingValue() - _t1361 = Proto.Value(value=OneOf(:missing_value, _t1360)) - _t1359 = _t1361 + _t1384 = Proto.MissingValue() + _t1385 = Proto.Value(value=OneOf(:missing_value, _t1384)) + _t1383 = _t1385 else - if prediction682 == 10 - decimal693 = consume_terminal!(parser, "DECIMAL") - _t1363 = Proto.Value(value=OneOf(:decimal_value, decimal693)) - _t1362 = _t1363 + if prediction694 == 10 + decimal705 = consume_terminal!(parser, "DECIMAL") + _t1387 = Proto.Value(value=OneOf(:decimal_value, decimal705)) + _t1386 = _t1387 else - if prediction682 == 9 - int128692 = consume_terminal!(parser, "INT128") - _t1365 = Proto.Value(value=OneOf(:int128_value, int128692)) - _t1364 = _t1365 + if prediction694 == 9 + int128704 = consume_terminal!(parser, "INT128") + _t1389 = Proto.Value(value=OneOf(:int128_value, int128704)) + _t1388 = _t1389 else - if prediction682 == 8 - uint128691 = consume_terminal!(parser, "UINT128") - _t1367 = Proto.Value(value=OneOf(:uint128_value, uint128691)) - _t1366 = _t1367 + if prediction694 == 8 + uint128703 = consume_terminal!(parser, "UINT128") + _t1391 = Proto.Value(value=OneOf(:uint128_value, uint128703)) + _t1390 = _t1391 else - if prediction682 == 7 - uint32690 = consume_terminal!(parser, "UINT32") - _t1369 = Proto.Value(value=OneOf(:uint32_value, uint32690)) - _t1368 = _t1369 + if prediction694 == 7 + uint32702 = consume_terminal!(parser, "UINT32") + _t1393 = Proto.Value(value=OneOf(:uint32_value, uint32702)) + _t1392 = _t1393 else - if prediction682 == 6 - float689 = consume_terminal!(parser, "FLOAT") - _t1371 = Proto.Value(value=OneOf(:float_value, float689)) - _t1370 = _t1371 + if prediction694 == 6 + float701 = consume_terminal!(parser, "FLOAT") + _t1395 = Proto.Value(value=OneOf(:float_value, float701)) + _t1394 = _t1395 else - if prediction682 == 5 - float32688 = consume_terminal!(parser, "FLOAT32") - _t1373 = Proto.Value(value=OneOf(:float32_value, float32688)) - _t1372 = _t1373 + if prediction694 == 5 + float32700 = consume_terminal!(parser, "FLOAT32") + _t1397 = Proto.Value(value=OneOf(:float32_value, float32700)) + _t1396 = _t1397 else - if prediction682 == 4 - int687 = consume_terminal!(parser, "INT") - _t1375 = Proto.Value(value=OneOf(:int_value, int687)) - _t1374 = _t1375 + if prediction694 == 4 + int699 = consume_terminal!(parser, "INT") + _t1399 = Proto.Value(value=OneOf(:int_value, int699)) + _t1398 = _t1399 else - if prediction682 == 3 - int32686 = consume_terminal!(parser, "INT32") - _t1377 = Proto.Value(value=OneOf(:int32_value, int32686)) - _t1376 = _t1377 + if prediction694 == 3 + int32698 = consume_terminal!(parser, "INT32") + _t1401 = Proto.Value(value=OneOf(:int32_value, int32698)) + _t1400 = _t1401 else - if prediction682 == 2 - string685 = consume_terminal!(parser, "STRING") - _t1379 = Proto.Value(value=OneOf(:string_value, string685)) - _t1378 = _t1379 + if prediction694 == 2 + string697 = consume_terminal!(parser, "STRING") + _t1403 = Proto.Value(value=OneOf(:string_value, string697)) + _t1402 = _t1403 else - if prediction682 == 1 - _t1381 = parse_raw_datetime(parser) - raw_datetime684 = _t1381 - _t1382 = Proto.Value(value=OneOf(:datetime_value, raw_datetime684)) - _t1380 = _t1382 + if prediction694 == 1 + _t1405 = parse_raw_datetime(parser) + raw_datetime696 = _t1405 + _t1406 = Proto.Value(value=OneOf(:datetime_value, raw_datetime696)) + _t1404 = _t1406 else - if prediction682 == 0 - _t1384 = parse_raw_date(parser) - raw_date683 = _t1384 - _t1385 = Proto.Value(value=OneOf(:date_value, raw_date683)) - _t1383 = _t1385 + if prediction694 == 0 + _t1408 = parse_raw_date(parser) + raw_date695 = _t1408 + _t1409 = Proto.Value(value=OneOf(:date_value, raw_date695)) + _t1407 = _t1409 else throw(ParseError("Unexpected token in raw_value" * ": " * string(lookahead(parser, 0)))) end - _t1380 = _t1383 + _t1404 = _t1407 end - _t1378 = _t1380 + _t1402 = _t1404 end - _t1376 = _t1378 + _t1400 = _t1402 end - _t1374 = _t1376 + _t1398 = _t1400 end - _t1372 = _t1374 + _t1396 = _t1398 end - _t1370 = _t1372 + _t1394 = _t1396 end - _t1368 = _t1370 + _t1392 = _t1394 end - _t1366 = _t1368 + _t1390 = _t1392 end - _t1364 = _t1366 + _t1388 = _t1390 end - _t1362 = _t1364 + _t1386 = _t1388 end - _t1359 = _t1362 + _t1383 = _t1386 end - _t1356 = _t1359 + _t1380 = _t1383 end - result696 = _t1356 - record_span!(parser, span_start695, "Value") - return result696 + result708 = _t1380 + record_span!(parser, span_start707, "Value") + return result708 end function parse_raw_date(parser::ParserState)::Proto.DateValue - span_start700 = span_start(parser) + span_start712 = 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") + int709 = consume_terminal!(parser, "INT") + int_3710 = consume_terminal!(parser, "INT") + int_4711 = 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 + _t1410 = Proto.DateValue(year=Int32(int709), month=Int32(int_3710), day=Int32(int_4711)) + result713 = _t1410 + record_span!(parser, span_start712, "DateValue") + return result713 end function parse_raw_datetime(parser::ParserState)::Proto.DateTimeValue - span_start709 = span_start(parser) + span_start721 = 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") + int714 = consume_terminal!(parser, "INT") + int_3715 = consume_terminal!(parser, "INT") + int_4716 = consume_terminal!(parser, "INT") + int_5717 = consume_terminal!(parser, "INT") + int_6718 = consume_terminal!(parser, "INT") + int_7719 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1387 = consume_terminal!(parser, "INT") + _t1411 = consume_terminal!(parser, "INT") else - _t1387 = nothing + _t1411 = nothing end - int_8708 = _t1387 + int_8720 = _t1411 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 + _t1412 = Proto.DateTimeValue(year=Int32(int714), month=Int32(int_3715), day=Int32(int_4716), hour=Int32(int_5717), minute=Int32(int_6718), second=Int32(int_7719), microsecond=Int32((!isnothing(int_8720) ? int_8720 : 0))) + result722 = _t1412 + record_span!(parser, span_start721, "DateTimeValue") + return result722 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t1389 = 0 + _t1413 = 0 else if match_lookahead_literal(parser, "false", 0) - _t1390 = 1 + _t1414 = 1 else - _t1390 = -1 + _t1414 = -1 end - _t1389 = _t1390 + _t1413 = _t1414 end - prediction711 = _t1389 - if prediction711 == 1 + prediction723 = _t1413 + if prediction723 == 1 consume_literal!(parser, "false") - _t1391 = false + _t1415 = false else - if prediction711 == 0 + if prediction723 == 0 consume_literal!(parser, "true") - _t1392 = true + _t1416 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t1391 = _t1392 + _t1415 = _t1416 end - return _t1391 + return _t1415 end function parse_sync(parser::ParserState)::Proto.Sync - span_start716 = span_start(parser) + span_start728 = 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 + xs724 = Proto.FragmentId[] + cond725 = match_lookahead_literal(parser, ":", 0) + while cond725 + _t1417 = parse_fragment_id(parser) + item726 = _t1417 + push!(xs724, item726) + cond725 = match_lookahead_literal(parser, ":", 0) + end + fragment_ids727 = xs724 consume_literal!(parser, ")") - _t1394 = Proto.Sync(fragments=fragment_ids715) - result717 = _t1394 - record_span!(parser, span_start716, "Sync") - return result717 + _t1418 = Proto.Sync(fragments=fragment_ids727) + result729 = _t1418 + record_span!(parser, span_start728, "Sync") + return result729 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId - span_start719 = span_start(parser) + span_start731 = 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 + symbol730 = consume_terminal!(parser, "SYMBOL") + result732 = Proto.FragmentId(Vector{UInt8}(symbol730)) + record_span!(parser, span_start731, "FragmentId") + return result732 end function parse_epoch(parser::ParserState)::Proto.Epoch - span_start723 = span_start(parser) + span_start735 = 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 + _t1420 = parse_epoch_writes(parser) + _t1419 = _t1420 else - _t1395 = nothing + _t1419 = nothing end - epoch_writes721 = _t1395 + epoch_writes733 = _t1419 if match_lookahead_literal(parser, "(", 0) - _t1398 = parse_epoch_reads(parser) - _t1397 = _t1398 + _t1422 = parse_epoch_reads(parser) + _t1421 = _t1422 else - _t1397 = nothing + _t1421 = nothing end - epoch_reads722 = _t1397 + epoch_reads734 = _t1421 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 + _t1423 = Proto.Epoch(writes=(!isnothing(epoch_writes733) ? epoch_writes733 : Proto.Write[]), reads=(!isnothing(epoch_reads734) ? epoch_reads734 : Proto.Read[])) + result736 = _t1423 + record_span!(parser, span_start735, "Epoch") + return result736 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 + xs737 = Proto.Write[] + cond738 = match_lookahead_literal(parser, "(", 0) + while cond738 + _t1424 = parse_write(parser) + item739 = _t1424 + push!(xs737, item739) + cond738 = match_lookahead_literal(parser, "(", 0) + end + writes740 = xs737 consume_literal!(parser, ")") - return writes728 + return writes740 end function parse_write(parser::ParserState)::Proto.Write - span_start734 = span_start(parser) + span_start746 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t1402 = 1 + _t1426 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t1403 = 3 + _t1427 = 3 else if match_lookahead_literal(parser, "define", 1) - _t1404 = 0 + _t1428 = 0 else if match_lookahead_literal(parser, "context", 1) - _t1405 = 2 + _t1429 = 2 else - _t1405 = -1 + _t1429 = -1 end - _t1404 = _t1405 + _t1428 = _t1429 end - _t1403 = _t1404 + _t1427 = _t1428 end - _t1402 = _t1403 + _t1426 = _t1427 end - _t1401 = _t1402 + _t1425 = _t1426 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 + _t1425 = -1 + end + prediction741 = _t1425 + if prediction741 == 3 + _t1431 = parse_snapshot(parser) + snapshot745 = _t1431 + _t1432 = Proto.Write(write_type=OneOf(:snapshot, snapshot745)) + _t1430 = _t1432 else - if prediction729 == 2 - _t1410 = parse_context(parser) - context732 = _t1410 - _t1411 = Proto.Write(write_type=OneOf(:context, context732)) - _t1409 = _t1411 + if prediction741 == 2 + _t1434 = parse_context(parser) + context744 = _t1434 + _t1435 = Proto.Write(write_type=OneOf(:context, context744)) + _t1433 = _t1435 else - if prediction729 == 1 - _t1413 = parse_undefine(parser) - undefine731 = _t1413 - _t1414 = Proto.Write(write_type=OneOf(:undefine, undefine731)) - _t1412 = _t1414 + if prediction741 == 1 + _t1437 = parse_undefine(parser) + undefine743 = _t1437 + _t1438 = Proto.Write(write_type=OneOf(:undefine, undefine743)) + _t1436 = _t1438 else - if prediction729 == 0 - _t1416 = parse_define(parser) - define730 = _t1416 - _t1417 = Proto.Write(write_type=OneOf(:define, define730)) - _t1415 = _t1417 + if prediction741 == 0 + _t1440 = parse_define(parser) + define742 = _t1440 + _t1441 = Proto.Write(write_type=OneOf(:define, define742)) + _t1439 = _t1441 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t1412 = _t1415 + _t1436 = _t1439 end - _t1409 = _t1412 + _t1433 = _t1436 end - _t1406 = _t1409 + _t1430 = _t1433 end - result735 = _t1406 - record_span!(parser, span_start734, "Write") - return result735 + result747 = _t1430 + record_span!(parser, span_start746, "Write") + return result747 end function parse_define(parser::ParserState)::Proto.Define - span_start737 = span_start(parser) + span_start749 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "define") - _t1418 = parse_fragment(parser) - fragment736 = _t1418 + _t1442 = parse_fragment(parser) + fragment748 = _t1442 consume_literal!(parser, ")") - _t1419 = Proto.Define(fragment=fragment736) - result738 = _t1419 - record_span!(parser, span_start737, "Define") - return result738 + _t1443 = Proto.Define(fragment=fragment748) + result750 = _t1443 + record_span!(parser, span_start749, "Define") + return result750 end function parse_fragment(parser::ParserState)::Proto.Fragment - span_start744 = span_start(parser) + span_start756 = 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 + _t1444 = parse_new_fragment_id(parser) + new_fragment_id751 = _t1444 + xs752 = Proto.Declaration[] + cond753 = match_lookahead_literal(parser, "(", 0) + while cond753 + _t1445 = parse_declaration(parser) + item754 = _t1445 + push!(xs752, item754) + cond753 = match_lookahead_literal(parser, "(", 0) + end + declarations755 = xs752 consume_literal!(parser, ")") - result745 = construct_fragment(parser, new_fragment_id739, declarations743) - record_span!(parser, span_start744, "Fragment") - return result745 + result757 = construct_fragment(parser, new_fragment_id751, declarations755) + record_span!(parser, span_start756, "Fragment") + return result757 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_start759 = span_start(parser) + _t1446 = parse_fragment_id(parser) + fragment_id758 = _t1446 + start_fragment!(parser, fragment_id758) + result760 = fragment_id758 + record_span!(parser, span_start759, "FragmentId") + return result760 end function parse_declaration(parser::ParserState)::Proto.Declaration - span_start754 = span_start(parser) + span_start766 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t1424 = 3 + _t1448 = 3 else if match_lookahead_literal(parser, "functional_dependency", 1) - _t1425 = 2 + _t1449 = 2 else if match_lookahead_literal(parser, "edb", 1) - _t1426 = 3 + _t1450 = 3 else if match_lookahead_literal(parser, "def", 1) - _t1427 = 0 + _t1451 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1428 = 3 + _t1452 = 3 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1429 = 3 + _t1453 = 3 else if match_lookahead_literal(parser, "algorithm", 1) - _t1430 = 1 + _t1454 = 1 else - _t1430 = -1 + _t1454 = -1 end - _t1429 = _t1430 + _t1453 = _t1454 end - _t1428 = _t1429 + _t1452 = _t1453 end - _t1427 = _t1428 + _t1451 = _t1452 end - _t1426 = _t1427 + _t1450 = _t1451 end - _t1425 = _t1426 + _t1449 = _t1450 end - _t1424 = _t1425 + _t1448 = _t1449 end - _t1423 = _t1424 + _t1447 = _t1448 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 + _t1447 = -1 + end + prediction761 = _t1447 + if prediction761 == 3 + _t1456 = parse_data(parser) + data765 = _t1456 + _t1457 = Proto.Declaration(declaration_type=OneOf(:data, data765)) + _t1455 = _t1457 else - if prediction749 == 2 - _t1435 = parse_constraint(parser) - constraint752 = _t1435 - _t1436 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint752)) - _t1434 = _t1436 + if prediction761 == 2 + _t1459 = parse_constraint(parser) + constraint764 = _t1459 + _t1460 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint764)) + _t1458 = _t1460 else - if prediction749 == 1 - _t1438 = parse_algorithm(parser) - algorithm751 = _t1438 - _t1439 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm751)) - _t1437 = _t1439 + if prediction761 == 1 + _t1462 = parse_algorithm(parser) + algorithm763 = _t1462 + _t1463 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm763)) + _t1461 = _t1463 else - if prediction749 == 0 - _t1441 = parse_def(parser) - def750 = _t1441 - _t1442 = Proto.Declaration(declaration_type=OneOf(:def, def750)) - _t1440 = _t1442 + if prediction761 == 0 + _t1465 = parse_def(parser) + def762 = _t1465 + _t1466 = Proto.Declaration(declaration_type=OneOf(:def, def762)) + _t1464 = _t1466 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t1437 = _t1440 + _t1461 = _t1464 end - _t1434 = _t1437 + _t1458 = _t1461 end - _t1431 = _t1434 + _t1455 = _t1458 end - result755 = _t1431 - record_span!(parser, span_start754, "Declaration") - return result755 + result767 = _t1455 + record_span!(parser, span_start766, "Declaration") + return result767 end function parse_def(parser::ParserState)::Proto.Def - span_start759 = span_start(parser) + span_start771 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "def") - _t1443 = parse_relation_id(parser) - relation_id756 = _t1443 - _t1444 = parse_abstraction(parser) - abstraction757 = _t1444 + _t1467 = parse_relation_id(parser) + relation_id768 = _t1467 + _t1468 = parse_abstraction(parser) + abstraction769 = _t1468 if match_lookahead_literal(parser, "(", 0) - _t1446 = parse_attrs(parser) - _t1445 = _t1446 + _t1470 = parse_attrs(parser) + _t1469 = _t1470 else - _t1445 = nothing + _t1469 = nothing end - attrs758 = _t1445 + attrs770 = _t1469 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 + _t1471 = Proto.Def(name=relation_id768, body=abstraction769, attrs=(!isnothing(attrs770) ? attrs770 : Proto.Attribute[])) + result772 = _t1471 + record_span!(parser, span_start771, "Def") + return result772 end function parse_relation_id(parser::ParserState)::Proto.RelationId - span_start764 = span_start(parser) + span_start776 = span_start(parser) if match_lookahead_literal(parser, ":", 0) - _t1448 = 0 + _t1472 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1449 = 1 + _t1473 = 1 else - _t1449 = -1 + _t1473 = -1 end - _t1448 = _t1449 + _t1472 = _t1473 end - prediction761 = _t1448 - if prediction761 == 1 - uint128763 = consume_terminal!(parser, "UINT128") - _t1450 = Proto.RelationId(uint128763.low, uint128763.high) + prediction773 = _t1472 + if prediction773 == 1 + uint128775 = consume_terminal!(parser, "UINT128") + _t1474 = Proto.RelationId(uint128775.low, uint128775.high) else - if prediction761 == 0 + if prediction773 == 0 consume_literal!(parser, ":") - symbol762 = consume_terminal!(parser, "SYMBOL") - _t1451 = relation_id_from_string(parser, symbol762) + symbol774 = consume_terminal!(parser, "SYMBOL") + _t1475 = relation_id_from_string(parser, symbol774) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t1450 = _t1451 + _t1474 = _t1475 end - result765 = _t1450 - record_span!(parser, span_start764, "RelationId") - return result765 + result777 = _t1474 + record_span!(parser, span_start776, "RelationId") + return result777 end function parse_abstraction(parser::ParserState)::Proto.Abstraction - span_start768 = span_start(parser) + span_start780 = span_start(parser) consume_literal!(parser, "(") - _t1452 = parse_bindings(parser) - bindings766 = _t1452 - _t1453 = parse_formula(parser) - formula767 = _t1453 + _t1476 = parse_bindings(parser) + bindings778 = _t1476 + _t1477 = parse_formula(parser) + formula779 = _t1477 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 + _t1478 = Proto.Abstraction(vars=vcat(bindings778[1], !isnothing(bindings778[2]) ? bindings778[2] : []), value=formula779) + result781 = _t1478 + record_span!(parser, span_start780, "Abstraction") + return result781 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 + xs782 = Proto.Binding[] + cond783 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond783 + _t1479 = parse_binding(parser) + item784 = _t1479 + push!(xs782, item784) + cond783 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + bindings785 = xs782 if match_lookahead_literal(parser, "|", 0) - _t1457 = parse_value_bindings(parser) - _t1456 = _t1457 + _t1481 = parse_value_bindings(parser) + _t1480 = _t1481 else - _t1456 = nothing + _t1480 = nothing end - value_bindings774 = _t1456 + value_bindings786 = _t1480 consume_literal!(parser, "]") - return (bindings773, (!isnothing(value_bindings774) ? value_bindings774 : Proto.Binding[]),) + return (bindings785, (!isnothing(value_bindings786) ? value_bindings786 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - span_start777 = span_start(parser) - symbol775 = consume_terminal!(parser, "SYMBOL") + span_start789 = span_start(parser) + symbol787 = 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 + _t1482 = parse_type(parser) + type788 = _t1482 + _t1483 = Proto.Var(name=symbol787) + _t1484 = Proto.Binding(var=_t1483, var"#type"=type788) + result790 = _t1484 + record_span!(parser, span_start789, "Binding") + return result790 end function parse_type(parser::ParserState)::Proto.var"#Type" - span_start794 = span_start(parser) + span_start806 = span_start(parser) if match_lookahead_literal(parser, "UNKNOWN", 0) - _t1461 = 0 + _t1485 = 0 else if match_lookahead_literal(parser, "UINT32", 0) - _t1462 = 13 + _t1486 = 13 else if match_lookahead_literal(parser, "UINT128", 0) - _t1463 = 4 + _t1487 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t1464 = 1 + _t1488 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t1465 = 8 + _t1489 = 8 else if match_lookahead_literal(parser, "INT32", 0) - _t1466 = 11 + _t1490 = 11 else if match_lookahead_literal(parser, "INT128", 0) - _t1467 = 5 + _t1491 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t1468 = 2 + _t1492 = 2 else if match_lookahead_literal(parser, "FLOAT32", 0) - _t1469 = 12 + _t1493 = 12 else if match_lookahead_literal(parser, "FLOAT", 0) - _t1470 = 3 + _t1494 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t1471 = 7 + _t1495 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t1472 = 6 + _t1496 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t1473 = 10 + _t1497 = 10 else if match_lookahead_literal(parser, "(", 0) - _t1474 = 9 + _t1498 = 9 else - _t1474 = -1 + _t1498 = -1 end - _t1473 = _t1474 + _t1497 = _t1498 end - _t1472 = _t1473 + _t1496 = _t1497 end - _t1471 = _t1472 + _t1495 = _t1496 end - _t1470 = _t1471 + _t1494 = _t1495 end - _t1469 = _t1470 + _t1493 = _t1494 end - _t1468 = _t1469 + _t1492 = _t1493 end - _t1467 = _t1468 + _t1491 = _t1492 end - _t1466 = _t1467 + _t1490 = _t1491 end - _t1465 = _t1466 + _t1489 = _t1490 end - _t1464 = _t1465 + _t1488 = _t1489 end - _t1463 = _t1464 + _t1487 = _t1488 end - _t1462 = _t1463 + _t1486 = _t1487 end - _t1461 = _t1462 - 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 + _t1485 = _t1486 + end + prediction791 = _t1485 + if prediction791 == 13 + _t1500 = parse_uint32_type(parser) + uint32_type805 = _t1500 + _t1501 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type805)) + _t1499 = _t1501 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 prediction791 == 12 + _t1503 = parse_float32_type(parser) + float32_type804 = _t1503 + _t1504 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type804)) + _t1502 = _t1504 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 prediction791 == 11 + _t1506 = parse_int32_type(parser) + int32_type803 = _t1506 + _t1507 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type803)) + _t1505 = _t1507 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 prediction791 == 10 + _t1509 = parse_boolean_type(parser) + boolean_type802 = _t1509 + _t1510 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type802)) + _t1508 = _t1510 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 prediction791 == 9 + _t1512 = parse_decimal_type(parser) + decimal_type801 = _t1512 + _t1513 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type801)) + _t1511 = _t1513 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 prediction791 == 8 + _t1515 = parse_missing_type(parser) + missing_type800 = _t1515 + _t1516 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type800)) + _t1514 = _t1516 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 prediction791 == 7 + _t1518 = parse_datetime_type(parser) + datetime_type799 = _t1518 + _t1519 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type799)) + _t1517 = _t1519 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 prediction791 == 6 + _t1521 = parse_date_type(parser) + date_type798 = _t1521 + _t1522 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type798)) + _t1520 = _t1522 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 prediction791 == 5 + _t1524 = parse_int128_type(parser) + int128_type797 = _t1524 + _t1525 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type797)) + _t1523 = _t1525 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 prediction791 == 4 + _t1527 = parse_uint128_type(parser) + uint128_type796 = _t1527 + _t1528 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type796)) + _t1526 = _t1528 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 prediction791 == 3 + _t1530 = parse_float_type(parser) + float_type795 = _t1530 + _t1531 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type795)) + _t1529 = _t1531 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 prediction791 == 2 + _t1533 = parse_int_type(parser) + int_type794 = _t1533 + _t1534 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type794)) + _t1532 = _t1534 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 prediction791 == 1 + _t1536 = parse_string_type(parser) + string_type793 = _t1536 + _t1537 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type793)) + _t1535 = _t1537 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 prediction791 == 0 + _t1539 = parse_unspecified_type(parser) + unspecified_type792 = _t1539 + _t1540 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type792)) + _t1538 = _t1540 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t1511 = _t1514 + _t1535 = _t1538 end - _t1508 = _t1511 + _t1532 = _t1535 end - _t1505 = _t1508 + _t1529 = _t1532 end - _t1502 = _t1505 + _t1526 = _t1529 end - _t1499 = _t1502 + _t1523 = _t1526 end - _t1496 = _t1499 + _t1520 = _t1523 end - _t1493 = _t1496 + _t1517 = _t1520 end - _t1490 = _t1493 + _t1514 = _t1517 end - _t1487 = _t1490 + _t1511 = _t1514 end - _t1484 = _t1487 + _t1508 = _t1511 end - _t1481 = _t1484 + _t1505 = _t1508 end - _t1478 = _t1481 + _t1502 = _t1505 end - _t1475 = _t1478 + _t1499 = _t1502 end - result795 = _t1475 - record_span!(parser, span_start794, "Type") - return result795 + result807 = _t1499 + record_span!(parser, span_start806, "Type") + return result807 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType - span_start796 = span_start(parser) + span_start808 = span_start(parser) consume_literal!(parser, "UNKNOWN") - _t1517 = Proto.UnspecifiedType() - result797 = _t1517 - record_span!(parser, span_start796, "UnspecifiedType") - return result797 + _t1541 = Proto.UnspecifiedType() + result809 = _t1541 + record_span!(parser, span_start808, "UnspecifiedType") + return result809 end function parse_string_type(parser::ParserState)::Proto.StringType - span_start798 = span_start(parser) + span_start810 = span_start(parser) consume_literal!(parser, "STRING") - _t1518 = Proto.StringType() - result799 = _t1518 - record_span!(parser, span_start798, "StringType") - return result799 + _t1542 = Proto.StringType() + result811 = _t1542 + record_span!(parser, span_start810, "StringType") + return result811 end function parse_int_type(parser::ParserState)::Proto.IntType - span_start800 = span_start(parser) + span_start812 = span_start(parser) consume_literal!(parser, "INT") - _t1519 = Proto.IntType() - result801 = _t1519 - record_span!(parser, span_start800, "IntType") - return result801 + _t1543 = Proto.IntType() + result813 = _t1543 + record_span!(parser, span_start812, "IntType") + return result813 end function parse_float_type(parser::ParserState)::Proto.FloatType - span_start802 = span_start(parser) + span_start814 = span_start(parser) consume_literal!(parser, "FLOAT") - _t1520 = Proto.FloatType() - result803 = _t1520 - record_span!(parser, span_start802, "FloatType") - return result803 + _t1544 = Proto.FloatType() + result815 = _t1544 + record_span!(parser, span_start814, "FloatType") + return result815 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type - span_start804 = span_start(parser) + span_start816 = span_start(parser) consume_literal!(parser, "UINT128") - _t1521 = Proto.UInt128Type() - result805 = _t1521 - record_span!(parser, span_start804, "UInt128Type") - return result805 + _t1545 = Proto.UInt128Type() + result817 = _t1545 + record_span!(parser, span_start816, "UInt128Type") + return result817 end function parse_int128_type(parser::ParserState)::Proto.Int128Type - span_start806 = span_start(parser) + span_start818 = span_start(parser) consume_literal!(parser, "INT128") - _t1522 = Proto.Int128Type() - result807 = _t1522 - record_span!(parser, span_start806, "Int128Type") - return result807 + _t1546 = Proto.Int128Type() + result819 = _t1546 + record_span!(parser, span_start818, "Int128Type") + return result819 end function parse_date_type(parser::ParserState)::Proto.DateType - span_start808 = span_start(parser) + span_start820 = span_start(parser) consume_literal!(parser, "DATE") - _t1523 = Proto.DateType() - result809 = _t1523 - record_span!(parser, span_start808, "DateType") - return result809 + _t1547 = Proto.DateType() + result821 = _t1547 + record_span!(parser, span_start820, "DateType") + return result821 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType - span_start810 = span_start(parser) + span_start822 = span_start(parser) consume_literal!(parser, "DATETIME") - _t1524 = Proto.DateTimeType() - result811 = _t1524 - record_span!(parser, span_start810, "DateTimeType") - return result811 + _t1548 = Proto.DateTimeType() + result823 = _t1548 + record_span!(parser, span_start822, "DateTimeType") + return result823 end function parse_missing_type(parser::ParserState)::Proto.MissingType - span_start812 = span_start(parser) + span_start824 = span_start(parser) consume_literal!(parser, "MISSING") - _t1525 = Proto.MissingType() - result813 = _t1525 - record_span!(parser, span_start812, "MissingType") - return result813 + _t1549 = Proto.MissingType() + result825 = _t1549 + record_span!(parser, span_start824, "MissingType") + return result825 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType - span_start816 = span_start(parser) + span_start828 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int814 = consume_terminal!(parser, "INT") - int_3815 = consume_terminal!(parser, "INT") + int826 = consume_terminal!(parser, "INT") + int_3827 = 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 + _t1550 = Proto.DecimalType(precision=Int32(int826), scale=Int32(int_3827)) + result829 = _t1550 + record_span!(parser, span_start828, "DecimalType") + return result829 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType - span_start818 = span_start(parser) + span_start830 = span_start(parser) consume_literal!(parser, "BOOLEAN") - _t1527 = Proto.BooleanType() - result819 = _t1527 - record_span!(parser, span_start818, "BooleanType") - return result819 + _t1551 = Proto.BooleanType() + result831 = _t1551 + record_span!(parser, span_start830, "BooleanType") + return result831 end function parse_int32_type(parser::ParserState)::Proto.Int32Type - span_start820 = span_start(parser) + span_start832 = span_start(parser) consume_literal!(parser, "INT32") - _t1528 = Proto.Int32Type() - result821 = _t1528 - record_span!(parser, span_start820, "Int32Type") - return result821 + _t1552 = Proto.Int32Type() + result833 = _t1552 + record_span!(parser, span_start832, "Int32Type") + return result833 end function parse_float32_type(parser::ParserState)::Proto.Float32Type - span_start822 = span_start(parser) + span_start834 = span_start(parser) consume_literal!(parser, "FLOAT32") - _t1529 = Proto.Float32Type() - result823 = _t1529 - record_span!(parser, span_start822, "Float32Type") - return result823 + _t1553 = Proto.Float32Type() + result835 = _t1553 + record_span!(parser, span_start834, "Float32Type") + return result835 end function parse_uint32_type(parser::ParserState)::Proto.UInt32Type - span_start824 = span_start(parser) + span_start836 = span_start(parser) consume_literal!(parser, "UINT32") - _t1530 = Proto.UInt32Type() - result825 = _t1530 - record_span!(parser, span_start824, "UInt32Type") - return result825 + _t1554 = Proto.UInt32Type() + result837 = _t1554 + record_span!(parser, span_start836, "UInt32Type") + return result837 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) + xs838 = Proto.Binding[] + cond839 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond839 + _t1555 = parse_binding(parser) + item840 = _t1555 + push!(xs838, item840) + cond839 = match_lookahead_terminal(parser, "SYMBOL", 0) end - bindings829 = xs826 - return bindings829 + bindings841 = xs838 + return bindings841 end function parse_formula(parser::ParserState)::Proto.Formula - span_start844 = span_start(parser) + span_start856 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t1533 = 0 + _t1557 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t1534 = 11 + _t1558 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t1535 = 3 + _t1559 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t1536 = 10 + _t1560 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t1537 = 9 + _t1561 = 9 else if match_lookahead_literal(parser, "or", 1) - _t1538 = 5 + _t1562 = 5 else if match_lookahead_literal(parser, "not", 1) - _t1539 = 6 + _t1563 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t1540 = 7 + _t1564 = 7 else if match_lookahead_literal(parser, "false", 1) - _t1541 = 1 + _t1565 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t1542 = 2 + _t1566 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t1543 = 12 + _t1567 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t1544 = 8 + _t1568 = 8 else if match_lookahead_literal(parser, "and", 1) - _t1545 = 4 + _t1569 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t1546 = 10 + _t1570 = 10 else if match_lookahead_literal(parser, ">", 1) - _t1547 = 10 + _t1571 = 10 else if match_lookahead_literal(parser, "=", 1) - _t1548 = 10 + _t1572 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t1549 = 10 + _t1573 = 10 else if match_lookahead_literal(parser, "<", 1) - _t1550 = 10 + _t1574 = 10 else if match_lookahead_literal(parser, "/", 1) - _t1551 = 10 + _t1575 = 10 else if match_lookahead_literal(parser, "-", 1) - _t1552 = 10 + _t1576 = 10 else if match_lookahead_literal(parser, "+", 1) - _t1553 = 10 + _t1577 = 10 else if match_lookahead_literal(parser, "*", 1) - _t1554 = 10 + _t1578 = 10 else - _t1554 = -1 + _t1578 = -1 end - _t1553 = _t1554 + _t1577 = _t1578 end - _t1552 = _t1553 + _t1576 = _t1577 end - _t1551 = _t1552 + _t1575 = _t1576 end - _t1550 = _t1551 + _t1574 = _t1575 end - _t1549 = _t1550 + _t1573 = _t1574 end - _t1548 = _t1549 + _t1572 = _t1573 end - _t1547 = _t1548 + _t1571 = _t1572 end - _t1546 = _t1547 + _t1570 = _t1571 end - _t1545 = _t1546 + _t1569 = _t1570 end - _t1544 = _t1545 + _t1568 = _t1569 end - _t1543 = _t1544 + _t1567 = _t1568 end - _t1542 = _t1543 + _t1566 = _t1567 end - _t1541 = _t1542 + _t1565 = _t1566 end - _t1540 = _t1541 + _t1564 = _t1565 end - _t1539 = _t1540 + _t1563 = _t1564 end - _t1538 = _t1539 + _t1562 = _t1563 end - _t1537 = _t1538 + _t1561 = _t1562 end - _t1536 = _t1537 + _t1560 = _t1561 end - _t1535 = _t1536 + _t1559 = _t1560 end - _t1534 = _t1535 + _t1558 = _t1559 end - _t1533 = _t1534 + _t1557 = _t1558 end - _t1532 = _t1533 + _t1556 = _t1557 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 + _t1556 = -1 + end + prediction842 = _t1556 + if prediction842 == 12 + _t1580 = parse_cast(parser) + cast855 = _t1580 + _t1581 = Proto.Formula(formula_type=OneOf(:cast, cast855)) + _t1579 = _t1581 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 prediction842 == 11 + _t1583 = parse_rel_atom(parser) + rel_atom854 = _t1583 + _t1584 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom854)) + _t1582 = _t1584 else - if prediction830 == 10 - _t1562 = parse_primitive(parser) - primitive841 = _t1562 - _t1563 = Proto.Formula(formula_type=OneOf(:primitive, primitive841)) - _t1561 = _t1563 + if prediction842 == 10 + _t1586 = parse_primitive(parser) + primitive853 = _t1586 + _t1587 = Proto.Formula(formula_type=OneOf(:primitive, primitive853)) + _t1585 = _t1587 else - if prediction830 == 9 - _t1565 = parse_pragma(parser) - pragma840 = _t1565 - _t1566 = Proto.Formula(formula_type=OneOf(:pragma, pragma840)) - _t1564 = _t1566 + if prediction842 == 9 + _t1589 = parse_pragma(parser) + pragma852 = _t1589 + _t1590 = Proto.Formula(formula_type=OneOf(:pragma, pragma852)) + _t1588 = _t1590 else - if prediction830 == 8 - _t1568 = parse_atom(parser) - atom839 = _t1568 - _t1569 = Proto.Formula(formula_type=OneOf(:atom, atom839)) - _t1567 = _t1569 + if prediction842 == 8 + _t1592 = parse_atom(parser) + atom851 = _t1592 + _t1593 = Proto.Formula(formula_type=OneOf(:atom, atom851)) + _t1591 = _t1593 else - if prediction830 == 7 - _t1571 = parse_ffi(parser) - ffi838 = _t1571 - _t1572 = Proto.Formula(formula_type=OneOf(:ffi, ffi838)) - _t1570 = _t1572 + if prediction842 == 7 + _t1595 = parse_ffi(parser) + ffi850 = _t1595 + _t1596 = Proto.Formula(formula_type=OneOf(:ffi, ffi850)) + _t1594 = _t1596 else - if prediction830 == 6 - _t1574 = parse_not(parser) - not837 = _t1574 - _t1575 = Proto.Formula(formula_type=OneOf(:not, not837)) - _t1573 = _t1575 + if prediction842 == 6 + _t1598 = parse_not(parser) + not849 = _t1598 + _t1599 = Proto.Formula(formula_type=OneOf(:not, not849)) + _t1597 = _t1599 else - if prediction830 == 5 - _t1577 = parse_disjunction(parser) - disjunction836 = _t1577 - _t1578 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction836)) - _t1576 = _t1578 + if prediction842 == 5 + _t1601 = parse_disjunction(parser) + disjunction848 = _t1601 + _t1602 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction848)) + _t1600 = _t1602 else - if prediction830 == 4 - _t1580 = parse_conjunction(parser) - conjunction835 = _t1580 - _t1581 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction835)) - _t1579 = _t1581 + if prediction842 == 4 + _t1604 = parse_conjunction(parser) + conjunction847 = _t1604 + _t1605 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction847)) + _t1603 = _t1605 else - if prediction830 == 3 - _t1583 = parse_reduce(parser) - reduce834 = _t1583 - _t1584 = Proto.Formula(formula_type=OneOf(:reduce, reduce834)) - _t1582 = _t1584 + if prediction842 == 3 + _t1607 = parse_reduce(parser) + reduce846 = _t1607 + _t1608 = Proto.Formula(formula_type=OneOf(:reduce, reduce846)) + _t1606 = _t1608 else - if prediction830 == 2 - _t1586 = parse_exists(parser) - exists833 = _t1586 - _t1587 = Proto.Formula(formula_type=OneOf(:exists, exists833)) - _t1585 = _t1587 + if prediction842 == 2 + _t1610 = parse_exists(parser) + exists845 = _t1610 + _t1611 = Proto.Formula(formula_type=OneOf(:exists, exists845)) + _t1609 = _t1611 else - if prediction830 == 1 - _t1589 = parse_false(parser) - false832 = _t1589 - _t1590 = Proto.Formula(formula_type=OneOf(:disjunction, false832)) - _t1588 = _t1590 + if prediction842 == 1 + _t1613 = parse_false(parser) + false844 = _t1613 + _t1614 = Proto.Formula(formula_type=OneOf(:disjunction, false844)) + _t1612 = _t1614 else - if prediction830 == 0 - _t1592 = parse_true(parser) - true831 = _t1592 - _t1593 = Proto.Formula(formula_type=OneOf(:conjunction, true831)) - _t1591 = _t1593 + if prediction842 == 0 + _t1616 = parse_true(parser) + true843 = _t1616 + _t1617 = Proto.Formula(formula_type=OneOf(:conjunction, true843)) + _t1615 = _t1617 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t1588 = _t1591 + _t1612 = _t1615 end - _t1585 = _t1588 + _t1609 = _t1612 end - _t1582 = _t1585 + _t1606 = _t1609 end - _t1579 = _t1582 + _t1603 = _t1606 end - _t1576 = _t1579 + _t1600 = _t1603 end - _t1573 = _t1576 + _t1597 = _t1600 end - _t1570 = _t1573 + _t1594 = _t1597 end - _t1567 = _t1570 + _t1591 = _t1594 end - _t1564 = _t1567 + _t1588 = _t1591 end - _t1561 = _t1564 + _t1585 = _t1588 end - _t1558 = _t1561 + _t1582 = _t1585 end - _t1555 = _t1558 + _t1579 = _t1582 end - result845 = _t1555 - record_span!(parser, span_start844, "Formula") - return result845 + result857 = _t1579 + record_span!(parser, span_start856, "Formula") + return result857 end function parse_true(parser::ParserState)::Proto.Conjunction - span_start846 = span_start(parser) + span_start858 = 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 + _t1618 = Proto.Conjunction(args=Proto.Formula[]) + result859 = _t1618 + record_span!(parser, span_start858, "Conjunction") + return result859 end function parse_false(parser::ParserState)::Proto.Disjunction - span_start848 = span_start(parser) + span_start860 = 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 + _t1619 = Proto.Disjunction(args=Proto.Formula[]) + result861 = _t1619 + record_span!(parser, span_start860, "Disjunction") + return result861 end function parse_exists(parser::ParserState)::Proto.Exists - span_start852 = span_start(parser) + span_start864 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t1596 = parse_bindings(parser) - bindings850 = _t1596 - _t1597 = parse_formula(parser) - formula851 = _t1597 + _t1620 = parse_bindings(parser) + bindings862 = _t1620 + _t1621 = parse_formula(parser) + formula863 = _t1621 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 + _t1622 = Proto.Abstraction(vars=vcat(bindings862[1], !isnothing(bindings862[2]) ? bindings862[2] : []), value=formula863) + _t1623 = Proto.Exists(body=_t1622) + result865 = _t1623 + record_span!(parser, span_start864, "Exists") + return result865 end function parse_reduce(parser::ParserState)::Proto.Reduce - span_start857 = span_start(parser) + span_start869 = 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 + _t1624 = parse_abstraction(parser) + abstraction866 = _t1624 + _t1625 = parse_abstraction(parser) + abstraction_3867 = _t1625 + _t1626 = parse_terms(parser) + terms868 = _t1626 consume_literal!(parser, ")") - _t1603 = Proto.Reduce(op=abstraction854, body=abstraction_3855, terms=terms856) - result858 = _t1603 - record_span!(parser, span_start857, "Reduce") - return result858 + _t1627 = Proto.Reduce(op=abstraction866, body=abstraction_3867, terms=terms868) + result870 = _t1627 + record_span!(parser, span_start869, "Reduce") + return result870 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 + xs871 = Proto.Term[] + cond872 = (((((((((((((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 cond872 + _t1628 = parse_term(parser) + item873 = _t1628 + push!(xs871, item873) + cond872 = (((((((((((((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 + terms874 = xs871 consume_literal!(parser, ")") - return terms862 + return terms874 end function parse_term(parser::ParserState)::Proto.Term - span_start866 = span_start(parser) + span_start878 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1605 = 1 + _t1629 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1606 = 1 + _t1630 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1607 = 1 + _t1631 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1608 = 1 + _t1632 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1609 = 0 + _t1633 = 0 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1610 = 1 + _t1634 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1611 = 1 + _t1635 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1612 = 1 + _t1636 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1613 = 1 + _t1637 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1614 = 1 + _t1638 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1615 = 1 + _t1639 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1616 = 1 + _t1640 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1617 = 1 + _t1641 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1618 = 1 + _t1642 = 1 else - _t1618 = -1 + _t1642 = -1 end - _t1617 = _t1618 + _t1641 = _t1642 end - _t1616 = _t1617 + _t1640 = _t1641 end - _t1615 = _t1616 + _t1639 = _t1640 end - _t1614 = _t1615 + _t1638 = _t1639 end - _t1613 = _t1614 + _t1637 = _t1638 end - _t1612 = _t1613 + _t1636 = _t1637 end - _t1611 = _t1612 + _t1635 = _t1636 end - _t1610 = _t1611 + _t1634 = _t1635 end - _t1609 = _t1610 + _t1633 = _t1634 end - _t1608 = _t1609 + _t1632 = _t1633 end - _t1607 = _t1608 + _t1631 = _t1632 end - _t1606 = _t1607 + _t1630 = _t1631 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 + _t1629 = _t1630 + end + prediction875 = _t1629 + if prediction875 == 1 + _t1644 = parse_value(parser) + value877 = _t1644 + _t1645 = Proto.Term(term_type=OneOf(:constant, value877)) + _t1643 = _t1645 else - if prediction863 == 0 - _t1623 = parse_var(parser) - var864 = _t1623 - _t1624 = Proto.Term(term_type=OneOf(:var, var864)) - _t1622 = _t1624 + if prediction875 == 0 + _t1647 = parse_var(parser) + var876 = _t1647 + _t1648 = Proto.Term(term_type=OneOf(:var, var876)) + _t1646 = _t1648 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t1619 = _t1622 + _t1643 = _t1646 end - result867 = _t1619 - record_span!(parser, span_start866, "Term") - return result867 + result879 = _t1643 + record_span!(parser, span_start878, "Term") + return result879 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_start881 = span_start(parser) + symbol880 = consume_terminal!(parser, "SYMBOL") + _t1649 = Proto.Var(name=symbol880) + result882 = _t1649 + record_span!(parser, span_start881, "Var") + return result882 end function parse_value(parser::ParserState)::Proto.Value - span_start884 = span_start(parser) + span_start896 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1626 = 12 + _t1650 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1627 = 11 + _t1651 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1628 = 12 + _t1652 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1630 = 1 + _t1654 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1631 = 0 + _t1655 = 0 else - _t1631 = -1 + _t1655 = -1 end - _t1630 = _t1631 + _t1654 = _t1655 end - _t1629 = _t1630 + _t1653 = _t1654 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1632 = 7 + _t1656 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1633 = 8 + _t1657 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1634 = 2 + _t1658 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1635 = 3 + _t1659 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1636 = 9 + _t1660 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1637 = 4 + _t1661 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1638 = 5 + _t1662 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1639 = 6 + _t1663 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1640 = 10 + _t1664 = 10 else - _t1640 = -1 + _t1664 = -1 end - _t1639 = _t1640 + _t1663 = _t1664 end - _t1638 = _t1639 + _t1662 = _t1663 end - _t1637 = _t1638 + _t1661 = _t1662 end - _t1636 = _t1637 + _t1660 = _t1661 end - _t1635 = _t1636 + _t1659 = _t1660 end - _t1634 = _t1635 + _t1658 = _t1659 end - _t1633 = _t1634 + _t1657 = _t1658 end - _t1632 = _t1633 + _t1656 = _t1657 end - _t1629 = _t1632 + _t1653 = _t1656 end - _t1628 = _t1629 + _t1652 = _t1653 end - _t1627 = _t1628 + _t1651 = _t1652 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 + _t1650 = _t1651 + end + prediction883 = _t1650 + if prediction883 == 12 + _t1666 = parse_boolean_value(parser) + boolean_value895 = _t1666 + _t1667 = Proto.Value(value=OneOf(:boolean_value, boolean_value895)) + _t1665 = _t1667 else - if prediction871 == 11 + if prediction883 == 11 consume_literal!(parser, "missing") - _t1645 = Proto.MissingValue() - _t1646 = Proto.Value(value=OneOf(:missing_value, _t1645)) - _t1644 = _t1646 + _t1669 = Proto.MissingValue() + _t1670 = Proto.Value(value=OneOf(:missing_value, _t1669)) + _t1668 = _t1670 else - if prediction871 == 10 - formatted_decimal882 = consume_terminal!(parser, "DECIMAL") - _t1648 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal882)) - _t1647 = _t1648 + if prediction883 == 10 + formatted_decimal894 = consume_terminal!(parser, "DECIMAL") + _t1672 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal894)) + _t1671 = _t1672 else - if prediction871 == 9 - formatted_int128881 = consume_terminal!(parser, "INT128") - _t1650 = Proto.Value(value=OneOf(:int128_value, formatted_int128881)) - _t1649 = _t1650 + if prediction883 == 9 + formatted_int128893 = consume_terminal!(parser, "INT128") + _t1674 = Proto.Value(value=OneOf(:int128_value, formatted_int128893)) + _t1673 = _t1674 else - if prediction871 == 8 - formatted_uint128880 = consume_terminal!(parser, "UINT128") - _t1652 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128880)) - _t1651 = _t1652 + if prediction883 == 8 + formatted_uint128892 = consume_terminal!(parser, "UINT128") + _t1676 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128892)) + _t1675 = _t1676 else - if prediction871 == 7 - formatted_uint32879 = consume_terminal!(parser, "UINT32") - _t1654 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32879)) - _t1653 = _t1654 + if prediction883 == 7 + formatted_uint32891 = consume_terminal!(parser, "UINT32") + _t1678 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32891)) + _t1677 = _t1678 else - if prediction871 == 6 - formatted_float878 = consume_terminal!(parser, "FLOAT") - _t1656 = Proto.Value(value=OneOf(:float_value, formatted_float878)) - _t1655 = _t1656 + if prediction883 == 6 + formatted_float890 = consume_terminal!(parser, "FLOAT") + _t1680 = Proto.Value(value=OneOf(:float_value, formatted_float890)) + _t1679 = _t1680 else - if prediction871 == 5 - formatted_float32877 = consume_terminal!(parser, "FLOAT32") - _t1658 = Proto.Value(value=OneOf(:float32_value, formatted_float32877)) - _t1657 = _t1658 + if prediction883 == 5 + formatted_float32889 = consume_terminal!(parser, "FLOAT32") + _t1682 = Proto.Value(value=OneOf(:float32_value, formatted_float32889)) + _t1681 = _t1682 else - if prediction871 == 4 - formatted_int876 = consume_terminal!(parser, "INT") - _t1660 = Proto.Value(value=OneOf(:int_value, formatted_int876)) - _t1659 = _t1660 + if prediction883 == 4 + formatted_int888 = consume_terminal!(parser, "INT") + _t1684 = Proto.Value(value=OneOf(:int_value, formatted_int888)) + _t1683 = _t1684 else - if prediction871 == 3 - formatted_int32875 = consume_terminal!(parser, "INT32") - _t1662 = Proto.Value(value=OneOf(:int32_value, formatted_int32875)) - _t1661 = _t1662 + if prediction883 == 3 + formatted_int32887 = consume_terminal!(parser, "INT32") + _t1686 = Proto.Value(value=OneOf(:int32_value, formatted_int32887)) + _t1685 = _t1686 else - if prediction871 == 2 - formatted_string874 = consume_terminal!(parser, "STRING") - _t1664 = Proto.Value(value=OneOf(:string_value, formatted_string874)) - _t1663 = _t1664 + if prediction883 == 2 + formatted_string886 = consume_terminal!(parser, "STRING") + _t1688 = Proto.Value(value=OneOf(:string_value, formatted_string886)) + _t1687 = _t1688 else - if prediction871 == 1 - _t1666 = parse_datetime(parser) - datetime873 = _t1666 - _t1667 = Proto.Value(value=OneOf(:datetime_value, datetime873)) - _t1665 = _t1667 + if prediction883 == 1 + _t1690 = parse_datetime(parser) + datetime885 = _t1690 + _t1691 = Proto.Value(value=OneOf(:datetime_value, datetime885)) + _t1689 = _t1691 else - if prediction871 == 0 - _t1669 = parse_date(parser) - date872 = _t1669 - _t1670 = Proto.Value(value=OneOf(:date_value, date872)) - _t1668 = _t1670 + if prediction883 == 0 + _t1693 = parse_date(parser) + date884 = _t1693 + _t1694 = Proto.Value(value=OneOf(:date_value, date884)) + _t1692 = _t1694 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t1665 = _t1668 + _t1689 = _t1692 end - _t1663 = _t1665 + _t1687 = _t1689 end - _t1661 = _t1663 + _t1685 = _t1687 end - _t1659 = _t1661 + _t1683 = _t1685 end - _t1657 = _t1659 + _t1681 = _t1683 end - _t1655 = _t1657 + _t1679 = _t1681 end - _t1653 = _t1655 + _t1677 = _t1679 end - _t1651 = _t1653 + _t1675 = _t1677 end - _t1649 = _t1651 + _t1673 = _t1675 end - _t1647 = _t1649 + _t1671 = _t1673 end - _t1644 = _t1647 + _t1668 = _t1671 end - _t1641 = _t1644 + _t1665 = _t1668 end - result885 = _t1641 - record_span!(parser, span_start884, "Value") - return result885 + result897 = _t1665 + record_span!(parser, span_start896, "Value") + return result897 end function parse_date(parser::ParserState)::Proto.DateValue - span_start889 = span_start(parser) + span_start901 = 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_int898 = consume_terminal!(parser, "INT") + formatted_int_3899 = consume_terminal!(parser, "INT") + formatted_int_4900 = 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 + _t1695 = Proto.DateValue(year=Int32(formatted_int898), month=Int32(formatted_int_3899), day=Int32(formatted_int_4900)) + result902 = _t1695 + record_span!(parser, span_start901, "DateValue") + return result902 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue - span_start898 = span_start(parser) + span_start910 = 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_int903 = consume_terminal!(parser, "INT") + formatted_int_3904 = consume_terminal!(parser, "INT") + formatted_int_4905 = consume_terminal!(parser, "INT") + formatted_int_5906 = consume_terminal!(parser, "INT") + formatted_int_6907 = consume_terminal!(parser, "INT") + formatted_int_7908 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1672 = consume_terminal!(parser, "INT") + _t1696 = consume_terminal!(parser, "INT") else - _t1672 = nothing + _t1696 = nothing end - formatted_int_8897 = _t1672 + formatted_int_8909 = _t1696 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 + _t1697 = Proto.DateTimeValue(year=Int32(formatted_int903), month=Int32(formatted_int_3904), day=Int32(formatted_int_4905), hour=Int32(formatted_int_5906), minute=Int32(formatted_int_6907), second=Int32(formatted_int_7908), microsecond=Int32((!isnothing(formatted_int_8909) ? formatted_int_8909 : 0))) + result911 = _t1697 + record_span!(parser, span_start910, "DateTimeValue") + return result911 end function parse_conjunction(parser::ParserState)::Proto.Conjunction - span_start904 = span_start(parser) + span_start916 = 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 + xs912 = Proto.Formula[] + cond913 = match_lookahead_literal(parser, "(", 0) + while cond913 + _t1698 = parse_formula(parser) + item914 = _t1698 + push!(xs912, item914) + cond913 = match_lookahead_literal(parser, "(", 0) + end + formulas915 = xs912 consume_literal!(parser, ")") - _t1675 = Proto.Conjunction(args=formulas903) - result905 = _t1675 - record_span!(parser, span_start904, "Conjunction") - return result905 + _t1699 = Proto.Conjunction(args=formulas915) + result917 = _t1699 + record_span!(parser, span_start916, "Conjunction") + return result917 end function parse_disjunction(parser::ParserState)::Proto.Disjunction - span_start910 = span_start(parser) + span_start922 = 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 + xs918 = Proto.Formula[] + cond919 = match_lookahead_literal(parser, "(", 0) + while cond919 + _t1700 = parse_formula(parser) + item920 = _t1700 + push!(xs918, item920) + cond919 = match_lookahead_literal(parser, "(", 0) + end + formulas921 = xs918 consume_literal!(parser, ")") - _t1677 = Proto.Disjunction(args=formulas909) - result911 = _t1677 - record_span!(parser, span_start910, "Disjunction") - return result911 + _t1701 = Proto.Disjunction(args=formulas921) + result923 = _t1701 + record_span!(parser, span_start922, "Disjunction") + return result923 end function parse_not(parser::ParserState)::Proto.Not - span_start913 = span_start(parser) + span_start925 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "not") - _t1678 = parse_formula(parser) - formula912 = _t1678 + _t1702 = parse_formula(parser) + formula924 = _t1702 consume_literal!(parser, ")") - _t1679 = Proto.Not(arg=formula912) - result914 = _t1679 - record_span!(parser, span_start913, "Not") - return result914 + _t1703 = Proto.Not(arg=formula924) + result926 = _t1703 + record_span!(parser, span_start925, "Not") + return result926 end function parse_ffi(parser::ParserState)::Proto.FFI - span_start918 = span_start(parser) + span_start930 = 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 + _t1704 = parse_name(parser) + name927 = _t1704 + _t1705 = parse_ffi_args(parser) + ffi_args928 = _t1705 + _t1706 = parse_terms(parser) + terms929 = _t1706 consume_literal!(parser, ")") - _t1683 = Proto.FFI(name=name915, args=ffi_args916, terms=terms917) - result919 = _t1683 - record_span!(parser, span_start918, "FFI") - return result919 + _t1707 = Proto.FFI(name=name927, args=ffi_args928, terms=terms929) + result931 = _t1707 + record_span!(parser, span_start930, "FFI") + return result931 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol920 = consume_terminal!(parser, "SYMBOL") - return symbol920 + symbol932 = consume_terminal!(parser, "SYMBOL") + return symbol932 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 + xs933 = Proto.Abstraction[] + cond934 = match_lookahead_literal(parser, "(", 0) + while cond934 + _t1708 = parse_abstraction(parser) + item935 = _t1708 + push!(xs933, item935) + cond934 = match_lookahead_literal(parser, "(", 0) + end + abstractions936 = xs933 consume_literal!(parser, ")") - return abstractions924 + return abstractions936 end function parse_atom(parser::ParserState)::Proto.Atom - span_start930 = span_start(parser) + span_start942 = 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 + _t1709 = parse_relation_id(parser) + relation_id937 = _t1709 + xs938 = Proto.Term[] + cond939 = (((((((((((((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 cond939 + _t1710 = parse_term(parser) + item940 = _t1710 + push!(xs938, item940) + cond939 = (((((((((((((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 + terms941 = xs938 consume_literal!(parser, ")") - _t1687 = Proto.Atom(name=relation_id925, terms=terms929) - result931 = _t1687 - record_span!(parser, span_start930, "Atom") - return result931 + _t1711 = Proto.Atom(name=relation_id937, terms=terms941) + result943 = _t1711 + record_span!(parser, span_start942, "Atom") + return result943 end function parse_pragma(parser::ParserState)::Proto.Pragma - span_start937 = span_start(parser) + span_start949 = 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)) + _t1712 = parse_name(parser) + name944 = _t1712 + xs945 = Proto.Term[] + cond946 = (((((((((((((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 cond946 + _t1713 = parse_term(parser) + item947 = _t1713 + push!(xs945, item947) + cond946 = (((((((((((((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 + terms948 = xs945 consume_literal!(parser, ")") - _t1690 = Proto.Pragma(name=name932, terms=terms936) - result938 = _t1690 - record_span!(parser, span_start937, "Pragma") - return result938 + _t1714 = Proto.Pragma(name=name944, terms=terms948) + result950 = _t1714 + record_span!(parser, span_start949, "Pragma") + return result950 end function parse_primitive(parser::ParserState)::Proto.Primitive - span_start954 = span_start(parser) + span_start966 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t1692 = 9 + _t1716 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1693 = 4 + _t1717 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1694 = 3 + _t1718 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1695 = 0 + _t1719 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1696 = 2 + _t1720 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1697 = 1 + _t1721 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1698 = 8 + _t1722 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1699 = 6 + _t1723 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1700 = 5 + _t1724 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1701 = 7 + _t1725 = 7 else - _t1701 = -1 + _t1725 = -1 end - _t1700 = _t1701 + _t1724 = _t1725 end - _t1699 = _t1700 + _t1723 = _t1724 end - _t1698 = _t1699 + _t1722 = _t1723 end - _t1697 = _t1698 + _t1721 = _t1722 end - _t1696 = _t1697 + _t1720 = _t1721 end - _t1695 = _t1696 + _t1719 = _t1720 end - _t1694 = _t1695 + _t1718 = _t1719 end - _t1693 = _t1694 + _t1717 = _t1718 end - _t1692 = _t1693 + _t1716 = _t1717 end - _t1691 = _t1692 + _t1715 = _t1716 else - _t1691 = -1 + _t1715 = -1 end - prediction939 = _t1691 - if prediction939 == 9 + prediction951 = _t1715 + if prediction951 == 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)) + _t1727 = parse_name(parser) + name961 = _t1727 + xs962 = Proto.RelTerm[] + cond963 = ((((((((((((((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 cond963 + _t1728 = parse_rel_term(parser) + item964 = _t1728 + push!(xs962, item964) + cond963 = ((((((((((((((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_terms965 = xs962 consume_literal!(parser, ")") - _t1705 = Proto.Primitive(name=name949, terms=rel_terms953) - _t1702 = _t1705 + _t1729 = Proto.Primitive(name=name961, terms=rel_terms965) + _t1726 = _t1729 else - if prediction939 == 8 - _t1707 = parse_divide(parser) - divide948 = _t1707 - _t1706 = divide948 + if prediction951 == 8 + _t1731 = parse_divide(parser) + divide960 = _t1731 + _t1730 = divide960 else - if prediction939 == 7 - _t1709 = parse_multiply(parser) - multiply947 = _t1709 - _t1708 = multiply947 + if prediction951 == 7 + _t1733 = parse_multiply(parser) + multiply959 = _t1733 + _t1732 = multiply959 else - if prediction939 == 6 - _t1711 = parse_minus(parser) - minus946 = _t1711 - _t1710 = minus946 + if prediction951 == 6 + _t1735 = parse_minus(parser) + minus958 = _t1735 + _t1734 = minus958 else - if prediction939 == 5 - _t1713 = parse_add(parser) - add945 = _t1713 - _t1712 = add945 + if prediction951 == 5 + _t1737 = parse_add(parser) + add957 = _t1737 + _t1736 = add957 else - if prediction939 == 4 - _t1715 = parse_gt_eq(parser) - gt_eq944 = _t1715 - _t1714 = gt_eq944 + if prediction951 == 4 + _t1739 = parse_gt_eq(parser) + gt_eq956 = _t1739 + _t1738 = gt_eq956 else - if prediction939 == 3 - _t1717 = parse_gt(parser) - gt943 = _t1717 - _t1716 = gt943 + if prediction951 == 3 + _t1741 = parse_gt(parser) + gt955 = _t1741 + _t1740 = gt955 else - if prediction939 == 2 - _t1719 = parse_lt_eq(parser) - lt_eq942 = _t1719 - _t1718 = lt_eq942 + if prediction951 == 2 + _t1743 = parse_lt_eq(parser) + lt_eq954 = _t1743 + _t1742 = lt_eq954 else - if prediction939 == 1 - _t1721 = parse_lt(parser) - lt941 = _t1721 - _t1720 = lt941 + if prediction951 == 1 + _t1745 = parse_lt(parser) + lt953 = _t1745 + _t1744 = lt953 else - if prediction939 == 0 - _t1723 = parse_eq(parser) - eq940 = _t1723 - _t1722 = eq940 + if prediction951 == 0 + _t1747 = parse_eq(parser) + eq952 = _t1747 + _t1746 = eq952 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1720 = _t1722 + _t1744 = _t1746 end - _t1718 = _t1720 + _t1742 = _t1744 end - _t1716 = _t1718 + _t1740 = _t1742 end - _t1714 = _t1716 + _t1738 = _t1740 end - _t1712 = _t1714 + _t1736 = _t1738 end - _t1710 = _t1712 + _t1734 = _t1736 end - _t1708 = _t1710 + _t1732 = _t1734 end - _t1706 = _t1708 + _t1730 = _t1732 end - _t1702 = _t1706 + _t1726 = _t1730 end - result955 = _t1702 - record_span!(parser, span_start954, "Primitive") - return result955 + result967 = _t1726 + record_span!(parser, span_start966, "Primitive") + return result967 end function parse_eq(parser::ParserState)::Proto.Primitive - span_start958 = span_start(parser) + span_start970 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "=") - _t1724 = parse_term(parser) - term956 = _t1724 - _t1725 = parse_term(parser) - term_3957 = _t1725 + _t1748 = parse_term(parser) + term968 = _t1748 + _t1749 = parse_term(parser) + term_3969 = _t1749 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 + _t1750 = Proto.RelTerm(rel_term_type=OneOf(:term, term968)) + _t1751 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3969)) + _t1752 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1750, _t1751]) + result971 = _t1752 + record_span!(parser, span_start970, "Primitive") + return result971 end function parse_lt(parser::ParserState)::Proto.Primitive - span_start962 = span_start(parser) + span_start974 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<") - _t1729 = parse_term(parser) - term960 = _t1729 - _t1730 = parse_term(parser) - term_3961 = _t1730 + _t1753 = parse_term(parser) + term972 = _t1753 + _t1754 = parse_term(parser) + term_3973 = _t1754 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 + _t1755 = Proto.RelTerm(rel_term_type=OneOf(:term, term972)) + _t1756 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3973)) + _t1757 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1755, _t1756]) + result975 = _t1757 + record_span!(parser, span_start974, "Primitive") + return result975 end function parse_lt_eq(parser::ParserState)::Proto.Primitive - span_start966 = span_start(parser) + span_start978 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<=") - _t1734 = parse_term(parser) - term964 = _t1734 - _t1735 = parse_term(parser) - term_3965 = _t1735 + _t1758 = parse_term(parser) + term976 = _t1758 + _t1759 = parse_term(parser) + term_3977 = _t1759 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 + _t1760 = Proto.RelTerm(rel_term_type=OneOf(:term, term976)) + _t1761 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3977)) + _t1762 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1760, _t1761]) + result979 = _t1762 + record_span!(parser, span_start978, "Primitive") + return result979 end function parse_gt(parser::ParserState)::Proto.Primitive - span_start970 = span_start(parser) + span_start982 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">") - _t1739 = parse_term(parser) - term968 = _t1739 - _t1740 = parse_term(parser) - term_3969 = _t1740 + _t1763 = parse_term(parser) + term980 = _t1763 + _t1764 = parse_term(parser) + term_3981 = _t1764 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 + _t1765 = Proto.RelTerm(rel_term_type=OneOf(:term, term980)) + _t1766 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3981)) + _t1767 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1765, _t1766]) + result983 = _t1767 + record_span!(parser, span_start982, "Primitive") + return result983 end function parse_gt_eq(parser::ParserState)::Proto.Primitive - span_start974 = span_start(parser) + span_start986 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">=") - _t1744 = parse_term(parser) - term972 = _t1744 - _t1745 = parse_term(parser) - term_3973 = _t1745 + _t1768 = parse_term(parser) + term984 = _t1768 + _t1769 = parse_term(parser) + term_3985 = _t1769 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 + _t1770 = Proto.RelTerm(rel_term_type=OneOf(:term, term984)) + _t1771 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3985)) + _t1772 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1770, _t1771]) + result987 = _t1772 + record_span!(parser, span_start986, "Primitive") + return result987 end function parse_add(parser::ParserState)::Proto.Primitive - span_start979 = span_start(parser) + span_start991 = 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 + _t1773 = parse_term(parser) + term988 = _t1773 + _t1774 = parse_term(parser) + term_3989 = _t1774 + _t1775 = parse_term(parser) + term_4990 = _t1775 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 + _t1776 = Proto.RelTerm(rel_term_type=OneOf(:term, term988)) + _t1777 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3989)) + _t1778 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4990)) + _t1779 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1776, _t1777, _t1778]) + result992 = _t1779 + record_span!(parser, span_start991, "Primitive") + return result992 end function parse_minus(parser::ParserState)::Proto.Primitive - span_start984 = span_start(parser) + span_start996 = 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 + _t1780 = parse_term(parser) + term993 = _t1780 + _t1781 = parse_term(parser) + term_3994 = _t1781 + _t1782 = parse_term(parser) + term_4995 = _t1782 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 + _t1783 = Proto.RelTerm(rel_term_type=OneOf(:term, term993)) + _t1784 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3994)) + _t1785 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4995)) + _t1786 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1783, _t1784, _t1785]) + result997 = _t1786 + record_span!(parser, span_start996, "Primitive") + return result997 end function parse_multiply(parser::ParserState)::Proto.Primitive - span_start989 = span_start(parser) + span_start1001 = 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 + _t1787 = parse_term(parser) + term998 = _t1787 + _t1788 = parse_term(parser) + term_3999 = _t1788 + _t1789 = parse_term(parser) + term_41000 = _t1789 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 + _t1790 = Proto.RelTerm(rel_term_type=OneOf(:term, term998)) + _t1791 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3999)) + _t1792 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41000)) + _t1793 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1790, _t1791, _t1792]) + result1002 = _t1793 + record_span!(parser, span_start1001, "Primitive") + return result1002 end function parse_divide(parser::ParserState)::Proto.Primitive - span_start994 = span_start(parser) + span_start1006 = 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 + _t1794 = parse_term(parser) + term1003 = _t1794 + _t1795 = parse_term(parser) + term_31004 = _t1795 + _t1796 = parse_term(parser) + term_41005 = _t1796 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 + _t1797 = Proto.RelTerm(rel_term_type=OneOf(:term, term1003)) + _t1798 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31004)) + _t1799 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41005)) + _t1800 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1797, _t1798, _t1799]) + result1007 = _t1800 + record_span!(parser, span_start1006, "Primitive") + return result1007 end function parse_rel_term(parser::ParserState)::Proto.RelTerm - span_start999 = span_start(parser) + span_start1011 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1777 = 1 + _t1801 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1778 = 1 + _t1802 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1779 = 1 + _t1803 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1780 = 1 + _t1804 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1781 = 0 + _t1805 = 0 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1782 = 1 + _t1806 = 1 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1783 = 1 + _t1807 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1784 = 1 + _t1808 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1785 = 1 + _t1809 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1786 = 1 + _t1810 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1787 = 1 + _t1811 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1788 = 1 + _t1812 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1789 = 1 + _t1813 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1790 = 1 + _t1814 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1791 = 1 + _t1815 = 1 else - _t1791 = -1 + _t1815 = -1 end - _t1790 = _t1791 + _t1814 = _t1815 end - _t1789 = _t1790 + _t1813 = _t1814 end - _t1788 = _t1789 + _t1812 = _t1813 end - _t1787 = _t1788 + _t1811 = _t1812 end - _t1786 = _t1787 + _t1810 = _t1811 end - _t1785 = _t1786 + _t1809 = _t1810 end - _t1784 = _t1785 + _t1808 = _t1809 end - _t1783 = _t1784 + _t1807 = _t1808 end - _t1782 = _t1783 + _t1806 = _t1807 end - _t1781 = _t1782 + _t1805 = _t1806 end - _t1780 = _t1781 + _t1804 = _t1805 end - _t1779 = _t1780 + _t1803 = _t1804 end - _t1778 = _t1779 + _t1802 = _t1803 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 + _t1801 = _t1802 + end + prediction1008 = _t1801 + if prediction1008 == 1 + _t1817 = parse_term(parser) + term1010 = _t1817 + _t1818 = Proto.RelTerm(rel_term_type=OneOf(:term, term1010)) + _t1816 = _t1818 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 prediction1008 == 0 + _t1820 = parse_specialized_value(parser) + specialized_value1009 = _t1820 + _t1821 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value1009)) + _t1819 = _t1821 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1792 = _t1795 + _t1816 = _t1819 end - result1000 = _t1792 - record_span!(parser, span_start999, "RelTerm") - return result1000 + result1012 = _t1816 + record_span!(parser, span_start1011, "RelTerm") + return result1012 end function parse_specialized_value(parser::ParserState)::Proto.Value - span_start1002 = span_start(parser) + span_start1014 = 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 + _t1822 = parse_raw_value(parser) + raw_value1013 = _t1822 + result1015 = raw_value1013 + record_span!(parser, span_start1014, "Value") + return result1015 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom - span_start1009 = span_start(parser) + span_start1021 = 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 + _t1823 = parse_name(parser) + name1016 = _t1823 + xs1017 = Proto.RelTerm[] + cond1018 = ((((((((((((((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 cond1018 + _t1824 = parse_rel_term(parser) + item1019 = _t1824 + push!(xs1017, item1019) + cond1018 = ((((((((((((((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_terms1020 = xs1017 consume_literal!(parser, ")") - _t1801 = Proto.RelAtom(name=name1004, terms=rel_terms1008) - result1010 = _t1801 - record_span!(parser, span_start1009, "RelAtom") - return result1010 + _t1825 = Proto.RelAtom(name=name1016, terms=rel_terms1020) + result1022 = _t1825 + record_span!(parser, span_start1021, "RelAtom") + return result1022 end function parse_cast(parser::ParserState)::Proto.Cast - span_start1013 = span_start(parser) + span_start1025 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1802 = parse_term(parser) - term1011 = _t1802 - _t1803 = parse_term(parser) - term_31012 = _t1803 + _t1826 = parse_term(parser) + term1023 = _t1826 + _t1827 = parse_term(parser) + term_31024 = _t1827 consume_literal!(parser, ")") - _t1804 = Proto.Cast(input=term1011, result=term_31012) - result1014 = _t1804 - record_span!(parser, span_start1013, "Cast") - return result1014 + _t1828 = Proto.Cast(input=term1023, result=term_31024) + result1026 = _t1828 + record_span!(parser, span_start1025, "Cast") + return result1026 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 + xs1027 = Proto.Attribute[] + cond1028 = match_lookahead_literal(parser, "(", 0) + while cond1028 + _t1829 = parse_attribute(parser) + item1029 = _t1829 + push!(xs1027, item1029) + cond1028 = match_lookahead_literal(parser, "(", 0) + end + attributes1030 = xs1027 consume_literal!(parser, ")") - return attributes1018 + return attributes1030 end function parse_attribute(parser::ParserState)::Proto.Attribute - span_start1024 = span_start(parser) + span_start1036 = 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 + _t1830 = parse_name(parser) + name1031 = _t1830 + xs1032 = Proto.Value[] + cond1033 = ((((((((((((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 cond1033 + _t1831 = parse_raw_value(parser) + item1034 = _t1831 + push!(xs1032, item1034) + cond1033 = ((((((((((((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_values1035 = xs1032 consume_literal!(parser, ")") - _t1808 = Proto.Attribute(name=name1019, args=raw_values1023) - result1025 = _t1808 - record_span!(parser, span_start1024, "Attribute") - return result1025 + _t1832 = Proto.Attribute(name=name1031, args=raw_values1035) + result1037 = _t1832 + record_span!(parser, span_start1036, "Attribute") + return result1037 end function parse_algorithm(parser::ParserState)::Proto.Algorithm - span_start1032 = span_start(parser) + span_start1044 = 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 + xs1038 = Proto.RelationId[] + cond1039 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1039 + _t1833 = parse_relation_id(parser) + item1040 = _t1833 + push!(xs1038, item1040) + cond1039 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1041 = xs1038 + _t1834 = parse_script(parser) + script1042 = _t1834 if match_lookahead_literal(parser, "(", 0) - _t1812 = parse_attrs(parser) - _t1811 = _t1812 + _t1836 = parse_attrs(parser) + _t1835 = _t1836 else - _t1811 = nothing + _t1835 = nothing end - attrs1031 = _t1811 + attrs1043 = _t1835 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 + _t1837 = Proto.Algorithm(var"#global"=relation_ids1041, body=script1042, attrs=(!isnothing(attrs1043) ? attrs1043 : Proto.Attribute[])) + result1045 = _t1837 + record_span!(parser, span_start1044, "Algorithm") + return result1045 end function parse_script(parser::ParserState)::Proto.Script - span_start1038 = span_start(parser) + span_start1050 = 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) - end - constructs1037 = xs1034 + xs1046 = Proto.Construct[] + cond1047 = match_lookahead_literal(parser, "(", 0) + while cond1047 + _t1838 = parse_construct(parser) + item1048 = _t1838 + push!(xs1046, item1048) + cond1047 = match_lookahead_literal(parser, "(", 0) + end + constructs1049 = xs1046 consume_literal!(parser, ")") - _t1815 = Proto.Script(constructs=constructs1037) - result1039 = _t1815 - record_span!(parser, span_start1038, "Script") - return result1039 + _t1839 = Proto.Script(constructs=constructs1049) + result1051 = _t1839 + record_span!(parser, span_start1050, "Script") + return result1051 end function parse_construct(parser::ParserState)::Proto.Construct - span_start1043 = span_start(parser) + span_start1055 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1817 = 1 + _t1841 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1818 = 1 + _t1842 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1819 = 1 + _t1843 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1820 = 0 + _t1844 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1821 = 1 + _t1845 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1822 = 1 + _t1846 = 1 else - _t1822 = -1 + _t1846 = -1 end - _t1821 = _t1822 + _t1845 = _t1846 end - _t1820 = _t1821 + _t1844 = _t1845 end - _t1819 = _t1820 + _t1843 = _t1844 end - _t1818 = _t1819 + _t1842 = _t1843 end - _t1817 = _t1818 + _t1841 = _t1842 end - _t1816 = _t1817 + _t1840 = _t1841 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 + _t1840 = -1 + end + prediction1052 = _t1840 + if prediction1052 == 1 + _t1848 = parse_instruction(parser) + instruction1054 = _t1848 + _t1849 = Proto.Construct(construct_type=OneOf(:instruction, instruction1054)) + _t1847 = _t1849 else - if prediction1040 == 0 - _t1827 = parse_loop(parser) - loop1041 = _t1827 - _t1828 = Proto.Construct(construct_type=OneOf(:loop, loop1041)) - _t1826 = _t1828 + if prediction1052 == 0 + _t1851 = parse_loop(parser) + loop1053 = _t1851 + _t1852 = Proto.Construct(construct_type=OneOf(:loop, loop1053)) + _t1850 = _t1852 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1823 = _t1826 + _t1847 = _t1850 end - result1044 = _t1823 - record_span!(parser, span_start1043, "Construct") - return result1044 + result1056 = _t1847 + record_span!(parser, span_start1055, "Construct") + return result1056 end function parse_loop(parser::ParserState)::Proto.Loop - span_start1048 = span_start(parser) + span_start1060 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1829 = parse_init(parser) - init1045 = _t1829 - _t1830 = parse_script(parser) - script1046 = _t1830 + _t1853 = parse_init(parser) + init1057 = _t1853 + _t1854 = parse_script(parser) + script1058 = _t1854 if match_lookahead_literal(parser, "(", 0) - _t1832 = parse_attrs(parser) - _t1831 = _t1832 + _t1856 = parse_attrs(parser) + _t1855 = _t1856 else - _t1831 = nothing + _t1855 = nothing end - attrs1047 = _t1831 + attrs1059 = _t1855 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 + _t1857 = Proto.Loop(init=init1057, body=script1058, attrs=(!isnothing(attrs1059) ? attrs1059 : Proto.Attribute[])) + result1061 = _t1857 + record_span!(parser, span_start1060, "Loop") + return result1061 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 + xs1062 = Proto.Instruction[] + cond1063 = match_lookahead_literal(parser, "(", 0) + while cond1063 + _t1858 = parse_instruction(parser) + item1064 = _t1858 + push!(xs1062, item1064) + cond1063 = match_lookahead_literal(parser, "(", 0) + end + instructions1065 = xs1062 consume_literal!(parser, ")") - return instructions1053 + return instructions1065 end function parse_instruction(parser::ParserState)::Proto.Instruction - span_start1060 = span_start(parser) + span_start1072 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1836 = 1 + _t1860 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1837 = 4 + _t1861 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1838 = 3 + _t1862 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1839 = 2 + _t1863 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1840 = 0 + _t1864 = 0 else - _t1840 = -1 + _t1864 = -1 end - _t1839 = _t1840 + _t1863 = _t1864 end - _t1838 = _t1839 + _t1862 = _t1863 end - _t1837 = _t1838 + _t1861 = _t1862 end - _t1836 = _t1837 + _t1860 = _t1861 end - _t1835 = _t1836 + _t1859 = _t1860 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 + _t1859 = -1 + end + prediction1066 = _t1859 + if prediction1066 == 4 + _t1866 = parse_monus_def(parser) + monus_def1071 = _t1866 + _t1867 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def1071)) + _t1865 = _t1867 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 prediction1066 == 3 + _t1869 = parse_monoid_def(parser) + monoid_def1070 = _t1869 + _t1870 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def1070)) + _t1868 = _t1870 else - if prediction1054 == 2 - _t1848 = parse_break(parser) - break1057 = _t1848 - _t1849 = Proto.Instruction(instr_type=OneOf(:var"#break", break1057)) - _t1847 = _t1849 + if prediction1066 == 2 + _t1872 = parse_break(parser) + break1069 = _t1872 + _t1873 = Proto.Instruction(instr_type=OneOf(:var"#break", break1069)) + _t1871 = _t1873 else - if prediction1054 == 1 - _t1851 = parse_upsert(parser) - upsert1056 = _t1851 - _t1852 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1056)) - _t1850 = _t1852 + if prediction1066 == 1 + _t1875 = parse_upsert(parser) + upsert1068 = _t1875 + _t1876 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1068)) + _t1874 = _t1876 else - if prediction1054 == 0 - _t1854 = parse_assign(parser) - assign1055 = _t1854 - _t1855 = Proto.Instruction(instr_type=OneOf(:assign, assign1055)) - _t1853 = _t1855 + if prediction1066 == 0 + _t1878 = parse_assign(parser) + assign1067 = _t1878 + _t1879 = Proto.Instruction(instr_type=OneOf(:assign, assign1067)) + _t1877 = _t1879 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1850 = _t1853 + _t1874 = _t1877 end - _t1847 = _t1850 + _t1871 = _t1874 end - _t1844 = _t1847 + _t1868 = _t1871 end - _t1841 = _t1844 + _t1865 = _t1868 end - result1061 = _t1841 - record_span!(parser, span_start1060, "Instruction") - return result1061 + result1073 = _t1865 + record_span!(parser, span_start1072, "Instruction") + return result1073 end function parse_assign(parser::ParserState)::Proto.Assign - span_start1065 = span_start(parser) + span_start1077 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1856 = parse_relation_id(parser) - relation_id1062 = _t1856 - _t1857 = parse_abstraction(parser) - abstraction1063 = _t1857 + _t1880 = parse_relation_id(parser) + relation_id1074 = _t1880 + _t1881 = parse_abstraction(parser) + abstraction1075 = _t1881 if match_lookahead_literal(parser, "(", 0) - _t1859 = parse_attrs(parser) - _t1858 = _t1859 + _t1883 = parse_attrs(parser) + _t1882 = _t1883 else - _t1858 = nothing + _t1882 = nothing end - attrs1064 = _t1858 + attrs1076 = _t1882 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 + _t1884 = Proto.Assign(name=relation_id1074, body=abstraction1075, attrs=(!isnothing(attrs1076) ? attrs1076 : Proto.Attribute[])) + result1078 = _t1884 + record_span!(parser, span_start1077, "Assign") + return result1078 end function parse_upsert(parser::ParserState)::Proto.Upsert - span_start1070 = span_start(parser) + span_start1082 = 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 + _t1885 = parse_relation_id(parser) + relation_id1079 = _t1885 + _t1886 = parse_abstraction_with_arity(parser) + abstraction_with_arity1080 = _t1886 if match_lookahead_literal(parser, "(", 0) - _t1864 = parse_attrs(parser) - _t1863 = _t1864 + _t1888 = parse_attrs(parser) + _t1887 = _t1888 else - _t1863 = nothing + _t1887 = nothing end - attrs1069 = _t1863 + attrs1081 = _t1887 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 + _t1889 = Proto.Upsert(name=relation_id1079, body=abstraction_with_arity1080[1], attrs=(!isnothing(attrs1081) ? attrs1081 : Proto.Attribute[]), value_arity=abstraction_with_arity1080[2]) + result1083 = _t1889 + record_span!(parser, span_start1082, "Upsert") + return result1083 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 + _t1890 = parse_bindings(parser) + bindings1084 = _t1890 + _t1891 = parse_formula(parser) + formula1085 = _t1891 consume_literal!(parser, ")") - _t1868 = Proto.Abstraction(vars=vcat(bindings1072[1], !isnothing(bindings1072[2]) ? bindings1072[2] : []), value=formula1073) - return (_t1868, length(bindings1072[2]),) + _t1892 = Proto.Abstraction(vars=vcat(bindings1084[1], !isnothing(bindings1084[2]) ? bindings1084[2] : []), value=formula1085) + return (_t1892, length(bindings1084[2]),) end function parse_break(parser::ParserState)::Proto.Break - span_start1077 = span_start(parser) + span_start1089 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1869 = parse_relation_id(parser) - relation_id1074 = _t1869 - _t1870 = parse_abstraction(parser) - abstraction1075 = _t1870 + _t1893 = parse_relation_id(parser) + relation_id1086 = _t1893 + _t1894 = parse_abstraction(parser) + abstraction1087 = _t1894 if match_lookahead_literal(parser, "(", 0) - _t1872 = parse_attrs(parser) - _t1871 = _t1872 + _t1896 = parse_attrs(parser) + _t1895 = _t1896 else - _t1871 = nothing + _t1895 = nothing end - attrs1076 = _t1871 + attrs1088 = _t1895 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 + _t1897 = Proto.Break(name=relation_id1086, body=abstraction1087, attrs=(!isnothing(attrs1088) ? attrs1088 : Proto.Attribute[])) + result1090 = _t1897 + record_span!(parser, span_start1089, "Break") + return result1090 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef - span_start1083 = span_start(parser) + span_start1095 = 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 + _t1898 = parse_monoid(parser) + monoid1091 = _t1898 + _t1899 = parse_relation_id(parser) + relation_id1092 = _t1899 + _t1900 = parse_abstraction_with_arity(parser) + abstraction_with_arity1093 = _t1900 if match_lookahead_literal(parser, "(", 0) - _t1878 = parse_attrs(parser) - _t1877 = _t1878 + _t1902 = parse_attrs(parser) + _t1901 = _t1902 else - _t1877 = nothing + _t1901 = nothing end - attrs1082 = _t1877 + attrs1094 = _t1901 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 + _t1903 = Proto.MonoidDef(monoid=monoid1091, name=relation_id1092, body=abstraction_with_arity1093[1], attrs=(!isnothing(attrs1094) ? attrs1094 : Proto.Attribute[]), value_arity=abstraction_with_arity1093[2]) + result1096 = _t1903 + record_span!(parser, span_start1095, "MonoidDef") + return result1096 end function parse_monoid(parser::ParserState)::Proto.Monoid - span_start1090 = span_start(parser) + span_start1102 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1881 = 3 + _t1905 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1882 = 0 + _t1906 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1883 = 1 + _t1907 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1884 = 2 + _t1908 = 2 else - _t1884 = -1 + _t1908 = -1 end - _t1883 = _t1884 + _t1907 = _t1908 end - _t1882 = _t1883 + _t1906 = _t1907 end - _t1881 = _t1882 + _t1905 = _t1906 end - _t1880 = _t1881 + _t1904 = _t1905 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 + _t1904 = -1 + end + prediction1097 = _t1904 + if prediction1097 == 3 + _t1910 = parse_sum_monoid(parser) + sum_monoid1101 = _t1910 + _t1911 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1101)) + _t1909 = _t1911 else - if prediction1085 == 2 - _t1889 = parse_max_monoid(parser) - max_monoid1088 = _t1889 - _t1890 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1088)) - _t1888 = _t1890 + if prediction1097 == 2 + _t1913 = parse_max_monoid(parser) + max_monoid1100 = _t1913 + _t1914 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1100)) + _t1912 = _t1914 else - if prediction1085 == 1 - _t1892 = parse_min_monoid(parser) - min_monoid1087 = _t1892 - _t1893 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1087)) - _t1891 = _t1893 + if prediction1097 == 1 + _t1916 = parse_min_monoid(parser) + min_monoid1099 = _t1916 + _t1917 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1099)) + _t1915 = _t1917 else - if prediction1085 == 0 - _t1895 = parse_or_monoid(parser) - or_monoid1086 = _t1895 - _t1896 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1086)) - _t1894 = _t1896 + if prediction1097 == 0 + _t1919 = parse_or_monoid(parser) + or_monoid1098 = _t1919 + _t1920 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1098)) + _t1918 = _t1920 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1891 = _t1894 + _t1915 = _t1918 end - _t1888 = _t1891 + _t1912 = _t1915 end - _t1885 = _t1888 + _t1909 = _t1912 end - result1091 = _t1885 - record_span!(parser, span_start1090, "Monoid") - return result1091 + result1103 = _t1909 + record_span!(parser, span_start1102, "Monoid") + return result1103 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid - span_start1092 = span_start(parser) + span_start1104 = 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 + _t1921 = Proto.OrMonoid() + result1105 = _t1921 + record_span!(parser, span_start1104, "OrMonoid") + return result1105 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid - span_start1095 = span_start(parser) + span_start1107 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1898 = parse_type(parser) - type1094 = _t1898 + _t1922 = parse_type(parser) + type1106 = _t1922 consume_literal!(parser, ")") - _t1899 = Proto.MinMonoid(var"#type"=type1094) - result1096 = _t1899 - record_span!(parser, span_start1095, "MinMonoid") - return result1096 + _t1923 = Proto.MinMonoid(var"#type"=type1106) + result1108 = _t1923 + record_span!(parser, span_start1107, "MinMonoid") + return result1108 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid - span_start1098 = span_start(parser) + span_start1110 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1900 = parse_type(parser) - type1097 = _t1900 + _t1924 = parse_type(parser) + type1109 = _t1924 consume_literal!(parser, ")") - _t1901 = Proto.MaxMonoid(var"#type"=type1097) - result1099 = _t1901 - record_span!(parser, span_start1098, "MaxMonoid") - return result1099 + _t1925 = Proto.MaxMonoid(var"#type"=type1109) + result1111 = _t1925 + record_span!(parser, span_start1110, "MaxMonoid") + return result1111 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid - span_start1101 = span_start(parser) + span_start1113 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1902 = parse_type(parser) - type1100 = _t1902 + _t1926 = parse_type(parser) + type1112 = _t1926 consume_literal!(parser, ")") - _t1903 = Proto.SumMonoid(var"#type"=type1100) - result1102 = _t1903 - record_span!(parser, span_start1101, "SumMonoid") - return result1102 + _t1927 = Proto.SumMonoid(var"#type"=type1112) + result1114 = _t1927 + record_span!(parser, span_start1113, "SumMonoid") + return result1114 end function parse_monus_def(parser::ParserState)::Proto.MonusDef - span_start1107 = span_start(parser) + span_start1119 = 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 + _t1928 = parse_monoid(parser) + monoid1115 = _t1928 + _t1929 = parse_relation_id(parser) + relation_id1116 = _t1929 + _t1930 = parse_abstraction_with_arity(parser) + abstraction_with_arity1117 = _t1930 if match_lookahead_literal(parser, "(", 0) - _t1908 = parse_attrs(parser) - _t1907 = _t1908 + _t1932 = parse_attrs(parser) + _t1931 = _t1932 else - _t1907 = nothing + _t1931 = nothing end - attrs1106 = _t1907 + attrs1118 = _t1931 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 + _t1933 = Proto.MonusDef(monoid=monoid1115, name=relation_id1116, body=abstraction_with_arity1117[1], attrs=(!isnothing(attrs1118) ? attrs1118 : Proto.Attribute[]), value_arity=abstraction_with_arity1117[2]) + result1120 = _t1933 + record_span!(parser, span_start1119, "MonusDef") + return result1120 end function parse_constraint(parser::ParserState)::Proto.Constraint - span_start1113 = span_start(parser) + span_start1125 = 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 + _t1934 = parse_relation_id(parser) + relation_id1121 = _t1934 + _t1935 = parse_abstraction(parser) + abstraction1122 = _t1935 + _t1936 = parse_functional_dependency_keys(parser) + functional_dependency_keys1123 = _t1936 + _t1937 = parse_functional_dependency_values(parser) + functional_dependency_values1124 = _t1937 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 + _t1938 = Proto.FunctionalDependency(guard=abstraction1122, keys=functional_dependency_keys1123, values=functional_dependency_values1124) + _t1939 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1938), name=relation_id1121) + result1126 = _t1939 + record_span!(parser, span_start1125, "Constraint") + return result1126 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 + xs1127 = Proto.Var[] + cond1128 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1128 + _t1940 = parse_var(parser) + item1129 = _t1940 + push!(xs1127, item1129) + cond1128 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + vars1130 = xs1127 consume_literal!(parser, ")") - return vars1118 + return vars1130 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 + xs1131 = Proto.Var[] + cond1132 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1132 + _t1941 = parse_var(parser) + item1133 = _t1941 + push!(xs1131, item1133) + cond1132 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + vars1134 = xs1131 consume_literal!(parser, ")") - return vars1122 + return vars1134 end function parse_data(parser::ParserState)::Proto.Data - span_start1128 = span_start(parser) + span_start1140 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t1919 = 3 + _t1943 = 3 else if match_lookahead_literal(parser, "edb", 1) - _t1920 = 0 + _t1944 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1921 = 2 + _t1945 = 2 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1922 = 1 + _t1946 = 1 else - _t1922 = -1 + _t1946 = -1 end - _t1921 = _t1922 + _t1945 = _t1946 end - _t1920 = _t1921 + _t1944 = _t1945 end - _t1919 = _t1920 + _t1943 = _t1944 end - _t1918 = _t1919 + _t1942 = _t1943 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 + _t1942 = -1 + end + prediction1135 = _t1942 + if prediction1135 == 3 + _t1948 = parse_iceberg_data(parser) + iceberg_data1139 = _t1948 + _t1949 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1139)) + _t1947 = _t1949 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 prediction1135 == 2 + _t1951 = parse_csv_data(parser) + csv_data1138 = _t1951 + _t1952 = Proto.Data(data_type=OneOf(:csv_data, csv_data1138)) + _t1950 = _t1952 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 prediction1135 == 1 + _t1954 = parse_betree_relation(parser) + betree_relation1137 = _t1954 + _t1955 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1137)) + _t1953 = _t1955 else - if prediction1123 == 0 - _t1933 = parse_edb(parser) - edb1124 = _t1933 - _t1934 = Proto.Data(data_type=OneOf(:edb, edb1124)) - _t1932 = _t1934 + if prediction1135 == 0 + _t1957 = parse_edb(parser) + edb1136 = _t1957 + _t1958 = Proto.Data(data_type=OneOf(:edb, edb1136)) + _t1956 = _t1958 else throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) end - _t1929 = _t1932 + _t1953 = _t1956 end - _t1926 = _t1929 + _t1950 = _t1953 end - _t1923 = _t1926 + _t1947 = _t1950 end - result1129 = _t1923 - record_span!(parser, span_start1128, "Data") - return result1129 + result1141 = _t1947 + record_span!(parser, span_start1140, "Data") + return result1141 end function parse_edb(parser::ParserState)::Proto.EDB - span_start1133 = span_start(parser) + span_start1145 = 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 + _t1959 = parse_relation_id(parser) + relation_id1142 = _t1959 + _t1960 = parse_edb_path(parser) + edb_path1143 = _t1960 + _t1961 = parse_edb_types(parser) + edb_types1144 = _t1961 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 + _t1962 = Proto.EDB(target_id=relation_id1142, path=edb_path1143, types=edb_types1144) + result1146 = _t1962 + record_span!(parser, span_start1145, "EDB") + return result1146 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 + xs1147 = String[] + cond1148 = match_lookahead_terminal(parser, "STRING", 0) + while cond1148 + item1149 = consume_terminal!(parser, "STRING") + push!(xs1147, item1149) + cond1148 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1150 = xs1147 consume_literal!(parser, "]") - return strings1138 + return strings1150 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 + xs1151 = Proto.var"#Type"[] + cond1152 = (((((((((((((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 cond1152 + _t1963 = parse_type(parser) + item1153 = _t1963 + push!(xs1151, item1153) + cond1152 = (((((((((((((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 + types1154 = xs1151 consume_literal!(parser, "]") - return types1142 + return types1154 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation - span_start1145 = span_start(parser) + span_start1157 = 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 + _t1964 = parse_relation_id(parser) + relation_id1155 = _t1964 + _t1965 = parse_betree_info(parser) + betree_info1156 = _t1965 consume_literal!(parser, ")") - _t1942 = Proto.BeTreeRelation(name=relation_id1143, relation_info=betree_info1144) - result1146 = _t1942 - record_span!(parser, span_start1145, "BeTreeRelation") - return result1146 + _t1966 = Proto.BeTreeRelation(name=relation_id1155, relation_info=betree_info1156) + result1158 = _t1966 + record_span!(parser, span_start1157, "BeTreeRelation") + return result1158 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo - span_start1150 = span_start(parser) + span_start1162 = 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 + _t1967 = parse_betree_info_key_types(parser) + betree_info_key_types1159 = _t1967 + _t1968 = parse_betree_info_value_types(parser) + betree_info_value_types1160 = _t1968 + _t1969 = parse_config_dict(parser) + config_dict1161 = _t1969 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 + _t1970 = construct_betree_info(parser, betree_info_key_types1159, betree_info_value_types1160, config_dict1161) + result1163 = _t1970 + record_span!(parser, span_start1162, "BeTreeInfo") + return result1163 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 + 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 + _t1971 = parse_type(parser) + item1166 = _t1971 + 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 types1155 + return types1167 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 + xs1168 = Proto.var"#Type"[] + cond1169 = (((((((((((((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 cond1169 + _t1972 = parse_type(parser) + item1170 = _t1972 + push!(xs1168, item1170) + cond1169 = (((((((((((((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 + types1171 = xs1168 consume_literal!(parser, ")") - return types1159 + return types1171 end function parse_csv_data(parser::ParserState)::Proto.CSVData - span_start1164 = span_start(parser) + span_start1177 = 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 + _t1973 = parse_csvlocator(parser) + csvlocator1172 = _t1973 + _t1974 = parse_csv_config(parser) + csv_config1173 = _t1974 + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "columns", 1)) + _t1976 = parse_gnf_columns(parser) + _t1975 = _t1976 + else + _t1975 = nothing + end + gnf_columns1174 = _t1975 + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "table", 1)) + _t1978 = parse_csv_table(parser) + _t1977 = _t1978 + else + _t1977 = nothing + end + csv_table1175 = _t1977 + _t1979 = parse_csv_asof(parser) + csv_asof1176 = _t1979 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 + _t1980 = construct_csv_data(parser, csvlocator1172, csv_config1173, gnf_columns1174, csv_table1175, csv_asof1176) + result1178 = _t1980 + record_span!(parser, span_start1177, "CSVData") + return result1178 end function parse_csvlocator(parser::ParserState)::Proto.CSVLocator - span_start1168 = span_start(parser) + span_start1181 = 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 + _t1982 = parse_csv_locator_paths(parser) + _t1981 = _t1982 else - _t1954 = nothing + _t1981 = nothing end - csv_locator_paths1166 = _t1954 + csv_locator_paths1179 = _t1981 if match_lookahead_literal(parser, "(", 0) - _t1957 = parse_csv_locator_inline_data(parser) - _t1956 = _t1957 + _t1984 = parse_csv_locator_inline_data(parser) + _t1983 = _t1984 else - _t1956 = nothing + _t1983 = nothing end - csv_locator_inline_data1167 = _t1956 + csv_locator_inline_data1180 = _t1983 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 + _t1985 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1179) ? csv_locator_paths1179 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1180) ? csv_locator_inline_data1180 : ""))) + result1182 = _t1985 + record_span!(parser, span_start1181, "CSVLocator") + return result1182 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 + xs1183 = String[] + cond1184 = match_lookahead_terminal(parser, "STRING", 0) + while cond1184 + item1185 = consume_terminal!(parser, "STRING") + push!(xs1183, item1185) + cond1184 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1186 = xs1183 consume_literal!(parser, ")") - return strings1173 + return strings1186 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - string1174 = consume_terminal!(parser, "STRING") + string1187 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1174 + return string1187 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig - span_start1176 = span_start(parser) + span_start1189 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t1959 = parse_config_dict(parser) - config_dict1175 = _t1959 + _t1986 = parse_config_dict(parser) + config_dict1188 = _t1986 consume_literal!(parser, ")") - _t1960 = construct_csv_config(parser, config_dict1175) - result1177 = _t1960 - record_span!(parser, span_start1176, "CSVConfig") - return result1177 + _t1987 = construct_csv_config(parser, config_dict1188) + result1190 = _t1987 + record_span!(parser, span_start1189, "CSVConfig") + return result1190 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) - end - gnf_columns1181 = xs1178 + xs1191 = Proto.GNFColumn[] + cond1192 = match_lookahead_literal(parser, "(", 0) + while cond1192 + _t1988 = parse_gnf_column(parser) + item1193 = _t1988 + push!(xs1191, item1193) + cond1192 = match_lookahead_literal(parser, "(", 0) + end + gnf_columns1194 = xs1191 consume_literal!(parser, ")") - return gnf_columns1181 + return gnf_columns1194 end function parse_gnf_column(parser::ParserState)::Proto.GNFColumn - span_start1188 = span_start(parser) + span_start1201 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - _t1962 = parse_gnf_column_path(parser) - gnf_column_path1182 = _t1962 + _t1989 = parse_gnf_column_path(parser) + gnf_column_path1195 = _t1989 if (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - _t1964 = parse_relation_id(parser) - _t1963 = _t1964 + _t1991 = parse_relation_id(parser) + _t1990 = _t1991 else - _t1963 = nothing + _t1990 = nothing end - relation_id1183 = _t1963 + relation_id1196 = _t1990 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 + xs1197 = Proto.var"#Type"[] + cond1198 = (((((((((((((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 cond1198 + _t1992 = parse_type(parser) + item1199 = _t1992 + push!(xs1197, item1199) + cond1198 = (((((((((((((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 + types1200 = xs1197 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 + _t1993 = Proto.GNFColumn(column_path=gnf_column_path1195, target_id=relation_id1196, types=types1200) + result1202 = _t1993 + record_span!(parser, span_start1201, "GNFColumn") + return result1202 end function parse_gnf_column_path(parser::ParserState)::Vector{String} if match_lookahead_literal(parser, "[", 0) - _t1967 = 1 + _t1994 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1968 = 0 + _t1995 = 0 else - _t1968 = -1 + _t1995 = -1 end - _t1967 = _t1968 + _t1994 = _t1995 end - prediction1190 = _t1967 - if prediction1190 == 1 + prediction1203 = _t1994 + if prediction1203 == 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) + xs1205 = String[] + cond1206 = match_lookahead_terminal(parser, "STRING", 0) + while cond1206 + item1207 = consume_terminal!(parser, "STRING") + push!(xs1205, item1207) + cond1206 = match_lookahead_terminal(parser, "STRING", 0) end - strings1195 = xs1192 + strings1208 = xs1205 consume_literal!(parser, "]") - _t1969 = strings1195 + _t1996 = strings1208 else - if prediction1190 == 0 - string1191 = consume_terminal!(parser, "STRING") - _t1970 = String[string1191] + if prediction1203 == 0 + string1204 = consume_terminal!(parser, "STRING") + _t1997 = String[string1204] else throw(ParseError("Unexpected token in gnf_column_path" * ": " * string(lookahead(parser, 0)))) end - _t1969 = _t1970 + _t1996 = _t1997 + end + return _t1996 +end + +function parse_csv_table(parser::ParserState)::Proto.CSVTarget + span_start1218 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "table") + _t1998 = parse_relation_id(parser) + relation_id1209 = _t1998 + consume_literal!(parser, "[") + xs1210 = String[] + cond1211 = match_lookahead_terminal(parser, "STRING", 0) + while cond1211 + item1212 = consume_terminal!(parser, "STRING") + push!(xs1210, item1212) + cond1211 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1213 = xs1210 + consume_literal!(parser, "]") + consume_literal!(parser, "[") + xs1214 = Proto.var"#Type"[] + cond1215 = (((((((((((((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 cond1215 + _t1999 = parse_type(parser) + item1216 = _t1999 + push!(xs1214, item1216) + cond1215 = (((((((((((((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 - return _t1969 + types1217 = xs1214 + consume_literal!(parser, "]") + consume_literal!(parser, ")") + _t2000 = Proto.CSVTarget(target_id=relation_id1209, column_names=strings1213, types=types1217) + result1219 = _t2000 + record_span!(parser, span_start1218, "CSVTarget") + return result1219 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string1196 = consume_terminal!(parser, "STRING") + string1220 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1196 + return string1220 end function parse_iceberg_data(parser::ParserState)::Proto.IcebergData - span_start1203 = span_start(parser) + span_start1227 = 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 + _t2001 = parse_iceberg_locator(parser) + iceberg_locator1221 = _t2001 + _t2002 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1222 = _t2002 + _t2003 = parse_gnf_columns(parser) + gnf_columns1223 = _t2003 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "from_snapshot", 1)) - _t1975 = parse_iceberg_from_snapshot(parser) - _t1974 = _t1975 + _t2005 = parse_iceberg_from_snapshot(parser) + _t2004 = _t2005 else - _t1974 = nothing + _t2004 = nothing end - iceberg_from_snapshot1200 = _t1974 + iceberg_from_snapshot1224 = _t2004 if match_lookahead_literal(parser, "(", 0) - _t1977 = parse_iceberg_to_snapshot(parser) - _t1976 = _t1977 + _t2007 = parse_iceberg_to_snapshot(parser) + _t2006 = _t2007 else - _t1976 = nothing + _t2006 = nothing end - iceberg_to_snapshot1201 = _t1976 - _t1978 = parse_boolean_value(parser) - boolean_value1202 = _t1978 + iceberg_to_snapshot1225 = _t2006 + _t2008 = parse_boolean_value(parser) + boolean_value1226 = _t2008 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 + _t2009 = construct_iceberg_data(parser, iceberg_locator1221, iceberg_catalog_config1222, gnf_columns1223, iceberg_from_snapshot1224, iceberg_to_snapshot1225, boolean_value1226) + result1228 = _t2009 + record_span!(parser, span_start1227, "IcebergData") + return result1228 end function parse_iceberg_locator(parser::ParserState)::Proto.IcebergLocator - span_start1208 = span_start(parser) + span_start1232 = 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 + _t2010 = parse_iceberg_locator_table_name(parser) + iceberg_locator_table_name1229 = _t2010 + _t2011 = parse_iceberg_locator_namespace(parser) + iceberg_locator_namespace1230 = _t2011 + _t2012 = parse_iceberg_locator_warehouse(parser) + iceberg_locator_warehouse1231 = _t2012 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 + _t2013 = Proto.IcebergLocator(table_name=iceberg_locator_table_name1229, namespace=iceberg_locator_namespace1230, warehouse=iceberg_locator_warehouse1231) + result1233 = _t2013 + record_span!(parser, span_start1232, "IcebergLocator") + return result1233 end function parse_iceberg_locator_table_name(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "table_name") - string1210 = consume_terminal!(parser, "STRING") + string1234 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1210 + return string1234 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 + xs1235 = String[] + cond1236 = match_lookahead_terminal(parser, "STRING", 0) + while cond1236 + item1237 = consume_terminal!(parser, "STRING") + push!(xs1235, item1237) + cond1236 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1238 = xs1235 consume_literal!(parser, ")") - return strings1214 + return strings1238 end function parse_iceberg_locator_warehouse(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "warehouse") - string1215 = consume_terminal!(parser, "STRING") + string1239 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1215 + return string1239 end function parse_iceberg_catalog_config(parser::ParserState)::Proto.IcebergCatalogConfig - span_start1220 = span_start(parser) + span_start1244 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_catalog_config") - _t1984 = parse_iceberg_catalog_uri(parser) - iceberg_catalog_uri1216 = _t1984 + _t2014 = parse_iceberg_catalog_uri(parser) + iceberg_catalog_uri1240 = _t2014 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "scope", 1)) - _t1986 = parse_iceberg_catalog_config_scope(parser) - _t1985 = _t1986 + _t2016 = parse_iceberg_catalog_config_scope(parser) + _t2015 = _t2016 else - _t1985 = nothing + _t2015 = 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_scope1241 = _t2015 + _t2017 = parse_iceberg_properties(parser) + iceberg_properties1242 = _t2017 + _t2018 = parse_iceberg_auth_properties(parser) + iceberg_auth_properties1243 = _t2018 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 + _t2019 = construct_iceberg_catalog_config(parser, iceberg_catalog_uri1240, iceberg_catalog_config_scope1241, iceberg_properties1242, iceberg_auth_properties1243) + result1245 = _t2019 + record_span!(parser, span_start1244, "IcebergCatalogConfig") + return result1245 end function parse_iceberg_catalog_uri(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "catalog_uri") - string1222 = consume_terminal!(parser, "STRING") + string1246 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1222 + return string1246 end function parse_iceberg_catalog_config_scope(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "scope") - string1223 = consume_terminal!(parser, "STRING") + string1247 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1223 + return string1247 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 + xs1248 = Tuple{String, String}[] + cond1249 = match_lookahead_literal(parser, "(", 0) + while cond1249 + _t2020 = parse_iceberg_property_entry(parser) + item1250 = _t2020 + push!(xs1248, item1250) + cond1249 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1251 = xs1248 consume_literal!(parser, ")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1251 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") + string1252 = consume_terminal!(parser, "STRING") + string_31253 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return (string1228, string_31229,) + return (string1252, string_31253,) 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 + xs1254 = Tuple{String, String}[] + cond1255 = match_lookahead_literal(parser, "(", 0) + while cond1255 + _t2021 = parse_iceberg_masked_property_entry(parser) + item1256 = _t2021 + push!(xs1254, item1256) + cond1255 = match_lookahead_literal(parser, "(", 0) + end + iceberg_masked_property_entrys1257 = xs1254 consume_literal!(parser, ")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1257 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") + string1258 = consume_terminal!(parser, "STRING") + string_31259 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return (string1234, string_31235,) + return (string1258, string_31259,) end function parse_iceberg_from_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "from_snapshot") - string1236 = consume_terminal!(parser, "STRING") + string1260 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1236 + return string1260 end function parse_iceberg_to_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "to_snapshot") - string1237 = consume_terminal!(parser, "STRING") + string1261 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1237 + return string1261 end function parse_undefine(parser::ParserState)::Proto.Undefine - span_start1239 = span_start(parser) + span_start1263 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t1992 = parse_fragment_id(parser) - fragment_id1238 = _t1992 + _t2022 = parse_fragment_id(parser) + fragment_id1262 = _t2022 consume_literal!(parser, ")") - _t1993 = Proto.Undefine(fragment_id=fragment_id1238) - result1240 = _t1993 - record_span!(parser, span_start1239, "Undefine") - return result1240 + _t2023 = Proto.Undefine(fragment_id=fragment_id1262) + result1264 = _t2023 + record_span!(parser, span_start1263, "Undefine") + return result1264 end function parse_context(parser::ParserState)::Proto.Context - span_start1245 = span_start(parser) + span_start1269 = 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 + xs1265 = Proto.RelationId[] + cond1266 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1266 + _t2024 = parse_relation_id(parser) + item1267 = _t2024 + push!(xs1265, item1267) + cond1266 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1268 = xs1265 consume_literal!(parser, ")") - _t1995 = Proto.Context(relations=relation_ids1244) - result1246 = _t1995 - record_span!(parser, span_start1245, "Context") - return result1246 + _t2025 = Proto.Context(relations=relation_ids1268) + result1270 = _t2025 + record_span!(parser, span_start1269, "Context") + return result1270 end function parse_snapshot(parser::ParserState)::Proto.Snapshot - span_start1252 = span_start(parser) + span_start1276 = 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) + _t2026 = parse_edb_path(parser) + edb_path1271 = _t2026 + xs1272 = Proto.SnapshotMapping[] + cond1273 = match_lookahead_literal(parser, "[", 0) + while cond1273 + _t2027 = parse_snapshot_mapping(parser) + item1274 = _t2027 + push!(xs1272, item1274) + cond1273 = match_lookahead_literal(parser, "[", 0) end - snapshot_mappings1251 = xs1248 + snapshot_mappings1275 = xs1272 consume_literal!(parser, ")") - _t1998 = Proto.Snapshot(mappings=snapshot_mappings1251, prefix=edb_path1247) - result1253 = _t1998 - record_span!(parser, span_start1252, "Snapshot") - return result1253 + _t2028 = Proto.Snapshot(mappings=snapshot_mappings1275, prefix=edb_path1271) + result1277 = _t2028 + record_span!(parser, span_start1276, "Snapshot") + return result1277 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_start1280 = span_start(parser) + _t2029 = parse_edb_path(parser) + edb_path1278 = _t2029 + _t2030 = parse_relation_id(parser) + relation_id1279 = _t2030 + _t2031 = Proto.SnapshotMapping(destination_path=edb_path1278, source_relation=relation_id1279) + result1281 = _t2031 + record_span!(parser, span_start1280, "SnapshotMapping") + return result1281 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 + xs1282 = Proto.Read[] + cond1283 = match_lookahead_literal(parser, "(", 0) + while cond1283 + _t2032 = parse_read(parser) + item1284 = _t2032 + push!(xs1282, item1284) + cond1283 = match_lookahead_literal(parser, "(", 0) + end + reads1285 = xs1282 consume_literal!(parser, ")") - return reads1261 + return reads1285 end function parse_read(parser::ParserState)::Proto.Read - span_start1268 = span_start(parser) + span_start1292 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t2004 = 2 + _t2034 = 2 else if match_lookahead_literal(parser, "output", 1) - _t2005 = 1 + _t2035 = 1 else if match_lookahead_literal(parser, "export_iceberg", 1) - _t2006 = 4 + _t2036 = 4 else if match_lookahead_literal(parser, "export", 1) - _t2007 = 4 + _t2037 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t2008 = 0 + _t2038 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t2009 = 3 + _t2039 = 3 else - _t2009 = -1 + _t2039 = -1 end - _t2008 = _t2009 + _t2038 = _t2039 end - _t2007 = _t2008 + _t2037 = _t2038 end - _t2006 = _t2007 + _t2036 = _t2037 end - _t2005 = _t2006 + _t2035 = _t2036 end - _t2004 = _t2005 + _t2034 = _t2035 end - _t2003 = _t2004 + _t2033 = _t2034 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 + _t2033 = -1 + end + prediction1286 = _t2033 + if prediction1286 == 4 + _t2041 = parse_export(parser) + export1291 = _t2041 + _t2042 = Proto.Read(read_type=OneOf(:var"#export", export1291)) + _t2040 = _t2042 else - if prediction1262 == 3 - _t2014 = parse_abort(parser) - abort1266 = _t2014 - _t2015 = Proto.Read(read_type=OneOf(:abort, abort1266)) - _t2013 = _t2015 + if prediction1286 == 3 + _t2044 = parse_abort(parser) + abort1290 = _t2044 + _t2045 = Proto.Read(read_type=OneOf(:abort, abort1290)) + _t2043 = _t2045 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 prediction1286 == 2 + _t2047 = parse_what_if(parser) + what_if1289 = _t2047 + _t2048 = Proto.Read(read_type=OneOf(:what_if, what_if1289)) + _t2046 = _t2048 else - if prediction1262 == 1 - _t2020 = parse_output(parser) - output1264 = _t2020 - _t2021 = Proto.Read(read_type=OneOf(:output, output1264)) - _t2019 = _t2021 + if prediction1286 == 1 + _t2050 = parse_output(parser) + output1288 = _t2050 + _t2051 = Proto.Read(read_type=OneOf(:output, output1288)) + _t2049 = _t2051 else - if prediction1262 == 0 - _t2023 = parse_demand(parser) - demand1263 = _t2023 - _t2024 = Proto.Read(read_type=OneOf(:demand, demand1263)) - _t2022 = _t2024 + if prediction1286 == 0 + _t2053 = parse_demand(parser) + demand1287 = _t2053 + _t2054 = Proto.Read(read_type=OneOf(:demand, demand1287)) + _t2052 = _t2054 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t2019 = _t2022 + _t2049 = _t2052 end - _t2016 = _t2019 + _t2046 = _t2049 end - _t2013 = _t2016 + _t2043 = _t2046 end - _t2010 = _t2013 + _t2040 = _t2043 end - result1269 = _t2010 - record_span!(parser, span_start1268, "Read") - return result1269 + result1293 = _t2040 + record_span!(parser, span_start1292, "Read") + return result1293 end function parse_demand(parser::ParserState)::Proto.Demand - span_start1271 = span_start(parser) + span_start1295 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t2025 = parse_relation_id(parser) - relation_id1270 = _t2025 + _t2055 = parse_relation_id(parser) + relation_id1294 = _t2055 consume_literal!(parser, ")") - _t2026 = Proto.Demand(relation_id=relation_id1270) - result1272 = _t2026 - record_span!(parser, span_start1271, "Demand") - return result1272 + _t2056 = Proto.Demand(relation_id=relation_id1294) + result1296 = _t2056 + record_span!(parser, span_start1295, "Demand") + return result1296 end function parse_output(parser::ParserState)::Proto.Output - span_start1275 = span_start(parser) + span_start1299 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "output") - _t2027 = parse_name(parser) - name1273 = _t2027 - _t2028 = parse_relation_id(parser) - relation_id1274 = _t2028 + _t2057 = parse_name(parser) + name1297 = _t2057 + _t2058 = parse_relation_id(parser) + relation_id1298 = _t2058 consume_literal!(parser, ")") - _t2029 = Proto.Output(name=name1273, relation_id=relation_id1274) - result1276 = _t2029 - record_span!(parser, span_start1275, "Output") - return result1276 + _t2059 = Proto.Output(name=name1297, relation_id=relation_id1298) + result1300 = _t2059 + record_span!(parser, span_start1299, "Output") + return result1300 end function parse_what_if(parser::ParserState)::Proto.WhatIf - span_start1279 = span_start(parser) + span_start1303 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t2030 = parse_name(parser) - name1277 = _t2030 - _t2031 = parse_epoch(parser) - epoch1278 = _t2031 + _t2060 = parse_name(parser) + name1301 = _t2060 + _t2061 = parse_epoch(parser) + epoch1302 = _t2061 consume_literal!(parser, ")") - _t2032 = Proto.WhatIf(branch=name1277, epoch=epoch1278) - result1280 = _t2032 - record_span!(parser, span_start1279, "WhatIf") - return result1280 + _t2062 = Proto.WhatIf(branch=name1301, epoch=epoch1302) + result1304 = _t2062 + record_span!(parser, span_start1303, "WhatIf") + return result1304 end function parse_abort(parser::ParserState)::Proto.Abort - span_start1283 = span_start(parser) + span_start1307 = 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 + _t2064 = parse_name(parser) + _t2063 = _t2064 else - _t2033 = nothing + _t2063 = nothing end - name1281 = _t2033 - _t2035 = parse_relation_id(parser) - relation_id1282 = _t2035 + name1305 = _t2063 + _t2065 = parse_relation_id(parser) + relation_id1306 = _t2065 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 + _t2066 = Proto.Abort(name=(!isnothing(name1305) ? name1305 : "abort"), relation_id=relation_id1306) + result1308 = _t2066 + record_span!(parser, span_start1307, "Abort") + return result1308 end function parse_export(parser::ParserState)::Proto.Export - span_start1288 = span_start(parser) + span_start1312 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_iceberg", 1) - _t2038 = 1 + _t2068 = 1 else if match_lookahead_literal(parser, "export", 1) - _t2039 = 0 + _t2069 = 0 else - _t2039 = -1 + _t2069 = -1 end - _t2038 = _t2039 + _t2068 = _t2069 end - _t2037 = _t2038 + _t2067 = _t2068 else - _t2037 = -1 + _t2067 = -1 end - prediction1285 = _t2037 - if prediction1285 == 1 + prediction1309 = _t2067 + if prediction1309 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_iceberg") - _t2041 = parse_export_iceberg_config(parser) - export_iceberg_config1287 = _t2041 + _t2071 = parse_export_iceberg_config(parser) + export_iceberg_config1311 = _t2071 consume_literal!(parser, ")") - _t2042 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1287)) - _t2040 = _t2042 + _t2072 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1311)) + _t2070 = _t2072 else - if prediction1285 == 0 + if prediction1309 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export") - _t2044 = parse_export_csv_config(parser) - export_csv_config1286 = _t2044 + _t2074 = parse_export_csv_config(parser) + export_csv_config1310 = _t2074 consume_literal!(parser, ")") - _t2045 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1286)) - _t2043 = _t2045 + _t2075 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1310)) + _t2073 = _t2075 else throw(ParseError("Unexpected token in export" * ": " * string(lookahead(parser, 0)))) end - _t2040 = _t2043 + _t2070 = _t2073 end - result1289 = _t2040 - record_span!(parser, span_start1288, "Export") - return result1289 + result1313 = _t2070 + record_span!(parser, span_start1312, "Export") + return result1313 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - span_start1297 = span_start(parser) + span_start1321 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_csv_config_v2", 1) - _t2047 = 0 + _t2077 = 0 else if match_lookahead_literal(parser, "export_csv_config", 1) - _t2048 = 1 + _t2078 = 1 else - _t2048 = -1 + _t2078 = -1 end - _t2047 = _t2048 + _t2077 = _t2078 end - _t2046 = _t2047 + _t2076 = _t2077 else - _t2046 = -1 + _t2076 = -1 end - prediction1290 = _t2046 - if prediction1290 == 1 + prediction1314 = _t2076 + if prediction1314 == 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 + _t2080 = parse_export_csv_path(parser) + export_csv_path1318 = _t2080 + _t2081 = parse_export_csv_columns_list(parser) + export_csv_columns_list1319 = _t2081 + _t2082 = parse_config_dict(parser) + config_dict1320 = _t2082 consume_literal!(parser, ")") - _t2053 = construct_export_csv_config(parser, export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2049 = _t2053 + _t2083 = construct_export_csv_config(parser, export_csv_path1318, export_csv_columns_list1319, config_dict1320) + _t2079 = _t2083 else - if prediction1290 == 0 + if prediction1314 == 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 + _t2085 = parse_export_csv_path(parser) + export_csv_path1315 = _t2085 + _t2086 = parse_export_csv_source(parser) + export_csv_source1316 = _t2086 + _t2087 = parse_csv_config(parser) + csv_config1317 = _t2087 consume_literal!(parser, ")") - _t2058 = construct_export_csv_config_with_source(parser, export_csv_path1291, export_csv_source1292, csv_config1293) - _t2054 = _t2058 + _t2088 = construct_export_csv_config_with_source(parser, export_csv_path1315, export_csv_source1316, csv_config1317) + _t2084 = _t2088 else throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) end - _t2049 = _t2054 + _t2079 = _t2084 end - result1298 = _t2049 - record_span!(parser, span_start1297, "ExportCSVConfig") - return result1298 + result1322 = _t2079 + record_span!(parser, span_start1321, "ExportCSVConfig") + return result1322 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string1299 = consume_terminal!(parser, "STRING") + string1323 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1299 + return string1323 end function parse_export_csv_source(parser::ParserState)::Proto.ExportCSVSource - span_start1306 = span_start(parser) + span_start1330 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "table_def", 1) - _t2060 = 1 + _t2090 = 1 else if match_lookahead_literal(parser, "gnf_columns", 1) - _t2061 = 0 + _t2091 = 0 else - _t2061 = -1 + _t2091 = -1 end - _t2060 = _t2061 + _t2090 = _t2091 end - _t2059 = _t2060 + _t2089 = _t2090 else - _t2059 = -1 + _t2089 = -1 end - prediction1300 = _t2059 - if prediction1300 == 1 + prediction1324 = _t2089 + if prediction1324 == 1 consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2063 = parse_relation_id(parser) - relation_id1305 = _t2063 + _t2093 = parse_relation_id(parser) + relation_id1329 = _t2093 consume_literal!(parser, ")") - _t2064 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1305)) - _t2062 = _t2064 + _t2094 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1329)) + _t2092 = _t2094 else - if prediction1300 == 0 + if prediction1324 == 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) + xs1325 = Proto.ExportCSVColumn[] + cond1326 = match_lookahead_literal(parser, "(", 0) + while cond1326 + _t2096 = parse_export_csv_column(parser) + item1327 = _t2096 + push!(xs1325, item1327) + cond1326 = match_lookahead_literal(parser, "(", 0) end - export_csv_columns1304 = xs1301 + export_csv_columns1328 = xs1325 consume_literal!(parser, ")") - _t2067 = Proto.ExportCSVColumns(columns=export_csv_columns1304) - _t2068 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2067)) - _t2065 = _t2068 + _t2097 = Proto.ExportCSVColumns(columns=export_csv_columns1328) + _t2098 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2097)) + _t2095 = _t2098 else throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) end - _t2062 = _t2065 + _t2092 = _t2095 end - result1307 = _t2062 - record_span!(parser, span_start1306, "ExportCSVSource") - return result1307 + result1331 = _t2092 + record_span!(parser, span_start1330, "ExportCSVSource") + return result1331 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn - span_start1310 = span_start(parser) + span_start1334 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - string1308 = consume_terminal!(parser, "STRING") - _t2069 = parse_relation_id(parser) - relation_id1309 = _t2069 + string1332 = consume_terminal!(parser, "STRING") + _t2099 = parse_relation_id(parser) + relation_id1333 = _t2099 consume_literal!(parser, ")") - _t2070 = Proto.ExportCSVColumn(column_name=string1308, column_data=relation_id1309) - result1311 = _t2070 - record_span!(parser, span_start1310, "ExportCSVColumn") - return result1311 + _t2100 = Proto.ExportCSVColumn(column_name=string1332, column_data=relation_id1333) + result1335 = _t2100 + record_span!(parser, span_start1334, "ExportCSVColumn") + return result1335 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 + xs1336 = Proto.ExportCSVColumn[] + cond1337 = match_lookahead_literal(parser, "(", 0) + while cond1337 + _t2101 = parse_export_csv_column(parser) + item1338 = _t2101 + push!(xs1336, item1338) + cond1337 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns1339 = xs1336 consume_literal!(parser, ")") - return export_csv_columns1315 + return export_csv_columns1339 end function parse_export_iceberg_config(parser::ParserState)::Proto.ExportIcebergConfig - span_start1321 = span_start(parser) + span_start1345 = 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 + _t2102 = parse_iceberg_locator(parser) + iceberg_locator1340 = _t2102 + _t2103 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1341 = _t2103 + _t2104 = parse_export_iceberg_table_def(parser) + export_iceberg_table_def1342 = _t2104 + _t2105 = parse_iceberg_table_properties(parser) + iceberg_table_properties1343 = _t2105 if match_lookahead_literal(parser, "{", 0) - _t2077 = parse_config_dict(parser) - _t2076 = _t2077 + _t2107 = parse_config_dict(parser) + _t2106 = _t2107 else - _t2076 = nothing + _t2106 = nothing end - config_dict1320 = _t2076 + config_dict1344 = _t2106 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 + _t2108 = construct_export_iceberg_config_full(parser, iceberg_locator1340, iceberg_catalog_config1341, export_iceberg_table_def1342, iceberg_table_properties1343, config_dict1344) + result1346 = _t2108 + record_span!(parser, span_start1345, "ExportIcebergConfig") + return result1346 end function parse_export_iceberg_table_def(parser::ParserState)::Proto.RelationId - span_start1324 = span_start(parser) + span_start1348 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2079 = parse_relation_id(parser) - relation_id1323 = _t2079 + _t2109 = parse_relation_id(parser) + relation_id1347 = _t2109 consume_literal!(parser, ")") - result1325 = relation_id1323 - record_span!(parser, span_start1324, "RelationId") - return result1325 + result1349 = relation_id1347 + record_span!(parser, span_start1348, "RelationId") + return result1349 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 + xs1350 = Tuple{String, String}[] + cond1351 = match_lookahead_literal(parser, "(", 0) + while cond1351 + _t2110 = parse_iceberg_property_entry(parser) + item1352 = _t2110 + push!(xs1350, item1352) + cond1351 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1353 = xs1350 consume_literal!(parser, ")") - return iceberg_property_entrys1329 + return iceberg_property_entrys1353 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index 021f8932..d98f391d 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 + _t1800 = Proto.Value(value=OneOf(:int32_value, v)) + return _t1800 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1771 = Proto.Value(value=OneOf(:int_value, v)) - return _t1771 + _t1801 = Proto.Value(value=OneOf(:int_value, v)) + return _t1801 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1772 = Proto.Value(value=OneOf(:float_value, v)) - return _t1772 + _t1802 = Proto.Value(value=OneOf(:float_value, v)) + return _t1802 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1773 = Proto.Value(value=OneOf(:string_value, v)) - return _t1773 + _t1803 = Proto.Value(value=OneOf(:string_value, v)) + return _t1803 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1774 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1774 + _t1804 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1804 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1775 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1775 + _t1805 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1805 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,)) + _t1806 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1806,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1777 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1777,)) + _t1807 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1807,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1778 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1778,)) + _t1808 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1808,)) end end end - _t1779 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1779,)) + _t1809 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1809,)) 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,)) + _t1810 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1810,)) + _t1811 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1811,)) 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,)) + _t1812 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1812,)) + end + _t1813 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1813,)) + _t1814 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1814,)) + _t1815 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1815,)) if msg.comment != "" - _t1786 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1786,)) + _t1816 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1816,)) 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,)) + _t1817 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1817,)) + end + _t1818 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1818,)) + _t1819 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1819,)) + _t1820 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1820,)) if msg.partition_size_mb != 0 - _t1791 = _make_value_int64(pp, msg.partition_size_mb) - push!(result, ("csv_partition_size_mb", _t1791,)) + _t1821 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1821,)) 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,)) + _t1822 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1822,)) + _t1823 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1823,)) + _t1824 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1824,)) + _t1825 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1825,)) 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,)) + _t1826 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1826,)) 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,)) + _t1827 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1827,)) 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,)) + _t1828 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1828,)) + _t1829 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1829,)) 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,)) + _t1830 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1830,)) end if !isnothing(msg.compression) - _t1801 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1801,)) + _t1831 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1831,)) end if !isnothing(msg.syntax_header_row) - _t1802 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1802,)) + _t1832 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1832,)) end if !isnothing(msg.syntax_missing_string) - _t1803 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1803,)) + _t1833 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1833,)) end if !isnothing(msg.syntax_delim) - _t1804 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1804,)) + _t1834 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1834,)) end if !isnothing(msg.syntax_quotechar) - _t1805 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1805,)) + _t1835 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1835,)) end if !isnothing(msg.syntax_escapechar) - _t1806 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1806,)) + _t1836 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1836,)) 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 + _t1837 = 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 + _t1838 = nothing end return nothing end @@ -552,7 +552,25 @@ function deconstruct_iceberg_data_to_snapshot_optional(pp::PrettyPrinter, msg::P if msg.to_snapshot != "" return msg.to_snapshot else - _t1809 = nothing + _t1839 = nothing + end + return nothing +end + +function deconstruct_csv_data_columns_optional(pp::PrettyPrinter, msg::Proto.CSVData)::Union{Nothing, Vector{Proto.GNFColumn}} + if !_has_proto_field(msg, Symbol("target")) + return msg.columns + else + _t1840 = nothing + end + return nothing +end + +function deconstruct_csv_data_target_optional(pp::PrettyPrinter, msg::Proto.CSVData)::Union{Nothing, Proto.CSVTarget} + if _has_proto_field(msg, Symbol("target")) + return msg.target + else + _t1841 = nothing end return nothing end @@ -560,21 +578,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,)) + _t1842 = _make_value_string(pp, msg.prefix) + push!(result, ("prefix", _t1842,)) 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,)) + _t1843 = _make_value_int64(pp, msg.target_file_size_bytes) + push!(result, ("target_file_size_bytes", _t1843,)) end if msg.compression != "" - _t1812 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1812,)) + _t1844 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1844,)) end if length(result) == 0 return nothing else - _t1813 = nothing + _t1845 = nothing end return sort(result) end @@ -589,7 +607,7 @@ function deconstruct_relation_id_uint128(pp::PrettyPrinter, msg::Proto.RelationI if isnothing(name) return relation_id_to_uint128(pp, msg) else - _t1814 = nothing + _t1846 = nothing end return nothing end @@ -608,47 +626,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) + flat816 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat816) + write(pp, flat816) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1588 = _dollar_dollar.configure + _t1614 = _dollar_dollar.configure else - _t1588 = nothing + _t1614 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1589 = _dollar_dollar.sync + _t1615 = _dollar_dollar.sync else - _t1589 = nothing + _t1615 = nothing end - fields794 = (_t1588, _t1589, _dollar_dollar.epochs,) - unwrapped_fields795 = fields794 + fields807 = (_t1614, _t1615, _dollar_dollar.epochs,) + unwrapped_fields808 = fields807 write(pp, "(transaction") indent_sexp!(pp) - field796 = unwrapped_fields795[1] - if !isnothing(field796) + field809 = unwrapped_fields808[1] + if !isnothing(field809) newline(pp) - opt_val797 = field796 - pretty_configure(pp, opt_val797) + opt_val810 = field809 + pretty_configure(pp, opt_val810) end - field798 = unwrapped_fields795[2] - if !isnothing(field798) + field811 = unwrapped_fields808[2] + if !isnothing(field811) newline(pp) - opt_val799 = field798 - pretty_sync(pp, opt_val799) + opt_val812 = field811 + pretty_sync(pp, opt_val812) end - field800 = unwrapped_fields795[3] - if !isempty(field800) + field813 = unwrapped_fields808[3] + if !isempty(field813) newline(pp) - for (i1590, elem801) in enumerate(field800) - i802 = i1590 - 1 - if (i802 > 0) + for (i1616, elem814) in enumerate(field813) + i815 = i1616 - 1 + if (i815 > 0) newline(pp) end - pretty_epoch(pp, elem801) + pretty_epoch(pp, elem814) end end dedent!(pp) @@ -658,19 +676,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) + flat819 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat819) + write(pp, flat819) return nothing else _dollar_dollar = msg - _t1591 = deconstruct_configure(pp, _dollar_dollar) - fields804 = _t1591 - unwrapped_fields805 = fields804 + _t1617 = deconstruct_configure(pp, _dollar_dollar) + fields817 = _t1617 + unwrapped_fields818 = fields817 write(pp, "(configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields805) + pretty_config_dict(pp, unwrapped_fields818) dedent!(pp) write(pp, ")") end @@ -678,22 +696,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) + flat823 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat823) + write(pp, flat823) return nothing else - fields807 = msg + fields820 = msg write(pp, "{") indent!(pp) - if !isempty(fields807) + if !isempty(fields820) newline(pp) - for (i1592, elem808) in enumerate(fields807) - i809 = i1592 - 1 - if (i809 > 0) + for (i1618, elem821) in enumerate(fields820) + i822 = i1618 - 1 + if (i822 > 0) newline(pp) end - pretty_config_key_value(pp, elem808) + pretty_config_key_value(pp, elem821) end end dedent!(pp) @@ -703,163 +721,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) + flat828 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat828) + write(pp, flat828) return nothing else _dollar_dollar = msg - fields811 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields812 = fields811 + fields824 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields825 = fields824 write(pp, ":") - field813 = unwrapped_fields812[1] - write(pp, field813) + field826 = unwrapped_fields825[1] + write(pp, field826) write(pp, " ") - field814 = unwrapped_fields812[2] - pretty_raw_value(pp, field814) + field827 = unwrapped_fields825[2] + pretty_raw_value(pp, field827) 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) + flat854 = try_flat(pp, msg, pretty_raw_value) + if !isnothing(flat854) + write(pp, flat854) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1593 = _get_oneof_field(_dollar_dollar, :date_value) + _t1619 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1593 = nothing + _t1619 = nothing end - deconstruct_result839 = _t1593 - if !isnothing(deconstruct_result839) - unwrapped840 = deconstruct_result839 - pretty_raw_date(pp, unwrapped840) + deconstruct_result852 = _t1619 + if !isnothing(deconstruct_result852) + unwrapped853 = deconstruct_result852 + pretty_raw_date(pp, unwrapped853) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1594 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1620 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1594 = nothing + _t1620 = nothing end - deconstruct_result837 = _t1594 - if !isnothing(deconstruct_result837) - unwrapped838 = deconstruct_result837 - pretty_raw_datetime(pp, unwrapped838) + deconstruct_result850 = _t1620 + if !isnothing(deconstruct_result850) + unwrapped851 = deconstruct_result850 + pretty_raw_datetime(pp, unwrapped851) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1595 = _get_oneof_field(_dollar_dollar, :string_value) + _t1621 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1595 = nothing + _t1621 = nothing end - deconstruct_result835 = _t1595 - if !isnothing(deconstruct_result835) - unwrapped836 = deconstruct_result835 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped836)) + deconstruct_result848 = _t1621 + if !isnothing(deconstruct_result848) + unwrapped849 = deconstruct_result848 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped849)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1596 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1622 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1596 = nothing + _t1622 = nothing end - deconstruct_result833 = _t1596 - if !isnothing(deconstruct_result833) - unwrapped834 = deconstruct_result833 - write(pp, (string(Int64(unwrapped834)) * "i32")) + deconstruct_result846 = _t1622 + if !isnothing(deconstruct_result846) + unwrapped847 = deconstruct_result846 + write(pp, (string(Int64(unwrapped847)) * "i32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1597 = _get_oneof_field(_dollar_dollar, :int_value) + _t1623 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1597 = nothing + _t1623 = nothing end - deconstruct_result831 = _t1597 - if !isnothing(deconstruct_result831) - unwrapped832 = deconstruct_result831 - write(pp, string(unwrapped832)) + deconstruct_result844 = _t1623 + if !isnothing(deconstruct_result844) + unwrapped845 = deconstruct_result844 + write(pp, string(unwrapped845)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1598 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1624 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1598 = nothing + _t1624 = nothing end - deconstruct_result829 = _t1598 - if !isnothing(deconstruct_result829) - unwrapped830 = deconstruct_result829 - write(pp, format_float32_literal(unwrapped830)) + deconstruct_result842 = _t1624 + if !isnothing(deconstruct_result842) + unwrapped843 = deconstruct_result842 + write(pp, format_float32_literal(unwrapped843)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1599 = _get_oneof_field(_dollar_dollar, :float_value) + _t1625 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1599 = nothing + _t1625 = nothing end - deconstruct_result827 = _t1599 - if !isnothing(deconstruct_result827) - unwrapped828 = deconstruct_result827 - write(pp, lowercase(string(unwrapped828))) + deconstruct_result840 = _t1625 + if !isnothing(deconstruct_result840) + unwrapped841 = deconstruct_result840 + write(pp, lowercase(string(unwrapped841))) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1600 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1626 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1600 = nothing + _t1626 = nothing end - deconstruct_result825 = _t1600 - if !isnothing(deconstruct_result825) - unwrapped826 = deconstruct_result825 - write(pp, (string(Int64(unwrapped826)) * "u32")) + deconstruct_result838 = _t1626 + if !isnothing(deconstruct_result838) + unwrapped839 = deconstruct_result838 + write(pp, (string(Int64(unwrapped839)) * "u32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1601 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1627 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1601 = nothing + _t1627 = nothing end - deconstruct_result823 = _t1601 - if !isnothing(deconstruct_result823) - unwrapped824 = deconstruct_result823 - write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped824)) + deconstruct_result836 = _t1627 + if !isnothing(deconstruct_result836) + unwrapped837 = deconstruct_result836 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped837)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1602 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1628 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1602 = nothing + _t1628 = nothing end - deconstruct_result821 = _t1602 - if !isnothing(deconstruct_result821) - unwrapped822 = deconstruct_result821 - write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped822)) + deconstruct_result834 = _t1628 + if !isnothing(deconstruct_result834) + unwrapped835 = deconstruct_result834 + write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped835)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1603 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1629 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1603 = nothing + _t1629 = nothing end - deconstruct_result819 = _t1603 - if !isnothing(deconstruct_result819) - unwrapped820 = deconstruct_result819 - write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped820)) + deconstruct_result832 = _t1629 + if !isnothing(deconstruct_result832) + unwrapped833 = deconstruct_result832 + write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped833)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1604 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1630 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1604 = nothing + _t1630 = nothing end - deconstruct_result817 = _t1604 - if !isnothing(deconstruct_result817) - unwrapped818 = deconstruct_result817 - pretty_boolean_value(pp, unwrapped818) + deconstruct_result830 = _t1630 + if !isnothing(deconstruct_result830) + unwrapped831 = deconstruct_result830 + pretty_boolean_value(pp, unwrapped831) else - fields816 = msg + fields829 = msg write(pp, "missing") end end @@ -878,25 +896,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) + flat860 = try_flat(pp, msg, pretty_raw_date) + if !isnothing(flat860) + write(pp, flat860) return nothing else _dollar_dollar = msg - fields842 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields843 = fields842 + fields855 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields856 = fields855 write(pp, "(date") indent_sexp!(pp) newline(pp) - field844 = unwrapped_fields843[1] - write(pp, string(field844)) + field857 = unwrapped_fields856[1] + write(pp, string(field857)) newline(pp) - field845 = unwrapped_fields843[2] - write(pp, string(field845)) + field858 = unwrapped_fields856[2] + write(pp, string(field858)) newline(pp) - field846 = unwrapped_fields843[3] - write(pp, string(field846)) + field859 = unwrapped_fields856[3] + write(pp, string(field859)) dedent!(pp) write(pp, ")") end @@ -904,39 +922,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) + flat871 = try_flat(pp, msg, pretty_raw_datetime) + if !isnothing(flat871) + write(pp, flat871) 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 + fields861 = (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_fields862 = fields861 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field850 = unwrapped_fields849[1] - write(pp, string(field850)) + field863 = unwrapped_fields862[1] + write(pp, string(field863)) newline(pp) - field851 = unwrapped_fields849[2] - write(pp, string(field851)) + field864 = unwrapped_fields862[2] + write(pp, string(field864)) newline(pp) - field852 = unwrapped_fields849[3] - write(pp, string(field852)) + field865 = unwrapped_fields862[3] + write(pp, string(field865)) newline(pp) - field853 = unwrapped_fields849[4] - write(pp, string(field853)) + field866 = unwrapped_fields862[4] + write(pp, string(field866)) newline(pp) - field854 = unwrapped_fields849[5] - write(pp, string(field854)) + field867 = unwrapped_fields862[5] + write(pp, string(field867)) newline(pp) - field855 = unwrapped_fields849[6] - write(pp, string(field855)) - field856 = unwrapped_fields849[7] - if !isnothing(field856) + field868 = unwrapped_fields862[6] + write(pp, string(field868)) + field869 = unwrapped_fields862[7] + if !isnothing(field869) newline(pp) - opt_val857 = field856 - write(pp, string(opt_val857)) + opt_val870 = field869 + write(pp, string(opt_val870)) end dedent!(pp) write(pp, ")") @@ -947,24 +965,24 @@ end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) _dollar_dollar = msg if _dollar_dollar - _t1605 = () + _t1631 = () else - _t1605 = nothing + _t1631 = nothing end - deconstruct_result861 = _t1605 - if !isnothing(deconstruct_result861) - unwrapped862 = deconstruct_result861 + deconstruct_result874 = _t1631 + if !isnothing(deconstruct_result874) + unwrapped875 = deconstruct_result874 write(pp, "true") else _dollar_dollar = msg if !_dollar_dollar - _t1606 = () + _t1632 = () else - _t1606 = nothing + _t1632 = nothing end - deconstruct_result859 = _t1606 - if !isnothing(deconstruct_result859) - unwrapped860 = deconstruct_result859 + deconstruct_result872 = _t1632 + if !isnothing(deconstruct_result872) + unwrapped873 = deconstruct_result872 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -974,24 +992,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) + flat880 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat880) + write(pp, flat880) return nothing else _dollar_dollar = msg - fields863 = _dollar_dollar.fragments - unwrapped_fields864 = fields863 + fields876 = _dollar_dollar.fragments + unwrapped_fields877 = fields876 write(pp, "(sync") indent_sexp!(pp) - if !isempty(unwrapped_fields864) + if !isempty(unwrapped_fields877) newline(pp) - for (i1607, elem865) in enumerate(unwrapped_fields864) - i866 = i1607 - 1 - if (i866 > 0) + for (i1633, elem878) in enumerate(unwrapped_fields877) + i879 = i1633 - 1 + if (i879 > 0) newline(pp) end - pretty_fragment_id(pp, elem865) + pretty_fragment_id(pp, elem878) end end dedent!(pp) @@ -1001,52 +1019,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) + flat883 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat883) + write(pp, flat883) return nothing else _dollar_dollar = msg - fields868 = fragment_id_to_string(pp, _dollar_dollar) - unwrapped_fields869 = fields868 + fields881 = fragment_id_to_string(pp, _dollar_dollar) + unwrapped_fields882 = fields881 write(pp, ":") - write(pp, unwrapped_fields869) + write(pp, unwrapped_fields882) 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) + flat890 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat890) + write(pp, flat890) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.writes) - _t1608 = _dollar_dollar.writes + _t1634 = _dollar_dollar.writes else - _t1608 = nothing + _t1634 = nothing end if !isempty(_dollar_dollar.reads) - _t1609 = _dollar_dollar.reads + _t1635 = _dollar_dollar.reads else - _t1609 = nothing + _t1635 = nothing end - fields871 = (_t1608, _t1609,) - unwrapped_fields872 = fields871 + fields884 = (_t1634, _t1635,) + unwrapped_fields885 = fields884 write(pp, "(epoch") indent_sexp!(pp) - field873 = unwrapped_fields872[1] - if !isnothing(field873) + field886 = unwrapped_fields885[1] + if !isnothing(field886) newline(pp) - opt_val874 = field873 - pretty_epoch_writes(pp, opt_val874) + opt_val887 = field886 + pretty_epoch_writes(pp, opt_val887) end - field875 = unwrapped_fields872[2] - if !isnothing(field875) + field888 = unwrapped_fields885[2] + if !isnothing(field888) newline(pp) - opt_val876 = field875 - pretty_epoch_reads(pp, opt_val876) + opt_val889 = field888 + pretty_epoch_reads(pp, opt_val889) end dedent!(pp) write(pp, ")") @@ -1055,22 +1073,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) + flat894 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat894) + write(pp, flat894) return nothing else - fields878 = msg + fields891 = msg write(pp, "(writes") indent_sexp!(pp) - if !isempty(fields878) + if !isempty(fields891) newline(pp) - for (i1610, elem879) in enumerate(fields878) - i880 = i1610 - 1 - if (i880 > 0) + for (i1636, elem892) in enumerate(fields891) + i893 = i1636 - 1 + if (i893 > 0) newline(pp) end - pretty_write(pp, elem879) + pretty_write(pp, elem892) end end dedent!(pp) @@ -1080,54 +1098,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) + flat903 = try_flat(pp, msg, pretty_write) + if !isnothing(flat903) + write(pp, flat903) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1611 = _get_oneof_field(_dollar_dollar, :define) + _t1637 = _get_oneof_field(_dollar_dollar, :define) else - _t1611 = nothing + _t1637 = nothing end - deconstruct_result888 = _t1611 - if !isnothing(deconstruct_result888) - unwrapped889 = deconstruct_result888 - pretty_define(pp, unwrapped889) + deconstruct_result901 = _t1637 + if !isnothing(deconstruct_result901) + unwrapped902 = deconstruct_result901 + pretty_define(pp, unwrapped902) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1612 = _get_oneof_field(_dollar_dollar, :undefine) + _t1638 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1612 = nothing + _t1638 = nothing end - deconstruct_result886 = _t1612 - if !isnothing(deconstruct_result886) - unwrapped887 = deconstruct_result886 - pretty_undefine(pp, unwrapped887) + deconstruct_result899 = _t1638 + if !isnothing(deconstruct_result899) + unwrapped900 = deconstruct_result899 + pretty_undefine(pp, unwrapped900) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1613 = _get_oneof_field(_dollar_dollar, :context) + _t1639 = _get_oneof_field(_dollar_dollar, :context) else - _t1613 = nothing + _t1639 = nothing end - deconstruct_result884 = _t1613 - if !isnothing(deconstruct_result884) - unwrapped885 = deconstruct_result884 - pretty_context(pp, unwrapped885) + deconstruct_result897 = _t1639 + if !isnothing(deconstruct_result897) + unwrapped898 = deconstruct_result897 + pretty_context(pp, unwrapped898) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1614 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1640 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1614 = nothing + _t1640 = nothing end - deconstruct_result882 = _t1614 - if !isnothing(deconstruct_result882) - unwrapped883 = deconstruct_result882 - pretty_snapshot(pp, unwrapped883) + deconstruct_result895 = _t1640 + if !isnothing(deconstruct_result895) + unwrapped896 = deconstruct_result895 + pretty_snapshot(pp, unwrapped896) else throw(ParseError("No matching rule for write")) end @@ -1139,18 +1157,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) + flat906 = try_flat(pp, msg, pretty_define) + if !isnothing(flat906) + write(pp, flat906) return nothing else _dollar_dollar = msg - fields891 = _dollar_dollar.fragment - unwrapped_fields892 = fields891 + fields904 = _dollar_dollar.fragment + unwrapped_fields905 = fields904 write(pp, "(define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields892) + pretty_fragment(pp, unwrapped_fields905) dedent!(pp) write(pp, ")") end @@ -1158,29 +1176,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) + flat913 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat913) + write(pp, flat913) return nothing else _dollar_dollar = msg start_pretty_fragment(pp, _dollar_dollar) - fields894 = (_dollar_dollar.id, _dollar_dollar.declarations,) - unwrapped_fields895 = fields894 + fields907 = (_dollar_dollar.id, _dollar_dollar.declarations,) + unwrapped_fields908 = fields907 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) + field909 = unwrapped_fields908[1] + pretty_new_fragment_id(pp, field909) + field910 = unwrapped_fields908[2] + if !isempty(field910) newline(pp) - for (i1615, elem898) in enumerate(field897) - i899 = i1615 - 1 - if (i899 > 0) + for (i1641, elem911) in enumerate(field910) + i912 = i1641 - 1 + if (i912 > 0) newline(pp) end - pretty_declaration(pp, elem898) + pretty_declaration(pp, elem911) end end dedent!(pp) @@ -1190,66 +1208,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) + flat915 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat915) + write(pp, flat915) return nothing else - fields901 = msg - pretty_fragment_id(pp, fields901) + fields914 = msg + pretty_fragment_id(pp, fields914) 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) + flat924 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat924) + write(pp, flat924) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1616 = _get_oneof_field(_dollar_dollar, :def) + _t1642 = _get_oneof_field(_dollar_dollar, :def) else - _t1616 = nothing + _t1642 = nothing end - deconstruct_result909 = _t1616 - if !isnothing(deconstruct_result909) - unwrapped910 = deconstruct_result909 - pretty_def(pp, unwrapped910) + deconstruct_result922 = _t1642 + if !isnothing(deconstruct_result922) + unwrapped923 = deconstruct_result922 + pretty_def(pp, unwrapped923) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1617 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1643 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1617 = nothing + _t1643 = nothing end - deconstruct_result907 = _t1617 - if !isnothing(deconstruct_result907) - unwrapped908 = deconstruct_result907 - pretty_algorithm(pp, unwrapped908) + deconstruct_result920 = _t1643 + if !isnothing(deconstruct_result920) + unwrapped921 = deconstruct_result920 + pretty_algorithm(pp, unwrapped921) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1618 = _get_oneof_field(_dollar_dollar, :constraint) + _t1644 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1618 = nothing + _t1644 = nothing end - deconstruct_result905 = _t1618 - if !isnothing(deconstruct_result905) - unwrapped906 = deconstruct_result905 - pretty_constraint(pp, unwrapped906) + deconstruct_result918 = _t1644 + if !isnothing(deconstruct_result918) + unwrapped919 = deconstruct_result918 + pretty_constraint(pp, unwrapped919) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1619 = _get_oneof_field(_dollar_dollar, :data) + _t1645 = _get_oneof_field(_dollar_dollar, :data) else - _t1619 = nothing + _t1645 = nothing end - deconstruct_result903 = _t1619 - if !isnothing(deconstruct_result903) - unwrapped904 = deconstruct_result903 - pretty_data(pp, unwrapped904) + deconstruct_result916 = _t1645 + if !isnothing(deconstruct_result916) + unwrapped917 = deconstruct_result916 + pretty_data(pp, unwrapped917) else throw(ParseError("No matching rule for declaration")) end @@ -1261,32 +1279,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) + flat931 = try_flat(pp, msg, pretty_def) + if !isnothing(flat931) + write(pp, flat931) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1620 = _dollar_dollar.attrs + _t1646 = _dollar_dollar.attrs else - _t1620 = nothing + _t1646 = nothing end - fields912 = (_dollar_dollar.name, _dollar_dollar.body, _t1620,) - unwrapped_fields913 = fields912 + fields925 = (_dollar_dollar.name, _dollar_dollar.body, _t1646,) + unwrapped_fields926 = fields925 write(pp, "(def") indent_sexp!(pp) newline(pp) - field914 = unwrapped_fields913[1] - pretty_relation_id(pp, field914) + field927 = unwrapped_fields926[1] + pretty_relation_id(pp, field927) newline(pp) - field915 = unwrapped_fields913[2] - pretty_abstraction(pp, field915) - field916 = unwrapped_fields913[3] - if !isnothing(field916) + field928 = unwrapped_fields926[2] + pretty_abstraction(pp, field928) + field929 = unwrapped_fields926[3] + if !isnothing(field929) newline(pp) - opt_val917 = field916 - pretty_attrs(pp, opt_val917) + opt_val930 = field929 + pretty_attrs(pp, opt_val930) end dedent!(pp) write(pp, ")") @@ -1295,30 +1313,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) + flat936 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat936) + write(pp, flat936) 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 + _t1648 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1647 = _t1648 else - _t1621 = nothing + _t1647 = nothing end - deconstruct_result921 = _t1621 - if !isnothing(deconstruct_result921) - unwrapped922 = deconstruct_result921 + deconstruct_result934 = _t1647 + if !isnothing(deconstruct_result934) + unwrapped935 = deconstruct_result934 write(pp, ":") - write(pp, unwrapped922) + write(pp, unwrapped935) 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)) + _t1649 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + deconstruct_result932 = _t1649 + if !isnothing(deconstruct_result932) + unwrapped933 = deconstruct_result932 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped933)) else throw(ParseError("No matching rule for relation_id")) end @@ -1328,22 +1346,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) + flat941 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat941) + write(pp, flat941) return nothing else _dollar_dollar = msg - _t1624 = deconstruct_bindings(pp, _dollar_dollar) - fields924 = (_t1624, _dollar_dollar.value,) - unwrapped_fields925 = fields924 + _t1650 = deconstruct_bindings(pp, _dollar_dollar) + fields937 = (_t1650, _dollar_dollar.value,) + unwrapped_fields938 = fields937 write(pp, "(") indent!(pp) - field926 = unwrapped_fields925[1] - pretty_bindings(pp, field926) + field939 = unwrapped_fields938[1] + pretty_bindings(pp, field939) newline(pp) - field927 = unwrapped_fields925[2] - pretty_formula(pp, field927) + field940 = unwrapped_fields938[2] + pretty_formula(pp, field940) dedent!(pp) write(pp, ")") end @@ -1351,34 +1369,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) + flat949 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat949) + write(pp, flat949) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar[2]) - _t1625 = _dollar_dollar[2] + _t1651 = _dollar_dollar[2] else - _t1625 = nothing + _t1651 = nothing end - fields929 = (_dollar_dollar[1], _t1625,) - unwrapped_fields930 = fields929 + fields942 = (_dollar_dollar[1], _t1651,) + unwrapped_fields943 = fields942 write(pp, "[") indent!(pp) - field931 = unwrapped_fields930[1] - for (i1626, elem932) in enumerate(field931) - i933 = i1626 - 1 - if (i933 > 0) + field944 = unwrapped_fields943[1] + for (i1652, elem945) in enumerate(field944) + i946 = i1652 - 1 + if (i946 > 0) newline(pp) end - pretty_binding(pp, elem932) + pretty_binding(pp, elem945) end - field934 = unwrapped_fields930[2] - if !isnothing(field934) + field947 = unwrapped_fields943[2] + if !isnothing(field947) newline(pp) - opt_val935 = field934 - pretty_value_bindings(pp, opt_val935) + opt_val948 = field947 + pretty_value_bindings(pp, opt_val948) end dedent!(pp) write(pp, "]") @@ -1387,182 +1405,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) + flat954 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat954) + write(pp, flat954) 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) + fields950 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) + unwrapped_fields951 = fields950 + field952 = unwrapped_fields951[1] + write(pp, field952) write(pp, "::") - field940 = unwrapped_fields938[2] - pretty_type(pp, field940) + field953 = unwrapped_fields951[2] + pretty_type(pp, field953) 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) + flat983 = try_flat(pp, msg, pretty_type) + if !isnothing(flat983) + write(pp, flat983) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1627 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1653 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1627 = nothing + _t1653 = nothing end - deconstruct_result968 = _t1627 - if !isnothing(deconstruct_result968) - unwrapped969 = deconstruct_result968 - pretty_unspecified_type(pp, unwrapped969) + deconstruct_result981 = _t1653 + if !isnothing(deconstruct_result981) + unwrapped982 = deconstruct_result981 + pretty_unspecified_type(pp, unwrapped982) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1628 = _get_oneof_field(_dollar_dollar, :string_type) + _t1654 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1628 = nothing + _t1654 = nothing end - deconstruct_result966 = _t1628 - if !isnothing(deconstruct_result966) - unwrapped967 = deconstruct_result966 - pretty_string_type(pp, unwrapped967) + deconstruct_result979 = _t1654 + if !isnothing(deconstruct_result979) + unwrapped980 = deconstruct_result979 + pretty_string_type(pp, unwrapped980) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1629 = _get_oneof_field(_dollar_dollar, :int_type) + _t1655 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1629 = nothing + _t1655 = nothing end - deconstruct_result964 = _t1629 - if !isnothing(deconstruct_result964) - unwrapped965 = deconstruct_result964 - pretty_int_type(pp, unwrapped965) + deconstruct_result977 = _t1655 + if !isnothing(deconstruct_result977) + unwrapped978 = deconstruct_result977 + pretty_int_type(pp, unwrapped978) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1630 = _get_oneof_field(_dollar_dollar, :float_type) + _t1656 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1630 = nothing + _t1656 = nothing end - deconstruct_result962 = _t1630 - if !isnothing(deconstruct_result962) - unwrapped963 = deconstruct_result962 - pretty_float_type(pp, unwrapped963) + deconstruct_result975 = _t1656 + if !isnothing(deconstruct_result975) + unwrapped976 = deconstruct_result975 + pretty_float_type(pp, unwrapped976) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1631 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1657 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1631 = nothing + _t1657 = nothing end - deconstruct_result960 = _t1631 - if !isnothing(deconstruct_result960) - unwrapped961 = deconstruct_result960 - pretty_uint128_type(pp, unwrapped961) + deconstruct_result973 = _t1657 + if !isnothing(deconstruct_result973) + unwrapped974 = deconstruct_result973 + pretty_uint128_type(pp, unwrapped974) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1632 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1658 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1632 = nothing + _t1658 = nothing end - deconstruct_result958 = _t1632 - if !isnothing(deconstruct_result958) - unwrapped959 = deconstruct_result958 - pretty_int128_type(pp, unwrapped959) + deconstruct_result971 = _t1658 + if !isnothing(deconstruct_result971) + unwrapped972 = deconstruct_result971 + pretty_int128_type(pp, unwrapped972) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1633 = _get_oneof_field(_dollar_dollar, :date_type) + _t1659 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1633 = nothing + _t1659 = nothing end - deconstruct_result956 = _t1633 - if !isnothing(deconstruct_result956) - unwrapped957 = deconstruct_result956 - pretty_date_type(pp, unwrapped957) + deconstruct_result969 = _t1659 + if !isnothing(deconstruct_result969) + unwrapped970 = deconstruct_result969 + pretty_date_type(pp, unwrapped970) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1634 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1660 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1634 = nothing + _t1660 = nothing end - deconstruct_result954 = _t1634 - if !isnothing(deconstruct_result954) - unwrapped955 = deconstruct_result954 - pretty_datetime_type(pp, unwrapped955) + deconstruct_result967 = _t1660 + if !isnothing(deconstruct_result967) + unwrapped968 = deconstruct_result967 + pretty_datetime_type(pp, unwrapped968) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1635 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1661 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1635 = nothing + _t1661 = nothing end - deconstruct_result952 = _t1635 - if !isnothing(deconstruct_result952) - unwrapped953 = deconstruct_result952 - pretty_missing_type(pp, unwrapped953) + deconstruct_result965 = _t1661 + if !isnothing(deconstruct_result965) + unwrapped966 = deconstruct_result965 + pretty_missing_type(pp, unwrapped966) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1636 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1662 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1636 = nothing + _t1662 = nothing end - deconstruct_result950 = _t1636 - if !isnothing(deconstruct_result950) - unwrapped951 = deconstruct_result950 - pretty_decimal_type(pp, unwrapped951) + deconstruct_result963 = _t1662 + if !isnothing(deconstruct_result963) + unwrapped964 = deconstruct_result963 + pretty_decimal_type(pp, unwrapped964) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1637 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1663 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1637 = nothing + _t1663 = nothing end - deconstruct_result948 = _t1637 - if !isnothing(deconstruct_result948) - unwrapped949 = deconstruct_result948 - pretty_boolean_type(pp, unwrapped949) + deconstruct_result961 = _t1663 + if !isnothing(deconstruct_result961) + unwrapped962 = deconstruct_result961 + pretty_boolean_type(pp, unwrapped962) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_type")) - _t1638 = _get_oneof_field(_dollar_dollar, :int32_type) + _t1664 = _get_oneof_field(_dollar_dollar, :int32_type) else - _t1638 = nothing + _t1664 = nothing end - deconstruct_result946 = _t1638 - if !isnothing(deconstruct_result946) - unwrapped947 = deconstruct_result946 - pretty_int32_type(pp, unwrapped947) + deconstruct_result959 = _t1664 + if !isnothing(deconstruct_result959) + unwrapped960 = deconstruct_result959 + pretty_int32_type(pp, unwrapped960) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_type")) - _t1639 = _get_oneof_field(_dollar_dollar, :float32_type) + _t1665 = _get_oneof_field(_dollar_dollar, :float32_type) else - _t1639 = nothing + _t1665 = nothing end - deconstruct_result944 = _t1639 - if !isnothing(deconstruct_result944) - unwrapped945 = deconstruct_result944 - pretty_float32_type(pp, unwrapped945) + deconstruct_result957 = _t1665 + if !isnothing(deconstruct_result957) + unwrapped958 = deconstruct_result957 + pretty_float32_type(pp, unwrapped958) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_type")) - _t1640 = _get_oneof_field(_dollar_dollar, :uint32_type) + _t1666 = _get_oneof_field(_dollar_dollar, :uint32_type) else - _t1640 = nothing + _t1666 = nothing end - deconstruct_result942 = _t1640 - if !isnothing(deconstruct_result942) - unwrapped943 = deconstruct_result942 - pretty_uint32_type(pp, unwrapped943) + deconstruct_result955 = _t1666 + if !isnothing(deconstruct_result955) + unwrapped956 = deconstruct_result955 + pretty_uint32_type(pp, unwrapped956) else throw(ParseError("No matching rule for type")) end @@ -1584,76 +1602,76 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields971 = msg + fields984 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields972 = msg + fields985 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields973 = msg + fields986 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields974 = msg + fields987 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields975 = msg + fields988 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields976 = msg + fields989 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields977 = msg + fields990 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields978 = msg + fields991 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields979 = msg + fields992 = 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) + flat997 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat997) + write(pp, flat997) return nothing else _dollar_dollar = msg - fields980 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) - unwrapped_fields981 = fields980 + fields993 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) + unwrapped_fields994 = fields993 write(pp, "(DECIMAL") indent_sexp!(pp) newline(pp) - field982 = unwrapped_fields981[1] - write(pp, string(field982)) + field995 = unwrapped_fields994[1] + write(pp, string(field995)) newline(pp) - field983 = unwrapped_fields981[2] - write(pp, string(field983)) + field996 = unwrapped_fields994[2] + write(pp, string(field996)) dedent!(pp) write(pp, ")") end @@ -1661,45 +1679,45 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields985 = msg + fields998 = msg write(pp, "BOOLEAN") return nothing end function pretty_int32_type(pp::PrettyPrinter, msg::Proto.Int32Type) - fields986 = msg + fields999 = msg write(pp, "INT32") return nothing end function pretty_float32_type(pp::PrettyPrinter, msg::Proto.Float32Type) - fields987 = msg + fields1000 = msg write(pp, "FLOAT32") return nothing end function pretty_uint32_type(pp::PrettyPrinter, msg::Proto.UInt32Type) - fields988 = msg + fields1001 = 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) + flat1005 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat1005) + write(pp, flat1005) return nothing else - fields989 = msg + fields1002 = msg write(pp, "|") - if !isempty(fields989) + if !isempty(fields1002) write(pp, " ") - for (i1641, elem990) in enumerate(fields989) - i991 = i1641 - 1 - if (i991 > 0) + for (i1667, elem1003) in enumerate(fields1002) + i1004 = i1667 - 1 + if (i1004 > 0) newline(pp) end - pretty_binding(pp, elem990) + pretty_binding(pp, elem1003) end end end @@ -1707,153 +1725,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) + flat1032 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat1032) + write(pp, flat1032) 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) + _t1668 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1642 = nothing + _t1668 = nothing end - deconstruct_result1017 = _t1642 - if !isnothing(deconstruct_result1017) - unwrapped1018 = deconstruct_result1017 - pretty_true(pp, unwrapped1018) + deconstruct_result1030 = _t1668 + if !isnothing(deconstruct_result1030) + unwrapped1031 = deconstruct_result1030 + pretty_true(pp, unwrapped1031) 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) + _t1669 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1643 = nothing + _t1669 = nothing end - deconstruct_result1015 = _t1643 - if !isnothing(deconstruct_result1015) - unwrapped1016 = deconstruct_result1015 - pretty_false(pp, unwrapped1016) + deconstruct_result1028 = _t1669 + if !isnothing(deconstruct_result1028) + unwrapped1029 = deconstruct_result1028 + pretty_false(pp, unwrapped1029) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1644 = _get_oneof_field(_dollar_dollar, :exists) + _t1670 = _get_oneof_field(_dollar_dollar, :exists) else - _t1644 = nothing + _t1670 = nothing end - deconstruct_result1013 = _t1644 - if !isnothing(deconstruct_result1013) - unwrapped1014 = deconstruct_result1013 - pretty_exists(pp, unwrapped1014) + deconstruct_result1026 = _t1670 + if !isnothing(deconstruct_result1026) + unwrapped1027 = deconstruct_result1026 + pretty_exists(pp, unwrapped1027) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1645 = _get_oneof_field(_dollar_dollar, :reduce) + _t1671 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1645 = nothing + _t1671 = nothing end - deconstruct_result1011 = _t1645 - if !isnothing(deconstruct_result1011) - unwrapped1012 = deconstruct_result1011 - pretty_reduce(pp, unwrapped1012) + deconstruct_result1024 = _t1671 + if !isnothing(deconstruct_result1024) + unwrapped1025 = deconstruct_result1024 + pretty_reduce(pp, unwrapped1025) 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) + _t1672 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1646 = nothing + _t1672 = nothing end - deconstruct_result1009 = _t1646 - if !isnothing(deconstruct_result1009) - unwrapped1010 = deconstruct_result1009 - pretty_conjunction(pp, unwrapped1010) + deconstruct_result1022 = _t1672 + if !isnothing(deconstruct_result1022) + unwrapped1023 = deconstruct_result1022 + pretty_conjunction(pp, unwrapped1023) 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) + _t1673 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1647 = nothing + _t1673 = nothing end - deconstruct_result1007 = _t1647 - if !isnothing(deconstruct_result1007) - unwrapped1008 = deconstruct_result1007 - pretty_disjunction(pp, unwrapped1008) + deconstruct_result1020 = _t1673 + if !isnothing(deconstruct_result1020) + unwrapped1021 = deconstruct_result1020 + pretty_disjunction(pp, unwrapped1021) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1648 = _get_oneof_field(_dollar_dollar, :not) + _t1674 = _get_oneof_field(_dollar_dollar, :not) else - _t1648 = nothing + _t1674 = nothing end - deconstruct_result1005 = _t1648 - if !isnothing(deconstruct_result1005) - unwrapped1006 = deconstruct_result1005 - pretty_not(pp, unwrapped1006) + deconstruct_result1018 = _t1674 + if !isnothing(deconstruct_result1018) + unwrapped1019 = deconstruct_result1018 + pretty_not(pp, unwrapped1019) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1649 = _get_oneof_field(_dollar_dollar, :ffi) + _t1675 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1649 = nothing + _t1675 = nothing end - deconstruct_result1003 = _t1649 - if !isnothing(deconstruct_result1003) - unwrapped1004 = deconstruct_result1003 - pretty_ffi(pp, unwrapped1004) + deconstruct_result1016 = _t1675 + if !isnothing(deconstruct_result1016) + unwrapped1017 = deconstruct_result1016 + pretty_ffi(pp, unwrapped1017) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1650 = _get_oneof_field(_dollar_dollar, :atom) + _t1676 = _get_oneof_field(_dollar_dollar, :atom) else - _t1650 = nothing + _t1676 = nothing end - deconstruct_result1001 = _t1650 - if !isnothing(deconstruct_result1001) - unwrapped1002 = deconstruct_result1001 - pretty_atom(pp, unwrapped1002) + deconstruct_result1014 = _t1676 + if !isnothing(deconstruct_result1014) + unwrapped1015 = deconstruct_result1014 + pretty_atom(pp, unwrapped1015) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1651 = _get_oneof_field(_dollar_dollar, :pragma) + _t1677 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1651 = nothing + _t1677 = nothing end - deconstruct_result999 = _t1651 - if !isnothing(deconstruct_result999) - unwrapped1000 = deconstruct_result999 - pretty_pragma(pp, unwrapped1000) + deconstruct_result1012 = _t1677 + if !isnothing(deconstruct_result1012) + unwrapped1013 = deconstruct_result1012 + pretty_pragma(pp, unwrapped1013) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1652 = _get_oneof_field(_dollar_dollar, :primitive) + _t1678 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1652 = nothing + _t1678 = nothing end - deconstruct_result997 = _t1652 - if !isnothing(deconstruct_result997) - unwrapped998 = deconstruct_result997 - pretty_primitive(pp, unwrapped998) + deconstruct_result1010 = _t1678 + if !isnothing(deconstruct_result1010) + unwrapped1011 = deconstruct_result1010 + pretty_primitive(pp, unwrapped1011) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1653 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1679 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1653 = nothing + _t1679 = nothing end - deconstruct_result995 = _t1653 - if !isnothing(deconstruct_result995) - unwrapped996 = deconstruct_result995 - pretty_rel_atom(pp, unwrapped996) + deconstruct_result1008 = _t1679 + if !isnothing(deconstruct_result1008) + unwrapped1009 = deconstruct_result1008 + pretty_rel_atom(pp, unwrapped1009) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1654 = _get_oneof_field(_dollar_dollar, :cast) + _t1680 = _get_oneof_field(_dollar_dollar, :cast) else - _t1654 = nothing + _t1680 = nothing end - deconstruct_result993 = _t1654 - if !isnothing(deconstruct_result993) - unwrapped994 = deconstruct_result993 - pretty_cast(pp, unwrapped994) + deconstruct_result1006 = _t1680 + if !isnothing(deconstruct_result1006) + unwrapped1007 = deconstruct_result1006 + pretty_cast(pp, unwrapped1007) else throw(ParseError("No matching rule for formula")) end @@ -1874,35 +1892,35 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields1020 = msg + fields1033 = msg write(pp, "(true)") return nothing end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields1021 = msg + fields1034 = 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) + flat1039 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat1039) + write(pp, flat1039) return nothing else _dollar_dollar = msg - _t1655 = deconstruct_bindings(pp, _dollar_dollar.body) - fields1022 = (_t1655, _dollar_dollar.body.value,) - unwrapped_fields1023 = fields1022 + _t1681 = deconstruct_bindings(pp, _dollar_dollar.body) + fields1035 = (_t1681, _dollar_dollar.body.value,) + unwrapped_fields1036 = fields1035 write(pp, "(exists") indent_sexp!(pp) newline(pp) - field1024 = unwrapped_fields1023[1] - pretty_bindings(pp, field1024) + field1037 = unwrapped_fields1036[1] + pretty_bindings(pp, field1037) newline(pp) - field1025 = unwrapped_fields1023[2] - pretty_formula(pp, field1025) + field1038 = unwrapped_fields1036[2] + pretty_formula(pp, field1038) dedent!(pp) write(pp, ")") end @@ -1910,25 +1928,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) + flat1045 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat1045) + write(pp, flat1045) return nothing else _dollar_dollar = msg - fields1027 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - unwrapped_fields1028 = fields1027 + fields1040 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + unwrapped_fields1041 = fields1040 write(pp, "(reduce") indent_sexp!(pp) newline(pp) - field1029 = unwrapped_fields1028[1] - pretty_abstraction(pp, field1029) + field1042 = unwrapped_fields1041[1] + pretty_abstraction(pp, field1042) newline(pp) - field1030 = unwrapped_fields1028[2] - pretty_abstraction(pp, field1030) + field1043 = unwrapped_fields1041[2] + pretty_abstraction(pp, field1043) newline(pp) - field1031 = unwrapped_fields1028[3] - pretty_terms(pp, field1031) + field1044 = unwrapped_fields1041[3] + pretty_terms(pp, field1044) dedent!(pp) write(pp, ")") end @@ -1936,22 +1954,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) + flat1049 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat1049) + write(pp, flat1049) return nothing else - fields1033 = msg + fields1046 = msg write(pp, "(terms") indent_sexp!(pp) - if !isempty(fields1033) + if !isempty(fields1046) newline(pp) - for (i1656, elem1034) in enumerate(fields1033) - i1035 = i1656 - 1 - if (i1035 > 0) + for (i1682, elem1047) in enumerate(fields1046) + i1048 = i1682 - 1 + if (i1048 > 0) newline(pp) end - pretty_term(pp, elem1034) + pretty_term(pp, elem1047) end end dedent!(pp) @@ -1961,32 +1979,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) + flat1054 = try_flat(pp, msg, pretty_term) + if !isnothing(flat1054) + write(pp, flat1054) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1657 = _get_oneof_field(_dollar_dollar, :var) + _t1683 = _get_oneof_field(_dollar_dollar, :var) else - _t1657 = nothing + _t1683 = nothing end - deconstruct_result1039 = _t1657 - if !isnothing(deconstruct_result1039) - unwrapped1040 = deconstruct_result1039 - pretty_var(pp, unwrapped1040) + deconstruct_result1052 = _t1683 + if !isnothing(deconstruct_result1052) + unwrapped1053 = deconstruct_result1052 + pretty_var(pp, unwrapped1053) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1658 = _get_oneof_field(_dollar_dollar, :constant) + _t1684 = _get_oneof_field(_dollar_dollar, :constant) else - _t1658 = nothing + _t1684 = nothing end - deconstruct_result1037 = _t1658 - if !isnothing(deconstruct_result1037) - unwrapped1038 = deconstruct_result1037 - pretty_value(pp, unwrapped1038) + deconstruct_result1050 = _t1684 + if !isnothing(deconstruct_result1050) + unwrapped1051 = deconstruct_result1050 + pretty_value(pp, unwrapped1051) else throw(ParseError("No matching rule for term")) end @@ -1996,158 +2014,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) + flat1057 = try_flat(pp, msg, pretty_var) + if !isnothing(flat1057) + write(pp, flat1057) return nothing else _dollar_dollar = msg - fields1042 = _dollar_dollar.name - unwrapped_fields1043 = fields1042 - write(pp, unwrapped_fields1043) + fields1055 = _dollar_dollar.name + unwrapped_fields1056 = fields1055 + write(pp, unwrapped_fields1056) 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) + flat1083 = try_flat(pp, msg, pretty_value) + if !isnothing(flat1083) + write(pp, flat1083) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1659 = _get_oneof_field(_dollar_dollar, :date_value) + _t1685 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1659 = nothing + _t1685 = nothing end - deconstruct_result1068 = _t1659 - if !isnothing(deconstruct_result1068) - unwrapped1069 = deconstruct_result1068 - pretty_date(pp, unwrapped1069) + deconstruct_result1081 = _t1685 + if !isnothing(deconstruct_result1081) + unwrapped1082 = deconstruct_result1081 + pretty_date(pp, unwrapped1082) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1660 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1686 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1660 = nothing + _t1686 = nothing end - deconstruct_result1066 = _t1660 - if !isnothing(deconstruct_result1066) - unwrapped1067 = deconstruct_result1066 - pretty_datetime(pp, unwrapped1067) + deconstruct_result1079 = _t1686 + if !isnothing(deconstruct_result1079) + unwrapped1080 = deconstruct_result1079 + pretty_datetime(pp, unwrapped1080) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1661 = _get_oneof_field(_dollar_dollar, :string_value) + _t1687 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1661 = nothing + _t1687 = nothing end - deconstruct_result1064 = _t1661 - if !isnothing(deconstruct_result1064) - unwrapped1065 = deconstruct_result1064 - write(pp, format_string(pp, unwrapped1065)) + deconstruct_result1077 = _t1687 + if !isnothing(deconstruct_result1077) + unwrapped1078 = deconstruct_result1077 + write(pp, format_string(pp, unwrapped1078)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1662 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1688 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1662 = nothing + _t1688 = nothing end - deconstruct_result1062 = _t1662 - if !isnothing(deconstruct_result1062) - unwrapped1063 = deconstruct_result1062 - write(pp, format_int32(pp, unwrapped1063)) + deconstruct_result1075 = _t1688 + if !isnothing(deconstruct_result1075) + unwrapped1076 = deconstruct_result1075 + write(pp, format_int32(pp, unwrapped1076)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1663 = _get_oneof_field(_dollar_dollar, :int_value) + _t1689 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1663 = nothing + _t1689 = nothing end - deconstruct_result1060 = _t1663 - if !isnothing(deconstruct_result1060) - unwrapped1061 = deconstruct_result1060 - write(pp, format_int(pp, unwrapped1061)) + deconstruct_result1073 = _t1689 + if !isnothing(deconstruct_result1073) + unwrapped1074 = deconstruct_result1073 + write(pp, format_int(pp, unwrapped1074)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1664 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1690 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1664 = nothing + _t1690 = nothing end - deconstruct_result1058 = _t1664 - if !isnothing(deconstruct_result1058) - unwrapped1059 = deconstruct_result1058 - write(pp, format_float32(pp, unwrapped1059)) + deconstruct_result1071 = _t1690 + if !isnothing(deconstruct_result1071) + unwrapped1072 = deconstruct_result1071 + write(pp, format_float32(pp, unwrapped1072)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1665 = _get_oneof_field(_dollar_dollar, :float_value) + _t1691 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1665 = nothing + _t1691 = nothing end - deconstruct_result1056 = _t1665 - if !isnothing(deconstruct_result1056) - unwrapped1057 = deconstruct_result1056 - write(pp, format_float(pp, unwrapped1057)) + deconstruct_result1069 = _t1691 + if !isnothing(deconstruct_result1069) + unwrapped1070 = deconstruct_result1069 + write(pp, format_float(pp, unwrapped1070)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1666 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1692 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1666 = nothing + _t1692 = nothing end - deconstruct_result1054 = _t1666 - if !isnothing(deconstruct_result1054) - unwrapped1055 = deconstruct_result1054 - write(pp, format_uint32(pp, unwrapped1055)) + deconstruct_result1067 = _t1692 + if !isnothing(deconstruct_result1067) + unwrapped1068 = deconstruct_result1067 + write(pp, format_uint32(pp, unwrapped1068)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1667 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1693 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1667 = nothing + _t1693 = nothing end - deconstruct_result1052 = _t1667 - if !isnothing(deconstruct_result1052) - unwrapped1053 = deconstruct_result1052 - write(pp, format_uint128(pp, unwrapped1053)) + deconstruct_result1065 = _t1693 + if !isnothing(deconstruct_result1065) + unwrapped1066 = deconstruct_result1065 + write(pp, format_uint128(pp, unwrapped1066)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1668 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1694 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1668 = nothing + _t1694 = nothing end - deconstruct_result1050 = _t1668 - if !isnothing(deconstruct_result1050) - unwrapped1051 = deconstruct_result1050 - write(pp, format_int128(pp, unwrapped1051)) + deconstruct_result1063 = _t1694 + if !isnothing(deconstruct_result1063) + unwrapped1064 = deconstruct_result1063 + write(pp, format_int128(pp, unwrapped1064)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1669 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1695 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1669 = nothing + _t1695 = nothing end - deconstruct_result1048 = _t1669 - if !isnothing(deconstruct_result1048) - unwrapped1049 = deconstruct_result1048 - write(pp, format_decimal(pp, unwrapped1049)) + deconstruct_result1061 = _t1695 + if !isnothing(deconstruct_result1061) + unwrapped1062 = deconstruct_result1061 + write(pp, format_decimal(pp, unwrapped1062)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1670 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1696 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1670 = nothing + _t1696 = nothing end - deconstruct_result1046 = _t1670 - if !isnothing(deconstruct_result1046) - unwrapped1047 = deconstruct_result1046 - pretty_boolean_value(pp, unwrapped1047) + deconstruct_result1059 = _t1696 + if !isnothing(deconstruct_result1059) + unwrapped1060 = deconstruct_result1059 + pretty_boolean_value(pp, unwrapped1060) else - fields1045 = msg + fields1058 = msg write(pp, "missing") end end @@ -2166,25 +2184,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) + flat1089 = try_flat(pp, msg, pretty_date) + if !isnothing(flat1089) + write(pp, flat1089) return nothing else _dollar_dollar = msg - fields1071 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields1072 = fields1071 + fields1084 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields1085 = fields1084 write(pp, "(date") indent_sexp!(pp) newline(pp) - field1073 = unwrapped_fields1072[1] - write(pp, format_int(pp, field1073)) + field1086 = unwrapped_fields1085[1] + write(pp, format_int(pp, field1086)) newline(pp) - field1074 = unwrapped_fields1072[2] - write(pp, format_int(pp, field1074)) + field1087 = unwrapped_fields1085[2] + write(pp, format_int(pp, field1087)) newline(pp) - field1075 = unwrapped_fields1072[3] - write(pp, format_int(pp, field1075)) + field1088 = unwrapped_fields1085[3] + write(pp, format_int(pp, field1088)) dedent!(pp) write(pp, ")") end @@ -2192,39 +2210,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) + flat1100 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat1100) + write(pp, flat1100) 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 + fields1090 = (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_fields1091 = fields1090 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field1079 = unwrapped_fields1078[1] - write(pp, format_int(pp, field1079)) + field1092 = unwrapped_fields1091[1] + write(pp, format_int(pp, field1092)) newline(pp) - field1080 = unwrapped_fields1078[2] - write(pp, format_int(pp, field1080)) + field1093 = unwrapped_fields1091[2] + write(pp, format_int(pp, field1093)) newline(pp) - field1081 = unwrapped_fields1078[3] - write(pp, format_int(pp, field1081)) + field1094 = unwrapped_fields1091[3] + write(pp, format_int(pp, field1094)) newline(pp) - field1082 = unwrapped_fields1078[4] - write(pp, format_int(pp, field1082)) + field1095 = unwrapped_fields1091[4] + write(pp, format_int(pp, field1095)) newline(pp) - field1083 = unwrapped_fields1078[5] - write(pp, format_int(pp, field1083)) + field1096 = unwrapped_fields1091[5] + write(pp, format_int(pp, field1096)) newline(pp) - field1084 = unwrapped_fields1078[6] - write(pp, format_int(pp, field1084)) - field1085 = unwrapped_fields1078[7] - if !isnothing(field1085) + field1097 = unwrapped_fields1091[6] + write(pp, format_int(pp, field1097)) + field1098 = unwrapped_fields1091[7] + if !isnothing(field1098) newline(pp) - opt_val1086 = field1085 - write(pp, format_int(pp, opt_val1086)) + opt_val1099 = field1098 + write(pp, format_int(pp, opt_val1099)) end dedent!(pp) write(pp, ")") @@ -2233,24 +2251,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) + flat1105 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat1105) + write(pp, flat1105) return nothing else _dollar_dollar = msg - fields1088 = _dollar_dollar.args - unwrapped_fields1089 = fields1088 + fields1101 = _dollar_dollar.args + unwrapped_fields1102 = fields1101 write(pp, "(and") indent_sexp!(pp) - if !isempty(unwrapped_fields1089) + if !isempty(unwrapped_fields1102) newline(pp) - for (i1671, elem1090) in enumerate(unwrapped_fields1089) - i1091 = i1671 - 1 - if (i1091 > 0) + for (i1697, elem1103) in enumerate(unwrapped_fields1102) + i1104 = i1697 - 1 + if (i1104 > 0) newline(pp) end - pretty_formula(pp, elem1090) + pretty_formula(pp, elem1103) end end dedent!(pp) @@ -2260,24 +2278,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) + flat1110 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat1110) + write(pp, flat1110) return nothing else _dollar_dollar = msg - fields1093 = _dollar_dollar.args - unwrapped_fields1094 = fields1093 + fields1106 = _dollar_dollar.args + unwrapped_fields1107 = fields1106 write(pp, "(or") indent_sexp!(pp) - if !isempty(unwrapped_fields1094) + if !isempty(unwrapped_fields1107) newline(pp) - for (i1672, elem1095) in enumerate(unwrapped_fields1094) - i1096 = i1672 - 1 - if (i1096 > 0) + for (i1698, elem1108) in enumerate(unwrapped_fields1107) + i1109 = i1698 - 1 + if (i1109 > 0) newline(pp) end - pretty_formula(pp, elem1095) + pretty_formula(pp, elem1108) end end dedent!(pp) @@ -2287,18 +2305,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) + flat1113 = try_flat(pp, msg, pretty_not) + if !isnothing(flat1113) + write(pp, flat1113) return nothing else _dollar_dollar = msg - fields1098 = _dollar_dollar.arg - unwrapped_fields1099 = fields1098 + fields1111 = _dollar_dollar.arg + unwrapped_fields1112 = fields1111 write(pp, "(not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields1099) + pretty_formula(pp, unwrapped_fields1112) dedent!(pp) write(pp, ")") end @@ -2306,25 +2324,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) + flat1119 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat1119) + write(pp, flat1119) return nothing else _dollar_dollar = msg - fields1101 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - unwrapped_fields1102 = fields1101 + fields1114 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + unwrapped_fields1115 = fields1114 write(pp, "(ffi") indent_sexp!(pp) newline(pp) - field1103 = unwrapped_fields1102[1] - pretty_name(pp, field1103) + field1116 = unwrapped_fields1115[1] + pretty_name(pp, field1116) newline(pp) - field1104 = unwrapped_fields1102[2] - pretty_ffi_args(pp, field1104) + field1117 = unwrapped_fields1115[2] + pretty_ffi_args(pp, field1117) newline(pp) - field1105 = unwrapped_fields1102[3] - pretty_terms(pp, field1105) + field1118 = unwrapped_fields1115[3] + pretty_terms(pp, field1118) dedent!(pp) write(pp, ")") end @@ -2332,35 +2350,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) + flat1121 = try_flat(pp, msg, pretty_name) + if !isnothing(flat1121) + write(pp, flat1121) return nothing else - fields1107 = msg + fields1120 = msg write(pp, ":") - write(pp, fields1107) + write(pp, fields1120) 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) + flat1125 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat1125) + write(pp, flat1125) return nothing else - fields1109 = msg + fields1122 = msg write(pp, "(args") indent_sexp!(pp) - if !isempty(fields1109) + if !isempty(fields1122) newline(pp) - for (i1673, elem1110) in enumerate(fields1109) - i1111 = i1673 - 1 - if (i1111 > 0) + for (i1699, elem1123) in enumerate(fields1122) + i1124 = i1699 - 1 + if (i1124 > 0) newline(pp) end - pretty_abstraction(pp, elem1110) + pretty_abstraction(pp, elem1123) end end dedent!(pp) @@ -2370,28 +2388,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) + flat1132 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat1132) + write(pp, flat1132) return nothing else _dollar_dollar = msg - fields1113 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1114 = fields1113 + fields1126 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1127 = fields1126 write(pp, "(atom") indent_sexp!(pp) newline(pp) - field1115 = unwrapped_fields1114[1] - pretty_relation_id(pp, field1115) - field1116 = unwrapped_fields1114[2] - if !isempty(field1116) + field1128 = unwrapped_fields1127[1] + pretty_relation_id(pp, field1128) + field1129 = unwrapped_fields1127[2] + if !isempty(field1129) newline(pp) - for (i1674, elem1117) in enumerate(field1116) - i1118 = i1674 - 1 - if (i1118 > 0) + for (i1700, elem1130) in enumerate(field1129) + i1131 = i1700 - 1 + if (i1131 > 0) newline(pp) end - pretty_term(pp, elem1117) + pretty_term(pp, elem1130) end end dedent!(pp) @@ -2401,28 +2419,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) + flat1139 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat1139) + write(pp, flat1139) return nothing else _dollar_dollar = msg - fields1120 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1121 = fields1120 + fields1133 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1134 = fields1133 write(pp, "(pragma") indent_sexp!(pp) newline(pp) - field1122 = unwrapped_fields1121[1] - pretty_name(pp, field1122) - field1123 = unwrapped_fields1121[2] - if !isempty(field1123) + field1135 = unwrapped_fields1134[1] + pretty_name(pp, field1135) + field1136 = unwrapped_fields1134[2] + if !isempty(field1136) newline(pp) - for (i1675, elem1124) in enumerate(field1123) - i1125 = i1675 - 1 - if (i1125 > 0) + for (i1701, elem1137) in enumerate(field1136) + i1138 = i1701 - 1 + if (i1138 > 0) newline(pp) end - pretty_term(pp, elem1124) + pretty_term(pp, elem1137) end end dedent!(pp) @@ -2432,118 +2450,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) + flat1155 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat1155) + write(pp, flat1155) 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),) + _t1702 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1676 = nothing + _t1702 = nothing end - guard_result1141 = _t1676 - if !isnothing(guard_result1141) + guard_result1154 = _t1702 + if !isnothing(guard_result1154) 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),) + _t1703 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1677 = nothing + _t1703 = nothing end - guard_result1140 = _t1677 - if !isnothing(guard_result1140) + guard_result1153 = _t1703 + if !isnothing(guard_result1153) 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),) + _t1704 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1678 = nothing + _t1704 = nothing end - guard_result1139 = _t1678 - if !isnothing(guard_result1139) + guard_result1152 = _t1704 + if !isnothing(guard_result1152) 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),) + _t1705 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1679 = nothing + _t1705 = nothing end - guard_result1138 = _t1679 - if !isnothing(guard_result1138) + guard_result1151 = _t1705 + if !isnothing(guard_result1151) 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),) + _t1706 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1680 = nothing + _t1706 = nothing end - guard_result1137 = _t1680 - if !isnothing(guard_result1137) + guard_result1150 = _t1706 + if !isnothing(guard_result1150) 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),) + _t1707 = (_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 + _t1707 = nothing end - guard_result1136 = _t1681 - if !isnothing(guard_result1136) + guard_result1149 = _t1707 + if !isnothing(guard_result1149) 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),) + _t1708 = (_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 + _t1708 = nothing end - guard_result1135 = _t1682 - if !isnothing(guard_result1135) + guard_result1148 = _t1708 + if !isnothing(guard_result1148) 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),) + _t1709 = (_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 + _t1709 = nothing end - guard_result1134 = _t1683 - if !isnothing(guard_result1134) + guard_result1147 = _t1709 + if !isnothing(guard_result1147) 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),) + _t1710 = (_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 + _t1710 = nothing end - guard_result1133 = _t1684 - if !isnothing(guard_result1133) + guard_result1146 = _t1710 + if !isnothing(guard_result1146) pretty_divide(pp, msg) else _dollar_dollar = msg - fields1127 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1128 = fields1127 + fields1140 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1141 = fields1140 write(pp, "(primitive") indent_sexp!(pp) newline(pp) - field1129 = unwrapped_fields1128[1] - pretty_name(pp, field1129) - field1130 = unwrapped_fields1128[2] - if !isempty(field1130) + field1142 = unwrapped_fields1141[1] + pretty_name(pp, field1142) + field1143 = unwrapped_fields1141[2] + if !isempty(field1143) newline(pp) - for (i1685, elem1131) in enumerate(field1130) - i1132 = i1685 - 1 - if (i1132 > 0) + for (i1711, elem1144) in enumerate(field1143) + i1145 = i1711 - 1 + if (i1145 > 0) newline(pp) end - pretty_rel_term(pp, elem1131) + pretty_rel_term(pp, elem1144) end end dedent!(pp) @@ -2562,27 +2580,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) + flat1160 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat1160) + write(pp, flat1160) 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),) + _t1712 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1686 = nothing + _t1712 = nothing end - fields1143 = _t1686 - unwrapped_fields1144 = fields1143 + fields1156 = _t1712 + unwrapped_fields1157 = fields1156 write(pp, "(=") indent_sexp!(pp) newline(pp) - field1145 = unwrapped_fields1144[1] - pretty_term(pp, field1145) + field1158 = unwrapped_fields1157[1] + pretty_term(pp, field1158) newline(pp) - field1146 = unwrapped_fields1144[2] - pretty_term(pp, field1146) + field1159 = unwrapped_fields1157[2] + pretty_term(pp, field1159) dedent!(pp) write(pp, ")") end @@ -2590,27 +2608,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) + flat1165 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat1165) + write(pp, flat1165) 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),) + _t1713 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1687 = nothing + _t1713 = nothing end - fields1148 = _t1687 - unwrapped_fields1149 = fields1148 + fields1161 = _t1713 + unwrapped_fields1162 = fields1161 write(pp, "(<") indent_sexp!(pp) newline(pp) - field1150 = unwrapped_fields1149[1] - pretty_term(pp, field1150) + field1163 = unwrapped_fields1162[1] + pretty_term(pp, field1163) newline(pp) - field1151 = unwrapped_fields1149[2] - pretty_term(pp, field1151) + field1164 = unwrapped_fields1162[2] + pretty_term(pp, field1164) dedent!(pp) write(pp, ")") end @@ -2618,27 +2636,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) + flat1170 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat1170) + write(pp, flat1170) 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),) + _t1714 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1688 = nothing + _t1714 = nothing end - fields1153 = _t1688 - unwrapped_fields1154 = fields1153 + fields1166 = _t1714 + unwrapped_fields1167 = fields1166 write(pp, "(<=") indent_sexp!(pp) newline(pp) - field1155 = unwrapped_fields1154[1] - pretty_term(pp, field1155) + field1168 = unwrapped_fields1167[1] + pretty_term(pp, field1168) newline(pp) - field1156 = unwrapped_fields1154[2] - pretty_term(pp, field1156) + field1169 = unwrapped_fields1167[2] + pretty_term(pp, field1169) dedent!(pp) write(pp, ")") end @@ -2646,27 +2664,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) + flat1175 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat1175) + write(pp, flat1175) 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),) + _t1715 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1689 = nothing + _t1715 = nothing end - fields1158 = _t1689 - unwrapped_fields1159 = fields1158 + fields1171 = _t1715 + unwrapped_fields1172 = fields1171 write(pp, "(>") indent_sexp!(pp) newline(pp) - field1160 = unwrapped_fields1159[1] - pretty_term(pp, field1160) + field1173 = unwrapped_fields1172[1] + pretty_term(pp, field1173) newline(pp) - field1161 = unwrapped_fields1159[2] - pretty_term(pp, field1161) + field1174 = unwrapped_fields1172[2] + pretty_term(pp, field1174) dedent!(pp) write(pp, ")") end @@ -2674,27 +2692,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) + flat1180 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat1180) + write(pp, flat1180) 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),) + _t1716 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1690 = nothing + _t1716 = nothing end - fields1163 = _t1690 - unwrapped_fields1164 = fields1163 + fields1176 = _t1716 + unwrapped_fields1177 = fields1176 write(pp, "(>=") indent_sexp!(pp) newline(pp) - field1165 = unwrapped_fields1164[1] - pretty_term(pp, field1165) + field1178 = unwrapped_fields1177[1] + pretty_term(pp, field1178) newline(pp) - field1166 = unwrapped_fields1164[2] - pretty_term(pp, field1166) + field1179 = unwrapped_fields1177[2] + pretty_term(pp, field1179) dedent!(pp) write(pp, ")") end @@ -2702,30 +2720,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) + flat1186 = try_flat(pp, msg, pretty_add) + if !isnothing(flat1186) + write(pp, flat1186) 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),) + _t1717 = (_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 + _t1717 = nothing end - fields1168 = _t1691 - unwrapped_fields1169 = fields1168 + fields1181 = _t1717 + unwrapped_fields1182 = fields1181 write(pp, "(+") indent_sexp!(pp) newline(pp) - field1170 = unwrapped_fields1169[1] - pretty_term(pp, field1170) + field1183 = unwrapped_fields1182[1] + pretty_term(pp, field1183) newline(pp) - field1171 = unwrapped_fields1169[2] - pretty_term(pp, field1171) + field1184 = unwrapped_fields1182[2] + pretty_term(pp, field1184) newline(pp) - field1172 = unwrapped_fields1169[3] - pretty_term(pp, field1172) + field1185 = unwrapped_fields1182[3] + pretty_term(pp, field1185) dedent!(pp) write(pp, ")") end @@ -2733,30 +2751,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) + flat1192 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat1192) + write(pp, flat1192) 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),) + _t1718 = (_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 + _t1718 = nothing end - fields1174 = _t1692 - unwrapped_fields1175 = fields1174 + fields1187 = _t1718 + unwrapped_fields1188 = fields1187 write(pp, "(-") indent_sexp!(pp) newline(pp) - field1176 = unwrapped_fields1175[1] - pretty_term(pp, field1176) + field1189 = unwrapped_fields1188[1] + pretty_term(pp, field1189) newline(pp) - field1177 = unwrapped_fields1175[2] - pretty_term(pp, field1177) + field1190 = unwrapped_fields1188[2] + pretty_term(pp, field1190) newline(pp) - field1178 = unwrapped_fields1175[3] - pretty_term(pp, field1178) + field1191 = unwrapped_fields1188[3] + pretty_term(pp, field1191) dedent!(pp) write(pp, ")") end @@ -2764,30 +2782,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) + flat1198 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat1198) + write(pp, flat1198) 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),) + _t1719 = (_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 + _t1719 = nothing end - fields1180 = _t1693 - unwrapped_fields1181 = fields1180 + fields1193 = _t1719 + unwrapped_fields1194 = fields1193 write(pp, "(*") indent_sexp!(pp) newline(pp) - field1182 = unwrapped_fields1181[1] - pretty_term(pp, field1182) + field1195 = unwrapped_fields1194[1] + pretty_term(pp, field1195) newline(pp) - field1183 = unwrapped_fields1181[2] - pretty_term(pp, field1183) + field1196 = unwrapped_fields1194[2] + pretty_term(pp, field1196) newline(pp) - field1184 = unwrapped_fields1181[3] - pretty_term(pp, field1184) + field1197 = unwrapped_fields1194[3] + pretty_term(pp, field1197) dedent!(pp) write(pp, ")") end @@ -2795,30 +2813,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) + flat1204 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat1204) + write(pp, flat1204) 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),) + _t1720 = (_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 + _t1720 = nothing end - fields1186 = _t1694 - unwrapped_fields1187 = fields1186 + fields1199 = _t1720 + unwrapped_fields1200 = fields1199 write(pp, "(/") indent_sexp!(pp) newline(pp) - field1188 = unwrapped_fields1187[1] - pretty_term(pp, field1188) + field1201 = unwrapped_fields1200[1] + pretty_term(pp, field1201) newline(pp) - field1189 = unwrapped_fields1187[2] - pretty_term(pp, field1189) + field1202 = unwrapped_fields1200[2] + pretty_term(pp, field1202) newline(pp) - field1190 = unwrapped_fields1187[3] - pretty_term(pp, field1190) + field1203 = unwrapped_fields1200[3] + pretty_term(pp, field1203) dedent!(pp) write(pp, ")") end @@ -2826,32 +2844,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) + flat1209 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat1209) + write(pp, flat1209) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1695 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1721 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1695 = nothing + _t1721 = nothing end - deconstruct_result1194 = _t1695 - if !isnothing(deconstruct_result1194) - unwrapped1195 = deconstruct_result1194 - pretty_specialized_value(pp, unwrapped1195) + deconstruct_result1207 = _t1721 + if !isnothing(deconstruct_result1207) + unwrapped1208 = deconstruct_result1207 + pretty_specialized_value(pp, unwrapped1208) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1696 = _get_oneof_field(_dollar_dollar, :term) + _t1722 = _get_oneof_field(_dollar_dollar, :term) else - _t1696 = nothing + _t1722 = nothing end - deconstruct_result1192 = _t1696 - if !isnothing(deconstruct_result1192) - unwrapped1193 = deconstruct_result1192 - pretty_term(pp, unwrapped1193) + deconstruct_result1205 = _t1722 + if !isnothing(deconstruct_result1205) + unwrapped1206 = deconstruct_result1205 + pretty_term(pp, unwrapped1206) else throw(ParseError("No matching rule for rel_term")) end @@ -2861,41 +2879,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) + flat1211 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat1211) + write(pp, flat1211) return nothing else - fields1197 = msg + fields1210 = msg write(pp, "#") - pretty_raw_value(pp, fields1197) + pretty_raw_value(pp, fields1210) 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) + flat1218 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat1218) + write(pp, flat1218) return nothing else _dollar_dollar = msg - fields1199 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1200 = fields1199 + fields1212 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1213 = fields1212 write(pp, "(relatom") indent_sexp!(pp) newline(pp) - field1201 = unwrapped_fields1200[1] - pretty_name(pp, field1201) - field1202 = unwrapped_fields1200[2] - if !isempty(field1202) + field1214 = unwrapped_fields1213[1] + pretty_name(pp, field1214) + field1215 = unwrapped_fields1213[2] + if !isempty(field1215) newline(pp) - for (i1697, elem1203) in enumerate(field1202) - i1204 = i1697 - 1 - if (i1204 > 0) + for (i1723, elem1216) in enumerate(field1215) + i1217 = i1723 - 1 + if (i1217 > 0) newline(pp) end - pretty_rel_term(pp, elem1203) + pretty_rel_term(pp, elem1216) end end dedent!(pp) @@ -2905,22 +2923,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) + flat1223 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1223) + write(pp, flat1223) return nothing else _dollar_dollar = msg - fields1206 = (_dollar_dollar.input, _dollar_dollar.result,) - unwrapped_fields1207 = fields1206 + fields1219 = (_dollar_dollar.input, _dollar_dollar.result,) + unwrapped_fields1220 = fields1219 write(pp, "(cast") indent_sexp!(pp) newline(pp) - field1208 = unwrapped_fields1207[1] - pretty_term(pp, field1208) + field1221 = unwrapped_fields1220[1] + pretty_term(pp, field1221) newline(pp) - field1209 = unwrapped_fields1207[2] - pretty_term(pp, field1209) + field1222 = unwrapped_fields1220[2] + pretty_term(pp, field1222) dedent!(pp) write(pp, ")") end @@ -2928,22 +2946,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) + flat1227 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1227) + write(pp, flat1227) return nothing else - fields1211 = msg + fields1224 = msg write(pp, "(attrs") indent_sexp!(pp) - if !isempty(fields1211) + if !isempty(fields1224) newline(pp) - for (i1698, elem1212) in enumerate(fields1211) - i1213 = i1698 - 1 - if (i1213 > 0) + for (i1724, elem1225) in enumerate(fields1224) + i1226 = i1724 - 1 + if (i1226 > 0) newline(pp) end - pretty_attribute(pp, elem1212) + pretty_attribute(pp, elem1225) end end dedent!(pp) @@ -2953,28 +2971,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) + flat1234 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1234) + write(pp, flat1234) return nothing else _dollar_dollar = msg - fields1215 = (_dollar_dollar.name, _dollar_dollar.args,) - unwrapped_fields1216 = fields1215 + fields1228 = (_dollar_dollar.name, _dollar_dollar.args,) + unwrapped_fields1229 = fields1228 write(pp, "(attribute") indent_sexp!(pp) newline(pp) - field1217 = unwrapped_fields1216[1] - pretty_name(pp, field1217) - field1218 = unwrapped_fields1216[2] - if !isempty(field1218) + field1230 = unwrapped_fields1229[1] + pretty_name(pp, field1230) + field1231 = unwrapped_fields1229[2] + if !isempty(field1231) newline(pp) - for (i1699, elem1219) in enumerate(field1218) - i1220 = i1699 - 1 - if (i1220 > 0) + for (i1725, elem1232) in enumerate(field1231) + i1233 = i1725 - 1 + if (i1233 > 0) newline(pp) end - pretty_raw_value(pp, elem1219) + pretty_raw_value(pp, elem1232) end end dedent!(pp) @@ -2984,40 +3002,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) + flat1243 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1243) + write(pp, flat1243) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1700 = _dollar_dollar.attrs + _t1726 = _dollar_dollar.attrs else - _t1700 = nothing + _t1726 = nothing end - fields1222 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1700,) - unwrapped_fields1223 = fields1222 + fields1235 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1726,) + unwrapped_fields1236 = fields1235 write(pp, "(algorithm") indent_sexp!(pp) - field1224 = unwrapped_fields1223[1] - if !isempty(field1224) + field1237 = unwrapped_fields1236[1] + if !isempty(field1237) newline(pp) - for (i1701, elem1225) in enumerate(field1224) - i1226 = i1701 - 1 - if (i1226 > 0) + for (i1727, elem1238) in enumerate(field1237) + i1239 = i1727 - 1 + if (i1239 > 0) newline(pp) end - pretty_relation_id(pp, elem1225) + pretty_relation_id(pp, elem1238) end end newline(pp) - field1227 = unwrapped_fields1223[2] - pretty_script(pp, field1227) - field1228 = unwrapped_fields1223[3] - if !isnothing(field1228) + field1240 = unwrapped_fields1236[2] + pretty_script(pp, field1240) + field1241 = unwrapped_fields1236[3] + if !isnothing(field1241) newline(pp) - opt_val1229 = field1228 - pretty_attrs(pp, opt_val1229) + opt_val1242 = field1241 + pretty_attrs(pp, opt_val1242) end dedent!(pp) write(pp, ")") @@ -3026,24 +3044,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) + flat1248 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1248) + write(pp, flat1248) return nothing else _dollar_dollar = msg - fields1231 = _dollar_dollar.constructs - unwrapped_fields1232 = fields1231 + fields1244 = _dollar_dollar.constructs + unwrapped_fields1245 = fields1244 write(pp, "(script") indent_sexp!(pp) - if !isempty(unwrapped_fields1232) + if !isempty(unwrapped_fields1245) newline(pp) - for (i1702, elem1233) in enumerate(unwrapped_fields1232) - i1234 = i1702 - 1 - if (i1234 > 0) + for (i1728, elem1246) in enumerate(unwrapped_fields1245) + i1247 = i1728 - 1 + if (i1247 > 0) newline(pp) end - pretty_construct(pp, elem1233) + pretty_construct(pp, elem1246) end end dedent!(pp) @@ -3053,32 +3071,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) + flat1253 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1253) + write(pp, flat1253) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1703 = _get_oneof_field(_dollar_dollar, :loop) + _t1729 = _get_oneof_field(_dollar_dollar, :loop) else - _t1703 = nothing + _t1729 = nothing end - deconstruct_result1238 = _t1703 - if !isnothing(deconstruct_result1238) - unwrapped1239 = deconstruct_result1238 - pretty_loop(pp, unwrapped1239) + deconstruct_result1251 = _t1729 + if !isnothing(deconstruct_result1251) + unwrapped1252 = deconstruct_result1251 + pretty_loop(pp, unwrapped1252) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1704 = _get_oneof_field(_dollar_dollar, :instruction) + _t1730 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1704 = nothing + _t1730 = nothing end - deconstruct_result1236 = _t1704 - if !isnothing(deconstruct_result1236) - unwrapped1237 = deconstruct_result1236 - pretty_instruction(pp, unwrapped1237) + deconstruct_result1249 = _t1730 + if !isnothing(deconstruct_result1249) + unwrapped1250 = deconstruct_result1249 + pretty_instruction(pp, unwrapped1250) else throw(ParseError("No matching rule for construct")) end @@ -3088,32 +3106,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) + flat1260 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1260) + write(pp, flat1260) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1705 = _dollar_dollar.attrs + _t1731 = _dollar_dollar.attrs else - _t1705 = nothing + _t1731 = nothing end - fields1241 = (_dollar_dollar.init, _dollar_dollar.body, _t1705,) - unwrapped_fields1242 = fields1241 + fields1254 = (_dollar_dollar.init, _dollar_dollar.body, _t1731,) + unwrapped_fields1255 = fields1254 write(pp, "(loop") indent_sexp!(pp) newline(pp) - field1243 = unwrapped_fields1242[1] - pretty_init(pp, field1243) + field1256 = unwrapped_fields1255[1] + pretty_init(pp, field1256) newline(pp) - field1244 = unwrapped_fields1242[2] - pretty_script(pp, field1244) - field1245 = unwrapped_fields1242[3] - if !isnothing(field1245) + field1257 = unwrapped_fields1255[2] + pretty_script(pp, field1257) + field1258 = unwrapped_fields1255[3] + if !isnothing(field1258) newline(pp) - opt_val1246 = field1245 - pretty_attrs(pp, opt_val1246) + opt_val1259 = field1258 + pretty_attrs(pp, opt_val1259) end dedent!(pp) write(pp, ")") @@ -3122,22 +3140,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) + flat1264 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1264) + write(pp, flat1264) return nothing else - fields1248 = msg + fields1261 = msg write(pp, "(init") indent_sexp!(pp) - if !isempty(fields1248) + if !isempty(fields1261) newline(pp) - for (i1706, elem1249) in enumerate(fields1248) - i1250 = i1706 - 1 - if (i1250 > 0) + for (i1732, elem1262) in enumerate(fields1261) + i1263 = i1732 - 1 + if (i1263 > 0) newline(pp) end - pretty_instruction(pp, elem1249) + pretty_instruction(pp, elem1262) end end dedent!(pp) @@ -3147,65 +3165,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) + flat1275 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1275) + write(pp, flat1275) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1707 = _get_oneof_field(_dollar_dollar, :assign) + _t1733 = _get_oneof_field(_dollar_dollar, :assign) else - _t1707 = nothing + _t1733 = nothing end - deconstruct_result1260 = _t1707 - if !isnothing(deconstruct_result1260) - unwrapped1261 = deconstruct_result1260 - pretty_assign(pp, unwrapped1261) + deconstruct_result1273 = _t1733 + if !isnothing(deconstruct_result1273) + unwrapped1274 = deconstruct_result1273 + pretty_assign(pp, unwrapped1274) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1708 = _get_oneof_field(_dollar_dollar, :upsert) + _t1734 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1708 = nothing + _t1734 = nothing end - deconstruct_result1258 = _t1708 - if !isnothing(deconstruct_result1258) - unwrapped1259 = deconstruct_result1258 - pretty_upsert(pp, unwrapped1259) + deconstruct_result1271 = _t1734 + if !isnothing(deconstruct_result1271) + unwrapped1272 = deconstruct_result1271 + pretty_upsert(pp, unwrapped1272) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1709 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1735 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1709 = nothing + _t1735 = nothing end - deconstruct_result1256 = _t1709 - if !isnothing(deconstruct_result1256) - unwrapped1257 = deconstruct_result1256 - pretty_break(pp, unwrapped1257) + deconstruct_result1269 = _t1735 + if !isnothing(deconstruct_result1269) + unwrapped1270 = deconstruct_result1269 + pretty_break(pp, unwrapped1270) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1710 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1736 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1710 = nothing + _t1736 = nothing end - deconstruct_result1254 = _t1710 - if !isnothing(deconstruct_result1254) - unwrapped1255 = deconstruct_result1254 - pretty_monoid_def(pp, unwrapped1255) + deconstruct_result1267 = _t1736 + if !isnothing(deconstruct_result1267) + unwrapped1268 = deconstruct_result1267 + pretty_monoid_def(pp, unwrapped1268) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1711 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1737 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1711 = nothing + _t1737 = nothing end - deconstruct_result1252 = _t1711 - if !isnothing(deconstruct_result1252) - unwrapped1253 = deconstruct_result1252 - pretty_monus_def(pp, unwrapped1253) + deconstruct_result1265 = _t1737 + if !isnothing(deconstruct_result1265) + unwrapped1266 = deconstruct_result1265 + pretty_monus_def(pp, unwrapped1266) else throw(ParseError("No matching rule for instruction")) end @@ -3218,32 +3236,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) + flat1282 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1282) + write(pp, flat1282) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1712 = _dollar_dollar.attrs + _t1738 = _dollar_dollar.attrs else - _t1712 = nothing + _t1738 = nothing end - fields1263 = (_dollar_dollar.name, _dollar_dollar.body, _t1712,) - unwrapped_fields1264 = fields1263 + fields1276 = (_dollar_dollar.name, _dollar_dollar.body, _t1738,) + unwrapped_fields1277 = fields1276 write(pp, "(assign") indent_sexp!(pp) newline(pp) - field1265 = unwrapped_fields1264[1] - pretty_relation_id(pp, field1265) + field1278 = unwrapped_fields1277[1] + pretty_relation_id(pp, field1278) newline(pp) - field1266 = unwrapped_fields1264[2] - pretty_abstraction(pp, field1266) - field1267 = unwrapped_fields1264[3] - if !isnothing(field1267) + field1279 = unwrapped_fields1277[2] + pretty_abstraction(pp, field1279) + field1280 = unwrapped_fields1277[3] + if !isnothing(field1280) newline(pp) - opt_val1268 = field1267 - pretty_attrs(pp, opt_val1268) + opt_val1281 = field1280 + pretty_attrs(pp, opt_val1281) end dedent!(pp) write(pp, ")") @@ -3252,32 +3270,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) + flat1289 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1289) + write(pp, flat1289) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1713 = _dollar_dollar.attrs + _t1739 = _dollar_dollar.attrs else - _t1713 = nothing + _t1739 = nothing end - fields1270 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1713,) - unwrapped_fields1271 = fields1270 + fields1283 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1739,) + unwrapped_fields1284 = fields1283 write(pp, "(upsert") indent_sexp!(pp) newline(pp) - field1272 = unwrapped_fields1271[1] - pretty_relation_id(pp, field1272) + field1285 = unwrapped_fields1284[1] + pretty_relation_id(pp, field1285) newline(pp) - field1273 = unwrapped_fields1271[2] - pretty_abstraction_with_arity(pp, field1273) - field1274 = unwrapped_fields1271[3] - if !isnothing(field1274) + field1286 = unwrapped_fields1284[2] + pretty_abstraction_with_arity(pp, field1286) + field1287 = unwrapped_fields1284[3] + if !isnothing(field1287) newline(pp) - opt_val1275 = field1274 - pretty_attrs(pp, opt_val1275) + opt_val1288 = field1287 + pretty_attrs(pp, opt_val1288) end dedent!(pp) write(pp, ")") @@ -3286,22 +3304,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) + flat1294 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1294) + write(pp, flat1294) 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 + _t1740 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + fields1290 = (_t1740, _dollar_dollar[1].value,) + unwrapped_fields1291 = fields1290 write(pp, "(") indent!(pp) - field1279 = unwrapped_fields1278[1] - pretty_bindings(pp, field1279) + field1292 = unwrapped_fields1291[1] + pretty_bindings(pp, field1292) newline(pp) - field1280 = unwrapped_fields1278[2] - pretty_formula(pp, field1280) + field1293 = unwrapped_fields1291[2] + pretty_formula(pp, field1293) dedent!(pp) write(pp, ")") end @@ -3309,32 +3327,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) + flat1301 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1301) + write(pp, flat1301) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1715 = _dollar_dollar.attrs + _t1741 = _dollar_dollar.attrs else - _t1715 = nothing + _t1741 = nothing end - fields1282 = (_dollar_dollar.name, _dollar_dollar.body, _t1715,) - unwrapped_fields1283 = fields1282 + fields1295 = (_dollar_dollar.name, _dollar_dollar.body, _t1741,) + unwrapped_fields1296 = fields1295 write(pp, "(break") indent_sexp!(pp) newline(pp) - field1284 = unwrapped_fields1283[1] - pretty_relation_id(pp, field1284) + field1297 = unwrapped_fields1296[1] + pretty_relation_id(pp, field1297) newline(pp) - field1285 = unwrapped_fields1283[2] - pretty_abstraction(pp, field1285) - field1286 = unwrapped_fields1283[3] - if !isnothing(field1286) + field1298 = unwrapped_fields1296[2] + pretty_abstraction(pp, field1298) + field1299 = unwrapped_fields1296[3] + if !isnothing(field1299) newline(pp) - opt_val1287 = field1286 - pretty_attrs(pp, opt_val1287) + opt_val1300 = field1299 + pretty_attrs(pp, opt_val1300) end dedent!(pp) write(pp, ")") @@ -3343,35 +3361,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) + flat1309 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1309) + write(pp, flat1309) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1716 = _dollar_dollar.attrs + _t1742 = _dollar_dollar.attrs else - _t1716 = nothing + _t1742 = nothing end - fields1289 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1716,) - unwrapped_fields1290 = fields1289 + fields1302 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1742,) + unwrapped_fields1303 = fields1302 write(pp, "(monoid") indent_sexp!(pp) newline(pp) - field1291 = unwrapped_fields1290[1] - pretty_monoid(pp, field1291) + field1304 = unwrapped_fields1303[1] + pretty_monoid(pp, field1304) newline(pp) - field1292 = unwrapped_fields1290[2] - pretty_relation_id(pp, field1292) + field1305 = unwrapped_fields1303[2] + pretty_relation_id(pp, field1305) newline(pp) - field1293 = unwrapped_fields1290[3] - pretty_abstraction_with_arity(pp, field1293) - field1294 = unwrapped_fields1290[4] - if !isnothing(field1294) + field1306 = unwrapped_fields1303[3] + pretty_abstraction_with_arity(pp, field1306) + field1307 = unwrapped_fields1303[4] + if !isnothing(field1307) newline(pp) - opt_val1295 = field1294 - pretty_attrs(pp, opt_val1295) + opt_val1308 = field1307 + pretty_attrs(pp, opt_val1308) end dedent!(pp) write(pp, ")") @@ -3380,54 +3398,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) + flat1318 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1318) + write(pp, flat1318) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1717 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1743 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1717 = nothing + _t1743 = nothing end - deconstruct_result1303 = _t1717 - if !isnothing(deconstruct_result1303) - unwrapped1304 = deconstruct_result1303 - pretty_or_monoid(pp, unwrapped1304) + deconstruct_result1316 = _t1743 + if !isnothing(deconstruct_result1316) + unwrapped1317 = deconstruct_result1316 + pretty_or_monoid(pp, unwrapped1317) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1718 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1744 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1718 = nothing + _t1744 = nothing end - deconstruct_result1301 = _t1718 - if !isnothing(deconstruct_result1301) - unwrapped1302 = deconstruct_result1301 - pretty_min_monoid(pp, unwrapped1302) + deconstruct_result1314 = _t1744 + if !isnothing(deconstruct_result1314) + unwrapped1315 = deconstruct_result1314 + pretty_min_monoid(pp, unwrapped1315) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1719 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1745 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1719 = nothing + _t1745 = nothing end - deconstruct_result1299 = _t1719 - if !isnothing(deconstruct_result1299) - unwrapped1300 = deconstruct_result1299 - pretty_max_monoid(pp, unwrapped1300) + deconstruct_result1312 = _t1745 + if !isnothing(deconstruct_result1312) + unwrapped1313 = deconstruct_result1312 + pretty_max_monoid(pp, unwrapped1313) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1720 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1746 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1720 = nothing + _t1746 = nothing end - deconstruct_result1297 = _t1720 - if !isnothing(deconstruct_result1297) - unwrapped1298 = deconstruct_result1297 - pretty_sum_monoid(pp, unwrapped1298) + deconstruct_result1310 = _t1746 + if !isnothing(deconstruct_result1310) + unwrapped1311 = deconstruct_result1310 + pretty_sum_monoid(pp, unwrapped1311) else throw(ParseError("No matching rule for monoid")) end @@ -3439,24 +3457,24 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1306 = msg + fields1319 = 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) + flat1322 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1322) + write(pp, flat1322) return nothing else _dollar_dollar = msg - fields1307 = _dollar_dollar.var"#type" - unwrapped_fields1308 = fields1307 + fields1320 = _dollar_dollar.var"#type" + unwrapped_fields1321 = fields1320 write(pp, "(min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1308) + pretty_type(pp, unwrapped_fields1321) dedent!(pp) write(pp, ")") end @@ -3464,18 +3482,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) + flat1325 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1325) + write(pp, flat1325) return nothing else _dollar_dollar = msg - fields1310 = _dollar_dollar.var"#type" - unwrapped_fields1311 = fields1310 + fields1323 = _dollar_dollar.var"#type" + unwrapped_fields1324 = fields1323 write(pp, "(max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1311) + pretty_type(pp, unwrapped_fields1324) dedent!(pp) write(pp, ")") end @@ -3483,18 +3501,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) + flat1328 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1328) + write(pp, flat1328) return nothing else _dollar_dollar = msg - fields1313 = _dollar_dollar.var"#type" - unwrapped_fields1314 = fields1313 + fields1326 = _dollar_dollar.var"#type" + unwrapped_fields1327 = fields1326 write(pp, "(sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1314) + pretty_type(pp, unwrapped_fields1327) dedent!(pp) write(pp, ")") end @@ -3502,35 +3520,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) + flat1336 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1336) + write(pp, flat1336) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1721 = _dollar_dollar.attrs + _t1747 = _dollar_dollar.attrs else - _t1721 = nothing + _t1747 = nothing end - fields1316 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1721,) - unwrapped_fields1317 = fields1316 + fields1329 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1747,) + unwrapped_fields1330 = fields1329 write(pp, "(monus") indent_sexp!(pp) newline(pp) - field1318 = unwrapped_fields1317[1] - pretty_monoid(pp, field1318) + field1331 = unwrapped_fields1330[1] + pretty_monoid(pp, field1331) newline(pp) - field1319 = unwrapped_fields1317[2] - pretty_relation_id(pp, field1319) + field1332 = unwrapped_fields1330[2] + pretty_relation_id(pp, field1332) newline(pp) - field1320 = unwrapped_fields1317[3] - pretty_abstraction_with_arity(pp, field1320) - field1321 = unwrapped_fields1317[4] - if !isnothing(field1321) + field1333 = unwrapped_fields1330[3] + pretty_abstraction_with_arity(pp, field1333) + field1334 = unwrapped_fields1330[4] + if !isnothing(field1334) newline(pp) - opt_val1322 = field1321 - pretty_attrs(pp, opt_val1322) + opt_val1335 = field1334 + pretty_attrs(pp, opt_val1335) end dedent!(pp) write(pp, ")") @@ -3539,28 +3557,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) + flat1343 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1343) + write(pp, flat1343) 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 + fields1337 = (_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_fields1338 = fields1337 write(pp, "(functional_dependency") indent_sexp!(pp) newline(pp) - field1326 = unwrapped_fields1325[1] - pretty_relation_id(pp, field1326) + field1339 = unwrapped_fields1338[1] + pretty_relation_id(pp, field1339) newline(pp) - field1327 = unwrapped_fields1325[2] - pretty_abstraction(pp, field1327) + field1340 = unwrapped_fields1338[2] + pretty_abstraction(pp, field1340) newline(pp) - field1328 = unwrapped_fields1325[3] - pretty_functional_dependency_keys(pp, field1328) + field1341 = unwrapped_fields1338[3] + pretty_functional_dependency_keys(pp, field1341) newline(pp) - field1329 = unwrapped_fields1325[4] - pretty_functional_dependency_values(pp, field1329) + field1342 = unwrapped_fields1338[4] + pretty_functional_dependency_values(pp, field1342) dedent!(pp) write(pp, ")") end @@ -3568,22 +3586,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) + flat1347 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1347) + write(pp, flat1347) return nothing else - fields1331 = msg + fields1344 = msg write(pp, "(keys") indent_sexp!(pp) - if !isempty(fields1331) + if !isempty(fields1344) newline(pp) - for (i1722, elem1332) in enumerate(fields1331) - i1333 = i1722 - 1 - if (i1333 > 0) + for (i1748, elem1345) in enumerate(fields1344) + i1346 = i1748 - 1 + if (i1346 > 0) newline(pp) end - pretty_var(pp, elem1332) + pretty_var(pp, elem1345) end end dedent!(pp) @@ -3593,22 +3611,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) + flat1351 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1351) + write(pp, flat1351) return nothing else - fields1335 = msg + fields1348 = msg write(pp, "(values") indent_sexp!(pp) - if !isempty(fields1335) + if !isempty(fields1348) newline(pp) - for (i1723, elem1336) in enumerate(fields1335) - i1337 = i1723 - 1 - if (i1337 > 0) + for (i1749, elem1349) in enumerate(fields1348) + i1350 = i1749 - 1 + if (i1350 > 0) newline(pp) end - pretty_var(pp, elem1336) + pretty_var(pp, elem1349) end end dedent!(pp) @@ -3618,54 +3636,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) + flat1360 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1360) + write(pp, flat1360) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("edb")) - _t1724 = _get_oneof_field(_dollar_dollar, :edb) + _t1750 = _get_oneof_field(_dollar_dollar, :edb) else - _t1724 = nothing + _t1750 = nothing end - deconstruct_result1345 = _t1724 - if !isnothing(deconstruct_result1345) - unwrapped1346 = deconstruct_result1345 - pretty_edb(pp, unwrapped1346) + deconstruct_result1358 = _t1750 + if !isnothing(deconstruct_result1358) + unwrapped1359 = deconstruct_result1358 + pretty_edb(pp, unwrapped1359) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1725 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1751 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1725 = nothing + _t1751 = nothing end - deconstruct_result1343 = _t1725 - if !isnothing(deconstruct_result1343) - unwrapped1344 = deconstruct_result1343 - pretty_betree_relation(pp, unwrapped1344) + deconstruct_result1356 = _t1751 + if !isnothing(deconstruct_result1356) + unwrapped1357 = deconstruct_result1356 + pretty_betree_relation(pp, unwrapped1357) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1726 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1752 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1726 = nothing + _t1752 = nothing end - deconstruct_result1341 = _t1726 - if !isnothing(deconstruct_result1341) - unwrapped1342 = deconstruct_result1341 - pretty_csv_data(pp, unwrapped1342) + deconstruct_result1354 = _t1752 + if !isnothing(deconstruct_result1354) + unwrapped1355 = deconstruct_result1354 + pretty_csv_data(pp, unwrapped1355) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("iceberg_data")) - _t1727 = _get_oneof_field(_dollar_dollar, :iceberg_data) + _t1753 = _get_oneof_field(_dollar_dollar, :iceberg_data) else - _t1727 = nothing + _t1753 = nothing end - deconstruct_result1339 = _t1727 - if !isnothing(deconstruct_result1339) - unwrapped1340 = deconstruct_result1339 - pretty_iceberg_data(pp, unwrapped1340) + deconstruct_result1352 = _t1753 + if !isnothing(deconstruct_result1352) + unwrapped1353 = deconstruct_result1352 + pretty_iceberg_data(pp, unwrapped1353) else throw(ParseError("No matching rule for data")) end @@ -3677,25 +3695,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) + flat1366 = try_flat(pp, msg, pretty_edb) + if !isnothing(flat1366) + write(pp, flat1366) return nothing else _dollar_dollar = msg - fields1348 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - unwrapped_fields1349 = fields1348 + fields1361 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + unwrapped_fields1362 = fields1361 write(pp, "(edb") indent_sexp!(pp) newline(pp) - field1350 = unwrapped_fields1349[1] - pretty_relation_id(pp, field1350) + field1363 = unwrapped_fields1362[1] + pretty_relation_id(pp, field1363) newline(pp) - field1351 = unwrapped_fields1349[2] - pretty_edb_path(pp, field1351) + field1364 = unwrapped_fields1362[2] + pretty_edb_path(pp, field1364) newline(pp) - field1352 = unwrapped_fields1349[3] - pretty_edb_types(pp, field1352) + field1365 = unwrapped_fields1362[3] + pretty_edb_types(pp, field1365) dedent!(pp) write(pp, ")") end @@ -3703,20 +3721,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) + flat1370 = try_flat(pp, msg, pretty_edb_path) + if !isnothing(flat1370) + write(pp, flat1370) return nothing else - fields1354 = msg + fields1367 = msg write(pp, "[") indent!(pp) - for (i1728, elem1355) in enumerate(fields1354) - i1356 = i1728 - 1 - if (i1356 > 0) + for (i1754, elem1368) in enumerate(fields1367) + i1369 = i1754 - 1 + if (i1369 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1355)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1368)) end dedent!(pp) write(pp, "]") @@ -3725,20 +3743,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) + flat1374 = try_flat(pp, msg, pretty_edb_types) + if !isnothing(flat1374) + write(pp, flat1374) return nothing else - fields1358 = msg + fields1371 = msg write(pp, "[") indent!(pp) - for (i1729, elem1359) in enumerate(fields1358) - i1360 = i1729 - 1 - if (i1360 > 0) + for (i1755, elem1372) in enumerate(fields1371) + i1373 = i1755 - 1 + if (i1373 > 0) newline(pp) end - pretty_type(pp, elem1359) + pretty_type(pp, elem1372) end dedent!(pp) write(pp, "]") @@ -3747,22 +3765,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) + flat1379 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1379) + write(pp, flat1379) return nothing else _dollar_dollar = msg - fields1362 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - unwrapped_fields1363 = fields1362 + fields1375 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + unwrapped_fields1376 = fields1375 write(pp, "(betree_relation") indent_sexp!(pp) newline(pp) - field1364 = unwrapped_fields1363[1] - pretty_relation_id(pp, field1364) + field1377 = unwrapped_fields1376[1] + pretty_relation_id(pp, field1377) newline(pp) - field1365 = unwrapped_fields1363[2] - pretty_betree_info(pp, field1365) + field1378 = unwrapped_fields1376[2] + pretty_betree_info(pp, field1378) dedent!(pp) write(pp, ")") end @@ -3770,26 +3788,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) + flat1385 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1385) + write(pp, flat1385) 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 + _t1756 = deconstruct_betree_info_config(pp, _dollar_dollar) + fields1380 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1756,) + unwrapped_fields1381 = fields1380 write(pp, "(betree_info") indent_sexp!(pp) newline(pp) - field1369 = unwrapped_fields1368[1] - pretty_betree_info_key_types(pp, field1369) + field1382 = unwrapped_fields1381[1] + pretty_betree_info_key_types(pp, field1382) newline(pp) - field1370 = unwrapped_fields1368[2] - pretty_betree_info_value_types(pp, field1370) + field1383 = unwrapped_fields1381[2] + pretty_betree_info_value_types(pp, field1383) newline(pp) - field1371 = unwrapped_fields1368[3] - pretty_config_dict(pp, field1371) + field1384 = unwrapped_fields1381[3] + pretty_config_dict(pp, field1384) dedent!(pp) write(pp, ")") end @@ -3797,22 +3815,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) + flat1389 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1389) + write(pp, flat1389) return nothing else - fields1373 = msg + fields1386 = msg write(pp, "(key_types") indent_sexp!(pp) - if !isempty(fields1373) + if !isempty(fields1386) newline(pp) - for (i1731, elem1374) in enumerate(fields1373) - i1375 = i1731 - 1 - if (i1375 > 0) + for (i1757, elem1387) in enumerate(fields1386) + i1388 = i1757 - 1 + if (i1388 > 0) newline(pp) end - pretty_type(pp, elem1374) + pretty_type(pp, elem1387) end end dedent!(pp) @@ -3822,22 +3840,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) + flat1393 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1393) + write(pp, flat1393) return nothing else - fields1377 = msg + fields1390 = msg write(pp, "(value_types") indent_sexp!(pp) - if !isempty(fields1377) + if !isempty(fields1390) newline(pp) - for (i1732, elem1378) in enumerate(fields1377) - i1379 = i1732 - 1 - if (i1379 > 0) + for (i1758, elem1391) in enumerate(fields1390) + i1392 = i1758 - 1 + if (i1392 > 0) newline(pp) end - pretty_type(pp, elem1378) + pretty_type(pp, elem1391) end end dedent!(pp) @@ -3847,28 +3865,39 @@ 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) + flat1403 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1403) + write(pp, flat1403) return nothing else _dollar_dollar = msg - fields1381 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - unwrapped_fields1382 = fields1381 + _t1759 = deconstruct_csv_data_columns_optional(pp, _dollar_dollar) + _t1760 = deconstruct_csv_data_target_optional(pp, _dollar_dollar) + fields1394 = (_dollar_dollar.locator, _dollar_dollar.config, _t1759, _t1760, _dollar_dollar.asof,) + unwrapped_fields1395 = fields1394 write(pp, "(csv_data") indent_sexp!(pp) newline(pp) - field1383 = unwrapped_fields1382[1] - pretty_csvlocator(pp, field1383) - newline(pp) - field1384 = unwrapped_fields1382[2] - pretty_csv_config(pp, field1384) + field1396 = unwrapped_fields1395[1] + pretty_csvlocator(pp, field1396) newline(pp) - field1385 = unwrapped_fields1382[3] - pretty_gnf_columns(pp, field1385) + field1397 = unwrapped_fields1395[2] + pretty_csv_config(pp, field1397) + field1398 = unwrapped_fields1395[3] + if !isnothing(field1398) + newline(pp) + opt_val1399 = field1398 + pretty_gnf_columns(pp, opt_val1399) + end + field1400 = unwrapped_fields1395[4] + if !isnothing(field1400) + newline(pp) + opt_val1401 = field1400 + pretty_csv_table(pp, opt_val1401) + end newline(pp) - field1386 = unwrapped_fields1382[4] - pretty_csv_asof(pp, field1386) + field1402 = unwrapped_fields1395[5] + pretty_csv_asof(pp, field1402) dedent!(pp) write(pp, ")") end @@ -3876,37 +3905,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) + flat1410 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1410) + write(pp, flat1410) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.paths) - _t1733 = _dollar_dollar.paths + _t1761 = _dollar_dollar.paths else - _t1733 = nothing + _t1761 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1734 = String(copy(_dollar_dollar.inline_data)) + _t1762 = String(copy(_dollar_dollar.inline_data)) else - _t1734 = nothing + _t1762 = nothing end - fields1388 = (_t1733, _t1734,) - unwrapped_fields1389 = fields1388 + fields1404 = (_t1761, _t1762,) + unwrapped_fields1405 = fields1404 write(pp, "(csv_locator") indent_sexp!(pp) - field1390 = unwrapped_fields1389[1] - if !isnothing(field1390) + field1406 = unwrapped_fields1405[1] + if !isnothing(field1406) newline(pp) - opt_val1391 = field1390 - pretty_csv_locator_paths(pp, opt_val1391) + opt_val1407 = field1406 + pretty_csv_locator_paths(pp, opt_val1407) end - field1392 = unwrapped_fields1389[2] - if !isnothing(field1392) + field1408 = unwrapped_fields1405[2] + if !isnothing(field1408) newline(pp) - opt_val1393 = field1392 - pretty_csv_locator_inline_data(pp, opt_val1393) + opt_val1409 = field1408 + pretty_csv_locator_inline_data(pp, opt_val1409) end dedent!(pp) write(pp, ")") @@ -3915,22 +3944,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) + flat1414 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1414) + write(pp, flat1414) return nothing else - fields1395 = msg + fields1411 = msg write(pp, "(paths") indent_sexp!(pp) - if !isempty(fields1395) + if !isempty(fields1411) newline(pp) - for (i1735, elem1396) in enumerate(fields1395) - i1397 = i1735 - 1 - if (i1397 > 0) + for (i1763, elem1412) in enumerate(fields1411) + i1413 = i1763 - 1 + if (i1413 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1396)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1412)) end end dedent!(pp) @@ -3940,16 +3969,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) + flat1416 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1416) + write(pp, flat1416) return nothing else - fields1399 = msg + fields1415 = 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, fields1415)) dedent!(pp) write(pp, ")") end @@ -3957,19 +3986,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) + flat1419 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1419) + write(pp, flat1419) return nothing else _dollar_dollar = msg - _t1736 = deconstruct_csv_config(pp, _dollar_dollar) - fields1401 = _t1736 - unwrapped_fields1402 = fields1401 + _t1764 = deconstruct_csv_config(pp, _dollar_dollar) + fields1417 = _t1764 + unwrapped_fields1418 = fields1417 write(pp, "(csv_config") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields1402) + pretty_config_dict(pp, unwrapped_fields1418) dedent!(pp) write(pp, ")") end @@ -3977,22 +4006,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) + flat1423 = try_flat(pp, msg, pretty_gnf_columns) + if !isnothing(flat1423) + write(pp, flat1423) return nothing else - fields1404 = msg + fields1420 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1404) + if !isempty(fields1420) newline(pp) - for (i1737, elem1405) in enumerate(fields1404) - i1406 = i1737 - 1 - if (i1406 > 0) + for (i1765, elem1421) in enumerate(fields1420) + i1422 = i1765 - 1 + if (i1422 > 0) newline(pp) end - pretty_gnf_column(pp, elem1405) + pretty_gnf_column(pp, elem1421) end end dedent!(pp) @@ -4002,39 +4031,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) + flat1432 = try_flat(pp, msg, pretty_gnf_column) + if !isnothing(flat1432) + write(pp, flat1432) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("target_id")) - _t1738 = _dollar_dollar.target_id + _t1766 = _dollar_dollar.target_id else - _t1738 = nothing + _t1766 = nothing end - fields1408 = (_dollar_dollar.column_path, _t1738, _dollar_dollar.types,) - unwrapped_fields1409 = fields1408 + fields1424 = (_dollar_dollar.column_path, _t1766, _dollar_dollar.types,) + unwrapped_fields1425 = fields1424 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) + field1426 = unwrapped_fields1425[1] + pretty_gnf_column_path(pp, field1426) + field1427 = unwrapped_fields1425[2] + if !isnothing(field1427) newline(pp) - opt_val1412 = field1411 - pretty_relation_id(pp, opt_val1412) + opt_val1428 = field1427 + pretty_relation_id(pp, opt_val1428) end newline(pp) write(pp, "[") - field1413 = unwrapped_fields1409[3] - for (i1739, elem1414) in enumerate(field1413) - i1415 = i1739 - 1 - if (i1415 > 0) + field1429 = unwrapped_fields1425[3] + for (i1767, elem1430) in enumerate(field1429) + i1431 = i1767 - 1 + if (i1431 > 0) newline(pp) end - pretty_type(pp, elem1414) + pretty_type(pp, elem1430) end write(pp, "]") dedent!(pp) @@ -4044,39 +4073,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) + flat1439 = try_flat(pp, msg, pretty_gnf_column_path) + if !isnothing(flat1439) + write(pp, flat1439) return nothing else _dollar_dollar = msg if length(_dollar_dollar) == 1 - _t1740 = _dollar_dollar[1] + _t1768 = _dollar_dollar[1] else - _t1740 = nothing + _t1768 = nothing end - deconstruct_result1421 = _t1740 - if !isnothing(deconstruct_result1421) - unwrapped1422 = deconstruct_result1421 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1422)) + deconstruct_result1437 = _t1768 + if !isnothing(deconstruct_result1437) + unwrapped1438 = deconstruct_result1437 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1438)) else _dollar_dollar = msg if length(_dollar_dollar) != 1 - _t1741 = _dollar_dollar + _t1769 = _dollar_dollar else - _t1741 = nothing + _t1769 = nothing end - deconstruct_result1417 = _t1741 - if !isnothing(deconstruct_result1417) - unwrapped1418 = deconstruct_result1417 + deconstruct_result1433 = _t1769 + if !isnothing(deconstruct_result1433) + unwrapped1434 = deconstruct_result1433 write(pp, "[") indent!(pp) - for (i1742, elem1419) in enumerate(unwrapped1418) - i1420 = i1742 - 1 - if (i1420 > 0) + for (i1770, elem1435) in enumerate(unwrapped1434) + i1436 = i1770 - 1 + if (i1436 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1419)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1435)) end dedent!(pp) write(pp, "]") @@ -4088,17 +4117,59 @@ function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) return nothing end +function pretty_csv_table(pp::PrettyPrinter, msg::Proto.CSVTarget) + flat1449 = try_flat(pp, msg, pretty_csv_table) + if !isnothing(flat1449) + write(pp, flat1449) + return nothing + else + _dollar_dollar = msg + fields1440 = (_dollar_dollar.target_id, _dollar_dollar.column_names, _dollar_dollar.types,) + unwrapped_fields1441 = fields1440 + write(pp, "(table") + indent_sexp!(pp) + newline(pp) + field1442 = unwrapped_fields1441[1] + pretty_relation_id(pp, field1442) + newline(pp) + write(pp, "[") + field1443 = unwrapped_fields1441[2] + for (i1771, elem1444) in enumerate(field1443) + i1445 = i1771 - 1 + if (i1445 > 0) + newline(pp) + end + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1444)) + end + write(pp, "]") + newline(pp) + write(pp, "[") + field1446 = unwrapped_fields1441[3] + for (i1772, elem1447) in enumerate(field1446) + i1448 = i1772 - 1 + if (i1448 > 0) + newline(pp) + end + pretty_type(pp, elem1447) + end + write(pp, "]") + dedent!(pp) + write(pp, ")") + end + return nothing +end + function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1425 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1425) - write(pp, flat1425) + flat1451 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1451) + write(pp, flat1451) return nothing else - fields1424 = msg + fields1450 = 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, fields1450)) dedent!(pp) write(pp, ")") end @@ -4106,42 +4177,42 @@ 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) + flat1462 = try_flat(pp, msg, pretty_iceberg_data) + if !isnothing(flat1462) + write(pp, flat1462) 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 + _t1773 = deconstruct_iceberg_data_from_snapshot_optional(pp, _dollar_dollar) + _t1774 = deconstruct_iceberg_data_to_snapshot_optional(pp, _dollar_dollar) + fields1452 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1773, _t1774, _dollar_dollar.returns_delta,) + unwrapped_fields1453 = fields1452 write(pp, "(iceberg_data") indent_sexp!(pp) newline(pp) - field1428 = unwrapped_fields1427[1] - pretty_iceberg_locator(pp, field1428) + field1454 = unwrapped_fields1453[1] + pretty_iceberg_locator(pp, field1454) newline(pp) - field1429 = unwrapped_fields1427[2] - pretty_iceberg_catalog_config(pp, field1429) + field1455 = unwrapped_fields1453[2] + pretty_iceberg_catalog_config(pp, field1455) newline(pp) - field1430 = unwrapped_fields1427[3] - pretty_gnf_columns(pp, field1430) - field1431 = unwrapped_fields1427[4] - if !isnothing(field1431) + field1456 = unwrapped_fields1453[3] + pretty_gnf_columns(pp, field1456) + field1457 = unwrapped_fields1453[4] + if !isnothing(field1457) newline(pp) - opt_val1432 = field1431 - pretty_iceberg_from_snapshot(pp, opt_val1432) + opt_val1458 = field1457 + pretty_iceberg_from_snapshot(pp, opt_val1458) end - field1433 = unwrapped_fields1427[5] - if !isnothing(field1433) + field1459 = unwrapped_fields1453[5] + if !isnothing(field1459) newline(pp) - opt_val1434 = field1433 - pretty_iceberg_to_snapshot(pp, opt_val1434) + opt_val1460 = field1459 + pretty_iceberg_to_snapshot(pp, opt_val1460) end newline(pp) - field1435 = unwrapped_fields1427[6] - pretty_boolean_value(pp, field1435) + field1461 = unwrapped_fields1453[6] + pretty_boolean_value(pp, field1461) dedent!(pp) write(pp, ")") end @@ -4149,25 +4220,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) + flat1468 = try_flat(pp, msg, pretty_iceberg_locator) + if !isnothing(flat1468) + write(pp, flat1468) return nothing else _dollar_dollar = msg - fields1437 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) - unwrapped_fields1438 = fields1437 + fields1463 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + unwrapped_fields1464 = fields1463 write(pp, "(iceberg_locator") indent_sexp!(pp) newline(pp) - field1439 = unwrapped_fields1438[1] - pretty_iceberg_locator_table_name(pp, field1439) + field1465 = unwrapped_fields1464[1] + pretty_iceberg_locator_table_name(pp, field1465) newline(pp) - field1440 = unwrapped_fields1438[2] - pretty_iceberg_locator_namespace(pp, field1440) + field1466 = unwrapped_fields1464[2] + pretty_iceberg_locator_namespace(pp, field1466) newline(pp) - field1441 = unwrapped_fields1438[3] - pretty_iceberg_locator_warehouse(pp, field1441) + field1467 = unwrapped_fields1464[3] + pretty_iceberg_locator_warehouse(pp, field1467) dedent!(pp) write(pp, ")") end @@ -4175,16 +4246,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) + flat1470 = try_flat(pp, msg, pretty_iceberg_locator_table_name) + if !isnothing(flat1470) + write(pp, flat1470) return nothing else - fields1443 = msg + fields1469 = 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, fields1469)) dedent!(pp) write(pp, ")") end @@ -4192,22 +4263,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) + flat1474 = try_flat(pp, msg, pretty_iceberg_locator_namespace) + if !isnothing(flat1474) + write(pp, flat1474) return nothing else - fields1445 = msg + fields1471 = msg write(pp, "(namespace") indent_sexp!(pp) - if !isempty(fields1445) + if !isempty(fields1471) newline(pp) - for (i1745, elem1446) in enumerate(fields1445) - i1447 = i1745 - 1 - if (i1447 > 0) + for (i1775, elem1472) in enumerate(fields1471) + i1473 = i1775 - 1 + if (i1473 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1446)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1472)) end end dedent!(pp) @@ -4217,16 +4288,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) + flat1476 = try_flat(pp, msg, pretty_iceberg_locator_warehouse) + if !isnothing(flat1476) + write(pp, flat1476) return nothing else - fields1449 = msg + fields1475 = 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, fields1475)) dedent!(pp) write(pp, ")") end @@ -4234,32 +4305,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) + flat1484 = try_flat(pp, msg, pretty_iceberg_catalog_config) + if !isnothing(flat1484) + write(pp, flat1484) 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 + _t1776 = deconstruct_iceberg_catalog_config_scope_optional(pp, _dollar_dollar) + fields1477 = (_dollar_dollar.catalog_uri, _t1776, sort([(k, v) for (k, v) in _dollar_dollar.properties]), sort([(k, v) for (k, v) in _dollar_dollar.auth_properties]),) + unwrapped_fields1478 = fields1477 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) + field1479 = unwrapped_fields1478[1] + pretty_iceberg_catalog_uri(pp, field1479) + field1480 = unwrapped_fields1478[2] + if !isnothing(field1480) newline(pp) - opt_val1455 = field1454 - pretty_iceberg_catalog_config_scope(pp, opt_val1455) + opt_val1481 = field1480 + pretty_iceberg_catalog_config_scope(pp, opt_val1481) end newline(pp) - field1456 = unwrapped_fields1452[3] - pretty_iceberg_properties(pp, field1456) + field1482 = unwrapped_fields1478[3] + pretty_iceberg_properties(pp, field1482) newline(pp) - field1457 = unwrapped_fields1452[4] - pretty_iceberg_auth_properties(pp, field1457) + field1483 = unwrapped_fields1478[4] + pretty_iceberg_auth_properties(pp, field1483) dedent!(pp) write(pp, ")") end @@ -4267,16 +4338,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) + flat1486 = try_flat(pp, msg, pretty_iceberg_catalog_uri) + if !isnothing(flat1486) + write(pp, flat1486) return nothing else - fields1459 = msg + fields1485 = 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, fields1485)) dedent!(pp) write(pp, ")") end @@ -4284,16 +4355,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) + flat1488 = try_flat(pp, msg, pretty_iceberg_catalog_config_scope) + if !isnothing(flat1488) + write(pp, flat1488) return nothing else - fields1461 = msg + fields1487 = 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, fields1487)) dedent!(pp) write(pp, ")") end @@ -4301,22 +4372,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) + flat1492 = try_flat(pp, msg, pretty_iceberg_properties) + if !isnothing(flat1492) + write(pp, flat1492) return nothing else - fields1463 = msg + fields1489 = msg write(pp, "(properties") indent_sexp!(pp) - if !isempty(fields1463) + if !isempty(fields1489) newline(pp) - for (i1747, elem1464) in enumerate(fields1463) - i1465 = i1747 - 1 - if (i1465 > 0) + for (i1777, elem1490) in enumerate(fields1489) + i1491 = i1777 - 1 + if (i1491 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1464) + pretty_iceberg_property_entry(pp, elem1490) end end dedent!(pp) @@ -4326,22 +4397,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) + flat1497 = try_flat(pp, msg, pretty_iceberg_property_entry) + if !isnothing(flat1497) + write(pp, flat1497) return nothing else _dollar_dollar = msg - fields1467 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields1468 = fields1467 + fields1493 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields1494 = fields1493 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1469 = unwrapped_fields1468[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1469)) + field1495 = unwrapped_fields1494[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1495)) newline(pp) - field1470 = unwrapped_fields1468[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1470)) + field1496 = unwrapped_fields1494[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1496)) dedent!(pp) write(pp, ")") end @@ -4349,22 +4420,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) + flat1501 = try_flat(pp, msg, pretty_iceberg_auth_properties) + if !isnothing(flat1501) + write(pp, flat1501) return nothing else - fields1472 = msg + fields1498 = msg write(pp, "(auth_properties") indent_sexp!(pp) - if !isempty(fields1472) + if !isempty(fields1498) newline(pp) - for (i1748, elem1473) in enumerate(fields1472) - i1474 = i1748 - 1 - if (i1474 > 0) + for (i1778, elem1499) in enumerate(fields1498) + i1500 = i1778 - 1 + if (i1500 > 0) newline(pp) end - pretty_iceberg_masked_property_entry(pp, elem1473) + pretty_iceberg_masked_property_entry(pp, elem1499) end end dedent!(pp) @@ -4374,23 +4445,23 @@ 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) + flat1506 = try_flat(pp, msg, pretty_iceberg_masked_property_entry) + if !isnothing(flat1506) + write(pp, flat1506) return nothing else _dollar_dollar = msg - _t1749 = mask_secret_value(pp, _dollar_dollar) - fields1476 = (_dollar_dollar[1], _t1749,) - unwrapped_fields1477 = fields1476 + _t1779 = mask_secret_value(pp, _dollar_dollar) + fields1502 = (_dollar_dollar[1], _t1779,) + unwrapped_fields1503 = fields1502 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1478 = unwrapped_fields1477[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1478)) + field1504 = unwrapped_fields1503[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1504)) newline(pp) - field1479 = unwrapped_fields1477[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1479)) + field1505 = unwrapped_fields1503[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1505)) dedent!(pp) write(pp, ")") end @@ -4398,16 +4469,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) + flat1508 = try_flat(pp, msg, pretty_iceberg_from_snapshot) + if !isnothing(flat1508) + write(pp, flat1508) return nothing else - fields1481 = msg + fields1507 = 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, fields1507)) dedent!(pp) write(pp, ")") end @@ -4415,16 +4486,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) + flat1510 = try_flat(pp, msg, pretty_iceberg_to_snapshot) + if !isnothing(flat1510) + write(pp, flat1510) return nothing else - fields1483 = msg + fields1509 = 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, fields1509)) dedent!(pp) write(pp, ")") end @@ -4432,18 +4503,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) + flat1513 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1513) + write(pp, flat1513) return nothing else _dollar_dollar = msg - fields1485 = _dollar_dollar.fragment_id - unwrapped_fields1486 = fields1485 + fields1511 = _dollar_dollar.fragment_id + unwrapped_fields1512 = fields1511 write(pp, "(undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1486) + pretty_fragment_id(pp, unwrapped_fields1512) dedent!(pp) write(pp, ")") end @@ -4451,24 +4522,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) + flat1518 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1518) + write(pp, flat1518) return nothing else _dollar_dollar = msg - fields1488 = _dollar_dollar.relations - unwrapped_fields1489 = fields1488 + fields1514 = _dollar_dollar.relations + unwrapped_fields1515 = fields1514 write(pp, "(context") indent_sexp!(pp) - if !isempty(unwrapped_fields1489) + if !isempty(unwrapped_fields1515) newline(pp) - for (i1750, elem1490) in enumerate(unwrapped_fields1489) - i1491 = i1750 - 1 - if (i1491 > 0) + for (i1780, elem1516) in enumerate(unwrapped_fields1515) + i1517 = i1780 - 1 + if (i1517 > 0) newline(pp) end - pretty_relation_id(pp, elem1490) + pretty_relation_id(pp, elem1516) end end dedent!(pp) @@ -4478,28 +4549,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) + flat1525 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1525) + write(pp, flat1525) return nothing else _dollar_dollar = msg - fields1493 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - unwrapped_fields1494 = fields1493 + fields1519 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + unwrapped_fields1520 = fields1519 write(pp, "(snapshot") indent_sexp!(pp) newline(pp) - field1495 = unwrapped_fields1494[1] - pretty_edb_path(pp, field1495) - field1496 = unwrapped_fields1494[2] - if !isempty(field1496) + field1521 = unwrapped_fields1520[1] + pretty_edb_path(pp, field1521) + field1522 = unwrapped_fields1520[2] + if !isempty(field1522) newline(pp) - for (i1751, elem1497) in enumerate(field1496) - i1498 = i1751 - 1 - if (i1498 > 0) + for (i1781, elem1523) in enumerate(field1522) + i1524 = i1781 - 1 + if (i1524 > 0) newline(pp) end - pretty_snapshot_mapping(pp, elem1497) + pretty_snapshot_mapping(pp, elem1523) end end dedent!(pp) @@ -4509,40 +4580,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) + flat1530 = try_flat(pp, msg, pretty_snapshot_mapping) + if !isnothing(flat1530) + write(pp, flat1530) 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) + fields1526 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + unwrapped_fields1527 = fields1526 + field1528 = unwrapped_fields1527[1] + pretty_edb_path(pp, field1528) write(pp, " ") - field1503 = unwrapped_fields1501[2] - pretty_relation_id(pp, field1503) + field1529 = unwrapped_fields1527[2] + pretty_relation_id(pp, field1529) 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) + flat1534 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1534) + write(pp, flat1534) return nothing else - fields1505 = msg + fields1531 = msg write(pp, "(reads") indent_sexp!(pp) - if !isempty(fields1505) + if !isempty(fields1531) newline(pp) - for (i1752, elem1506) in enumerate(fields1505) - i1507 = i1752 - 1 - if (i1507 > 0) + for (i1782, elem1532) in enumerate(fields1531) + i1533 = i1782 - 1 + if (i1533 > 0) newline(pp) end - pretty_read(pp, elem1506) + pretty_read(pp, elem1532) end end dedent!(pp) @@ -4552,65 +4623,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) + flat1545 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1545) + write(pp, flat1545) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1753 = _get_oneof_field(_dollar_dollar, :demand) + _t1783 = _get_oneof_field(_dollar_dollar, :demand) else - _t1753 = nothing + _t1783 = nothing end - deconstruct_result1517 = _t1753 - if !isnothing(deconstruct_result1517) - unwrapped1518 = deconstruct_result1517 - pretty_demand(pp, unwrapped1518) + deconstruct_result1543 = _t1783 + if !isnothing(deconstruct_result1543) + unwrapped1544 = deconstruct_result1543 + pretty_demand(pp, unwrapped1544) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1754 = _get_oneof_field(_dollar_dollar, :output) + _t1784 = _get_oneof_field(_dollar_dollar, :output) else - _t1754 = nothing + _t1784 = nothing end - deconstruct_result1515 = _t1754 - if !isnothing(deconstruct_result1515) - unwrapped1516 = deconstruct_result1515 - pretty_output(pp, unwrapped1516) + deconstruct_result1541 = _t1784 + if !isnothing(deconstruct_result1541) + unwrapped1542 = deconstruct_result1541 + pretty_output(pp, unwrapped1542) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1755 = _get_oneof_field(_dollar_dollar, :what_if) + _t1785 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1755 = nothing + _t1785 = nothing end - deconstruct_result1513 = _t1755 - if !isnothing(deconstruct_result1513) - unwrapped1514 = deconstruct_result1513 - pretty_what_if(pp, unwrapped1514) + deconstruct_result1539 = _t1785 + if !isnothing(deconstruct_result1539) + unwrapped1540 = deconstruct_result1539 + pretty_what_if(pp, unwrapped1540) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1756 = _get_oneof_field(_dollar_dollar, :abort) + _t1786 = _get_oneof_field(_dollar_dollar, :abort) else - _t1756 = nothing + _t1786 = nothing end - deconstruct_result1511 = _t1756 - if !isnothing(deconstruct_result1511) - unwrapped1512 = deconstruct_result1511 - pretty_abort(pp, unwrapped1512) + deconstruct_result1537 = _t1786 + if !isnothing(deconstruct_result1537) + unwrapped1538 = deconstruct_result1537 + pretty_abort(pp, unwrapped1538) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1757 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1787 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1757 = nothing + _t1787 = nothing end - deconstruct_result1509 = _t1757 - if !isnothing(deconstruct_result1509) - unwrapped1510 = deconstruct_result1509 - pretty_export(pp, unwrapped1510) + deconstruct_result1535 = _t1787 + if !isnothing(deconstruct_result1535) + unwrapped1536 = deconstruct_result1535 + pretty_export(pp, unwrapped1536) else throw(ParseError("No matching rule for read")) end @@ -4623,18 +4694,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) + flat1548 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1548) + write(pp, flat1548) return nothing else _dollar_dollar = msg - fields1520 = _dollar_dollar.relation_id - unwrapped_fields1521 = fields1520 + fields1546 = _dollar_dollar.relation_id + unwrapped_fields1547 = fields1546 write(pp, "(demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1521) + pretty_relation_id(pp, unwrapped_fields1547) dedent!(pp) write(pp, ")") end @@ -4642,22 +4713,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) + flat1553 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1553) + write(pp, flat1553) return nothing else _dollar_dollar = msg - fields1523 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - unwrapped_fields1524 = fields1523 + fields1549 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + unwrapped_fields1550 = fields1549 write(pp, "(output") indent_sexp!(pp) newline(pp) - field1525 = unwrapped_fields1524[1] - pretty_name(pp, field1525) + field1551 = unwrapped_fields1550[1] + pretty_name(pp, field1551) newline(pp) - field1526 = unwrapped_fields1524[2] - pretty_relation_id(pp, field1526) + field1552 = unwrapped_fields1550[2] + pretty_relation_id(pp, field1552) dedent!(pp) write(pp, ")") end @@ -4665,22 +4736,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) + flat1558 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1558) + write(pp, flat1558) return nothing else _dollar_dollar = msg - fields1528 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - unwrapped_fields1529 = fields1528 + fields1554 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + unwrapped_fields1555 = fields1554 write(pp, "(what_if") indent_sexp!(pp) newline(pp) - field1530 = unwrapped_fields1529[1] - pretty_name(pp, field1530) + field1556 = unwrapped_fields1555[1] + pretty_name(pp, field1556) newline(pp) - field1531 = unwrapped_fields1529[2] - pretty_epoch(pp, field1531) + field1557 = unwrapped_fields1555[2] + pretty_epoch(pp, field1557) dedent!(pp) write(pp, ")") end @@ -4688,30 +4759,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) + flat1564 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1564) + write(pp, flat1564) return nothing else _dollar_dollar = msg if _dollar_dollar.name != "abort" - _t1758 = _dollar_dollar.name + _t1788 = _dollar_dollar.name else - _t1758 = nothing + _t1788 = nothing end - fields1533 = (_t1758, _dollar_dollar.relation_id,) - unwrapped_fields1534 = fields1533 + fields1559 = (_t1788, _dollar_dollar.relation_id,) + unwrapped_fields1560 = fields1559 write(pp, "(abort") indent_sexp!(pp) - field1535 = unwrapped_fields1534[1] - if !isnothing(field1535) + field1561 = unwrapped_fields1560[1] + if !isnothing(field1561) newline(pp) - opt_val1536 = field1535 - pretty_name(pp, opt_val1536) + opt_val1562 = field1561 + pretty_name(pp, opt_val1562) end newline(pp) - field1537 = unwrapped_fields1534[2] - pretty_relation_id(pp, field1537) + field1563 = unwrapped_fields1560[2] + pretty_relation_id(pp, field1563) dedent!(pp) write(pp, ")") end @@ -4719,40 +4790,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) + flat1569 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1569) + write(pp, flat1569) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_config")) - _t1759 = _get_oneof_field(_dollar_dollar, :csv_config) + _t1789 = _get_oneof_field(_dollar_dollar, :csv_config) else - _t1759 = nothing + _t1789 = nothing end - deconstruct_result1541 = _t1759 - if !isnothing(deconstruct_result1541) - unwrapped1542 = deconstruct_result1541 + deconstruct_result1567 = _t1789 + if !isnothing(deconstruct_result1567) + unwrapped1568 = deconstruct_result1567 write(pp, "(export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped1542) + pretty_export_csv_config(pp, unwrapped1568) 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) + _t1790 = _get_oneof_field(_dollar_dollar, :iceberg_config) else - _t1760 = nothing + _t1790 = nothing end - deconstruct_result1539 = _t1760 - if !isnothing(deconstruct_result1539) - unwrapped1540 = deconstruct_result1539 + deconstruct_result1565 = _t1790 + if !isnothing(deconstruct_result1565) + unwrapped1566 = deconstruct_result1565 write(pp, "(export_iceberg") indent_sexp!(pp) newline(pp) - pretty_export_iceberg_config(pp, unwrapped1540) + pretty_export_iceberg_config(pp, unwrapped1566) dedent!(pp) write(pp, ")") else @@ -4764,55 +4835,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) + flat1580 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1580) + write(pp, flat1580) 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,) + _t1791 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else - _t1761 = nothing + _t1791 = nothing end - deconstruct_result1549 = _t1761 - if !isnothing(deconstruct_result1549) - unwrapped1550 = deconstruct_result1549 + deconstruct_result1575 = _t1791 + if !isnothing(deconstruct_result1575) + unwrapped1576 = deconstruct_result1575 write(pp, "(export_csv_config_v2") indent_sexp!(pp) newline(pp) - field1551 = unwrapped1550[1] - pretty_export_csv_path(pp, field1551) + field1577 = unwrapped1576[1] + pretty_export_csv_path(pp, field1577) newline(pp) - field1552 = unwrapped1550[2] - pretty_export_csv_source(pp, field1552) + field1578 = unwrapped1576[2] + pretty_export_csv_source(pp, field1578) newline(pp) - field1553 = unwrapped1550[3] - pretty_csv_config(pp, field1553) + field1579 = unwrapped1576[3] + pretty_csv_config(pp, field1579) 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,) + _t1793 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1792 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1793,) else - _t1762 = nothing + _t1792 = nothing end - deconstruct_result1544 = _t1762 - if !isnothing(deconstruct_result1544) - unwrapped1545 = deconstruct_result1544 + deconstruct_result1570 = _t1792 + if !isnothing(deconstruct_result1570) + unwrapped1571 = deconstruct_result1570 write(pp, "(export_csv_config") indent_sexp!(pp) newline(pp) - field1546 = unwrapped1545[1] - pretty_export_csv_path(pp, field1546) + field1572 = unwrapped1571[1] + pretty_export_csv_path(pp, field1572) newline(pp) - field1547 = unwrapped1545[2] - pretty_export_csv_columns_list(pp, field1547) + field1573 = unwrapped1571[2] + pretty_export_csv_columns_list(pp, field1573) newline(pp) - field1548 = unwrapped1545[3] - pretty_config_dict(pp, field1548) + field1574 = unwrapped1571[3] + pretty_config_dict(pp, field1574) dedent!(pp) write(pp, ")") else @@ -4824,16 +4895,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) + flat1582 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1582) + write(pp, flat1582) return nothing else - fields1555 = msg + fields1581 = 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, fields1581)) dedent!(pp) write(pp, ")") end @@ -4841,30 +4912,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) + flat1589 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1589) + write(pp, flat1589) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) - _t1764 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + _t1794 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns else - _t1764 = nothing + _t1794 = nothing end - deconstruct_result1559 = _t1764 - if !isnothing(deconstruct_result1559) - unwrapped1560 = deconstruct_result1559 + deconstruct_result1585 = _t1794 + if !isnothing(deconstruct_result1585) + unwrapped1586 = deconstruct_result1585 write(pp, "(gnf_columns") indent_sexp!(pp) - if !isempty(unwrapped1560) + if !isempty(unwrapped1586) newline(pp) - for (i1765, elem1561) in enumerate(unwrapped1560) - i1562 = i1765 - 1 - if (i1562 > 0) + for (i1795, elem1587) in enumerate(unwrapped1586) + i1588 = i1795 - 1 + if (i1588 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1561) + pretty_export_csv_column(pp, elem1587) end end dedent!(pp) @@ -4872,17 +4943,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) + _t1796 = _get_oneof_field(_dollar_dollar, :table_def) else - _t1766 = nothing + _t1796 = nothing end - deconstruct_result1557 = _t1766 - if !isnothing(deconstruct_result1557) - unwrapped1558 = deconstruct_result1557 + deconstruct_result1583 = _t1796 + if !isnothing(deconstruct_result1583) + unwrapped1584 = deconstruct_result1583 write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped1558) + pretty_relation_id(pp, unwrapped1584) dedent!(pp) write(pp, ")") else @@ -4894,22 +4965,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) + flat1594 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1594) + write(pp, flat1594) return nothing else _dollar_dollar = msg - fields1564 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - unwrapped_fields1565 = fields1564 + fields1590 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + unwrapped_fields1591 = fields1590 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1566 = unwrapped_fields1565[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1566)) + field1592 = unwrapped_fields1591[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1592)) newline(pp) - field1567 = unwrapped_fields1565[2] - pretty_relation_id(pp, field1567) + field1593 = unwrapped_fields1591[2] + pretty_relation_id(pp, field1593) dedent!(pp) write(pp, ")") end @@ -4917,22 +4988,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) + flat1598 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1598) + write(pp, flat1598) return nothing else - fields1569 = msg + fields1595 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1569) + if !isempty(fields1595) newline(pp) - for (i1767, elem1570) in enumerate(fields1569) - i1571 = i1767 - 1 - if (i1571 > 0) + for (i1797, elem1596) in enumerate(fields1595) + i1597 = i1797 - 1 + if (i1597 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1570) + pretty_export_csv_column(pp, elem1596) end end dedent!(pp) @@ -4942,34 +5013,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) + flat1607 = try_flat(pp, msg, pretty_export_iceberg_config) + if !isnothing(flat1607) + write(pp, flat1607) 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 + _t1798 = deconstruct_export_iceberg_config_optional(pp, _dollar_dollar) + fields1599 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sort([(k, v) for (k, v) in _dollar_dollar.table_properties]), _t1798,) + unwrapped_fields1600 = fields1599 write(pp, "(export_iceberg_config") indent_sexp!(pp) newline(pp) - field1575 = unwrapped_fields1574[1] - pretty_iceberg_locator(pp, field1575) + field1601 = unwrapped_fields1600[1] + pretty_iceberg_locator(pp, field1601) newline(pp) - field1576 = unwrapped_fields1574[2] - pretty_iceberg_catalog_config(pp, field1576) + field1602 = unwrapped_fields1600[2] + pretty_iceberg_catalog_config(pp, field1602) newline(pp) - field1577 = unwrapped_fields1574[3] - pretty_export_iceberg_table_def(pp, field1577) + field1603 = unwrapped_fields1600[3] + pretty_export_iceberg_table_def(pp, field1603) newline(pp) - field1578 = unwrapped_fields1574[4] - pretty_iceberg_table_properties(pp, field1578) - field1579 = unwrapped_fields1574[5] - if !isnothing(field1579) + field1604 = unwrapped_fields1600[4] + pretty_iceberg_table_properties(pp, field1604) + field1605 = unwrapped_fields1600[5] + if !isnothing(field1605) newline(pp) - opt_val1580 = field1579 - pretty_config_dict(pp, opt_val1580) + opt_val1606 = field1605 + pretty_config_dict(pp, opt_val1606) end dedent!(pp) write(pp, ")") @@ -4978,16 +5049,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) + flat1609 = try_flat(pp, msg, pretty_export_iceberg_table_def) + if !isnothing(flat1609) + write(pp, flat1609) return nothing else - fields1582 = msg + fields1608 = msg write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, fields1582) + pretty_relation_id(pp, fields1608) dedent!(pp) write(pp, ")") end @@ -4995,22 +5066,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) + flat1613 = try_flat(pp, msg, pretty_iceberg_table_properties) + if !isnothing(flat1613) + write(pp, flat1613) return nothing else - fields1584 = msg + fields1610 = msg write(pp, "(table_properties") indent_sexp!(pp) - if !isempty(fields1584) + if !isempty(fields1610) newline(pp) - for (i1769, elem1585) in enumerate(fields1584) - i1586 = i1769 - 1 - if (i1586 > 0) + for (i1799, elem1611) in enumerate(fields1610) + i1612 = i1799 - 1 + if (i1612 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1585) + pretty_iceberg_property_entry(pp, elem1611) end end dedent!(pp) @@ -5025,12 +5096,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 (i1847, _rid) in enumerate(msg.ids) + _idx = i1847 - 1 newline(pp) write(pp, "(") - _t1816 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1816) + _t1848 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1848) write(pp, " ") write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -5102,8 +5173,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 (i1849, _elem) in enumerate(msg.keys) + _idx = i1849 - 1 if (_idx > 0) write(pp, " ") end @@ -5112,8 +5183,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 (i1850, _elem) in enumerate(msg.values) + _idx = i1850 - 1 if (_idx > 0) write(pp, " ") end @@ -5144,8 +5215,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 (i1851, _elem) in enumerate(msg.columns) + _idx = i1851 - 1 if (_idx > 0) write(pp, " ") end @@ -5274,6 +5345,7 @@ _pprint_dispatch(pp::PrettyPrinter, x::Proto.CSVLocator) = pretty_csvlocator(pp, _pprint_dispatch(pp::PrettyPrinter, x::Proto.CSVConfig) = pretty_csv_config(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Vector{Proto.GNFColumn}) = pretty_gnf_columns(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.GNFColumn) = pretty_gnf_column(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.CSVTarget) = pretty_csv_table(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergData) = pretty_iceberg_data(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergLocator) = pretty_iceberg_locator(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergCatalogConfig) = pretty_iceberg_catalog_config(pp, x) diff --git a/sdks/python/src/lqp/gen/parser.py b/sdks/python/src/lqp/gen/parser.py index cf201196..eaa1f69f 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") + _t2111 = value.HasField("int32_value") else: - _t2081 = False - if _t2081: + _t2111 = False + if _t2111: assert value is not None return value.int32_value else: - _t2082 = None + _t2112 = 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") + _t2113 = value.HasField("int_value") else: - _t2083 = False - if _t2083: + _t2113 = False + if _t2113: assert value is not None return value.int_value else: - _t2084 = None + _t2114 = 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") + _t2115 = value.HasField("string_value") else: - _t2085 = False - if _t2085: + _t2115 = False + if _t2115: assert value is not None return value.string_value else: - _t2086 = None + _t2116 = 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") + _t2117 = value.HasField("boolean_value") else: - _t2087 = False - if _t2087: + _t2117 = False + if _t2117: assert value is not None return value.boolean_value else: - _t2088 = None + _t2118 = 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") + _t2119 = value.HasField("string_value") else: - _t2089 = False - if _t2089: + _t2119 = False + if _t2119: assert value is not None return [value.string_value] else: - _t2090 = None + _t2120 = 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") + _t2121 = value.HasField("int_value") else: - _t2091 = False - if _t2091: + _t2121 = False + if _t2121: assert value is not None return value.int_value else: - _t2092 = None + _t2122 = 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") + _t2123 = value.HasField("float_value") else: - _t2093 = False - if _t2093: + _t2123 = False + if _t2123: assert value is not None return value.float_value else: - _t2094 = None + _t2124 = 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") + _t2125 = value.HasField("string_value") else: - _t2095 = False - if _t2095: + _t2125 = False + if _t2125: assert value is not None return value.string_value.encode() else: - _t2096 = None + _t2126 = 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") + _t2127 = value.HasField("uint128_value") else: - _t2097 = False - if _t2097: + _t2127 = False + if _t2127: assert value is not None return value.uint128_value else: - _t2098 = None + _t2128 = 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 + _t2129 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t2129 + _t2130 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t2130 + _t2131 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t2131 + _t2132 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t2132 + _t2133 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t2133 + _t2134 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t2134 + _t2135 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t2135 + _t2136 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t2136 + _t2137 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t2137 + _t2138 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t2138 + _t2139 = self._extract_value_string(config.get("csv_compression"), "auto") + compression = _t2139 + _t2140 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t2140 + _t2141 = 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 _t2141 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 + _t2142 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t2142 + _t2143 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t2143 + _t2144 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t2144 + _t2145 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t2145 + _t2146 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2146 + _t2147 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t2147 + _t2148 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t2148 + _t2149 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t2149 + _t2150 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t2150 + _t2151 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t2151 + _t2152 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2152 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 + _t2153 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2153 + _t2154 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2154 def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.Configure: config = dict(config_dict) @@ -613,3362 +613,3407 @@ 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 + _t2155 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t2155 + _t2156 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t2156 + _t2157 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t2157 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 + _t2158 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t2158 + _t2159 = self._extract_value_string(config.get("compression"), "") + compression = _t2159 + _t2160 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t2160 + _t2161 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t2161 + _t2162 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t2162 + _t2163 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t2163 + _t2164 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t2164 + _t2165 = 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 _t2165 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 + _t2166 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t2166 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 + _t2167 = logic_pb2.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(scope_opt if scope_opt is not None else ""), properties=props, auth_properties=auth_props) + return _t2167 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 + _t2168 = 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 _t2168 + + def construct_csv_data(self, locator: logic_pb2.CSVLocator, config: logic_pb2.CSVConfig, columns_opt: Sequence[logic_pb2.GNFColumn] | None, target_opt: logic_pb2.CSVTarget | None, asof: str) -> logic_pb2.CSVData: + _t2169 = logic_pb2.CSVData(locator=locator, config=config, columns=(columns_opt if columns_opt is not None else []), asof=asof, target=target_opt) + return _t2169 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 + _t2170 = self._extract_value_string(cfg.get("prefix"), "") + prefix = _t2170 + _t2171 = self._extract_value_int64(cfg.get("target_file_size_bytes"), 0) + target_file_size_bytes = _t2171 + _t2172 = self._extract_value_string(cfg.get("compression"), "") + compression = _t2172 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 + _t2173 = 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 _t2173 # --- Parse methods --- def parse_transaction(self) -> transactions_pb2.Transaction: - span_start671 = self.span_start() + span_start683 = 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 + _t1355 = self.parse_configure() + _t1354 = _t1355 else: - _t1330 = None - configure665 = _t1330 + _t1354 = None + configure677 = _t1354 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 + _t1357 = self.parse_sync() + _t1356 = _t1357 + else: + _t1356 = None + sync678 = _t1356 + xs679 = [] + cond680 = self.match_lookahead_literal("(", 0) + while cond680: + _t1358 = self.parse_epoch() + item681 = _t1358 + xs679.append(item681) + cond680 = self.match_lookahead_literal("(", 0) + epochs682 = xs679 + self.consume_literal(")") + _t1359 = self.default_configure() + _t1360 = transactions_pb2.Transaction(epochs=epochs682, configure=(configure677 if configure677 is not None else _t1359), sync=sync678) + result684 = _t1360 + self.record_span(span_start683, "Transaction") + return result684 def parse_configure(self) -> transactions_pb2.Configure: - span_start674 = self.span_start() + span_start686 = self.span_start() self.consume_literal("(") self.consume_literal("configure") - _t1337 = self.parse_config_dict() - config_dict673 = _t1337 + _t1361 = self.parse_config_dict() + config_dict685 = _t1361 self.consume_literal(")") - _t1338 = self.construct_configure(config_dict673) - result675 = _t1338 - self.record_span(span_start674, "Configure") - return result675 + _t1362 = self.construct_configure(config_dict685) + result687 = _t1362 + self.record_span(span_start686, "Configure") + return result687 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 + xs688 = [] + cond689 = self.match_lookahead_literal(":", 0) + while cond689: + _t1363 = self.parse_config_key_value() + item690 = _t1363 + xs688.append(item690) + cond689 = self.match_lookahead_literal(":", 0) + config_key_values691 = xs688 self.consume_literal("}") - return config_key_values679 + return config_key_values691 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,) + symbol692 = self.consume_terminal("SYMBOL") + _t1364 = self.parse_raw_value() + raw_value693 = _t1364 + return (symbol692, raw_value693,) def parse_raw_value(self) -> logic_pb2.Value: - span_start695 = self.span_start() + span_start707 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1341 = 12 + _t1365 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1342 = 11 + _t1366 = 11 else: if self.match_lookahead_literal("false", 0): - _t1343 = 12 + _t1367 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1345 = 1 + _t1369 = 1 else: if self.match_lookahead_literal("date", 1): - _t1346 = 0 + _t1370 = 0 else: - _t1346 = -1 - _t1345 = _t1346 - _t1344 = _t1345 + _t1370 = -1 + _t1369 = _t1370 + _t1368 = _t1369 else: if self.match_lookahead_terminal("UINT32", 0): - _t1347 = 7 + _t1371 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1348 = 8 + _t1372 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1349 = 2 + _t1373 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1350 = 3 + _t1374 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1351 = 9 + _t1375 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1352 = 4 + _t1376 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1353 = 5 + _t1377 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1354 = 6 + _t1378 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1355 = 10 + _t1379 = 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: + _t1379 = -1 + _t1378 = _t1379 + _t1377 = _t1378 + _t1376 = _t1377 + _t1375 = _t1376 + _t1374 = _t1375 + _t1373 = _t1374 + _t1372 = _t1373 + _t1371 = _t1372 + _t1368 = _t1371 + _t1367 = _t1368 + _t1366 = _t1367 + _t1365 = _t1366 + prediction694 = _t1365 + if prediction694 == 12: + _t1381 = self.parse_boolean_value() + boolean_value706 = _t1381 + _t1382 = logic_pb2.Value(boolean_value=boolean_value706) + _t1380 = _t1382 + else: + if prediction694 == 11: self.consume_literal("missing") - _t1360 = logic_pb2.MissingValue() - _t1361 = logic_pb2.Value(missing_value=_t1360) - _t1359 = _t1361 + _t1384 = logic_pb2.MissingValue() + _t1385 = logic_pb2.Value(missing_value=_t1384) + _t1383 = _t1385 else: - if prediction682 == 10: - decimal693 = self.consume_terminal("DECIMAL") - _t1363 = logic_pb2.Value(decimal_value=decimal693) - _t1362 = _t1363 + if prediction694 == 10: + decimal705 = self.consume_terminal("DECIMAL") + _t1387 = logic_pb2.Value(decimal_value=decimal705) + _t1386 = _t1387 else: - if prediction682 == 9: - int128692 = self.consume_terminal("INT128") - _t1365 = logic_pb2.Value(int128_value=int128692) - _t1364 = _t1365 + if prediction694 == 9: + int128704 = self.consume_terminal("INT128") + _t1389 = logic_pb2.Value(int128_value=int128704) + _t1388 = _t1389 else: - if prediction682 == 8: - uint128691 = self.consume_terminal("UINT128") - _t1367 = logic_pb2.Value(uint128_value=uint128691) - _t1366 = _t1367 + if prediction694 == 8: + uint128703 = self.consume_terminal("UINT128") + _t1391 = logic_pb2.Value(uint128_value=uint128703) + _t1390 = _t1391 else: - if prediction682 == 7: - uint32690 = self.consume_terminal("UINT32") - _t1369 = logic_pb2.Value(uint32_value=uint32690) - _t1368 = _t1369 + if prediction694 == 7: + uint32702 = self.consume_terminal("UINT32") + _t1393 = logic_pb2.Value(uint32_value=uint32702) + _t1392 = _t1393 else: - if prediction682 == 6: - float689 = self.consume_terminal("FLOAT") - _t1371 = logic_pb2.Value(float_value=float689) - _t1370 = _t1371 + if prediction694 == 6: + float701 = self.consume_terminal("FLOAT") + _t1395 = logic_pb2.Value(float_value=float701) + _t1394 = _t1395 else: - if prediction682 == 5: - float32688 = self.consume_terminal("FLOAT32") - _t1373 = logic_pb2.Value(float32_value=float32688) - _t1372 = _t1373 + if prediction694 == 5: + float32700 = self.consume_terminal("FLOAT32") + _t1397 = logic_pb2.Value(float32_value=float32700) + _t1396 = _t1397 else: - if prediction682 == 4: - int687 = self.consume_terminal("INT") - _t1375 = logic_pb2.Value(int_value=int687) - _t1374 = _t1375 + if prediction694 == 4: + int699 = self.consume_terminal("INT") + _t1399 = logic_pb2.Value(int_value=int699) + _t1398 = _t1399 else: - if prediction682 == 3: - int32686 = self.consume_terminal("INT32") - _t1377 = logic_pb2.Value(int32_value=int32686) - _t1376 = _t1377 + if prediction694 == 3: + int32698 = self.consume_terminal("INT32") + _t1401 = logic_pb2.Value(int32_value=int32698) + _t1400 = _t1401 else: - if prediction682 == 2: - string685 = self.consume_terminal("STRING") - _t1379 = logic_pb2.Value(string_value=string685) - _t1378 = _t1379 + if prediction694 == 2: + string697 = self.consume_terminal("STRING") + _t1403 = logic_pb2.Value(string_value=string697) + _t1402 = _t1403 else: - if prediction682 == 1: - _t1381 = self.parse_raw_datetime() - raw_datetime684 = _t1381 - _t1382 = logic_pb2.Value(datetime_value=raw_datetime684) - _t1380 = _t1382 + if prediction694 == 1: + _t1405 = self.parse_raw_datetime() + raw_datetime696 = _t1405 + _t1406 = logic_pb2.Value(datetime_value=raw_datetime696) + _t1404 = _t1406 else: - if prediction682 == 0: - _t1384 = self.parse_raw_date() - raw_date683 = _t1384 - _t1385 = logic_pb2.Value(date_value=raw_date683) - _t1383 = _t1385 + if prediction694 == 0: + _t1408 = self.parse_raw_date() + raw_date695 = _t1408 + _t1409 = logic_pb2.Value(date_value=raw_date695) + _t1407 = _t1409 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 + _t1404 = _t1407 + _t1402 = _t1404 + _t1400 = _t1402 + _t1398 = _t1400 + _t1396 = _t1398 + _t1394 = _t1396 + _t1392 = _t1394 + _t1390 = _t1392 + _t1388 = _t1390 + _t1386 = _t1388 + _t1383 = _t1386 + _t1380 = _t1383 + result708 = _t1380 + self.record_span(span_start707, "Value") + return result708 def parse_raw_date(self) -> logic_pb2.DateValue: - span_start700 = self.span_start() + span_start712 = 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") + int709 = self.consume_terminal("INT") + int_3710 = self.consume_terminal("INT") + int_4711 = 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 + _t1410 = logic_pb2.DateValue(year=int(int709), month=int(int_3710), day=int(int_4711)) + result713 = _t1410 + self.record_span(span_start712, "DateValue") + return result713 def parse_raw_datetime(self) -> logic_pb2.DateTimeValue: - span_start709 = self.span_start() + span_start721 = 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") + int714 = self.consume_terminal("INT") + int_3715 = self.consume_terminal("INT") + int_4716 = self.consume_terminal("INT") + int_5717 = self.consume_terminal("INT") + int_6718 = self.consume_terminal("INT") + int_7719 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1387 = self.consume_terminal("INT") + _t1411 = self.consume_terminal("INT") else: - _t1387 = None - int_8708 = _t1387 + _t1411 = None + int_8720 = _t1411 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 + _t1412 = logic_pb2.DateTimeValue(year=int(int714), month=int(int_3715), day=int(int_4716), hour=int(int_5717), minute=int(int_6718), second=int(int_7719), microsecond=int((int_8720 if int_8720 is not None else 0))) + result722 = _t1412 + self.record_span(span_start721, "DateTimeValue") + return result722 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t1389 = 0 + _t1413 = 0 else: if self.match_lookahead_literal("false", 0): - _t1390 = 1 + _t1414 = 1 else: - _t1390 = -1 - _t1389 = _t1390 - prediction711 = _t1389 - if prediction711 == 1: + _t1414 = -1 + _t1413 = _t1414 + prediction723 = _t1413 + if prediction723 == 1: self.consume_literal("false") - _t1391 = False + _t1415 = False else: - if prediction711 == 0: + if prediction723 == 0: self.consume_literal("true") - _t1392 = True + _t1416 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1391 = _t1392 - return _t1391 + _t1415 = _t1416 + return _t1415 def parse_sync(self) -> transactions_pb2.Sync: - span_start716 = self.span_start() + span_start728 = 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 + xs724 = [] + cond725 = self.match_lookahead_literal(":", 0) + while cond725: + _t1417 = self.parse_fragment_id() + item726 = _t1417 + xs724.append(item726) + cond725 = self.match_lookahead_literal(":", 0) + fragment_ids727 = xs724 + self.consume_literal(")") + _t1418 = transactions_pb2.Sync(fragments=fragment_ids727) + result729 = _t1418 + self.record_span(span_start728, "Sync") + return result729 def parse_fragment_id(self) -> fragments_pb2.FragmentId: - span_start719 = self.span_start() + span_start731 = 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 + symbol730 = self.consume_terminal("SYMBOL") + result732 = fragments_pb2.FragmentId(id=symbol730.encode()) + self.record_span(span_start731, "FragmentId") + return result732 def parse_epoch(self) -> transactions_pb2.Epoch: - span_start723 = self.span_start() + span_start735 = 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 + _t1420 = self.parse_epoch_writes() + _t1419 = _t1420 else: - _t1395 = None - epoch_writes721 = _t1395 + _t1419 = None + epoch_writes733 = _t1419 if self.match_lookahead_literal("(", 0): - _t1398 = self.parse_epoch_reads() - _t1397 = _t1398 + _t1422 = self.parse_epoch_reads() + _t1421 = _t1422 else: - _t1397 = None - epoch_reads722 = _t1397 + _t1421 = None + epoch_reads734 = _t1421 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 + _t1423 = transactions_pb2.Epoch(writes=(epoch_writes733 if epoch_writes733 is not None else []), reads=(epoch_reads734 if epoch_reads734 is not None else [])) + result736 = _t1423 + self.record_span(span_start735, "Epoch") + return result736 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 + xs737 = [] + cond738 = self.match_lookahead_literal("(", 0) + while cond738: + _t1424 = self.parse_write() + item739 = _t1424 + xs737.append(item739) + cond738 = self.match_lookahead_literal("(", 0) + writes740 = xs737 self.consume_literal(")") - return writes728 + return writes740 def parse_write(self) -> transactions_pb2.Write: - span_start734 = self.span_start() + span_start746 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t1402 = 1 + _t1426 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t1403 = 3 + _t1427 = 3 else: if self.match_lookahead_literal("define", 1): - _t1404 = 0 + _t1428 = 0 else: if self.match_lookahead_literal("context", 1): - _t1405 = 2 + _t1429 = 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 + _t1429 = -1 + _t1428 = _t1429 + _t1427 = _t1428 + _t1426 = _t1427 + _t1425 = _t1426 + else: + _t1425 = -1 + prediction741 = _t1425 + if prediction741 == 3: + _t1431 = self.parse_snapshot() + snapshot745 = _t1431 + _t1432 = transactions_pb2.Write(snapshot=snapshot745) + _t1430 = _t1432 + else: + if prediction741 == 2: + _t1434 = self.parse_context() + context744 = _t1434 + _t1435 = transactions_pb2.Write(context=context744) + _t1433 = _t1435 else: - if prediction729 == 1: - _t1413 = self.parse_undefine() - undefine731 = _t1413 - _t1414 = transactions_pb2.Write(undefine=undefine731) - _t1412 = _t1414 + if prediction741 == 1: + _t1437 = self.parse_undefine() + undefine743 = _t1437 + _t1438 = transactions_pb2.Write(undefine=undefine743) + _t1436 = _t1438 else: - if prediction729 == 0: - _t1416 = self.parse_define() - define730 = _t1416 - _t1417 = transactions_pb2.Write(define=define730) - _t1415 = _t1417 + if prediction741 == 0: + _t1440 = self.parse_define() + define742 = _t1440 + _t1441 = transactions_pb2.Write(define=define742) + _t1439 = _t1441 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 + _t1436 = _t1439 + _t1433 = _t1436 + _t1430 = _t1433 + result747 = _t1430 + self.record_span(span_start746, "Write") + return result747 def parse_define(self) -> transactions_pb2.Define: - span_start737 = self.span_start() + span_start749 = self.span_start() self.consume_literal("(") self.consume_literal("define") - _t1418 = self.parse_fragment() - fragment736 = _t1418 + _t1442 = self.parse_fragment() + fragment748 = _t1442 self.consume_literal(")") - _t1419 = transactions_pb2.Define(fragment=fragment736) - result738 = _t1419 - self.record_span(span_start737, "Define") - return result738 + _t1443 = transactions_pb2.Define(fragment=fragment748) + result750 = _t1443 + self.record_span(span_start749, "Define") + return result750 def parse_fragment(self) -> fragments_pb2.Fragment: - span_start744 = self.span_start() + span_start756 = 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 + _t1444 = self.parse_new_fragment_id() + new_fragment_id751 = _t1444 + xs752 = [] + cond753 = self.match_lookahead_literal("(", 0) + while cond753: + _t1445 = self.parse_declaration() + item754 = _t1445 + xs752.append(item754) + cond753 = self.match_lookahead_literal("(", 0) + declarations755 = xs752 + self.consume_literal(")") + result757 = self.construct_fragment(new_fragment_id751, declarations755) + self.record_span(span_start756, "Fragment") + return result757 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_start759 = self.span_start() + _t1446 = self.parse_fragment_id() + fragment_id758 = _t1446 + self.start_fragment(fragment_id758) + result760 = fragment_id758 + self.record_span(span_start759, "FragmentId") + return result760 def parse_declaration(self) -> logic_pb2.Declaration: - span_start754 = self.span_start() + span_start766 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t1424 = 3 + _t1448 = 3 else: if self.match_lookahead_literal("functional_dependency", 1): - _t1425 = 2 + _t1449 = 2 else: if self.match_lookahead_literal("edb", 1): - _t1426 = 3 + _t1450 = 3 else: if self.match_lookahead_literal("def", 1): - _t1427 = 0 + _t1451 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1428 = 3 + _t1452 = 3 else: if self.match_lookahead_literal("betree_relation", 1): - _t1429 = 3 + _t1453 = 3 else: if self.match_lookahead_literal("algorithm", 1): - _t1430 = 1 + _t1454 = 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 + _t1454 = -1 + _t1453 = _t1454 + _t1452 = _t1453 + _t1451 = _t1452 + _t1450 = _t1451 + _t1449 = _t1450 + _t1448 = _t1449 + _t1447 = _t1448 + else: + _t1447 = -1 + prediction761 = _t1447 + if prediction761 == 3: + _t1456 = self.parse_data() + data765 = _t1456 + _t1457 = logic_pb2.Declaration(data=data765) + _t1455 = _t1457 + else: + if prediction761 == 2: + _t1459 = self.parse_constraint() + constraint764 = _t1459 + _t1460 = logic_pb2.Declaration(constraint=constraint764) + _t1458 = _t1460 else: - if prediction749 == 1: - _t1438 = self.parse_algorithm() - algorithm751 = _t1438 - _t1439 = logic_pb2.Declaration(algorithm=algorithm751) - _t1437 = _t1439 + if prediction761 == 1: + _t1462 = self.parse_algorithm() + algorithm763 = _t1462 + _t1463 = logic_pb2.Declaration(algorithm=algorithm763) + _t1461 = _t1463 else: - if prediction749 == 0: - _t1441 = self.parse_def() - def750 = _t1441 - _t1442 = logic_pb2.Declaration() - getattr(_t1442, 'def').CopyFrom(def750) - _t1440 = _t1442 + if prediction761 == 0: + _t1465 = self.parse_def() + def762 = _t1465 + _t1466 = logic_pb2.Declaration() + getattr(_t1466, 'def').CopyFrom(def762) + _t1464 = _t1466 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 + _t1461 = _t1464 + _t1458 = _t1461 + _t1455 = _t1458 + result767 = _t1455 + self.record_span(span_start766, "Declaration") + return result767 def parse_def(self) -> logic_pb2.Def: - span_start759 = self.span_start() + span_start771 = self.span_start() self.consume_literal("(") self.consume_literal("def") - _t1443 = self.parse_relation_id() - relation_id756 = _t1443 - _t1444 = self.parse_abstraction() - abstraction757 = _t1444 + _t1467 = self.parse_relation_id() + relation_id768 = _t1467 + _t1468 = self.parse_abstraction() + abstraction769 = _t1468 if self.match_lookahead_literal("(", 0): - _t1446 = self.parse_attrs() - _t1445 = _t1446 + _t1470 = self.parse_attrs() + _t1469 = _t1470 else: - _t1445 = None - attrs758 = _t1445 + _t1469 = None + attrs770 = _t1469 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 + _t1471 = logic_pb2.Def(name=relation_id768, body=abstraction769, attrs=(attrs770 if attrs770 is not None else [])) + result772 = _t1471 + self.record_span(span_start771, "Def") + return result772 def parse_relation_id(self) -> logic_pb2.RelationId: - span_start764 = self.span_start() + span_start776 = self.span_start() if self.match_lookahead_literal(":", 0): - _t1448 = 0 + _t1472 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1449 = 1 + _t1473 = 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: + _t1473 = -1 + _t1472 = _t1473 + prediction773 = _t1472 + if prediction773 == 1: + uint128775 = self.consume_terminal("UINT128") + _t1474 = logic_pb2.RelationId(id_low=uint128775.low, id_high=uint128775.high) + else: + if prediction773 == 0: self.consume_literal(":") - symbol762 = self.consume_terminal("SYMBOL") - _t1451 = self.relation_id_from_string(symbol762) + symbol774 = self.consume_terminal("SYMBOL") + _t1475 = self.relation_id_from_string(symbol774) 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 + _t1474 = _t1475 + result777 = _t1474 + self.record_span(span_start776, "RelationId") + return result777 def parse_abstraction(self) -> logic_pb2.Abstraction: - span_start768 = self.span_start() + span_start780 = self.span_start() self.consume_literal("(") - _t1452 = self.parse_bindings() - bindings766 = _t1452 - _t1453 = self.parse_formula() - formula767 = _t1453 + _t1476 = self.parse_bindings() + bindings778 = _t1476 + _t1477 = self.parse_formula() + formula779 = _t1477 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 + _t1478 = logic_pb2.Abstraction(vars=(list(bindings778[0]) + list(bindings778[1] if bindings778[1] is not None else [])), value=formula779) + result781 = _t1478 + self.record_span(span_start780, "Abstraction") + return result781 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 + xs782 = [] + cond783 = self.match_lookahead_terminal("SYMBOL", 0) + while cond783: + _t1479 = self.parse_binding() + item784 = _t1479 + xs782.append(item784) + cond783 = self.match_lookahead_terminal("SYMBOL", 0) + bindings785 = xs782 if self.match_lookahead_literal("|", 0): - _t1457 = self.parse_value_bindings() - _t1456 = _t1457 + _t1481 = self.parse_value_bindings() + _t1480 = _t1481 else: - _t1456 = None - value_bindings774 = _t1456 + _t1480 = None + value_bindings786 = _t1480 self.consume_literal("]") - return (bindings773, (value_bindings774 if value_bindings774 is not None else []),) + return (bindings785, (value_bindings786 if value_bindings786 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - span_start777 = self.span_start() - symbol775 = self.consume_terminal("SYMBOL") + span_start789 = self.span_start() + symbol787 = 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 + _t1482 = self.parse_type() + type788 = _t1482 + _t1483 = logic_pb2.Var(name=symbol787) + _t1484 = logic_pb2.Binding(var=_t1483, type=type788) + result790 = _t1484 + self.record_span(span_start789, "Binding") + return result790 def parse_type(self) -> logic_pb2.Type: - span_start794 = self.span_start() + span_start806 = self.span_start() if self.match_lookahead_literal("UNKNOWN", 0): - _t1461 = 0 + _t1485 = 0 else: if self.match_lookahead_literal("UINT32", 0): - _t1462 = 13 + _t1486 = 13 else: if self.match_lookahead_literal("UINT128", 0): - _t1463 = 4 + _t1487 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t1464 = 1 + _t1488 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t1465 = 8 + _t1489 = 8 else: if self.match_lookahead_literal("INT32", 0): - _t1466 = 11 + _t1490 = 11 else: if self.match_lookahead_literal("INT128", 0): - _t1467 = 5 + _t1491 = 5 else: if self.match_lookahead_literal("INT", 0): - _t1468 = 2 + _t1492 = 2 else: if self.match_lookahead_literal("FLOAT32", 0): - _t1469 = 12 + _t1493 = 12 else: if self.match_lookahead_literal("FLOAT", 0): - _t1470 = 3 + _t1494 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t1471 = 7 + _t1495 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t1472 = 6 + _t1496 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t1473 = 10 + _t1497 = 10 else: if self.match_lookahead_literal("(", 0): - _t1474 = 9 + _t1498 = 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 + _t1498 = -1 + _t1497 = _t1498 + _t1496 = _t1497 + _t1495 = _t1496 + _t1494 = _t1495 + _t1493 = _t1494 + _t1492 = _t1493 + _t1491 = _t1492 + _t1490 = _t1491 + _t1489 = _t1490 + _t1488 = _t1489 + _t1487 = _t1488 + _t1486 = _t1487 + _t1485 = _t1486 + prediction791 = _t1485 + if prediction791 == 13: + _t1500 = self.parse_uint32_type() + uint32_type805 = _t1500 + _t1501 = logic_pb2.Type(uint32_type=uint32_type805) + _t1499 = _t1501 + else: + if prediction791 == 12: + _t1503 = self.parse_float32_type() + float32_type804 = _t1503 + _t1504 = logic_pb2.Type(float32_type=float32_type804) + _t1502 = _t1504 else: - if prediction779 == 11: - _t1482 = self.parse_int32_type() - int32_type791 = _t1482 - _t1483 = logic_pb2.Type(int32_type=int32_type791) - _t1481 = _t1483 + if prediction791 == 11: + _t1506 = self.parse_int32_type() + int32_type803 = _t1506 + _t1507 = logic_pb2.Type(int32_type=int32_type803) + _t1505 = _t1507 else: - if prediction779 == 10: - _t1485 = self.parse_boolean_type() - boolean_type790 = _t1485 - _t1486 = logic_pb2.Type(boolean_type=boolean_type790) - _t1484 = _t1486 + if prediction791 == 10: + _t1509 = self.parse_boolean_type() + boolean_type802 = _t1509 + _t1510 = logic_pb2.Type(boolean_type=boolean_type802) + _t1508 = _t1510 else: - if prediction779 == 9: - _t1488 = self.parse_decimal_type() - decimal_type789 = _t1488 - _t1489 = logic_pb2.Type(decimal_type=decimal_type789) - _t1487 = _t1489 + if prediction791 == 9: + _t1512 = self.parse_decimal_type() + decimal_type801 = _t1512 + _t1513 = logic_pb2.Type(decimal_type=decimal_type801) + _t1511 = _t1513 else: - if prediction779 == 8: - _t1491 = self.parse_missing_type() - missing_type788 = _t1491 - _t1492 = logic_pb2.Type(missing_type=missing_type788) - _t1490 = _t1492 + if prediction791 == 8: + _t1515 = self.parse_missing_type() + missing_type800 = _t1515 + _t1516 = logic_pb2.Type(missing_type=missing_type800) + _t1514 = _t1516 else: - if prediction779 == 7: - _t1494 = self.parse_datetime_type() - datetime_type787 = _t1494 - _t1495 = logic_pb2.Type(datetime_type=datetime_type787) - _t1493 = _t1495 + if prediction791 == 7: + _t1518 = self.parse_datetime_type() + datetime_type799 = _t1518 + _t1519 = logic_pb2.Type(datetime_type=datetime_type799) + _t1517 = _t1519 else: - if prediction779 == 6: - _t1497 = self.parse_date_type() - date_type786 = _t1497 - _t1498 = logic_pb2.Type(date_type=date_type786) - _t1496 = _t1498 + if prediction791 == 6: + _t1521 = self.parse_date_type() + date_type798 = _t1521 + _t1522 = logic_pb2.Type(date_type=date_type798) + _t1520 = _t1522 else: - if prediction779 == 5: - _t1500 = self.parse_int128_type() - int128_type785 = _t1500 - _t1501 = logic_pb2.Type(int128_type=int128_type785) - _t1499 = _t1501 + if prediction791 == 5: + _t1524 = self.parse_int128_type() + int128_type797 = _t1524 + _t1525 = logic_pb2.Type(int128_type=int128_type797) + _t1523 = _t1525 else: - if prediction779 == 4: - _t1503 = self.parse_uint128_type() - uint128_type784 = _t1503 - _t1504 = logic_pb2.Type(uint128_type=uint128_type784) - _t1502 = _t1504 + if prediction791 == 4: + _t1527 = self.parse_uint128_type() + uint128_type796 = _t1527 + _t1528 = logic_pb2.Type(uint128_type=uint128_type796) + _t1526 = _t1528 else: - if prediction779 == 3: - _t1506 = self.parse_float_type() - float_type783 = _t1506 - _t1507 = logic_pb2.Type(float_type=float_type783) - _t1505 = _t1507 + if prediction791 == 3: + _t1530 = self.parse_float_type() + float_type795 = _t1530 + _t1531 = logic_pb2.Type(float_type=float_type795) + _t1529 = _t1531 else: - if prediction779 == 2: - _t1509 = self.parse_int_type() - int_type782 = _t1509 - _t1510 = logic_pb2.Type(int_type=int_type782) - _t1508 = _t1510 + if prediction791 == 2: + _t1533 = self.parse_int_type() + int_type794 = _t1533 + _t1534 = logic_pb2.Type(int_type=int_type794) + _t1532 = _t1534 else: - if prediction779 == 1: - _t1512 = self.parse_string_type() - string_type781 = _t1512 - _t1513 = logic_pb2.Type(string_type=string_type781) - _t1511 = _t1513 + if prediction791 == 1: + _t1536 = self.parse_string_type() + string_type793 = _t1536 + _t1537 = logic_pb2.Type(string_type=string_type793) + _t1535 = _t1537 else: - if prediction779 == 0: - _t1515 = self.parse_unspecified_type() - unspecified_type780 = _t1515 - _t1516 = logic_pb2.Type(unspecified_type=unspecified_type780) - _t1514 = _t1516 + if prediction791 == 0: + _t1539 = self.parse_unspecified_type() + unspecified_type792 = _t1539 + _t1540 = logic_pb2.Type(unspecified_type=unspecified_type792) + _t1538 = _t1540 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 + _t1535 = _t1538 + _t1532 = _t1535 + _t1529 = _t1532 + _t1526 = _t1529 + _t1523 = _t1526 + _t1520 = _t1523 + _t1517 = _t1520 + _t1514 = _t1517 + _t1511 = _t1514 + _t1508 = _t1511 + _t1505 = _t1508 + _t1502 = _t1505 + _t1499 = _t1502 + result807 = _t1499 + self.record_span(span_start806, "Type") + return result807 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: - span_start796 = self.span_start() + span_start808 = self.span_start() self.consume_literal("UNKNOWN") - _t1517 = logic_pb2.UnspecifiedType() - result797 = _t1517 - self.record_span(span_start796, "UnspecifiedType") - return result797 + _t1541 = logic_pb2.UnspecifiedType() + result809 = _t1541 + self.record_span(span_start808, "UnspecifiedType") + return result809 def parse_string_type(self) -> logic_pb2.StringType: - span_start798 = self.span_start() + span_start810 = self.span_start() self.consume_literal("STRING") - _t1518 = logic_pb2.StringType() - result799 = _t1518 - self.record_span(span_start798, "StringType") - return result799 + _t1542 = logic_pb2.StringType() + result811 = _t1542 + self.record_span(span_start810, "StringType") + return result811 def parse_int_type(self) -> logic_pb2.IntType: - span_start800 = self.span_start() + span_start812 = self.span_start() self.consume_literal("INT") - _t1519 = logic_pb2.IntType() - result801 = _t1519 - self.record_span(span_start800, "IntType") - return result801 + _t1543 = logic_pb2.IntType() + result813 = _t1543 + self.record_span(span_start812, "IntType") + return result813 def parse_float_type(self) -> logic_pb2.FloatType: - span_start802 = self.span_start() + span_start814 = self.span_start() self.consume_literal("FLOAT") - _t1520 = logic_pb2.FloatType() - result803 = _t1520 - self.record_span(span_start802, "FloatType") - return result803 + _t1544 = logic_pb2.FloatType() + result815 = _t1544 + self.record_span(span_start814, "FloatType") + return result815 def parse_uint128_type(self) -> logic_pb2.UInt128Type: - span_start804 = self.span_start() + span_start816 = self.span_start() self.consume_literal("UINT128") - _t1521 = logic_pb2.UInt128Type() - result805 = _t1521 - self.record_span(span_start804, "UInt128Type") - return result805 + _t1545 = logic_pb2.UInt128Type() + result817 = _t1545 + self.record_span(span_start816, "UInt128Type") + return result817 def parse_int128_type(self) -> logic_pb2.Int128Type: - span_start806 = self.span_start() + span_start818 = self.span_start() self.consume_literal("INT128") - _t1522 = logic_pb2.Int128Type() - result807 = _t1522 - self.record_span(span_start806, "Int128Type") - return result807 + _t1546 = logic_pb2.Int128Type() + result819 = _t1546 + self.record_span(span_start818, "Int128Type") + return result819 def parse_date_type(self) -> logic_pb2.DateType: - span_start808 = self.span_start() + span_start820 = self.span_start() self.consume_literal("DATE") - _t1523 = logic_pb2.DateType() - result809 = _t1523 - self.record_span(span_start808, "DateType") - return result809 + _t1547 = logic_pb2.DateType() + result821 = _t1547 + self.record_span(span_start820, "DateType") + return result821 def parse_datetime_type(self) -> logic_pb2.DateTimeType: - span_start810 = self.span_start() + span_start822 = self.span_start() self.consume_literal("DATETIME") - _t1524 = logic_pb2.DateTimeType() - result811 = _t1524 - self.record_span(span_start810, "DateTimeType") - return result811 + _t1548 = logic_pb2.DateTimeType() + result823 = _t1548 + self.record_span(span_start822, "DateTimeType") + return result823 def parse_missing_type(self) -> logic_pb2.MissingType: - span_start812 = self.span_start() + span_start824 = self.span_start() self.consume_literal("MISSING") - _t1525 = logic_pb2.MissingType() - result813 = _t1525 - self.record_span(span_start812, "MissingType") - return result813 + _t1549 = logic_pb2.MissingType() + result825 = _t1549 + self.record_span(span_start824, "MissingType") + return result825 def parse_decimal_type(self) -> logic_pb2.DecimalType: - span_start816 = self.span_start() + span_start828 = self.span_start() self.consume_literal("(") self.consume_literal("DECIMAL") - int814 = self.consume_terminal("INT") - int_3815 = self.consume_terminal("INT") + int826 = self.consume_terminal("INT") + int_3827 = 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 + _t1550 = logic_pb2.DecimalType(precision=int(int826), scale=int(int_3827)) + result829 = _t1550 + self.record_span(span_start828, "DecimalType") + return result829 def parse_boolean_type(self) -> logic_pb2.BooleanType: - span_start818 = self.span_start() + span_start830 = self.span_start() self.consume_literal("BOOLEAN") - _t1527 = logic_pb2.BooleanType() - result819 = _t1527 - self.record_span(span_start818, "BooleanType") - return result819 + _t1551 = logic_pb2.BooleanType() + result831 = _t1551 + self.record_span(span_start830, "BooleanType") + return result831 def parse_int32_type(self) -> logic_pb2.Int32Type: - span_start820 = self.span_start() + span_start832 = self.span_start() self.consume_literal("INT32") - _t1528 = logic_pb2.Int32Type() - result821 = _t1528 - self.record_span(span_start820, "Int32Type") - return result821 + _t1552 = logic_pb2.Int32Type() + result833 = _t1552 + self.record_span(span_start832, "Int32Type") + return result833 def parse_float32_type(self) -> logic_pb2.Float32Type: - span_start822 = self.span_start() + span_start834 = self.span_start() self.consume_literal("FLOAT32") - _t1529 = logic_pb2.Float32Type() - result823 = _t1529 - self.record_span(span_start822, "Float32Type") - return result823 + _t1553 = logic_pb2.Float32Type() + result835 = _t1553 + self.record_span(span_start834, "Float32Type") + return result835 def parse_uint32_type(self) -> logic_pb2.UInt32Type: - span_start824 = self.span_start() + span_start836 = self.span_start() self.consume_literal("UINT32") - _t1530 = logic_pb2.UInt32Type() - result825 = _t1530 - self.record_span(span_start824, "UInt32Type") - return result825 + _t1554 = logic_pb2.UInt32Type() + result837 = _t1554 + self.record_span(span_start836, "UInt32Type") + return result837 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 + xs838 = [] + cond839 = self.match_lookahead_terminal("SYMBOL", 0) + while cond839: + _t1555 = self.parse_binding() + item840 = _t1555 + xs838.append(item840) + cond839 = self.match_lookahead_terminal("SYMBOL", 0) + bindings841 = xs838 + return bindings841 def parse_formula(self) -> logic_pb2.Formula: - span_start844 = self.span_start() + span_start856 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t1533 = 0 + _t1557 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t1534 = 11 + _t1558 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t1535 = 3 + _t1559 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t1536 = 10 + _t1560 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t1537 = 9 + _t1561 = 9 else: if self.match_lookahead_literal("or", 1): - _t1538 = 5 + _t1562 = 5 else: if self.match_lookahead_literal("not", 1): - _t1539 = 6 + _t1563 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t1540 = 7 + _t1564 = 7 else: if self.match_lookahead_literal("false", 1): - _t1541 = 1 + _t1565 = 1 else: if self.match_lookahead_literal("exists", 1): - _t1542 = 2 + _t1566 = 2 else: if self.match_lookahead_literal("cast", 1): - _t1543 = 12 + _t1567 = 12 else: if self.match_lookahead_literal("atom", 1): - _t1544 = 8 + _t1568 = 8 else: if self.match_lookahead_literal("and", 1): - _t1545 = 4 + _t1569 = 4 else: if self.match_lookahead_literal(">=", 1): - _t1546 = 10 + _t1570 = 10 else: if self.match_lookahead_literal(">", 1): - _t1547 = 10 + _t1571 = 10 else: if self.match_lookahead_literal("=", 1): - _t1548 = 10 + _t1572 = 10 else: if self.match_lookahead_literal("<=", 1): - _t1549 = 10 + _t1573 = 10 else: if self.match_lookahead_literal("<", 1): - _t1550 = 10 + _t1574 = 10 else: if self.match_lookahead_literal("/", 1): - _t1551 = 10 + _t1575 = 10 else: if self.match_lookahead_literal("-", 1): - _t1552 = 10 + _t1576 = 10 else: if self.match_lookahead_literal("+", 1): - _t1553 = 10 + _t1577 = 10 else: if self.match_lookahead_literal("*", 1): - _t1554 = 10 + _t1578 = 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 + _t1578 = -1 + _t1577 = _t1578 + _t1576 = _t1577 + _t1575 = _t1576 + _t1574 = _t1575 + _t1573 = _t1574 + _t1572 = _t1573 + _t1571 = _t1572 + _t1570 = _t1571 + _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 + else: + _t1556 = -1 + prediction842 = _t1556 + if prediction842 == 12: + _t1580 = self.parse_cast() + cast855 = _t1580 + _t1581 = logic_pb2.Formula(cast=cast855) + _t1579 = _t1581 + else: + if prediction842 == 11: + _t1583 = self.parse_rel_atom() + rel_atom854 = _t1583 + _t1584 = logic_pb2.Formula(rel_atom=rel_atom854) + _t1582 = _t1584 else: - if prediction830 == 10: - _t1562 = self.parse_primitive() - primitive841 = _t1562 - _t1563 = logic_pb2.Formula(primitive=primitive841) - _t1561 = _t1563 + if prediction842 == 10: + _t1586 = self.parse_primitive() + primitive853 = _t1586 + _t1587 = logic_pb2.Formula(primitive=primitive853) + _t1585 = _t1587 else: - if prediction830 == 9: - _t1565 = self.parse_pragma() - pragma840 = _t1565 - _t1566 = logic_pb2.Formula(pragma=pragma840) - _t1564 = _t1566 + if prediction842 == 9: + _t1589 = self.parse_pragma() + pragma852 = _t1589 + _t1590 = logic_pb2.Formula(pragma=pragma852) + _t1588 = _t1590 else: - if prediction830 == 8: - _t1568 = self.parse_atom() - atom839 = _t1568 - _t1569 = logic_pb2.Formula(atom=atom839) - _t1567 = _t1569 + if prediction842 == 8: + _t1592 = self.parse_atom() + atom851 = _t1592 + _t1593 = logic_pb2.Formula(atom=atom851) + _t1591 = _t1593 else: - if prediction830 == 7: - _t1571 = self.parse_ffi() - ffi838 = _t1571 - _t1572 = logic_pb2.Formula(ffi=ffi838) - _t1570 = _t1572 + if prediction842 == 7: + _t1595 = self.parse_ffi() + ffi850 = _t1595 + _t1596 = logic_pb2.Formula(ffi=ffi850) + _t1594 = _t1596 else: - if prediction830 == 6: - _t1574 = self.parse_not() - not837 = _t1574 - _t1575 = logic_pb2.Formula() - getattr(_t1575, 'not').CopyFrom(not837) - _t1573 = _t1575 + if prediction842 == 6: + _t1598 = self.parse_not() + not849 = _t1598 + _t1599 = logic_pb2.Formula() + getattr(_t1599, 'not').CopyFrom(not849) + _t1597 = _t1599 else: - if prediction830 == 5: - _t1577 = self.parse_disjunction() - disjunction836 = _t1577 - _t1578 = logic_pb2.Formula(disjunction=disjunction836) - _t1576 = _t1578 + if prediction842 == 5: + _t1601 = self.parse_disjunction() + disjunction848 = _t1601 + _t1602 = logic_pb2.Formula(disjunction=disjunction848) + _t1600 = _t1602 else: - if prediction830 == 4: - _t1580 = self.parse_conjunction() - conjunction835 = _t1580 - _t1581 = logic_pb2.Formula(conjunction=conjunction835) - _t1579 = _t1581 + if prediction842 == 4: + _t1604 = self.parse_conjunction() + conjunction847 = _t1604 + _t1605 = logic_pb2.Formula(conjunction=conjunction847) + _t1603 = _t1605 else: - if prediction830 == 3: - _t1583 = self.parse_reduce() - reduce834 = _t1583 - _t1584 = logic_pb2.Formula(reduce=reduce834) - _t1582 = _t1584 + if prediction842 == 3: + _t1607 = self.parse_reduce() + reduce846 = _t1607 + _t1608 = logic_pb2.Formula(reduce=reduce846) + _t1606 = _t1608 else: - if prediction830 == 2: - _t1586 = self.parse_exists() - exists833 = _t1586 - _t1587 = logic_pb2.Formula(exists=exists833) - _t1585 = _t1587 + if prediction842 == 2: + _t1610 = self.parse_exists() + exists845 = _t1610 + _t1611 = logic_pb2.Formula(exists=exists845) + _t1609 = _t1611 else: - if prediction830 == 1: - _t1589 = self.parse_false() - false832 = _t1589 - _t1590 = logic_pb2.Formula(disjunction=false832) - _t1588 = _t1590 + if prediction842 == 1: + _t1613 = self.parse_false() + false844 = _t1613 + _t1614 = logic_pb2.Formula(disjunction=false844) + _t1612 = _t1614 else: - if prediction830 == 0: - _t1592 = self.parse_true() - true831 = _t1592 - _t1593 = logic_pb2.Formula(conjunction=true831) - _t1591 = _t1593 + if prediction842 == 0: + _t1616 = self.parse_true() + true843 = _t1616 + _t1617 = logic_pb2.Formula(conjunction=true843) + _t1615 = _t1617 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 + _t1612 = _t1615 + _t1609 = _t1612 + _t1606 = _t1609 + _t1603 = _t1606 + _t1600 = _t1603 + _t1597 = _t1600 + _t1594 = _t1597 + _t1591 = _t1594 + _t1588 = _t1591 + _t1585 = _t1588 + _t1582 = _t1585 + _t1579 = _t1582 + result857 = _t1579 + self.record_span(span_start856, "Formula") + return result857 def parse_true(self) -> logic_pb2.Conjunction: - span_start846 = self.span_start() + span_start858 = 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 + _t1618 = logic_pb2.Conjunction(args=[]) + result859 = _t1618 + self.record_span(span_start858, "Conjunction") + return result859 def parse_false(self) -> logic_pb2.Disjunction: - span_start848 = self.span_start() + span_start860 = 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 + _t1619 = logic_pb2.Disjunction(args=[]) + result861 = _t1619 + self.record_span(span_start860, "Disjunction") + return result861 def parse_exists(self) -> logic_pb2.Exists: - span_start852 = self.span_start() + span_start864 = self.span_start() self.consume_literal("(") self.consume_literal("exists") - _t1596 = self.parse_bindings() - bindings850 = _t1596 - _t1597 = self.parse_formula() - formula851 = _t1597 + _t1620 = self.parse_bindings() + bindings862 = _t1620 + _t1621 = self.parse_formula() + formula863 = _t1621 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 + _t1622 = logic_pb2.Abstraction(vars=(list(bindings862[0]) + list(bindings862[1] if bindings862[1] is not None else [])), value=formula863) + _t1623 = logic_pb2.Exists(body=_t1622) + result865 = _t1623 + self.record_span(span_start864, "Exists") + return result865 def parse_reduce(self) -> logic_pb2.Reduce: - span_start857 = self.span_start() + span_start869 = 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 + _t1624 = self.parse_abstraction() + abstraction866 = _t1624 + _t1625 = self.parse_abstraction() + abstraction_3867 = _t1625 + _t1626 = self.parse_terms() + terms868 = _t1626 + self.consume_literal(")") + _t1627 = logic_pb2.Reduce(op=abstraction866, body=abstraction_3867, terms=terms868) + result870 = _t1627 + self.record_span(span_start869, "Reduce") + return result870 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 + xs871 = [] + cond872 = (((((((((((((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 cond872: + _t1628 = self.parse_term() + item873 = _t1628 + xs871.append(item873) + cond872 = (((((((((((((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)) + terms874 = xs871 self.consume_literal(")") - return terms862 + return terms874 def parse_term(self) -> logic_pb2.Term: - span_start866 = self.span_start() + span_start878 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1605 = 1 + _t1629 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1606 = 1 + _t1630 = 1 else: if self.match_lookahead_literal("false", 0): - _t1607 = 1 + _t1631 = 1 else: if self.match_lookahead_literal("(", 0): - _t1608 = 1 + _t1632 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1609 = 0 + _t1633 = 0 else: if self.match_lookahead_terminal("UINT32", 0): - _t1610 = 1 + _t1634 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1611 = 1 + _t1635 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1612 = 1 + _t1636 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1613 = 1 + _t1637 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1614 = 1 + _t1638 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1615 = 1 + _t1639 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1616 = 1 + _t1640 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1617 = 1 + _t1641 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1618 = 1 + _t1642 = 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 + _t1642 = -1 + _t1641 = _t1642 + _t1640 = _t1641 + _t1639 = _t1640 + _t1638 = _t1639 + _t1637 = _t1638 + _t1636 = _t1637 + _t1635 = _t1636 + _t1634 = _t1635 + _t1633 = _t1634 + _t1632 = _t1633 + _t1631 = _t1632 + _t1630 = _t1631 + _t1629 = _t1630 + prediction875 = _t1629 + if prediction875 == 1: + _t1644 = self.parse_value() + value877 = _t1644 + _t1645 = logic_pb2.Term(constant=value877) + _t1643 = _t1645 + else: + if prediction875 == 0: + _t1647 = self.parse_var() + var876 = _t1647 + _t1648 = logic_pb2.Term(var=var876) + _t1646 = _t1648 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 + _t1643 = _t1646 + result879 = _t1643 + self.record_span(span_start878, "Term") + return result879 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_start881 = self.span_start() + symbol880 = self.consume_terminal("SYMBOL") + _t1649 = logic_pb2.Var(name=symbol880) + result882 = _t1649 + self.record_span(span_start881, "Var") + return result882 def parse_value(self) -> logic_pb2.Value: - span_start884 = self.span_start() + span_start896 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1626 = 12 + _t1650 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1627 = 11 + _t1651 = 11 else: if self.match_lookahead_literal("false", 0): - _t1628 = 12 + _t1652 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1630 = 1 + _t1654 = 1 else: if self.match_lookahead_literal("date", 1): - _t1631 = 0 + _t1655 = 0 else: - _t1631 = -1 - _t1630 = _t1631 - _t1629 = _t1630 + _t1655 = -1 + _t1654 = _t1655 + _t1653 = _t1654 else: if self.match_lookahead_terminal("UINT32", 0): - _t1632 = 7 + _t1656 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1633 = 8 + _t1657 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1634 = 2 + _t1658 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1635 = 3 + _t1659 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1636 = 9 + _t1660 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1637 = 4 + _t1661 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1638 = 5 + _t1662 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1639 = 6 + _t1663 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1640 = 10 + _t1664 = 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: + _t1664 = -1 + _t1663 = _t1664 + _t1662 = _t1663 + _t1661 = _t1662 + _t1660 = _t1661 + _t1659 = _t1660 + _t1658 = _t1659 + _t1657 = _t1658 + _t1656 = _t1657 + _t1653 = _t1656 + _t1652 = _t1653 + _t1651 = _t1652 + _t1650 = _t1651 + prediction883 = _t1650 + if prediction883 == 12: + _t1666 = self.parse_boolean_value() + boolean_value895 = _t1666 + _t1667 = logic_pb2.Value(boolean_value=boolean_value895) + _t1665 = _t1667 + else: + if prediction883 == 11: self.consume_literal("missing") - _t1645 = logic_pb2.MissingValue() - _t1646 = logic_pb2.Value(missing_value=_t1645) - _t1644 = _t1646 + _t1669 = logic_pb2.MissingValue() + _t1670 = logic_pb2.Value(missing_value=_t1669) + _t1668 = _t1670 else: - if prediction871 == 10: - formatted_decimal882 = self.consume_terminal("DECIMAL") - _t1648 = logic_pb2.Value(decimal_value=formatted_decimal882) - _t1647 = _t1648 + if prediction883 == 10: + formatted_decimal894 = self.consume_terminal("DECIMAL") + _t1672 = logic_pb2.Value(decimal_value=formatted_decimal894) + _t1671 = _t1672 else: - if prediction871 == 9: - formatted_int128881 = self.consume_terminal("INT128") - _t1650 = logic_pb2.Value(int128_value=formatted_int128881) - _t1649 = _t1650 + if prediction883 == 9: + formatted_int128893 = self.consume_terminal("INT128") + _t1674 = logic_pb2.Value(int128_value=formatted_int128893) + _t1673 = _t1674 else: - if prediction871 == 8: - formatted_uint128880 = self.consume_terminal("UINT128") - _t1652 = logic_pb2.Value(uint128_value=formatted_uint128880) - _t1651 = _t1652 + if prediction883 == 8: + formatted_uint128892 = self.consume_terminal("UINT128") + _t1676 = logic_pb2.Value(uint128_value=formatted_uint128892) + _t1675 = _t1676 else: - if prediction871 == 7: - formatted_uint32879 = self.consume_terminal("UINT32") - _t1654 = logic_pb2.Value(uint32_value=formatted_uint32879) - _t1653 = _t1654 + if prediction883 == 7: + formatted_uint32891 = self.consume_terminal("UINT32") + _t1678 = logic_pb2.Value(uint32_value=formatted_uint32891) + _t1677 = _t1678 else: - if prediction871 == 6: - formatted_float878 = self.consume_terminal("FLOAT") - _t1656 = logic_pb2.Value(float_value=formatted_float878) - _t1655 = _t1656 + if prediction883 == 6: + formatted_float890 = self.consume_terminal("FLOAT") + _t1680 = logic_pb2.Value(float_value=formatted_float890) + _t1679 = _t1680 else: - if prediction871 == 5: - formatted_float32877 = self.consume_terminal("FLOAT32") - _t1658 = logic_pb2.Value(float32_value=formatted_float32877) - _t1657 = _t1658 + if prediction883 == 5: + formatted_float32889 = self.consume_terminal("FLOAT32") + _t1682 = logic_pb2.Value(float32_value=formatted_float32889) + _t1681 = _t1682 else: - if prediction871 == 4: - formatted_int876 = self.consume_terminal("INT") - _t1660 = logic_pb2.Value(int_value=formatted_int876) - _t1659 = _t1660 + if prediction883 == 4: + formatted_int888 = self.consume_terminal("INT") + _t1684 = logic_pb2.Value(int_value=formatted_int888) + _t1683 = _t1684 else: - if prediction871 == 3: - formatted_int32875 = self.consume_terminal("INT32") - _t1662 = logic_pb2.Value(int32_value=formatted_int32875) - _t1661 = _t1662 + if prediction883 == 3: + formatted_int32887 = self.consume_terminal("INT32") + _t1686 = logic_pb2.Value(int32_value=formatted_int32887) + _t1685 = _t1686 else: - if prediction871 == 2: - formatted_string874 = self.consume_terminal("STRING") - _t1664 = logic_pb2.Value(string_value=formatted_string874) - _t1663 = _t1664 + if prediction883 == 2: + formatted_string886 = self.consume_terminal("STRING") + _t1688 = logic_pb2.Value(string_value=formatted_string886) + _t1687 = _t1688 else: - if prediction871 == 1: - _t1666 = self.parse_datetime() - datetime873 = _t1666 - _t1667 = logic_pb2.Value(datetime_value=datetime873) - _t1665 = _t1667 + if prediction883 == 1: + _t1690 = self.parse_datetime() + datetime885 = _t1690 + _t1691 = logic_pb2.Value(datetime_value=datetime885) + _t1689 = _t1691 else: - if prediction871 == 0: - _t1669 = self.parse_date() - date872 = _t1669 - _t1670 = logic_pb2.Value(date_value=date872) - _t1668 = _t1670 + if prediction883 == 0: + _t1693 = self.parse_date() + date884 = _t1693 + _t1694 = logic_pb2.Value(date_value=date884) + _t1692 = _t1694 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 + _t1689 = _t1692 + _t1687 = _t1689 + _t1685 = _t1687 + _t1683 = _t1685 + _t1681 = _t1683 + _t1679 = _t1681 + _t1677 = _t1679 + _t1675 = _t1677 + _t1673 = _t1675 + _t1671 = _t1673 + _t1668 = _t1671 + _t1665 = _t1668 + result897 = _t1665 + self.record_span(span_start896, "Value") + return result897 def parse_date(self) -> logic_pb2.DateValue: - span_start889 = self.span_start() + span_start901 = 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_int898 = self.consume_terminal("INT") + formatted_int_3899 = self.consume_terminal("INT") + formatted_int_4900 = 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 + _t1695 = logic_pb2.DateValue(year=int(formatted_int898), month=int(formatted_int_3899), day=int(formatted_int_4900)) + result902 = _t1695 + self.record_span(span_start901, "DateValue") + return result902 def parse_datetime(self) -> logic_pb2.DateTimeValue: - span_start898 = self.span_start() + span_start910 = 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_int903 = self.consume_terminal("INT") + formatted_int_3904 = self.consume_terminal("INT") + formatted_int_4905 = self.consume_terminal("INT") + formatted_int_5906 = self.consume_terminal("INT") + formatted_int_6907 = self.consume_terminal("INT") + formatted_int_7908 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1672 = self.consume_terminal("INT") + _t1696 = self.consume_terminal("INT") else: - _t1672 = None - formatted_int_8897 = _t1672 + _t1696 = None + formatted_int_8909 = _t1696 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 + _t1697 = logic_pb2.DateTimeValue(year=int(formatted_int903), month=int(formatted_int_3904), day=int(formatted_int_4905), hour=int(formatted_int_5906), minute=int(formatted_int_6907), second=int(formatted_int_7908), microsecond=int((formatted_int_8909 if formatted_int_8909 is not None else 0))) + result911 = _t1697 + self.record_span(span_start910, "DateTimeValue") + return result911 def parse_conjunction(self) -> logic_pb2.Conjunction: - span_start904 = self.span_start() + span_start916 = 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 + xs912 = [] + cond913 = self.match_lookahead_literal("(", 0) + while cond913: + _t1698 = self.parse_formula() + item914 = _t1698 + xs912.append(item914) + cond913 = self.match_lookahead_literal("(", 0) + formulas915 = xs912 + self.consume_literal(")") + _t1699 = logic_pb2.Conjunction(args=formulas915) + result917 = _t1699 + self.record_span(span_start916, "Conjunction") + return result917 def parse_disjunction(self) -> logic_pb2.Disjunction: - span_start910 = self.span_start() + span_start922 = 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 + xs918 = [] + cond919 = self.match_lookahead_literal("(", 0) + while cond919: + _t1700 = self.parse_formula() + item920 = _t1700 + xs918.append(item920) + cond919 = self.match_lookahead_literal("(", 0) + formulas921 = xs918 + self.consume_literal(")") + _t1701 = logic_pb2.Disjunction(args=formulas921) + result923 = _t1701 + self.record_span(span_start922, "Disjunction") + return result923 def parse_not(self) -> logic_pb2.Not: - span_start913 = self.span_start() + span_start925 = self.span_start() self.consume_literal("(") self.consume_literal("not") - _t1678 = self.parse_formula() - formula912 = _t1678 + _t1702 = self.parse_formula() + formula924 = _t1702 self.consume_literal(")") - _t1679 = logic_pb2.Not(arg=formula912) - result914 = _t1679 - self.record_span(span_start913, "Not") - return result914 + _t1703 = logic_pb2.Not(arg=formula924) + result926 = _t1703 + self.record_span(span_start925, "Not") + return result926 def parse_ffi(self) -> logic_pb2.FFI: - span_start918 = self.span_start() + span_start930 = 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 + _t1704 = self.parse_name() + name927 = _t1704 + _t1705 = self.parse_ffi_args() + ffi_args928 = _t1705 + _t1706 = self.parse_terms() + terms929 = _t1706 + self.consume_literal(")") + _t1707 = logic_pb2.FFI(name=name927, args=ffi_args928, terms=terms929) + result931 = _t1707 + self.record_span(span_start930, "FFI") + return result931 def parse_name(self) -> str: self.consume_literal(":") - symbol920 = self.consume_terminal("SYMBOL") - return symbol920 + symbol932 = self.consume_terminal("SYMBOL") + return symbol932 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 + xs933 = [] + cond934 = self.match_lookahead_literal("(", 0) + while cond934: + _t1708 = self.parse_abstraction() + item935 = _t1708 + xs933.append(item935) + cond934 = self.match_lookahead_literal("(", 0) + abstractions936 = xs933 self.consume_literal(")") - return abstractions924 + return abstractions936 def parse_atom(self) -> logic_pb2.Atom: - span_start930 = self.span_start() + span_start942 = 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 + _t1709 = self.parse_relation_id() + relation_id937 = _t1709 + xs938 = [] + cond939 = (((((((((((((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 cond939: + _t1710 = self.parse_term() + item940 = _t1710 + xs938.append(item940) + cond939 = (((((((((((((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)) + terms941 = xs938 + self.consume_literal(")") + _t1711 = logic_pb2.Atom(name=relation_id937, terms=terms941) + result943 = _t1711 + self.record_span(span_start942, "Atom") + return result943 def parse_pragma(self) -> logic_pb2.Pragma: - span_start937 = self.span_start() + span_start949 = 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 + _t1712 = self.parse_name() + name944 = _t1712 + xs945 = [] + cond946 = (((((((((((((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 cond946: + _t1713 = self.parse_term() + item947 = _t1713 + xs945.append(item947) + cond946 = (((((((((((((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)) + terms948 = xs945 + self.consume_literal(")") + _t1714 = logic_pb2.Pragma(name=name944, terms=terms948) + result950 = _t1714 + self.record_span(span_start949, "Pragma") + return result950 def parse_primitive(self) -> logic_pb2.Primitive: - span_start954 = self.span_start() + span_start966 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t1692 = 9 + _t1716 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1693 = 4 + _t1717 = 4 else: if self.match_lookahead_literal(">", 1): - _t1694 = 3 + _t1718 = 3 else: if self.match_lookahead_literal("=", 1): - _t1695 = 0 + _t1719 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1696 = 2 + _t1720 = 2 else: if self.match_lookahead_literal("<", 1): - _t1697 = 1 + _t1721 = 1 else: if self.match_lookahead_literal("/", 1): - _t1698 = 8 + _t1722 = 8 else: if self.match_lookahead_literal("-", 1): - _t1699 = 6 + _t1723 = 6 else: if self.match_lookahead_literal("+", 1): - _t1700 = 5 + _t1724 = 5 else: if self.match_lookahead_literal("*", 1): - _t1701 = 7 + _t1725 = 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: + _t1725 = -1 + _t1724 = _t1725 + _t1723 = _t1724 + _t1722 = _t1723 + _t1721 = _t1722 + _t1720 = _t1721 + _t1719 = _t1720 + _t1718 = _t1719 + _t1717 = _t1718 + _t1716 = _t1717 + _t1715 = _t1716 + else: + _t1715 = -1 + prediction951 = _t1715 + if prediction951 == 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 + _t1727 = self.parse_name() + name961 = _t1727 + xs962 = [] + cond963 = ((((((((((((((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 cond963: + _t1728 = self.parse_rel_term() + item964 = _t1728 + xs962.append(item964) + cond963 = ((((((((((((((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_terms965 = xs962 self.consume_literal(")") - _t1705 = logic_pb2.Primitive(name=name949, terms=rel_terms953) - _t1702 = _t1705 + _t1729 = logic_pb2.Primitive(name=name961, terms=rel_terms965) + _t1726 = _t1729 else: - if prediction939 == 8: - _t1707 = self.parse_divide() - divide948 = _t1707 - _t1706 = divide948 + if prediction951 == 8: + _t1731 = self.parse_divide() + divide960 = _t1731 + _t1730 = divide960 else: - if prediction939 == 7: - _t1709 = self.parse_multiply() - multiply947 = _t1709 - _t1708 = multiply947 + if prediction951 == 7: + _t1733 = self.parse_multiply() + multiply959 = _t1733 + _t1732 = multiply959 else: - if prediction939 == 6: - _t1711 = self.parse_minus() - minus946 = _t1711 - _t1710 = minus946 + if prediction951 == 6: + _t1735 = self.parse_minus() + minus958 = _t1735 + _t1734 = minus958 else: - if prediction939 == 5: - _t1713 = self.parse_add() - add945 = _t1713 - _t1712 = add945 + if prediction951 == 5: + _t1737 = self.parse_add() + add957 = _t1737 + _t1736 = add957 else: - if prediction939 == 4: - _t1715 = self.parse_gt_eq() - gt_eq944 = _t1715 - _t1714 = gt_eq944 + if prediction951 == 4: + _t1739 = self.parse_gt_eq() + gt_eq956 = _t1739 + _t1738 = gt_eq956 else: - if prediction939 == 3: - _t1717 = self.parse_gt() - gt943 = _t1717 - _t1716 = gt943 + if prediction951 == 3: + _t1741 = self.parse_gt() + gt955 = _t1741 + _t1740 = gt955 else: - if prediction939 == 2: - _t1719 = self.parse_lt_eq() - lt_eq942 = _t1719 - _t1718 = lt_eq942 + if prediction951 == 2: + _t1743 = self.parse_lt_eq() + lt_eq954 = _t1743 + _t1742 = lt_eq954 else: - if prediction939 == 1: - _t1721 = self.parse_lt() - lt941 = _t1721 - _t1720 = lt941 + if prediction951 == 1: + _t1745 = self.parse_lt() + lt953 = _t1745 + _t1744 = lt953 else: - if prediction939 == 0: - _t1723 = self.parse_eq() - eq940 = _t1723 - _t1722 = eq940 + if prediction951 == 0: + _t1747 = self.parse_eq() + eq952 = _t1747 + _t1746 = eq952 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 + _t1744 = _t1746 + _t1742 = _t1744 + _t1740 = _t1742 + _t1738 = _t1740 + _t1736 = _t1738 + _t1734 = _t1736 + _t1732 = _t1734 + _t1730 = _t1732 + _t1726 = _t1730 + result967 = _t1726 + self.record_span(span_start966, "Primitive") + return result967 def parse_eq(self) -> logic_pb2.Primitive: - span_start958 = self.span_start() + span_start970 = 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 + _t1748 = self.parse_term() + term968 = _t1748 + _t1749 = self.parse_term() + term_3969 = _t1749 + self.consume_literal(")") + _t1750 = logic_pb2.RelTerm(term=term968) + _t1751 = logic_pb2.RelTerm(term=term_3969) + _t1752 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1750, _t1751]) + result971 = _t1752 + self.record_span(span_start970, "Primitive") + return result971 def parse_lt(self) -> logic_pb2.Primitive: - span_start962 = self.span_start() + span_start974 = 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 + _t1753 = self.parse_term() + term972 = _t1753 + _t1754 = self.parse_term() + term_3973 = _t1754 + self.consume_literal(")") + _t1755 = logic_pb2.RelTerm(term=term972) + _t1756 = logic_pb2.RelTerm(term=term_3973) + _t1757 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1755, _t1756]) + result975 = _t1757 + self.record_span(span_start974, "Primitive") + return result975 def parse_lt_eq(self) -> logic_pb2.Primitive: - span_start966 = self.span_start() + span_start978 = 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 + _t1758 = self.parse_term() + term976 = _t1758 + _t1759 = self.parse_term() + term_3977 = _t1759 + self.consume_literal(")") + _t1760 = logic_pb2.RelTerm(term=term976) + _t1761 = logic_pb2.RelTerm(term=term_3977) + _t1762 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1760, _t1761]) + result979 = _t1762 + self.record_span(span_start978, "Primitive") + return result979 def parse_gt(self) -> logic_pb2.Primitive: - span_start970 = self.span_start() + span_start982 = self.span_start() self.consume_literal("(") self.consume_literal(">") - _t1739 = self.parse_term() - term968 = _t1739 - _t1740 = self.parse_term() - term_3969 = _t1740 - 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 + _t1763 = self.parse_term() + term980 = _t1763 + _t1764 = self.parse_term() + term_3981 = _t1764 + self.consume_literal(")") + _t1765 = logic_pb2.RelTerm(term=term980) + _t1766 = logic_pb2.RelTerm(term=term_3981) + _t1767 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1765, _t1766]) + result983 = _t1767 + self.record_span(span_start982, "Primitive") + return result983 def parse_gt_eq(self) -> logic_pb2.Primitive: - span_start974 = self.span_start() + span_start986 = 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 + _t1768 = self.parse_term() + term984 = _t1768 + _t1769 = self.parse_term() + term_3985 = _t1769 + self.consume_literal(")") + _t1770 = logic_pb2.RelTerm(term=term984) + _t1771 = logic_pb2.RelTerm(term=term_3985) + _t1772 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1770, _t1771]) + result987 = _t1772 + self.record_span(span_start986, "Primitive") + return result987 def parse_add(self) -> logic_pb2.Primitive: - span_start979 = self.span_start() + span_start991 = 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 + _t1773 = self.parse_term() + term988 = _t1773 + _t1774 = self.parse_term() + term_3989 = _t1774 + _t1775 = self.parse_term() + term_4990 = _t1775 + self.consume_literal(")") + _t1776 = logic_pb2.RelTerm(term=term988) + _t1777 = logic_pb2.RelTerm(term=term_3989) + _t1778 = logic_pb2.RelTerm(term=term_4990) + _t1779 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1776, _t1777, _t1778]) + result992 = _t1779 + self.record_span(span_start991, "Primitive") + return result992 def parse_minus(self) -> logic_pb2.Primitive: - span_start984 = self.span_start() + span_start996 = 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 + _t1780 = self.parse_term() + term993 = _t1780 + _t1781 = self.parse_term() + term_3994 = _t1781 + _t1782 = self.parse_term() + term_4995 = _t1782 + self.consume_literal(")") + _t1783 = logic_pb2.RelTerm(term=term993) + _t1784 = logic_pb2.RelTerm(term=term_3994) + _t1785 = logic_pb2.RelTerm(term=term_4995) + _t1786 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1783, _t1784, _t1785]) + result997 = _t1786 + self.record_span(span_start996, "Primitive") + return result997 def parse_multiply(self) -> logic_pb2.Primitive: - span_start989 = self.span_start() + span_start1001 = 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 + _t1787 = self.parse_term() + term998 = _t1787 + _t1788 = self.parse_term() + term_3999 = _t1788 + _t1789 = self.parse_term() + term_41000 = _t1789 + self.consume_literal(")") + _t1790 = logic_pb2.RelTerm(term=term998) + _t1791 = logic_pb2.RelTerm(term=term_3999) + _t1792 = logic_pb2.RelTerm(term=term_41000) + _t1793 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1790, _t1791, _t1792]) + result1002 = _t1793 + self.record_span(span_start1001, "Primitive") + return result1002 def parse_divide(self) -> logic_pb2.Primitive: - span_start994 = self.span_start() + span_start1006 = 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 + _t1794 = self.parse_term() + term1003 = _t1794 + _t1795 = self.parse_term() + term_31004 = _t1795 + _t1796 = self.parse_term() + term_41005 = _t1796 + self.consume_literal(")") + _t1797 = logic_pb2.RelTerm(term=term1003) + _t1798 = logic_pb2.RelTerm(term=term_31004) + _t1799 = logic_pb2.RelTerm(term=term_41005) + _t1800 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1797, _t1798, _t1799]) + result1007 = _t1800 + self.record_span(span_start1006, "Primitive") + return result1007 def parse_rel_term(self) -> logic_pb2.RelTerm: - span_start999 = self.span_start() + span_start1011 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1777 = 1 + _t1801 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1778 = 1 + _t1802 = 1 else: if self.match_lookahead_literal("false", 0): - _t1779 = 1 + _t1803 = 1 else: if self.match_lookahead_literal("(", 0): - _t1780 = 1 + _t1804 = 1 else: if self.match_lookahead_literal("#", 0): - _t1781 = 0 + _t1805 = 0 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1782 = 1 + _t1806 = 1 else: if self.match_lookahead_terminal("UINT32", 0): - _t1783 = 1 + _t1807 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1784 = 1 + _t1808 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1785 = 1 + _t1809 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1786 = 1 + _t1810 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1787 = 1 + _t1811 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1788 = 1 + _t1812 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1789 = 1 + _t1813 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1790 = 1 + _t1814 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1791 = 1 + _t1815 = 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 + _t1815 = -1 + _t1814 = _t1815 + _t1813 = _t1814 + _t1812 = _t1813 + _t1811 = _t1812 + _t1810 = _t1811 + _t1809 = _t1810 + _t1808 = _t1809 + _t1807 = _t1808 + _t1806 = _t1807 + _t1805 = _t1806 + _t1804 = _t1805 + _t1803 = _t1804 + _t1802 = _t1803 + _t1801 = _t1802 + prediction1008 = _t1801 + if prediction1008 == 1: + _t1817 = self.parse_term() + term1010 = _t1817 + _t1818 = logic_pb2.RelTerm(term=term1010) + _t1816 = _t1818 + else: + if prediction1008 == 0: + _t1820 = self.parse_specialized_value() + specialized_value1009 = _t1820 + _t1821 = logic_pb2.RelTerm(specialized_value=specialized_value1009) + _t1819 = _t1821 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 + _t1816 = _t1819 + result1012 = _t1816 + self.record_span(span_start1011, "RelTerm") + return result1012 def parse_specialized_value(self) -> logic_pb2.Value: - span_start1002 = self.span_start() + span_start1014 = 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 + _t1822 = self.parse_raw_value() + raw_value1013 = _t1822 + result1015 = raw_value1013 + self.record_span(span_start1014, "Value") + return result1015 def parse_rel_atom(self) -> logic_pb2.RelAtom: - span_start1009 = self.span_start() + span_start1021 = 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 + _t1823 = self.parse_name() + name1016 = _t1823 + xs1017 = [] + cond1018 = ((((((((((((((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 cond1018: + _t1824 = self.parse_rel_term() + item1019 = _t1824 + xs1017.append(item1019) + cond1018 = ((((((((((((((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_terms1020 = xs1017 + self.consume_literal(")") + _t1825 = logic_pb2.RelAtom(name=name1016, terms=rel_terms1020) + result1022 = _t1825 + self.record_span(span_start1021, "RelAtom") + return result1022 def parse_cast(self) -> logic_pb2.Cast: - span_start1013 = self.span_start() + span_start1025 = self.span_start() self.consume_literal("(") self.consume_literal("cast") - _t1802 = self.parse_term() - term1011 = _t1802 - _t1803 = self.parse_term() - term_31012 = _t1803 + _t1826 = self.parse_term() + term1023 = _t1826 + _t1827 = self.parse_term() + term_31024 = _t1827 self.consume_literal(")") - _t1804 = logic_pb2.Cast(input=term1011, result=term_31012) - result1014 = _t1804 - self.record_span(span_start1013, "Cast") - return result1014 + _t1828 = logic_pb2.Cast(input=term1023, result=term_31024) + result1026 = _t1828 + self.record_span(span_start1025, "Cast") + return result1026 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 + xs1027 = [] + cond1028 = self.match_lookahead_literal("(", 0) + while cond1028: + _t1829 = self.parse_attribute() + item1029 = _t1829 + xs1027.append(item1029) + cond1028 = self.match_lookahead_literal("(", 0) + attributes1030 = xs1027 self.consume_literal(")") - return attributes1018 + return attributes1030 def parse_attribute(self) -> logic_pb2.Attribute: - span_start1024 = self.span_start() + span_start1036 = 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 + _t1830 = self.parse_name() + name1031 = _t1830 + xs1032 = [] + cond1033 = ((((((((((((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 cond1033: + _t1831 = self.parse_raw_value() + item1034 = _t1831 + xs1032.append(item1034) + cond1033 = ((((((((((((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_values1035 = xs1032 + self.consume_literal(")") + _t1832 = logic_pb2.Attribute(name=name1031, args=raw_values1035) + result1037 = _t1832 + self.record_span(span_start1036, "Attribute") + return result1037 def parse_algorithm(self) -> logic_pb2.Algorithm: - span_start1032 = self.span_start() + span_start1044 = 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 + xs1038 = [] + cond1039 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1039: + _t1833 = self.parse_relation_id() + item1040 = _t1833 + xs1038.append(item1040) + cond1039 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1041 = xs1038 + _t1834 = self.parse_script() + script1042 = _t1834 if self.match_lookahead_literal("(", 0): - _t1812 = self.parse_attrs() - _t1811 = _t1812 + _t1836 = self.parse_attrs() + _t1835 = _t1836 else: - _t1811 = None - attrs1031 = _t1811 + _t1835 = None + attrs1043 = _t1835 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 + _t1837 = logic_pb2.Algorithm(body=script1042, attrs=(attrs1043 if attrs1043 is not None else [])) + getattr(_t1837, 'global').extend(relation_ids1041) + result1045 = _t1837 + self.record_span(span_start1044, "Algorithm") + return result1045 def parse_script(self) -> logic_pb2.Script: - span_start1038 = self.span_start() + span_start1050 = 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 + xs1046 = [] + cond1047 = self.match_lookahead_literal("(", 0) + while cond1047: + _t1838 = self.parse_construct() + item1048 = _t1838 + xs1046.append(item1048) + cond1047 = self.match_lookahead_literal("(", 0) + constructs1049 = xs1046 + self.consume_literal(")") + _t1839 = logic_pb2.Script(constructs=constructs1049) + result1051 = _t1839 + self.record_span(span_start1050, "Script") + return result1051 def parse_construct(self) -> logic_pb2.Construct: - span_start1043 = self.span_start() + span_start1055 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1817 = 1 + _t1841 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1818 = 1 + _t1842 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1819 = 1 + _t1843 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1820 = 0 + _t1844 = 0 else: if self.match_lookahead_literal("break", 1): - _t1821 = 1 + _t1845 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1822 = 1 + _t1846 = 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 + _t1846 = -1 + _t1845 = _t1846 + _t1844 = _t1845 + _t1843 = _t1844 + _t1842 = _t1843 + _t1841 = _t1842 + _t1840 = _t1841 + else: + _t1840 = -1 + prediction1052 = _t1840 + if prediction1052 == 1: + _t1848 = self.parse_instruction() + instruction1054 = _t1848 + _t1849 = logic_pb2.Construct(instruction=instruction1054) + _t1847 = _t1849 + else: + if prediction1052 == 0: + _t1851 = self.parse_loop() + loop1053 = _t1851 + _t1852 = logic_pb2.Construct(loop=loop1053) + _t1850 = _t1852 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 + _t1847 = _t1850 + result1056 = _t1847 + self.record_span(span_start1055, "Construct") + return result1056 def parse_loop(self) -> logic_pb2.Loop: - span_start1048 = self.span_start() + span_start1060 = self.span_start() self.consume_literal("(") self.consume_literal("loop") - _t1829 = self.parse_init() - init1045 = _t1829 - _t1830 = self.parse_script() - script1046 = _t1830 + _t1853 = self.parse_init() + init1057 = _t1853 + _t1854 = self.parse_script() + script1058 = _t1854 if self.match_lookahead_literal("(", 0): - _t1832 = self.parse_attrs() - _t1831 = _t1832 + _t1856 = self.parse_attrs() + _t1855 = _t1856 else: - _t1831 = None - attrs1047 = _t1831 + _t1855 = None + attrs1059 = _t1855 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 + _t1857 = logic_pb2.Loop(init=init1057, body=script1058, attrs=(attrs1059 if attrs1059 is not None else [])) + result1061 = _t1857 + self.record_span(span_start1060, "Loop") + return result1061 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 + xs1062 = [] + cond1063 = self.match_lookahead_literal("(", 0) + while cond1063: + _t1858 = self.parse_instruction() + item1064 = _t1858 + xs1062.append(item1064) + cond1063 = self.match_lookahead_literal("(", 0) + instructions1065 = xs1062 self.consume_literal(")") - return instructions1053 + return instructions1065 def parse_instruction(self) -> logic_pb2.Instruction: - span_start1060 = self.span_start() + span_start1072 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1836 = 1 + _t1860 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1837 = 4 + _t1861 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1838 = 3 + _t1862 = 3 else: if self.match_lookahead_literal("break", 1): - _t1839 = 2 + _t1863 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1840 = 0 + _t1864 = 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 + _t1864 = -1 + _t1863 = _t1864 + _t1862 = _t1863 + _t1861 = _t1862 + _t1860 = _t1861 + _t1859 = _t1860 + else: + _t1859 = -1 + prediction1066 = _t1859 + if prediction1066 == 4: + _t1866 = self.parse_monus_def() + monus_def1071 = _t1866 + _t1867 = logic_pb2.Instruction(monus_def=monus_def1071) + _t1865 = _t1867 + else: + if prediction1066 == 3: + _t1869 = self.parse_monoid_def() + monoid_def1070 = _t1869 + _t1870 = logic_pb2.Instruction(monoid_def=monoid_def1070) + _t1868 = _t1870 else: - if prediction1054 == 2: - _t1848 = self.parse_break() - break1057 = _t1848 - _t1849 = logic_pb2.Instruction() - getattr(_t1849, 'break').CopyFrom(break1057) - _t1847 = _t1849 + if prediction1066 == 2: + _t1872 = self.parse_break() + break1069 = _t1872 + _t1873 = logic_pb2.Instruction() + getattr(_t1873, 'break').CopyFrom(break1069) + _t1871 = _t1873 else: - if prediction1054 == 1: - _t1851 = self.parse_upsert() - upsert1056 = _t1851 - _t1852 = logic_pb2.Instruction(upsert=upsert1056) - _t1850 = _t1852 + if prediction1066 == 1: + _t1875 = self.parse_upsert() + upsert1068 = _t1875 + _t1876 = logic_pb2.Instruction(upsert=upsert1068) + _t1874 = _t1876 else: - if prediction1054 == 0: - _t1854 = self.parse_assign() - assign1055 = _t1854 - _t1855 = logic_pb2.Instruction(assign=assign1055) - _t1853 = _t1855 + if prediction1066 == 0: + _t1878 = self.parse_assign() + assign1067 = _t1878 + _t1879 = logic_pb2.Instruction(assign=assign1067) + _t1877 = _t1879 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 + _t1874 = _t1877 + _t1871 = _t1874 + _t1868 = _t1871 + _t1865 = _t1868 + result1073 = _t1865 + self.record_span(span_start1072, "Instruction") + return result1073 def parse_assign(self) -> logic_pb2.Assign: - span_start1065 = self.span_start() + span_start1077 = self.span_start() self.consume_literal("(") self.consume_literal("assign") - _t1856 = self.parse_relation_id() - relation_id1062 = _t1856 - _t1857 = self.parse_abstraction() - abstraction1063 = _t1857 + _t1880 = self.parse_relation_id() + relation_id1074 = _t1880 + _t1881 = self.parse_abstraction() + abstraction1075 = _t1881 if self.match_lookahead_literal("(", 0): - _t1859 = self.parse_attrs() - _t1858 = _t1859 + _t1883 = self.parse_attrs() + _t1882 = _t1883 else: - _t1858 = None - attrs1064 = _t1858 + _t1882 = None + attrs1076 = _t1882 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 + _t1884 = logic_pb2.Assign(name=relation_id1074, body=abstraction1075, attrs=(attrs1076 if attrs1076 is not None else [])) + result1078 = _t1884 + self.record_span(span_start1077, "Assign") + return result1078 def parse_upsert(self) -> logic_pb2.Upsert: - span_start1070 = self.span_start() + span_start1082 = 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 + _t1885 = self.parse_relation_id() + relation_id1079 = _t1885 + _t1886 = self.parse_abstraction_with_arity() + abstraction_with_arity1080 = _t1886 if self.match_lookahead_literal("(", 0): - _t1864 = self.parse_attrs() - _t1863 = _t1864 + _t1888 = self.parse_attrs() + _t1887 = _t1888 else: - _t1863 = None - attrs1069 = _t1863 + _t1887 = None + attrs1081 = _t1887 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 + _t1889 = logic_pb2.Upsert(name=relation_id1079, body=abstraction_with_arity1080[0], attrs=(attrs1081 if attrs1081 is not None else []), value_arity=abstraction_with_arity1080[1]) + result1083 = _t1889 + self.record_span(span_start1082, "Upsert") + return result1083 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 + _t1890 = self.parse_bindings() + bindings1084 = _t1890 + _t1891 = self.parse_formula() + formula1085 = _t1891 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]),) + _t1892 = logic_pb2.Abstraction(vars=(list(bindings1084[0]) + list(bindings1084[1] if bindings1084[1] is not None else [])), value=formula1085) + return (_t1892, len(bindings1084[1]),) def parse_break(self) -> logic_pb2.Break: - span_start1077 = self.span_start() + span_start1089 = self.span_start() self.consume_literal("(") self.consume_literal("break") - _t1869 = self.parse_relation_id() - relation_id1074 = _t1869 - _t1870 = self.parse_abstraction() - abstraction1075 = _t1870 + _t1893 = self.parse_relation_id() + relation_id1086 = _t1893 + _t1894 = self.parse_abstraction() + abstraction1087 = _t1894 if self.match_lookahead_literal("(", 0): - _t1872 = self.parse_attrs() - _t1871 = _t1872 + _t1896 = self.parse_attrs() + _t1895 = _t1896 else: - _t1871 = None - attrs1076 = _t1871 + _t1895 = None + attrs1088 = _t1895 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 + _t1897 = logic_pb2.Break(name=relation_id1086, body=abstraction1087, attrs=(attrs1088 if attrs1088 is not None else [])) + result1090 = _t1897 + self.record_span(span_start1089, "Break") + return result1090 def parse_monoid_def(self) -> logic_pb2.MonoidDef: - span_start1083 = self.span_start() + span_start1095 = 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 + _t1898 = self.parse_monoid() + monoid1091 = _t1898 + _t1899 = self.parse_relation_id() + relation_id1092 = _t1899 + _t1900 = self.parse_abstraction_with_arity() + abstraction_with_arity1093 = _t1900 if self.match_lookahead_literal("(", 0): - _t1878 = self.parse_attrs() - _t1877 = _t1878 + _t1902 = self.parse_attrs() + _t1901 = _t1902 else: - _t1877 = None - attrs1082 = _t1877 + _t1901 = None + attrs1094 = _t1901 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 + _t1903 = logic_pb2.MonoidDef(monoid=monoid1091, name=relation_id1092, body=abstraction_with_arity1093[0], attrs=(attrs1094 if attrs1094 is not None else []), value_arity=abstraction_with_arity1093[1]) + result1096 = _t1903 + self.record_span(span_start1095, "MonoidDef") + return result1096 def parse_monoid(self) -> logic_pb2.Monoid: - span_start1090 = self.span_start() + span_start1102 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1881 = 3 + _t1905 = 3 else: if self.match_lookahead_literal("or", 1): - _t1882 = 0 + _t1906 = 0 else: if self.match_lookahead_literal("min", 1): - _t1883 = 1 + _t1907 = 1 else: if self.match_lookahead_literal("max", 1): - _t1884 = 2 + _t1908 = 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 + _t1908 = -1 + _t1907 = _t1908 + _t1906 = _t1907 + _t1905 = _t1906 + _t1904 = _t1905 + else: + _t1904 = -1 + prediction1097 = _t1904 + if prediction1097 == 3: + _t1910 = self.parse_sum_monoid() + sum_monoid1101 = _t1910 + _t1911 = logic_pb2.Monoid(sum_monoid=sum_monoid1101) + _t1909 = _t1911 + else: + if prediction1097 == 2: + _t1913 = self.parse_max_monoid() + max_monoid1100 = _t1913 + _t1914 = logic_pb2.Monoid(max_monoid=max_monoid1100) + _t1912 = _t1914 else: - if prediction1085 == 1: - _t1892 = self.parse_min_monoid() - min_monoid1087 = _t1892 - _t1893 = logic_pb2.Monoid(min_monoid=min_monoid1087) - _t1891 = _t1893 + if prediction1097 == 1: + _t1916 = self.parse_min_monoid() + min_monoid1099 = _t1916 + _t1917 = logic_pb2.Monoid(min_monoid=min_monoid1099) + _t1915 = _t1917 else: - if prediction1085 == 0: - _t1895 = self.parse_or_monoid() - or_monoid1086 = _t1895 - _t1896 = logic_pb2.Monoid(or_monoid=or_monoid1086) - _t1894 = _t1896 + if prediction1097 == 0: + _t1919 = self.parse_or_monoid() + or_monoid1098 = _t1919 + _t1920 = logic_pb2.Monoid(or_monoid=or_monoid1098) + _t1918 = _t1920 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 + _t1915 = _t1918 + _t1912 = _t1915 + _t1909 = _t1912 + result1103 = _t1909 + self.record_span(span_start1102, "Monoid") + return result1103 def parse_or_monoid(self) -> logic_pb2.OrMonoid: - span_start1092 = self.span_start() + span_start1104 = 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 + _t1921 = logic_pb2.OrMonoid() + result1105 = _t1921 + self.record_span(span_start1104, "OrMonoid") + return result1105 def parse_min_monoid(self) -> logic_pb2.MinMonoid: - span_start1095 = self.span_start() + span_start1107 = self.span_start() self.consume_literal("(") self.consume_literal("min") - _t1898 = self.parse_type() - type1094 = _t1898 + _t1922 = self.parse_type() + type1106 = _t1922 self.consume_literal(")") - _t1899 = logic_pb2.MinMonoid(type=type1094) - result1096 = _t1899 - self.record_span(span_start1095, "MinMonoid") - return result1096 + _t1923 = logic_pb2.MinMonoid(type=type1106) + result1108 = _t1923 + self.record_span(span_start1107, "MinMonoid") + return result1108 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: - span_start1098 = self.span_start() + span_start1110 = self.span_start() self.consume_literal("(") self.consume_literal("max") - _t1900 = self.parse_type() - type1097 = _t1900 + _t1924 = self.parse_type() + type1109 = _t1924 self.consume_literal(")") - _t1901 = logic_pb2.MaxMonoid(type=type1097) - result1099 = _t1901 - self.record_span(span_start1098, "MaxMonoid") - return result1099 + _t1925 = logic_pb2.MaxMonoid(type=type1109) + result1111 = _t1925 + self.record_span(span_start1110, "MaxMonoid") + return result1111 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: - span_start1101 = self.span_start() + span_start1113 = self.span_start() self.consume_literal("(") self.consume_literal("sum") - _t1902 = self.parse_type() - type1100 = _t1902 + _t1926 = self.parse_type() + type1112 = _t1926 self.consume_literal(")") - _t1903 = logic_pb2.SumMonoid(type=type1100) - result1102 = _t1903 - self.record_span(span_start1101, "SumMonoid") - return result1102 + _t1927 = logic_pb2.SumMonoid(type=type1112) + result1114 = _t1927 + self.record_span(span_start1113, "SumMonoid") + return result1114 def parse_monus_def(self) -> logic_pb2.MonusDef: - span_start1107 = self.span_start() + span_start1119 = 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 + _t1928 = self.parse_monoid() + monoid1115 = _t1928 + _t1929 = self.parse_relation_id() + relation_id1116 = _t1929 + _t1930 = self.parse_abstraction_with_arity() + abstraction_with_arity1117 = _t1930 if self.match_lookahead_literal("(", 0): - _t1908 = self.parse_attrs() - _t1907 = _t1908 + _t1932 = self.parse_attrs() + _t1931 = _t1932 else: - _t1907 = None - attrs1106 = _t1907 + _t1931 = None + attrs1118 = _t1931 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 + _t1933 = logic_pb2.MonusDef(monoid=monoid1115, name=relation_id1116, body=abstraction_with_arity1117[0], attrs=(attrs1118 if attrs1118 is not None else []), value_arity=abstraction_with_arity1117[1]) + result1120 = _t1933 + self.record_span(span_start1119, "MonusDef") + return result1120 def parse_constraint(self) -> logic_pb2.Constraint: - span_start1113 = self.span_start() + span_start1125 = 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 + _t1934 = self.parse_relation_id() + relation_id1121 = _t1934 + _t1935 = self.parse_abstraction() + abstraction1122 = _t1935 + _t1936 = self.parse_functional_dependency_keys() + functional_dependency_keys1123 = _t1936 + _t1937 = self.parse_functional_dependency_values() + functional_dependency_values1124 = _t1937 + self.consume_literal(")") + _t1938 = logic_pb2.FunctionalDependency(guard=abstraction1122, keys=functional_dependency_keys1123, values=functional_dependency_values1124) + _t1939 = logic_pb2.Constraint(name=relation_id1121, functional_dependency=_t1938) + result1126 = _t1939 + self.record_span(span_start1125, "Constraint") + return result1126 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 + xs1127 = [] + cond1128 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1128: + _t1940 = self.parse_var() + item1129 = _t1940 + xs1127.append(item1129) + cond1128 = self.match_lookahead_terminal("SYMBOL", 0) + vars1130 = xs1127 self.consume_literal(")") - return vars1118 + return vars1130 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 + xs1131 = [] + cond1132 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1132: + _t1941 = self.parse_var() + item1133 = _t1941 + xs1131.append(item1133) + cond1132 = self.match_lookahead_terminal("SYMBOL", 0) + vars1134 = xs1131 self.consume_literal(")") - return vars1122 + return vars1134 def parse_data(self) -> logic_pb2.Data: - span_start1128 = self.span_start() + span_start1140 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t1919 = 3 + _t1943 = 3 else: if self.match_lookahead_literal("edb", 1): - _t1920 = 0 + _t1944 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1921 = 2 + _t1945 = 2 else: if self.match_lookahead_literal("betree_relation", 1): - _t1922 = 1 + _t1946 = 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 + _t1946 = -1 + _t1945 = _t1946 + _t1944 = _t1945 + _t1943 = _t1944 + _t1942 = _t1943 + else: + _t1942 = -1 + prediction1135 = _t1942 + if prediction1135 == 3: + _t1948 = self.parse_iceberg_data() + iceberg_data1139 = _t1948 + _t1949 = logic_pb2.Data(iceberg_data=iceberg_data1139) + _t1947 = _t1949 + else: + if prediction1135 == 2: + _t1951 = self.parse_csv_data() + csv_data1138 = _t1951 + _t1952 = logic_pb2.Data(csv_data=csv_data1138) + _t1950 = _t1952 else: - if prediction1123 == 1: - _t1930 = self.parse_betree_relation() - betree_relation1125 = _t1930 - _t1931 = logic_pb2.Data(betree_relation=betree_relation1125) - _t1929 = _t1931 + if prediction1135 == 1: + _t1954 = self.parse_betree_relation() + betree_relation1137 = _t1954 + _t1955 = logic_pb2.Data(betree_relation=betree_relation1137) + _t1953 = _t1955 else: - if prediction1123 == 0: - _t1933 = self.parse_edb() - edb1124 = _t1933 - _t1934 = logic_pb2.Data(edb=edb1124) - _t1932 = _t1934 + if prediction1135 == 0: + _t1957 = self.parse_edb() + edb1136 = _t1957 + _t1958 = logic_pb2.Data(edb=edb1136) + _t1956 = _t1958 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 + _t1953 = _t1956 + _t1950 = _t1953 + _t1947 = _t1950 + result1141 = _t1947 + self.record_span(span_start1140, "Data") + return result1141 def parse_edb(self) -> logic_pb2.EDB: - span_start1133 = self.span_start() + span_start1145 = 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 + _t1959 = self.parse_relation_id() + relation_id1142 = _t1959 + _t1960 = self.parse_edb_path() + edb_path1143 = _t1960 + _t1961 = self.parse_edb_types() + edb_types1144 = _t1961 + self.consume_literal(")") + _t1962 = logic_pb2.EDB(target_id=relation_id1142, path=edb_path1143, types=edb_types1144) + result1146 = _t1962 + self.record_span(span_start1145, "EDB") + return result1146 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 + xs1147 = [] + cond1148 = self.match_lookahead_terminal("STRING", 0) + while cond1148: + item1149 = self.consume_terminal("STRING") + xs1147.append(item1149) + cond1148 = self.match_lookahead_terminal("STRING", 0) + strings1150 = xs1147 self.consume_literal("]") - return strings1138 + return strings1150 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 + xs1151 = [] + cond1152 = (((((((((((((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 cond1152: + _t1963 = self.parse_type() + item1153 = _t1963 + xs1151.append(item1153) + cond1152 = (((((((((((((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)) + types1154 = xs1151 self.consume_literal("]") - return types1142 + return types1154 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: - span_start1145 = self.span_start() + span_start1157 = 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 - self.consume_literal(")") - _t1942 = logic_pb2.BeTreeRelation(name=relation_id1143, relation_info=betree_info1144) - result1146 = _t1942 - self.record_span(span_start1145, "BeTreeRelation") - return result1146 + _t1964 = self.parse_relation_id() + relation_id1155 = _t1964 + _t1965 = self.parse_betree_info() + betree_info1156 = _t1965 + self.consume_literal(")") + _t1966 = logic_pb2.BeTreeRelation(name=relation_id1155, relation_info=betree_info1156) + result1158 = _t1966 + self.record_span(span_start1157, "BeTreeRelation") + return result1158 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: - span_start1150 = self.span_start() + span_start1162 = 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 + _t1967 = self.parse_betree_info_key_types() + betree_info_key_types1159 = _t1967 + _t1968 = self.parse_betree_info_value_types() + betree_info_value_types1160 = _t1968 + _t1969 = self.parse_config_dict() + config_dict1161 = _t1969 + self.consume_literal(")") + _t1970 = self.construct_betree_info(betree_info_key_types1159, betree_info_value_types1160, config_dict1161) + result1163 = _t1970 + self.record_span(span_start1162, "BeTreeInfo") + return result1163 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 + 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: + _t1971 = self.parse_type() + item1166 = _t1971 + 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 types1155 + return types1167 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 + xs1168 = [] + cond1169 = (((((((((((((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 cond1169: + _t1972 = self.parse_type() + item1170 = _t1972 + xs1168.append(item1170) + cond1169 = (((((((((((((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)) + types1171 = xs1168 self.consume_literal(")") - return types1159 + return types1171 def parse_csv_data(self) -> logic_pb2.CSVData: - span_start1164 = self.span_start() + span_start1177 = 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 + _t1973 = self.parse_csvlocator() + csvlocator1172 = _t1973 + _t1974 = self.parse_csv_config() + csv_config1173 = _t1974 + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("columns", 1)): + _t1976 = self.parse_gnf_columns() + _t1975 = _t1976 + else: + _t1975 = None + gnf_columns1174 = _t1975 + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("table", 1)): + _t1978 = self.parse_csv_table() + _t1977 = _t1978 + else: + _t1977 = None + csv_table1175 = _t1977 + _t1979 = self.parse_csv_asof() + csv_asof1176 = _t1979 + self.consume_literal(")") + _t1980 = self.construct_csv_data(csvlocator1172, csv_config1173, gnf_columns1174, csv_table1175, csv_asof1176) + result1178 = _t1980 + self.record_span(span_start1177, "CSVData") + return result1178 def parse_csvlocator(self) -> logic_pb2.CSVLocator: - span_start1168 = self.span_start() + span_start1181 = 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 + _t1982 = self.parse_csv_locator_paths() + _t1981 = _t1982 else: - _t1954 = None - csv_locator_paths1166 = _t1954 + _t1981 = None + csv_locator_paths1179 = _t1981 if self.match_lookahead_literal("(", 0): - _t1957 = self.parse_csv_locator_inline_data() - _t1956 = _t1957 + _t1984 = self.parse_csv_locator_inline_data() + _t1983 = _t1984 else: - _t1956 = None - csv_locator_inline_data1167 = _t1956 + _t1983 = None + csv_locator_inline_data1180 = _t1983 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 + _t1985 = logic_pb2.CSVLocator(paths=(csv_locator_paths1179 if csv_locator_paths1179 is not None else []), inline_data=(csv_locator_inline_data1180 if csv_locator_inline_data1180 is not None else "").encode()) + result1182 = _t1985 + self.record_span(span_start1181, "CSVLocator") + return result1182 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 + xs1183 = [] + cond1184 = self.match_lookahead_terminal("STRING", 0) + while cond1184: + item1185 = self.consume_terminal("STRING") + xs1183.append(item1185) + cond1184 = self.match_lookahead_terminal("STRING", 0) + strings1186 = xs1183 self.consume_literal(")") - return strings1173 + return strings1186 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - string1174 = self.consume_terminal("STRING") + string1187 = self.consume_terminal("STRING") self.consume_literal(")") - return string1174 + return string1187 def parse_csv_config(self) -> logic_pb2.CSVConfig: - span_start1176 = self.span_start() + span_start1189 = self.span_start() self.consume_literal("(") self.consume_literal("csv_config") - _t1959 = self.parse_config_dict() - config_dict1175 = _t1959 + _t1986 = self.parse_config_dict() + config_dict1188 = _t1986 self.consume_literal(")") - _t1960 = self.construct_csv_config(config_dict1175) - result1177 = _t1960 - self.record_span(span_start1176, "CSVConfig") - return result1177 + _t1987 = self.construct_csv_config(config_dict1188) + result1190 = _t1987 + self.record_span(span_start1189, "CSVConfig") + return result1190 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 + xs1191 = [] + cond1192 = self.match_lookahead_literal("(", 0) + while cond1192: + _t1988 = self.parse_gnf_column() + item1193 = _t1988 + xs1191.append(item1193) + cond1192 = self.match_lookahead_literal("(", 0) + gnf_columns1194 = xs1191 self.consume_literal(")") - return gnf_columns1181 + return gnf_columns1194 def parse_gnf_column(self) -> logic_pb2.GNFColumn: - span_start1188 = self.span_start() + span_start1201 = self.span_start() self.consume_literal("(") self.consume_literal("column") - _t1962 = self.parse_gnf_column_path() - gnf_column_path1182 = _t1962 + _t1989 = self.parse_gnf_column_path() + gnf_column_path1195 = _t1989 if (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)): - _t1964 = self.parse_relation_id() - _t1963 = _t1964 + _t1991 = self.parse_relation_id() + _t1990 = _t1991 else: - _t1963 = None - relation_id1183 = _t1963 + _t1990 = None + relation_id1196 = _t1990 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 + xs1197 = [] + cond1198 = (((((((((((((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 cond1198: + _t1992 = self.parse_type() + item1199 = _t1992 + xs1197.append(item1199) + cond1198 = (((((((((((((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)) + types1200 = xs1197 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 + _t1993 = logic_pb2.GNFColumn(column_path=gnf_column_path1195, target_id=relation_id1196, types=types1200) + result1202 = _t1993 + self.record_span(span_start1201, "GNFColumn") + return result1202 def parse_gnf_column_path(self) -> Sequence[str]: if self.match_lookahead_literal("[", 0): - _t1967 = 1 + _t1994 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1968 = 0 + _t1995 = 0 else: - _t1968 = -1 - _t1967 = _t1968 - prediction1190 = _t1967 - if prediction1190 == 1: + _t1995 = -1 + _t1994 = _t1995 + prediction1203 = _t1994 + if prediction1203 == 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 + xs1205 = [] + cond1206 = self.match_lookahead_terminal("STRING", 0) + while cond1206: + item1207 = self.consume_terminal("STRING") + xs1205.append(item1207) + cond1206 = self.match_lookahead_terminal("STRING", 0) + strings1208 = xs1205 self.consume_literal("]") - _t1969 = strings1195 + _t1996 = strings1208 else: - if prediction1190 == 0: - string1191 = self.consume_terminal("STRING") - _t1970 = [string1191] + if prediction1203 == 0: + string1204 = self.consume_terminal("STRING") + _t1997 = [string1204] else: raise ParseError("Unexpected token in gnf_column_path" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1969 = _t1970 - return _t1969 + _t1996 = _t1997 + return _t1996 + + def parse_csv_table(self) -> logic_pb2.CSVTarget: + span_start1218 = self.span_start() + self.consume_literal("(") + self.consume_literal("table") + _t1998 = self.parse_relation_id() + relation_id1209 = _t1998 + self.consume_literal("[") + xs1210 = [] + cond1211 = self.match_lookahead_terminal("STRING", 0) + while cond1211: + item1212 = self.consume_terminal("STRING") + xs1210.append(item1212) + cond1211 = self.match_lookahead_terminal("STRING", 0) + strings1213 = xs1210 + self.consume_literal("]") + self.consume_literal("[") + xs1214 = [] + cond1215 = (((((((((((((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 cond1215: + _t1999 = self.parse_type() + item1216 = _t1999 + xs1214.append(item1216) + cond1215 = (((((((((((((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)) + types1217 = xs1214 + self.consume_literal("]") + self.consume_literal(")") + _t2000 = logic_pb2.CSVTarget(target_id=relation_id1209, column_names=strings1213, types=types1217) + result1219 = _t2000 + self.record_span(span_start1218, "CSVTarget") + return result1219 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string1196 = self.consume_terminal("STRING") + string1220 = self.consume_terminal("STRING") self.consume_literal(")") - return string1196 + return string1220 def parse_iceberg_data(self) -> logic_pb2.IcebergData: - span_start1203 = self.span_start() + span_start1227 = 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 + _t2001 = self.parse_iceberg_locator() + iceberg_locator1221 = _t2001 + _t2002 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1222 = _t2002 + _t2003 = self.parse_gnf_columns() + gnf_columns1223 = _t2003 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("from_snapshot", 1)): - _t1975 = self.parse_iceberg_from_snapshot() - _t1974 = _t1975 + _t2005 = self.parse_iceberg_from_snapshot() + _t2004 = _t2005 else: - _t1974 = None - iceberg_from_snapshot1200 = _t1974 + _t2004 = None + iceberg_from_snapshot1224 = _t2004 if self.match_lookahead_literal("(", 0): - _t1977 = self.parse_iceberg_to_snapshot() - _t1976 = _t1977 + _t2007 = self.parse_iceberg_to_snapshot() + _t2006 = _t2007 else: - _t1976 = None - iceberg_to_snapshot1201 = _t1976 - _t1978 = self.parse_boolean_value() - boolean_value1202 = _t1978 + _t2006 = None + iceberg_to_snapshot1225 = _t2006 + _t2008 = self.parse_boolean_value() + boolean_value1226 = _t2008 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 + _t2009 = self.construct_iceberg_data(iceberg_locator1221, iceberg_catalog_config1222, gnf_columns1223, iceberg_from_snapshot1224, iceberg_to_snapshot1225, boolean_value1226) + result1228 = _t2009 + self.record_span(span_start1227, "IcebergData") + return result1228 def parse_iceberg_locator(self) -> logic_pb2.IcebergLocator: - span_start1208 = self.span_start() + span_start1232 = 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 + _t2010 = self.parse_iceberg_locator_table_name() + iceberg_locator_table_name1229 = _t2010 + _t2011 = self.parse_iceberg_locator_namespace() + iceberg_locator_namespace1230 = _t2011 + _t2012 = self.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1231 = _t2012 + self.consume_literal(")") + _t2013 = logic_pb2.IcebergLocator(table_name=iceberg_locator_table_name1229, namespace=iceberg_locator_namespace1230, warehouse=iceberg_locator_warehouse1231) + result1233 = _t2013 + self.record_span(span_start1232, "IcebergLocator") + return result1233 def parse_iceberg_locator_table_name(self) -> str: self.consume_literal("(") self.consume_literal("table_name") - string1210 = self.consume_terminal("STRING") + string1234 = self.consume_terminal("STRING") self.consume_literal(")") - return string1210 + return string1234 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 + xs1235 = [] + cond1236 = self.match_lookahead_terminal("STRING", 0) + while cond1236: + item1237 = self.consume_terminal("STRING") + xs1235.append(item1237) + cond1236 = self.match_lookahead_terminal("STRING", 0) + strings1238 = xs1235 self.consume_literal(")") - return strings1214 + return strings1238 def parse_iceberg_locator_warehouse(self) -> str: self.consume_literal("(") self.consume_literal("warehouse") - string1215 = self.consume_terminal("STRING") + string1239 = self.consume_terminal("STRING") self.consume_literal(")") - return string1215 + return string1239 def parse_iceberg_catalog_config(self) -> logic_pb2.IcebergCatalogConfig: - span_start1220 = self.span_start() + span_start1244 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_catalog_config") - _t1984 = self.parse_iceberg_catalog_uri() - iceberg_catalog_uri1216 = _t1984 + _t2014 = self.parse_iceberg_catalog_uri() + iceberg_catalog_uri1240 = _t2014 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("scope", 1)): - _t1986 = self.parse_iceberg_catalog_config_scope() - _t1985 = _t1986 + _t2016 = self.parse_iceberg_catalog_config_scope() + _t2015 = _t2016 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 + _t2015 = None + iceberg_catalog_config_scope1241 = _t2015 + _t2017 = self.parse_iceberg_properties() + iceberg_properties1242 = _t2017 + _t2018 = self.parse_iceberg_auth_properties() + iceberg_auth_properties1243 = _t2018 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 + _t2019 = self.construct_iceberg_catalog_config(iceberg_catalog_uri1240, iceberg_catalog_config_scope1241, iceberg_properties1242, iceberg_auth_properties1243) + result1245 = _t2019 + self.record_span(span_start1244, "IcebergCatalogConfig") + return result1245 def parse_iceberg_catalog_uri(self) -> str: self.consume_literal("(") self.consume_literal("catalog_uri") - string1222 = self.consume_terminal("STRING") + string1246 = self.consume_terminal("STRING") self.consume_literal(")") - return string1222 + return string1246 def parse_iceberg_catalog_config_scope(self) -> str: self.consume_literal("(") self.consume_literal("scope") - string1223 = self.consume_terminal("STRING") + string1247 = self.consume_terminal("STRING") self.consume_literal(")") - return string1223 + return string1247 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 + xs1248 = [] + cond1249 = self.match_lookahead_literal("(", 0) + while cond1249: + _t2020 = self.parse_iceberg_property_entry() + item1250 = _t2020 + xs1248.append(item1250) + cond1249 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1251 = xs1248 self.consume_literal(")") - return iceberg_property_entrys1227 + return iceberg_property_entrys1251 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") + string1252 = self.consume_terminal("STRING") + string_31253 = self.consume_terminal("STRING") self.consume_literal(")") - return (string1228, string_31229,) + return (string1252, string_31253,) 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 + xs1254 = [] + cond1255 = self.match_lookahead_literal("(", 0) + while cond1255: + _t2021 = self.parse_iceberg_masked_property_entry() + item1256 = _t2021 + xs1254.append(item1256) + cond1255 = self.match_lookahead_literal("(", 0) + iceberg_masked_property_entrys1257 = xs1254 self.consume_literal(")") - return iceberg_masked_property_entrys1233 + return iceberg_masked_property_entrys1257 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") + string1258 = self.consume_terminal("STRING") + string_31259 = self.consume_terminal("STRING") self.consume_literal(")") - return (string1234, string_31235,) + return (string1258, string_31259,) def parse_iceberg_from_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("from_snapshot") - string1236 = self.consume_terminal("STRING") + string1260 = self.consume_terminal("STRING") self.consume_literal(")") - return string1236 + return string1260 def parse_iceberg_to_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("to_snapshot") - string1237 = self.consume_terminal("STRING") + string1261 = self.consume_terminal("STRING") self.consume_literal(")") - return string1237 + return string1261 def parse_undefine(self) -> transactions_pb2.Undefine: - span_start1239 = self.span_start() + span_start1263 = self.span_start() self.consume_literal("(") self.consume_literal("undefine") - _t1992 = self.parse_fragment_id() - fragment_id1238 = _t1992 + _t2022 = self.parse_fragment_id() + fragment_id1262 = _t2022 self.consume_literal(")") - _t1993 = transactions_pb2.Undefine(fragment_id=fragment_id1238) - result1240 = _t1993 - self.record_span(span_start1239, "Undefine") - return result1240 + _t2023 = transactions_pb2.Undefine(fragment_id=fragment_id1262) + result1264 = _t2023 + self.record_span(span_start1263, "Undefine") + return result1264 def parse_context(self) -> transactions_pb2.Context: - span_start1245 = self.span_start() + span_start1269 = 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 + xs1265 = [] + cond1266 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1266: + _t2024 = self.parse_relation_id() + item1267 = _t2024 + xs1265.append(item1267) + cond1266 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1268 = xs1265 + self.consume_literal(")") + _t2025 = transactions_pb2.Context(relations=relation_ids1268) + result1270 = _t2025 + self.record_span(span_start1269, "Context") + return result1270 def parse_snapshot(self) -> transactions_pb2.Snapshot: - span_start1252 = self.span_start() + span_start1276 = 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 + _t2026 = self.parse_edb_path() + edb_path1271 = _t2026 + xs1272 = [] + cond1273 = self.match_lookahead_literal("[", 0) + while cond1273: + _t2027 = self.parse_snapshot_mapping() + item1274 = _t2027 + xs1272.append(item1274) + cond1273 = self.match_lookahead_literal("[", 0) + snapshot_mappings1275 = xs1272 + self.consume_literal(")") + _t2028 = transactions_pb2.Snapshot(prefix=edb_path1271, mappings=snapshot_mappings1275) + result1277 = _t2028 + self.record_span(span_start1276, "Snapshot") + return result1277 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_start1280 = self.span_start() + _t2029 = self.parse_edb_path() + edb_path1278 = _t2029 + _t2030 = self.parse_relation_id() + relation_id1279 = _t2030 + _t2031 = transactions_pb2.SnapshotMapping(destination_path=edb_path1278, source_relation=relation_id1279) + result1281 = _t2031 + self.record_span(span_start1280, "SnapshotMapping") + return result1281 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 + xs1282 = [] + cond1283 = self.match_lookahead_literal("(", 0) + while cond1283: + _t2032 = self.parse_read() + item1284 = _t2032 + xs1282.append(item1284) + cond1283 = self.match_lookahead_literal("(", 0) + reads1285 = xs1282 self.consume_literal(")") - return reads1261 + return reads1285 def parse_read(self) -> transactions_pb2.Read: - span_start1268 = self.span_start() + span_start1292 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t2004 = 2 + _t2034 = 2 else: if self.match_lookahead_literal("output", 1): - _t2005 = 1 + _t2035 = 1 else: if self.match_lookahead_literal("export_iceberg", 1): - _t2006 = 4 + _t2036 = 4 else: if self.match_lookahead_literal("export", 1): - _t2007 = 4 + _t2037 = 4 else: if self.match_lookahead_literal("demand", 1): - _t2008 = 0 + _t2038 = 0 else: if self.match_lookahead_literal("abort", 1): - _t2009 = 3 + _t2039 = 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 + _t2039 = -1 + _t2038 = _t2039 + _t2037 = _t2038 + _t2036 = _t2037 + _t2035 = _t2036 + _t2034 = _t2035 + _t2033 = _t2034 + else: + _t2033 = -1 + prediction1286 = _t2033 + if prediction1286 == 4: + _t2041 = self.parse_export() + export1291 = _t2041 + _t2042 = transactions_pb2.Read(export=export1291) + _t2040 = _t2042 + else: + if prediction1286 == 3: + _t2044 = self.parse_abort() + abort1290 = _t2044 + _t2045 = transactions_pb2.Read(abort=abort1290) + _t2043 = _t2045 else: - if prediction1262 == 2: - _t2017 = self.parse_what_if() - what_if1265 = _t2017 - _t2018 = transactions_pb2.Read(what_if=what_if1265) - _t2016 = _t2018 + if prediction1286 == 2: + _t2047 = self.parse_what_if() + what_if1289 = _t2047 + _t2048 = transactions_pb2.Read(what_if=what_if1289) + _t2046 = _t2048 else: - if prediction1262 == 1: - _t2020 = self.parse_output() - output1264 = _t2020 - _t2021 = transactions_pb2.Read(output=output1264) - _t2019 = _t2021 + if prediction1286 == 1: + _t2050 = self.parse_output() + output1288 = _t2050 + _t2051 = transactions_pb2.Read(output=output1288) + _t2049 = _t2051 else: - if prediction1262 == 0: - _t2023 = self.parse_demand() - demand1263 = _t2023 - _t2024 = transactions_pb2.Read(demand=demand1263) - _t2022 = _t2024 + if prediction1286 == 0: + _t2053 = self.parse_demand() + demand1287 = _t2053 + _t2054 = transactions_pb2.Read(demand=demand1287) + _t2052 = _t2054 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 + _t2049 = _t2052 + _t2046 = _t2049 + _t2043 = _t2046 + _t2040 = _t2043 + result1293 = _t2040 + self.record_span(span_start1292, "Read") + return result1293 def parse_demand(self) -> transactions_pb2.Demand: - span_start1271 = self.span_start() + span_start1295 = self.span_start() self.consume_literal("(") self.consume_literal("demand") - _t2025 = self.parse_relation_id() - relation_id1270 = _t2025 + _t2055 = self.parse_relation_id() + relation_id1294 = _t2055 self.consume_literal(")") - _t2026 = transactions_pb2.Demand(relation_id=relation_id1270) - result1272 = _t2026 - self.record_span(span_start1271, "Demand") - return result1272 + _t2056 = transactions_pb2.Demand(relation_id=relation_id1294) + result1296 = _t2056 + self.record_span(span_start1295, "Demand") + return result1296 def parse_output(self) -> transactions_pb2.Output: - span_start1275 = self.span_start() + span_start1299 = self.span_start() self.consume_literal("(") self.consume_literal("output") - _t2027 = self.parse_name() - name1273 = _t2027 - _t2028 = self.parse_relation_id() - relation_id1274 = _t2028 + _t2057 = self.parse_name() + name1297 = _t2057 + _t2058 = self.parse_relation_id() + relation_id1298 = _t2058 self.consume_literal(")") - _t2029 = transactions_pb2.Output(name=name1273, relation_id=relation_id1274) - result1276 = _t2029 - self.record_span(span_start1275, "Output") - return result1276 + _t2059 = transactions_pb2.Output(name=name1297, relation_id=relation_id1298) + result1300 = _t2059 + self.record_span(span_start1299, "Output") + return result1300 def parse_what_if(self) -> transactions_pb2.WhatIf: - span_start1279 = self.span_start() + span_start1303 = self.span_start() self.consume_literal("(") self.consume_literal("what_if") - _t2030 = self.parse_name() - name1277 = _t2030 - _t2031 = self.parse_epoch() - epoch1278 = _t2031 + _t2060 = self.parse_name() + name1301 = _t2060 + _t2061 = self.parse_epoch() + epoch1302 = _t2061 self.consume_literal(")") - _t2032 = transactions_pb2.WhatIf(branch=name1277, epoch=epoch1278) - result1280 = _t2032 - self.record_span(span_start1279, "WhatIf") - return result1280 + _t2062 = transactions_pb2.WhatIf(branch=name1301, epoch=epoch1302) + result1304 = _t2062 + self.record_span(span_start1303, "WhatIf") + return result1304 def parse_abort(self) -> transactions_pb2.Abort: - span_start1283 = self.span_start() + span_start1307 = 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 + _t2064 = self.parse_name() + _t2063 = _t2064 else: - _t2033 = None - name1281 = _t2033 - _t2035 = self.parse_relation_id() - relation_id1282 = _t2035 + _t2063 = None + name1305 = _t2063 + _t2065 = self.parse_relation_id() + relation_id1306 = _t2065 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 + _t2066 = transactions_pb2.Abort(name=(name1305 if name1305 is not None else "abort"), relation_id=relation_id1306) + result1308 = _t2066 + self.record_span(span_start1307, "Abort") + return result1308 def parse_export(self) -> transactions_pb2.Export: - span_start1288 = self.span_start() + span_start1312 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_iceberg", 1): - _t2038 = 1 + _t2068 = 1 else: if self.match_lookahead_literal("export", 1): - _t2039 = 0 + _t2069 = 0 else: - _t2039 = -1 - _t2038 = _t2039 - _t2037 = _t2038 + _t2069 = -1 + _t2068 = _t2069 + _t2067 = _t2068 else: - _t2037 = -1 - prediction1285 = _t2037 - if prediction1285 == 1: + _t2067 = -1 + prediction1309 = _t2067 + if prediction1309 == 1: self.consume_literal("(") self.consume_literal("export_iceberg") - _t2041 = self.parse_export_iceberg_config() - export_iceberg_config1287 = _t2041 + _t2071 = self.parse_export_iceberg_config() + export_iceberg_config1311 = _t2071 self.consume_literal(")") - _t2042 = transactions_pb2.Export(iceberg_config=export_iceberg_config1287) - _t2040 = _t2042 + _t2072 = transactions_pb2.Export(iceberg_config=export_iceberg_config1311) + _t2070 = _t2072 else: - if prediction1285 == 0: + if prediction1309 == 0: self.consume_literal("(") self.consume_literal("export") - _t2044 = self.parse_export_csv_config() - export_csv_config1286 = _t2044 + _t2074 = self.parse_export_csv_config() + export_csv_config1310 = _t2074 self.consume_literal(")") - _t2045 = transactions_pb2.Export(csv_config=export_csv_config1286) - _t2043 = _t2045 + _t2075 = transactions_pb2.Export(csv_config=export_csv_config1310) + _t2073 = _t2075 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 + _t2070 = _t2073 + result1313 = _t2070 + self.record_span(span_start1312, "Export") + return result1313 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - span_start1297 = self.span_start() + span_start1321 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_csv_config_v2", 1): - _t2047 = 0 + _t2077 = 0 else: if self.match_lookahead_literal("export_csv_config", 1): - _t2048 = 1 + _t2078 = 1 else: - _t2048 = -1 - _t2047 = _t2048 - _t2046 = _t2047 + _t2078 = -1 + _t2077 = _t2078 + _t2076 = _t2077 else: - _t2046 = -1 - prediction1290 = _t2046 - if prediction1290 == 1: + _t2076 = -1 + prediction1314 = _t2076 + if prediction1314 == 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 + _t2080 = self.parse_export_csv_path() + export_csv_path1318 = _t2080 + _t2081 = self.parse_export_csv_columns_list() + export_csv_columns_list1319 = _t2081 + _t2082 = self.parse_config_dict() + config_dict1320 = _t2082 self.consume_literal(")") - _t2053 = self.construct_export_csv_config(export_csv_path1294, export_csv_columns_list1295, config_dict1296) - _t2049 = _t2053 + _t2083 = self.construct_export_csv_config(export_csv_path1318, export_csv_columns_list1319, config_dict1320) + _t2079 = _t2083 else: - if prediction1290 == 0: + if prediction1314 == 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 + _t2085 = self.parse_export_csv_path() + export_csv_path1315 = _t2085 + _t2086 = self.parse_export_csv_source() + export_csv_source1316 = _t2086 + _t2087 = self.parse_csv_config() + csv_config1317 = _t2087 self.consume_literal(")") - _t2058 = self.construct_export_csv_config_with_source(export_csv_path1291, export_csv_source1292, csv_config1293) - _t2054 = _t2058 + _t2088 = self.construct_export_csv_config_with_source(export_csv_path1315, export_csv_source1316, csv_config1317) + _t2084 = _t2088 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 + _t2079 = _t2084 + result1322 = _t2079 + self.record_span(span_start1321, "ExportCSVConfig") + return result1322 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string1299 = self.consume_terminal("STRING") + string1323 = self.consume_terminal("STRING") self.consume_literal(")") - return string1299 + return string1323 def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: - span_start1306 = self.span_start() + span_start1330 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("table_def", 1): - _t2060 = 1 + _t2090 = 1 else: if self.match_lookahead_literal("gnf_columns", 1): - _t2061 = 0 + _t2091 = 0 else: - _t2061 = -1 - _t2060 = _t2061 - _t2059 = _t2060 + _t2091 = -1 + _t2090 = _t2091 + _t2089 = _t2090 else: - _t2059 = -1 - prediction1300 = _t2059 - if prediction1300 == 1: + _t2089 = -1 + prediction1324 = _t2089 + if prediction1324 == 1: self.consume_literal("(") self.consume_literal("table_def") - _t2063 = self.parse_relation_id() - relation_id1305 = _t2063 + _t2093 = self.parse_relation_id() + relation_id1329 = _t2093 self.consume_literal(")") - _t2064 = transactions_pb2.ExportCSVSource(table_def=relation_id1305) - _t2062 = _t2064 + _t2094 = transactions_pb2.ExportCSVSource(table_def=relation_id1329) + _t2092 = _t2094 else: - if prediction1300 == 0: + if prediction1324 == 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 + xs1325 = [] + cond1326 = self.match_lookahead_literal("(", 0) + while cond1326: + _t2096 = self.parse_export_csv_column() + item1327 = _t2096 + xs1325.append(item1327) + cond1326 = self.match_lookahead_literal("(", 0) + export_csv_columns1328 = xs1325 self.consume_literal(")") - _t2067 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1304) - _t2068 = transactions_pb2.ExportCSVSource(gnf_columns=_t2067) - _t2065 = _t2068 + _t2097 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1328) + _t2098 = transactions_pb2.ExportCSVSource(gnf_columns=_t2097) + _t2095 = _t2098 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 + _t2092 = _t2095 + result1331 = _t2092 + self.record_span(span_start1330, "ExportCSVSource") + return result1331 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: - span_start1310 = self.span_start() + span_start1334 = self.span_start() self.consume_literal("(") self.consume_literal("column") - string1308 = self.consume_terminal("STRING") - _t2069 = self.parse_relation_id() - relation_id1309 = _t2069 + string1332 = self.consume_terminal("STRING") + _t2099 = self.parse_relation_id() + relation_id1333 = _t2099 self.consume_literal(")") - _t2070 = transactions_pb2.ExportCSVColumn(column_name=string1308, column_data=relation_id1309) - result1311 = _t2070 - self.record_span(span_start1310, "ExportCSVColumn") - return result1311 + _t2100 = transactions_pb2.ExportCSVColumn(column_name=string1332, column_data=relation_id1333) + result1335 = _t2100 + self.record_span(span_start1334, "ExportCSVColumn") + return result1335 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 + xs1336 = [] + cond1337 = self.match_lookahead_literal("(", 0) + while cond1337: + _t2101 = self.parse_export_csv_column() + item1338 = _t2101 + xs1336.append(item1338) + cond1337 = self.match_lookahead_literal("(", 0) + export_csv_columns1339 = xs1336 self.consume_literal(")") - return export_csv_columns1315 + return export_csv_columns1339 def parse_export_iceberg_config(self) -> transactions_pb2.ExportIcebergConfig: - span_start1321 = self.span_start() + span_start1345 = 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 + _t2102 = self.parse_iceberg_locator() + iceberg_locator1340 = _t2102 + _t2103 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1341 = _t2103 + _t2104 = self.parse_export_iceberg_table_def() + export_iceberg_table_def1342 = _t2104 + _t2105 = self.parse_iceberg_table_properties() + iceberg_table_properties1343 = _t2105 if self.match_lookahead_literal("{", 0): - _t2077 = self.parse_config_dict() - _t2076 = _t2077 + _t2107 = self.parse_config_dict() + _t2106 = _t2107 else: - _t2076 = None - config_dict1320 = _t2076 + _t2106 = None + config_dict1344 = _t2106 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 + _t2108 = self.construct_export_iceberg_config_full(iceberg_locator1340, iceberg_catalog_config1341, export_iceberg_table_def1342, iceberg_table_properties1343, config_dict1344) + result1346 = _t2108 + self.record_span(span_start1345, "ExportIcebergConfig") + return result1346 def parse_export_iceberg_table_def(self) -> logic_pb2.RelationId: - span_start1324 = self.span_start() + span_start1348 = self.span_start() self.consume_literal("(") self.consume_literal("table_def") - _t2079 = self.parse_relation_id() - relation_id1323 = _t2079 + _t2109 = self.parse_relation_id() + relation_id1347 = _t2109 self.consume_literal(")") - result1325 = relation_id1323 - self.record_span(span_start1324, "RelationId") - return result1325 + result1349 = relation_id1347 + self.record_span(span_start1348, "RelationId") + return result1349 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 + xs1350 = [] + cond1351 = self.match_lookahead_literal("(", 0) + while cond1351: + _t2110 = self.parse_iceberg_property_entry() + item1352 = _t2110 + xs1350.append(item1352) + cond1351 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1353 = xs1350 + self.consume_literal(")") + return iceberg_property_entrys1353 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..99597cef 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 + _t1759 = logic_pb2.Value(int32_value=v) + return _t1759 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1732 = logic_pb2.Value(int_value=v) - return _t1732 + _t1760 = logic_pb2.Value(int_value=v) + return _t1760 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1733 = logic_pb2.Value(float_value=v) - return _t1733 + _t1761 = logic_pb2.Value(float_value=v) + return _t1761 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1734 = logic_pb2.Value(string_value=v) - return _t1734 + _t1762 = logic_pb2.Value(string_value=v) + return _t1762 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1735 = logic_pb2.Value(boolean_value=v) - return _t1735 + _t1763 = logic_pb2.Value(boolean_value=v) + return _t1763 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1736 = logic_pb2.Value(uint128_value=v) - return _t1736 + _t1764 = logic_pb2.Value(uint128_value=v) + return _t1764 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,)) + _t1765 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1765,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1738 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1738,)) + _t1766 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1766,)) 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,)) + _t1767 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1767,)) + _t1768 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1768,)) 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,)) + _t1769 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1769,)) + _t1770 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1770,)) 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,)) + _t1771 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1771,)) + _t1772 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1772,)) + _t1773 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1773,)) + _t1774 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1774,)) if msg.comment != "": - _t1747 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1747,)) + _t1775 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1775,)) 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,)) + _t1776 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1776,)) + _t1777 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1777,)) + _t1778 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1778,)) + _t1779 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1779,)) if msg.partition_size_mb != 0: - _t1752 = self._make_value_int64(msg.partition_size_mb) - result.append(("csv_partition_size_mb", _t1752,)) + _t1780 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1780,)) 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,)) + _t1781 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1781,)) + _t1782 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1782,)) + _t1783 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1783,)) + _t1784 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1784,)) 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,)) + _t1785 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1785,)) 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,)) + _t1786 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1786,)) + _t1787 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1787,)) + _t1788 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1788,)) 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,)) + _t1789 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1789,)) if msg.compression is not None: assert msg.compression is not None - _t1762 = self._make_value_string(msg.compression) - result.append(("compression", _t1762,)) + _t1790 = self._make_value_string(msg.compression) + result.append(("compression", _t1790,)) 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,)) + _t1791 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1791,)) 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,)) + _t1792 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1792,)) 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,)) + _t1793 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1793,)) 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,)) + _t1794 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1794,)) 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,)) + _t1795 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1795,)) 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 + _t1796 = 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 + _t1797 = None return None def deconstruct_iceberg_data_to_snapshot_optional(self, msg: logic_pb2.IcebergData) -> str | None: @@ -374,7 +374,22 @@ 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 + _t1798 = None + return None + + def deconstruct_csv_data_columns_optional(self, msg: logic_pb2.CSVData) -> Sequence[logic_pb2.GNFColumn] | None: + if not msg.HasField("target"): + return msg.columns + else: + _t1799 = None + return None + + def deconstruct_csv_data_target_optional(self, msg: logic_pb2.CSVData) -> logic_pb2.CSVTarget | None: + if msg.HasField("target"): + assert msg.target is not None + return msg.target + else: + _t1800 = None return None def deconstruct_export_iceberg_config_optional(self, msg: transactions_pb2.ExportIcebergConfig) -> Sequence[tuple[str, logic_pb2.Value]] | None: @@ -382,20 +397,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,)) + _t1801 = self._make_value_string(msg.prefix) + result.append(("prefix", _t1801,)) 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,)) + _t1802 = self._make_value_int64(msg.target_file_size_bytes) + result.append(("target_file_size_bytes", _t1802,)) if msg.compression != "": - _t1773 = self._make_value_string(msg.compression) - result.append(("compression", _t1773,)) + _t1803 = self._make_value_string(msg.compression) + result.append(("compression", _t1803,)) if len(result) == 0: return None else: - _t1774 = None + _t1804 = None return sorted(result) def deconstruct_relation_id_string(self, msg: logic_pb2.RelationId) -> str: @@ -408,7 +423,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 + _t1805 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -423,3913 +438,3959 @@ 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) + flat816 = self._try_flat(msg, self.pretty_transaction) + if flat816 is not None: + assert flat816 is not None + self.write(flat816) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("configure"): - _t1588 = _dollar_dollar.configure + _t1614 = _dollar_dollar.configure else: - _t1588 = None + _t1614 = None if _dollar_dollar.HasField("sync"): - _t1589 = _dollar_dollar.sync + _t1615 = _dollar_dollar.sync else: - _t1589 = None - fields794 = (_t1588, _t1589, _dollar_dollar.epochs,) - assert fields794 is not None - unwrapped_fields795 = fields794 + _t1615 = None + fields807 = (_t1614, _t1615, _dollar_dollar.epochs,) + assert fields807 is not None + unwrapped_fields808 = fields807 self.write("(transaction") self.indent_sexp() - field796 = unwrapped_fields795[0] - if field796 is not None: + field809 = unwrapped_fields808[0] + if field809 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 field809 is not None + opt_val810 = field809 + self.pretty_configure(opt_val810) + field811 = unwrapped_fields808[1] + if field811 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 field811 is not None + opt_val812 = field811 + self.pretty_sync(opt_val812) + field813 = unwrapped_fields808[2] + if not len(field813) == 0: self.newline() - for i802, elem801 in enumerate(field800): - if (i802 > 0): + for i815, elem814 in enumerate(field813): + if (i815 > 0): self.newline() - self.pretty_epoch(elem801) + self.pretty_epoch(elem814) 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) + flat819 = self._try_flat(msg, self.pretty_configure) + if flat819 is not None: + assert flat819 is not None + self.write(flat819) return None else: _dollar_dollar = msg - _t1590 = self.deconstruct_configure(_dollar_dollar) - fields804 = _t1590 - assert fields804 is not None - unwrapped_fields805 = fields804 + _t1616 = self.deconstruct_configure(_dollar_dollar) + fields817 = _t1616 + assert fields817 is not None + unwrapped_fields818 = fields817 self.write("(configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields805) + self.pretty_config_dict(unwrapped_fields818) 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) + flat823 = self._try_flat(msg, self.pretty_config_dict) + if flat823 is not None: + assert flat823 is not None + self.write(flat823) return None else: - fields807 = msg + fields820 = msg self.write("{") self.indent() - if not len(fields807) == 0: + if not len(fields820) == 0: self.newline() - for i809, elem808 in enumerate(fields807): - if (i809 > 0): + for i822, elem821 in enumerate(fields820): + if (i822 > 0): self.newline() - self.pretty_config_key_value(elem808) + self.pretty_config_key_value(elem821) 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) + flat828 = self._try_flat(msg, self.pretty_config_key_value) + if flat828 is not None: + assert flat828 is not None + self.write(flat828) return None else: _dollar_dollar = msg - fields811 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields811 is not None - unwrapped_fields812 = fields811 + fields824 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields824 is not None + unwrapped_fields825 = fields824 self.write(":") - field813 = unwrapped_fields812[0] - self.write(field813) + field826 = unwrapped_fields825[0] + self.write(field826) self.write(" ") - field814 = unwrapped_fields812[1] - self.pretty_raw_value(field814) + field827 = unwrapped_fields825[1] + self.pretty_raw_value(field827) 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) + flat854 = self._try_flat(msg, self.pretty_raw_value) + if flat854 is not None: + assert flat854 is not None + self.write(flat854) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1591 = _dollar_dollar.date_value + _t1617 = _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) + _t1617 = None + deconstruct_result852 = _t1617 + if deconstruct_result852 is not None: + assert deconstruct_result852 is not None + unwrapped853 = deconstruct_result852 + self.pretty_raw_date(unwrapped853) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1592 = _dollar_dollar.datetime_value + _t1618 = _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) + _t1618 = None + deconstruct_result850 = _t1618 + if deconstruct_result850 is not None: + assert deconstruct_result850 is not None + unwrapped851 = deconstruct_result850 + self.pretty_raw_datetime(unwrapped851) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1593 = _dollar_dollar.string_value + _t1619 = _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)) + _t1619 = None + deconstruct_result848 = _t1619 + if deconstruct_result848 is not None: + assert deconstruct_result848 is not None + unwrapped849 = deconstruct_result848 + self.write(self.format_string_value(unwrapped849)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1594 = _dollar_dollar.int32_value + _t1620 = _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')) + _t1620 = None + deconstruct_result846 = _t1620 + if deconstruct_result846 is not None: + assert deconstruct_result846 is not None + unwrapped847 = deconstruct_result846 + self.write((str(unwrapped847) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1595 = _dollar_dollar.int_value + _t1621 = _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)) + _t1621 = None + deconstruct_result844 = _t1621 + if deconstruct_result844 is not None: + assert deconstruct_result844 is not None + unwrapped845 = deconstruct_result844 + self.write(str(unwrapped845)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1596 = _dollar_dollar.float32_value + _t1622 = _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)) + _t1622 = None + deconstruct_result842 = _t1622 + if deconstruct_result842 is not None: + assert deconstruct_result842 is not None + unwrapped843 = deconstruct_result842 + self.write(self.format_float32_literal(unwrapped843)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1597 = _dollar_dollar.float_value + _t1623 = _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)) + _t1623 = None + deconstruct_result840 = _t1623 + if deconstruct_result840 is not None: + assert deconstruct_result840 is not None + unwrapped841 = deconstruct_result840 + self.write(str(unwrapped841)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1598 = _dollar_dollar.uint32_value + _t1624 = _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')) + _t1624 = None + deconstruct_result838 = _t1624 + if deconstruct_result838 is not None: + assert deconstruct_result838 is not None + unwrapped839 = deconstruct_result838 + self.write((str(unwrapped839) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1599 = _dollar_dollar.uint128_value + _t1625 = _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)) + _t1625 = None + deconstruct_result836 = _t1625 + if deconstruct_result836 is not None: + assert deconstruct_result836 is not None + unwrapped837 = deconstruct_result836 + self.write(self.format_uint128(unwrapped837)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1600 = _dollar_dollar.int128_value + _t1626 = _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)) + _t1626 = None + deconstruct_result834 = _t1626 + if deconstruct_result834 is not None: + assert deconstruct_result834 is not None + unwrapped835 = deconstruct_result834 + self.write(self.format_int128(unwrapped835)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1601 = _dollar_dollar.decimal_value + _t1627 = _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)) + _t1627 = None + deconstruct_result832 = _t1627 + if deconstruct_result832 is not None: + assert deconstruct_result832 is not None + unwrapped833 = deconstruct_result832 + self.write(self.format_decimal(unwrapped833)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1602 = _dollar_dollar.boolean_value + _t1628 = _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) + _t1628 = None + deconstruct_result830 = _t1628 + if deconstruct_result830 is not None: + assert deconstruct_result830 is not None + unwrapped831 = deconstruct_result830 + self.pretty_boolean_value(unwrapped831) else: - fields816 = msg + fields829 = 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) + flat860 = self._try_flat(msg, self.pretty_raw_date) + if flat860 is not None: + assert flat860 is not None + self.write(flat860) 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 + fields855 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields855 is not None + unwrapped_fields856 = fields855 self.write("(date") self.indent_sexp() self.newline() - field844 = unwrapped_fields843[0] - self.write(str(field844)) + field857 = unwrapped_fields856[0] + self.write(str(field857)) self.newline() - field845 = unwrapped_fields843[1] - self.write(str(field845)) + field858 = unwrapped_fields856[1] + self.write(str(field858)) self.newline() - field846 = unwrapped_fields843[2] - self.write(str(field846)) + field859 = unwrapped_fields856[2] + self.write(str(field859)) 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) + flat871 = self._try_flat(msg, self.pretty_raw_datetime) + if flat871 is not None: + assert flat871 is not None + self.write(flat871) 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 + fields861 = (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 fields861 is not None + unwrapped_fields862 = fields861 self.write("(datetime") self.indent_sexp() self.newline() - field850 = unwrapped_fields849[0] - self.write(str(field850)) + field863 = unwrapped_fields862[0] + self.write(str(field863)) self.newline() - field851 = unwrapped_fields849[1] - self.write(str(field851)) + field864 = unwrapped_fields862[1] + self.write(str(field864)) self.newline() - field852 = unwrapped_fields849[2] - self.write(str(field852)) + field865 = unwrapped_fields862[2] + self.write(str(field865)) self.newline() - field853 = unwrapped_fields849[3] - self.write(str(field853)) + field866 = unwrapped_fields862[3] + self.write(str(field866)) self.newline() - field854 = unwrapped_fields849[4] - self.write(str(field854)) + field867 = unwrapped_fields862[4] + self.write(str(field867)) self.newline() - field855 = unwrapped_fields849[5] - self.write(str(field855)) - field856 = unwrapped_fields849[6] - if field856 is not None: + field868 = unwrapped_fields862[5] + self.write(str(field868)) + field869 = unwrapped_fields862[6] + if field869 is not None: self.newline() - assert field856 is not None - opt_val857 = field856 - self.write(str(opt_val857)) + assert field869 is not None + opt_val870 = field869 + self.write(str(opt_val870)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): _dollar_dollar = msg if _dollar_dollar: - _t1603 = () + _t1629 = () else: - _t1603 = None - deconstruct_result861 = _t1603 - if deconstruct_result861 is not None: - assert deconstruct_result861 is not None - unwrapped862 = deconstruct_result861 + _t1629 = None + deconstruct_result874 = _t1629 + if deconstruct_result874 is not None: + assert deconstruct_result874 is not None + unwrapped875 = deconstruct_result874 self.write("true") else: _dollar_dollar = msg if not _dollar_dollar: - _t1604 = () + _t1630 = () else: - _t1604 = None - deconstruct_result859 = _t1604 - if deconstruct_result859 is not None: - assert deconstruct_result859 is not None - unwrapped860 = deconstruct_result859 + _t1630 = None + deconstruct_result872 = _t1630 + if deconstruct_result872 is not None: + assert deconstruct_result872 is not None + unwrapped873 = deconstruct_result872 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) + flat880 = self._try_flat(msg, self.pretty_sync) + if flat880 is not None: + assert flat880 is not None + self.write(flat880) return None else: _dollar_dollar = msg - fields863 = _dollar_dollar.fragments - assert fields863 is not None - unwrapped_fields864 = fields863 + fields876 = _dollar_dollar.fragments + assert fields876 is not None + unwrapped_fields877 = fields876 self.write("(sync") self.indent_sexp() - if not len(unwrapped_fields864) == 0: + if not len(unwrapped_fields877) == 0: self.newline() - for i866, elem865 in enumerate(unwrapped_fields864): - if (i866 > 0): + for i879, elem878 in enumerate(unwrapped_fields877): + if (i879 > 0): self.newline() - self.pretty_fragment_id(elem865) + self.pretty_fragment_id(elem878) 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) + flat883 = self._try_flat(msg, self.pretty_fragment_id) + if flat883 is not None: + assert flat883 is not None + self.write(flat883) return None else: _dollar_dollar = msg - fields868 = self.fragment_id_to_string(_dollar_dollar) - assert fields868 is not None - unwrapped_fields869 = fields868 + fields881 = self.fragment_id_to_string(_dollar_dollar) + assert fields881 is not None + unwrapped_fields882 = fields881 self.write(":") - self.write(unwrapped_fields869) + self.write(unwrapped_fields882) 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) + flat890 = self._try_flat(msg, self.pretty_epoch) + if flat890 is not None: + assert flat890 is not None + self.write(flat890) return None else: _dollar_dollar = msg if not len(_dollar_dollar.writes) == 0: - _t1605 = _dollar_dollar.writes + _t1631 = _dollar_dollar.writes else: - _t1605 = None + _t1631 = None if not len(_dollar_dollar.reads) == 0: - _t1606 = _dollar_dollar.reads + _t1632 = _dollar_dollar.reads else: - _t1606 = None - fields871 = (_t1605, _t1606,) - assert fields871 is not None - unwrapped_fields872 = fields871 + _t1632 = None + fields884 = (_t1631, _t1632,) + assert fields884 is not None + unwrapped_fields885 = fields884 self.write("(epoch") self.indent_sexp() - field873 = unwrapped_fields872[0] - if field873 is not None: + field886 = unwrapped_fields885[0] + if field886 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 field886 is not None + opt_val887 = field886 + self.pretty_epoch_writes(opt_val887) + field888 = unwrapped_fields885[1] + if field888 is not None: self.newline() - assert field875 is not None - opt_val876 = field875 - self.pretty_epoch_reads(opt_val876) + assert field888 is not None + opt_val889 = field888 + self.pretty_epoch_reads(opt_val889) 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) + flat894 = self._try_flat(msg, self.pretty_epoch_writes) + if flat894 is not None: + assert flat894 is not None + self.write(flat894) return None else: - fields878 = msg + fields891 = msg self.write("(writes") self.indent_sexp() - if not len(fields878) == 0: + if not len(fields891) == 0: self.newline() - for i880, elem879 in enumerate(fields878): - if (i880 > 0): + for i893, elem892 in enumerate(fields891): + if (i893 > 0): self.newline() - self.pretty_write(elem879) + self.pretty_write(elem892) 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) + flat903 = self._try_flat(msg, self.pretty_write) + if flat903 is not None: + assert flat903 is not None + self.write(flat903) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("define"): - _t1607 = _dollar_dollar.define + _t1633 = _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) + _t1633 = None + deconstruct_result901 = _t1633 + if deconstruct_result901 is not None: + assert deconstruct_result901 is not None + unwrapped902 = deconstruct_result901 + self.pretty_define(unwrapped902) else: _dollar_dollar = msg if _dollar_dollar.HasField("undefine"): - _t1608 = _dollar_dollar.undefine + _t1634 = _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) + _t1634 = None + deconstruct_result899 = _t1634 + if deconstruct_result899 is not None: + assert deconstruct_result899 is not None + unwrapped900 = deconstruct_result899 + self.pretty_undefine(unwrapped900) else: _dollar_dollar = msg if _dollar_dollar.HasField("context"): - _t1609 = _dollar_dollar.context + _t1635 = _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) + _t1635 = None + deconstruct_result897 = _t1635 + if deconstruct_result897 is not None: + assert deconstruct_result897 is not None + unwrapped898 = deconstruct_result897 + self.pretty_context(unwrapped898) else: _dollar_dollar = msg if _dollar_dollar.HasField("snapshot"): - _t1610 = _dollar_dollar.snapshot + _t1636 = _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) + _t1636 = None + deconstruct_result895 = _t1636 + if deconstruct_result895 is not None: + assert deconstruct_result895 is not None + unwrapped896 = deconstruct_result895 + self.pretty_snapshot(unwrapped896) 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) + flat906 = self._try_flat(msg, self.pretty_define) + if flat906 is not None: + assert flat906 is not None + self.write(flat906) return None else: _dollar_dollar = msg - fields891 = _dollar_dollar.fragment - assert fields891 is not None - unwrapped_fields892 = fields891 + fields904 = _dollar_dollar.fragment + assert fields904 is not None + unwrapped_fields905 = fields904 self.write("(define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields892) + self.pretty_fragment(unwrapped_fields905) 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) + flat913 = self._try_flat(msg, self.pretty_fragment) + if flat913 is not None: + assert flat913 is not None + self.write(flat913) 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 + fields907 = (_dollar_dollar.id, _dollar_dollar.declarations,) + assert fields907 is not None + unwrapped_fields908 = fields907 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: + field909 = unwrapped_fields908[0] + self.pretty_new_fragment_id(field909) + field910 = unwrapped_fields908[1] + if not len(field910) == 0: self.newline() - for i899, elem898 in enumerate(field897): - if (i899 > 0): + for i912, elem911 in enumerate(field910): + if (i912 > 0): self.newline() - self.pretty_declaration(elem898) + self.pretty_declaration(elem911) 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) + flat915 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat915 is not None: + assert flat915 is not None + self.write(flat915) return None else: - fields901 = msg - self.pretty_fragment_id(fields901) + fields914 = msg + self.pretty_fragment_id(fields914) 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) + flat924 = self._try_flat(msg, self.pretty_declaration) + if flat924 is not None: + assert flat924 is not None + self.write(flat924) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("def"): - _t1611 = getattr(_dollar_dollar, 'def') + _t1637 = 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) + _t1637 = None + deconstruct_result922 = _t1637 + if deconstruct_result922 is not None: + assert deconstruct_result922 is not None + unwrapped923 = deconstruct_result922 + self.pretty_def(unwrapped923) else: _dollar_dollar = msg if _dollar_dollar.HasField("algorithm"): - _t1612 = _dollar_dollar.algorithm + _t1638 = _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) + _t1638 = None + deconstruct_result920 = _t1638 + if deconstruct_result920 is not None: + assert deconstruct_result920 is not None + unwrapped921 = deconstruct_result920 + self.pretty_algorithm(unwrapped921) else: _dollar_dollar = msg if _dollar_dollar.HasField("constraint"): - _t1613 = _dollar_dollar.constraint + _t1639 = _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) + _t1639 = None + deconstruct_result918 = _t1639 + if deconstruct_result918 is not None: + assert deconstruct_result918 is not None + unwrapped919 = deconstruct_result918 + self.pretty_constraint(unwrapped919) else: _dollar_dollar = msg if _dollar_dollar.HasField("data"): - _t1614 = _dollar_dollar.data + _t1640 = _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) + _t1640 = None + deconstruct_result916 = _t1640 + if deconstruct_result916 is not None: + assert deconstruct_result916 is not None + unwrapped917 = deconstruct_result916 + self.pretty_data(unwrapped917) 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) + flat931 = self._try_flat(msg, self.pretty_def) + if flat931 is not None: + assert flat931 is not None + self.write(flat931) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1615 = _dollar_dollar.attrs + _t1641 = _dollar_dollar.attrs else: - _t1615 = None - fields912 = (_dollar_dollar.name, _dollar_dollar.body, _t1615,) - assert fields912 is not None - unwrapped_fields913 = fields912 + _t1641 = None + fields925 = (_dollar_dollar.name, _dollar_dollar.body, _t1641,) + assert fields925 is not None + unwrapped_fields926 = fields925 self.write("(def") self.indent_sexp() self.newline() - field914 = unwrapped_fields913[0] - self.pretty_relation_id(field914) + field927 = unwrapped_fields926[0] + self.pretty_relation_id(field927) self.newline() - field915 = unwrapped_fields913[1] - self.pretty_abstraction(field915) - field916 = unwrapped_fields913[2] - if field916 is not None: + field928 = unwrapped_fields926[1] + self.pretty_abstraction(field928) + field929 = unwrapped_fields926[2] + if field929 is not None: self.newline() - assert field916 is not None - opt_val917 = field916 - self.pretty_attrs(opt_val917) + assert field929 is not None + opt_val930 = field929 + self.pretty_attrs(opt_val930) 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) + flat936 = self._try_flat(msg, self.pretty_relation_id) + if flat936 is not None: + assert flat936 is not None + self.write(flat936) 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 + _t1643 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1642 = _t1643 else: - _t1616 = None - deconstruct_result921 = _t1616 - if deconstruct_result921 is not None: - assert deconstruct_result921 is not None - unwrapped922 = deconstruct_result921 + _t1642 = None + deconstruct_result934 = _t1642 + if deconstruct_result934 is not None: + assert deconstruct_result934 is not None + unwrapped935 = deconstruct_result934 self.write(":") - self.write(unwrapped922) + self.write(unwrapped935) 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)) + _t1644 = self.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result932 = _t1644 + if deconstruct_result932 is not None: + assert deconstruct_result932 is not None + unwrapped933 = deconstruct_result932 + self.write(self.format_uint128(unwrapped933)) 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) + flat941 = self._try_flat(msg, self.pretty_abstraction) + if flat941 is not None: + assert flat941 is not None + self.write(flat941) 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 + _t1645 = self.deconstruct_bindings(_dollar_dollar) + fields937 = (_t1645, _dollar_dollar.value,) + assert fields937 is not None + unwrapped_fields938 = fields937 self.write("(") self.indent() - field926 = unwrapped_fields925[0] - self.pretty_bindings(field926) + field939 = unwrapped_fields938[0] + self.pretty_bindings(field939) self.newline() - field927 = unwrapped_fields925[1] - self.pretty_formula(field927) + field940 = unwrapped_fields938[1] + self.pretty_formula(field940) 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) + flat949 = self._try_flat(msg, self.pretty_bindings) + if flat949 is not None: + assert flat949 is not None + self.write(flat949) return None else: _dollar_dollar = msg if not len(_dollar_dollar[1]) == 0: - _t1620 = _dollar_dollar[1] + _t1646 = _dollar_dollar[1] else: - _t1620 = None - fields929 = (_dollar_dollar[0], _t1620,) - assert fields929 is not None - unwrapped_fields930 = fields929 + _t1646 = None + fields942 = (_dollar_dollar[0], _t1646,) + assert fields942 is not None + unwrapped_fields943 = fields942 self.write("[") self.indent() - field931 = unwrapped_fields930[0] - for i933, elem932 in enumerate(field931): - if (i933 > 0): + field944 = unwrapped_fields943[0] + for i946, elem945 in enumerate(field944): + if (i946 > 0): self.newline() - self.pretty_binding(elem932) - field934 = unwrapped_fields930[1] - if field934 is not None: + self.pretty_binding(elem945) + field947 = unwrapped_fields943[1] + if field947 is not None: self.newline() - assert field934 is not None - opt_val935 = field934 - self.pretty_value_bindings(opt_val935) + assert field947 is not None + opt_val948 = field947 + self.pretty_value_bindings(opt_val948) 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) + flat954 = self._try_flat(msg, self.pretty_binding) + if flat954 is not None: + assert flat954 is not None + self.write(flat954) 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) + fields950 = (_dollar_dollar.var.name, _dollar_dollar.type,) + assert fields950 is not None + unwrapped_fields951 = fields950 + field952 = unwrapped_fields951[0] + self.write(field952) self.write("::") - field940 = unwrapped_fields938[1] - self.pretty_type(field940) + field953 = unwrapped_fields951[1] + self.pretty_type(field953) 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) + flat983 = self._try_flat(msg, self.pretty_type) + if flat983 is not None: + assert flat983 is not None + self.write(flat983) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("unspecified_type"): - _t1621 = _dollar_dollar.unspecified_type + _t1647 = _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) + _t1647 = None + deconstruct_result981 = _t1647 + if deconstruct_result981 is not None: + assert deconstruct_result981 is not None + unwrapped982 = deconstruct_result981 + self.pretty_unspecified_type(unwrapped982) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_type"): - _t1622 = _dollar_dollar.string_type + _t1648 = _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) + _t1648 = None + deconstruct_result979 = _t1648 + if deconstruct_result979 is not None: + assert deconstruct_result979 is not None + unwrapped980 = deconstruct_result979 + self.pretty_string_type(unwrapped980) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_type"): - _t1623 = _dollar_dollar.int_type + _t1649 = _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) + _t1649 = None + deconstruct_result977 = _t1649 + if deconstruct_result977 is not None: + assert deconstruct_result977 is not None + unwrapped978 = deconstruct_result977 + self.pretty_int_type(unwrapped978) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_type"): - _t1624 = _dollar_dollar.float_type + _t1650 = _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) + _t1650 = None + deconstruct_result975 = _t1650 + if deconstruct_result975 is not None: + assert deconstruct_result975 is not None + unwrapped976 = deconstruct_result975 + self.pretty_float_type(unwrapped976) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_type"): - _t1625 = _dollar_dollar.uint128_type + _t1651 = _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) + _t1651 = None + deconstruct_result973 = _t1651 + if deconstruct_result973 is not None: + assert deconstruct_result973 is not None + unwrapped974 = deconstruct_result973 + self.pretty_uint128_type(unwrapped974) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_type"): - _t1626 = _dollar_dollar.int128_type + _t1652 = _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) + _t1652 = None + deconstruct_result971 = _t1652 + if deconstruct_result971 is not None: + assert deconstruct_result971 is not None + unwrapped972 = deconstruct_result971 + self.pretty_int128_type(unwrapped972) else: _dollar_dollar = msg if _dollar_dollar.HasField("date_type"): - _t1627 = _dollar_dollar.date_type + _t1653 = _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) + _t1653 = None + deconstruct_result969 = _t1653 + if deconstruct_result969 is not None: + assert deconstruct_result969 is not None + unwrapped970 = deconstruct_result969 + self.pretty_date_type(unwrapped970) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_type"): - _t1628 = _dollar_dollar.datetime_type + _t1654 = _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) + _t1654 = None + deconstruct_result967 = _t1654 + if deconstruct_result967 is not None: + assert deconstruct_result967 is not None + unwrapped968 = deconstruct_result967 + self.pretty_datetime_type(unwrapped968) else: _dollar_dollar = msg if _dollar_dollar.HasField("missing_type"): - _t1629 = _dollar_dollar.missing_type + _t1655 = _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) + _t1655 = None + deconstruct_result965 = _t1655 + if deconstruct_result965 is not None: + assert deconstruct_result965 is not None + unwrapped966 = deconstruct_result965 + self.pretty_missing_type(unwrapped966) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_type"): - _t1630 = _dollar_dollar.decimal_type + _t1656 = _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) + _t1656 = None + deconstruct_result963 = _t1656 + if deconstruct_result963 is not None: + assert deconstruct_result963 is not None + unwrapped964 = deconstruct_result963 + self.pretty_decimal_type(unwrapped964) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_type"): - _t1631 = _dollar_dollar.boolean_type + _t1657 = _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) + _t1657 = None + deconstruct_result961 = _t1657 + if deconstruct_result961 is not None: + assert deconstruct_result961 is not None + unwrapped962 = deconstruct_result961 + self.pretty_boolean_type(unwrapped962) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_type"): - _t1632 = _dollar_dollar.int32_type + _t1658 = _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) + _t1658 = None + deconstruct_result959 = _t1658 + if deconstruct_result959 is not None: + assert deconstruct_result959 is not None + unwrapped960 = deconstruct_result959 + self.pretty_int32_type(unwrapped960) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_type"): - _t1633 = _dollar_dollar.float32_type + _t1659 = _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) + _t1659 = None + deconstruct_result957 = _t1659 + if deconstruct_result957 is not None: + assert deconstruct_result957 is not None + unwrapped958 = deconstruct_result957 + self.pretty_float32_type(unwrapped958) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_type"): - _t1634 = _dollar_dollar.uint32_type + _t1660 = _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) + _t1660 = None + deconstruct_result955 = _t1660 + if deconstruct_result955 is not None: + assert deconstruct_result955 is not None + unwrapped956 = deconstruct_result955 + self.pretty_uint32_type(unwrapped956) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields971 = msg + fields984 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields972 = msg + fields985 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields973 = msg + fields986 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields974 = msg + fields987 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields975 = msg + fields988 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields976 = msg + fields989 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields977 = msg + fields990 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields978 = msg + fields991 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields979 = msg + fields992 = 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) + flat997 = self._try_flat(msg, self.pretty_decimal_type) + if flat997 is not None: + assert flat997 is not None + self.write(flat997) return None else: _dollar_dollar = msg - fields980 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - assert fields980 is not None - unwrapped_fields981 = fields980 + fields993 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) + assert fields993 is not None + unwrapped_fields994 = fields993 self.write("(DECIMAL") self.indent_sexp() self.newline() - field982 = unwrapped_fields981[0] - self.write(str(field982)) + field995 = unwrapped_fields994[0] + self.write(str(field995)) self.newline() - field983 = unwrapped_fields981[1] - self.write(str(field983)) + field996 = unwrapped_fields994[1] + self.write(str(field996)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields985 = msg + fields998 = msg self.write("BOOLEAN") def pretty_int32_type(self, msg: logic_pb2.Int32Type): - fields986 = msg + fields999 = msg self.write("INT32") def pretty_float32_type(self, msg: logic_pb2.Float32Type): - fields987 = msg + fields1000 = msg self.write("FLOAT32") def pretty_uint32_type(self, msg: logic_pb2.UInt32Type): - fields988 = msg + fields1001 = 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) + flat1005 = self._try_flat(msg, self.pretty_value_bindings) + if flat1005 is not None: + assert flat1005 is not None + self.write(flat1005) return None else: - fields989 = msg + fields1002 = msg self.write("|") - if not len(fields989) == 0: + if not len(fields1002) == 0: self.write(" ") - for i991, elem990 in enumerate(fields989): - if (i991 > 0): + for i1004, elem1003 in enumerate(fields1002): + if (i1004 > 0): self.newline() - self.pretty_binding(elem990) + self.pretty_binding(elem1003) 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) + flat1032 = self._try_flat(msg, self.pretty_formula) + if flat1032 is not None: + assert flat1032 is not None + self.write(flat1032) return None else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1635 = _dollar_dollar.conjunction + _t1661 = _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) + _t1661 = None + deconstruct_result1030 = _t1661 + if deconstruct_result1030 is not None: + assert deconstruct_result1030 is not None + unwrapped1031 = deconstruct_result1030 + self.pretty_true(unwrapped1031) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1636 = _dollar_dollar.disjunction + _t1662 = _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) + _t1662 = None + deconstruct_result1028 = _t1662 + if deconstruct_result1028 is not None: + assert deconstruct_result1028 is not None + unwrapped1029 = deconstruct_result1028 + self.pretty_false(unwrapped1029) else: _dollar_dollar = msg if _dollar_dollar.HasField("exists"): - _t1637 = _dollar_dollar.exists + _t1663 = _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) + _t1663 = None + deconstruct_result1026 = _t1663 + if deconstruct_result1026 is not None: + assert deconstruct_result1026 is not None + unwrapped1027 = deconstruct_result1026 + self.pretty_exists(unwrapped1027) else: _dollar_dollar = msg if _dollar_dollar.HasField("reduce"): - _t1638 = _dollar_dollar.reduce + _t1664 = _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) + _t1664 = None + deconstruct_result1024 = _t1664 + if deconstruct_result1024 is not None: + assert deconstruct_result1024 is not None + unwrapped1025 = deconstruct_result1024 + self.pretty_reduce(unwrapped1025) else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1639 = _dollar_dollar.conjunction + _t1665 = _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) + _t1665 = None + deconstruct_result1022 = _t1665 + if deconstruct_result1022 is not None: + assert deconstruct_result1022 is not None + unwrapped1023 = deconstruct_result1022 + self.pretty_conjunction(unwrapped1023) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1640 = _dollar_dollar.disjunction + _t1666 = _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) + _t1666 = None + deconstruct_result1020 = _t1666 + if deconstruct_result1020 is not None: + assert deconstruct_result1020 is not None + unwrapped1021 = deconstruct_result1020 + self.pretty_disjunction(unwrapped1021) else: _dollar_dollar = msg if _dollar_dollar.HasField("not"): - _t1641 = getattr(_dollar_dollar, 'not') + _t1667 = 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) + _t1667 = None + deconstruct_result1018 = _t1667 + if deconstruct_result1018 is not None: + assert deconstruct_result1018 is not None + unwrapped1019 = deconstruct_result1018 + self.pretty_not(unwrapped1019) else: _dollar_dollar = msg if _dollar_dollar.HasField("ffi"): - _t1642 = _dollar_dollar.ffi + _t1668 = _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) + _t1668 = None + deconstruct_result1016 = _t1668 + if deconstruct_result1016 is not None: + assert deconstruct_result1016 is not None + unwrapped1017 = deconstruct_result1016 + self.pretty_ffi(unwrapped1017) else: _dollar_dollar = msg if _dollar_dollar.HasField("atom"): - _t1643 = _dollar_dollar.atom + _t1669 = _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) + _t1669 = None + deconstruct_result1014 = _t1669 + if deconstruct_result1014 is not None: + assert deconstruct_result1014 is not None + unwrapped1015 = deconstruct_result1014 + self.pretty_atom(unwrapped1015) else: _dollar_dollar = msg if _dollar_dollar.HasField("pragma"): - _t1644 = _dollar_dollar.pragma + _t1670 = _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) + _t1670 = None + deconstruct_result1012 = _t1670 + if deconstruct_result1012 is not None: + assert deconstruct_result1012 is not None + unwrapped1013 = deconstruct_result1012 + self.pretty_pragma(unwrapped1013) else: _dollar_dollar = msg if _dollar_dollar.HasField("primitive"): - _t1645 = _dollar_dollar.primitive + _t1671 = _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) + _t1671 = None + deconstruct_result1010 = _t1671 + if deconstruct_result1010 is not None: + assert deconstruct_result1010 is not None + unwrapped1011 = deconstruct_result1010 + self.pretty_primitive(unwrapped1011) else: _dollar_dollar = msg if _dollar_dollar.HasField("rel_atom"): - _t1646 = _dollar_dollar.rel_atom + _t1672 = _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) + _t1672 = None + deconstruct_result1008 = _t1672 + if deconstruct_result1008 is not None: + assert deconstruct_result1008 is not None + unwrapped1009 = deconstruct_result1008 + self.pretty_rel_atom(unwrapped1009) else: _dollar_dollar = msg if _dollar_dollar.HasField("cast"): - _t1647 = _dollar_dollar.cast + _t1673 = _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) + _t1673 = None + deconstruct_result1006 = _t1673 + if deconstruct_result1006 is not None: + assert deconstruct_result1006 is not None + unwrapped1007 = deconstruct_result1006 + self.pretty_cast(unwrapped1007) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields1020 = msg + fields1033 = msg self.write("(true)") def pretty_false(self, msg: logic_pb2.Disjunction): - fields1021 = msg + fields1034 = 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) + flat1039 = self._try_flat(msg, self.pretty_exists) + if flat1039 is not None: + assert flat1039 is not None + self.write(flat1039) 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 + _t1674 = self.deconstruct_bindings(_dollar_dollar.body) + fields1035 = (_t1674, _dollar_dollar.body.value,) + assert fields1035 is not None + unwrapped_fields1036 = fields1035 self.write("(exists") self.indent_sexp() self.newline() - field1024 = unwrapped_fields1023[0] - self.pretty_bindings(field1024) + field1037 = unwrapped_fields1036[0] + self.pretty_bindings(field1037) self.newline() - field1025 = unwrapped_fields1023[1] - self.pretty_formula(field1025) + field1038 = unwrapped_fields1036[1] + self.pretty_formula(field1038) 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) + flat1045 = self._try_flat(msg, self.pretty_reduce) + if flat1045 is not None: + assert flat1045 is not None + self.write(flat1045) return None else: _dollar_dollar = msg - fields1027 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - assert fields1027 is not None - unwrapped_fields1028 = fields1027 + fields1040 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + assert fields1040 is not None + unwrapped_fields1041 = fields1040 self.write("(reduce") self.indent_sexp() self.newline() - field1029 = unwrapped_fields1028[0] - self.pretty_abstraction(field1029) + field1042 = unwrapped_fields1041[0] + self.pretty_abstraction(field1042) self.newline() - field1030 = unwrapped_fields1028[1] - self.pretty_abstraction(field1030) + field1043 = unwrapped_fields1041[1] + self.pretty_abstraction(field1043) self.newline() - field1031 = unwrapped_fields1028[2] - self.pretty_terms(field1031) + field1044 = unwrapped_fields1041[2] + self.pretty_terms(field1044) 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) + flat1049 = self._try_flat(msg, self.pretty_terms) + if flat1049 is not None: + assert flat1049 is not None + self.write(flat1049) return None else: - fields1033 = msg + fields1046 = msg self.write("(terms") self.indent_sexp() - if not len(fields1033) == 0: + if not len(fields1046) == 0: self.newline() - for i1035, elem1034 in enumerate(fields1033): - if (i1035 > 0): + for i1048, elem1047 in enumerate(fields1046): + if (i1048 > 0): self.newline() - self.pretty_term(elem1034) + self.pretty_term(elem1047) 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) + flat1054 = self._try_flat(msg, self.pretty_term) + if flat1054 is not None: + assert flat1054 is not None + self.write(flat1054) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("var"): - _t1649 = _dollar_dollar.var + _t1675 = _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) + _t1675 = None + deconstruct_result1052 = _t1675 + if deconstruct_result1052 is not None: + assert deconstruct_result1052 is not None + unwrapped1053 = deconstruct_result1052 + self.pretty_var(unwrapped1053) else: _dollar_dollar = msg if _dollar_dollar.HasField("constant"): - _t1650 = _dollar_dollar.constant + _t1676 = _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) + _t1676 = None + deconstruct_result1050 = _t1676 + if deconstruct_result1050 is not None: + assert deconstruct_result1050 is not None + unwrapped1051 = deconstruct_result1050 + self.pretty_value(unwrapped1051) 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) + flat1057 = self._try_flat(msg, self.pretty_var) + if flat1057 is not None: + assert flat1057 is not None + self.write(flat1057) return None else: _dollar_dollar = msg - fields1042 = _dollar_dollar.name - assert fields1042 is not None - unwrapped_fields1043 = fields1042 - self.write(unwrapped_fields1043) + fields1055 = _dollar_dollar.name + assert fields1055 is not None + unwrapped_fields1056 = fields1055 + self.write(unwrapped_fields1056) 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) + flat1083 = self._try_flat(msg, self.pretty_value) + if flat1083 is not None: + assert flat1083 is not None + self.write(flat1083) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1651 = _dollar_dollar.date_value + _t1677 = _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) + _t1677 = None + deconstruct_result1081 = _t1677 + if deconstruct_result1081 is not None: + assert deconstruct_result1081 is not None + unwrapped1082 = deconstruct_result1081 + self.pretty_date(unwrapped1082) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1652 = _dollar_dollar.datetime_value + _t1678 = _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) + _t1678 = None + deconstruct_result1079 = _t1678 + if deconstruct_result1079 is not None: + assert deconstruct_result1079 is not None + unwrapped1080 = deconstruct_result1079 + self.pretty_datetime(unwrapped1080) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1653 = _dollar_dollar.string_value + _t1679 = _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)) + _t1679 = None + deconstruct_result1077 = _t1679 + if deconstruct_result1077 is not None: + assert deconstruct_result1077 is not None + unwrapped1078 = deconstruct_result1077 + self.write(self.format_string_value(unwrapped1078)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1654 = _dollar_dollar.int32_value + _t1680 = _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')) + _t1680 = None + deconstruct_result1075 = _t1680 + if deconstruct_result1075 is not None: + assert deconstruct_result1075 is not None + unwrapped1076 = deconstruct_result1075 + self.write((str(unwrapped1076) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1655 = _dollar_dollar.int_value + _t1681 = _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)) + _t1681 = None + deconstruct_result1073 = _t1681 + if deconstruct_result1073 is not None: + assert deconstruct_result1073 is not None + unwrapped1074 = deconstruct_result1073 + self.write(str(unwrapped1074)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1656 = _dollar_dollar.float32_value + _t1682 = _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)) + _t1682 = None + deconstruct_result1071 = _t1682 + if deconstruct_result1071 is not None: + assert deconstruct_result1071 is not None + unwrapped1072 = deconstruct_result1071 + self.write(self.format_float32_literal(unwrapped1072)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1657 = _dollar_dollar.float_value + _t1683 = _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)) + _t1683 = None + deconstruct_result1069 = _t1683 + if deconstruct_result1069 is not None: + assert deconstruct_result1069 is not None + unwrapped1070 = deconstruct_result1069 + self.write(str(unwrapped1070)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1658 = _dollar_dollar.uint32_value + _t1684 = _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')) + _t1684 = None + deconstruct_result1067 = _t1684 + if deconstruct_result1067 is not None: + assert deconstruct_result1067 is not None + unwrapped1068 = deconstruct_result1067 + self.write((str(unwrapped1068) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1659 = _dollar_dollar.uint128_value + _t1685 = _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)) + _t1685 = None + deconstruct_result1065 = _t1685 + if deconstruct_result1065 is not None: + assert deconstruct_result1065 is not None + unwrapped1066 = deconstruct_result1065 + self.write(self.format_uint128(unwrapped1066)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1660 = _dollar_dollar.int128_value + _t1686 = _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)) + _t1686 = None + deconstruct_result1063 = _t1686 + if deconstruct_result1063 is not None: + assert deconstruct_result1063 is not None + unwrapped1064 = deconstruct_result1063 + self.write(self.format_int128(unwrapped1064)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1661 = _dollar_dollar.decimal_value + _t1687 = _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)) + _t1687 = None + deconstruct_result1061 = _t1687 + if deconstruct_result1061 is not None: + assert deconstruct_result1061 is not None + unwrapped1062 = deconstruct_result1061 + self.write(self.format_decimal(unwrapped1062)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1662 = _dollar_dollar.boolean_value + _t1688 = _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) + _t1688 = None + deconstruct_result1059 = _t1688 + if deconstruct_result1059 is not None: + assert deconstruct_result1059 is not None + unwrapped1060 = deconstruct_result1059 + self.pretty_boolean_value(unwrapped1060) else: - fields1045 = msg + fields1058 = 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) + flat1089 = self._try_flat(msg, self.pretty_date) + if flat1089 is not None: + assert flat1089 is not None + self.write(flat1089) 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 + fields1084 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields1084 is not None + unwrapped_fields1085 = fields1084 self.write("(date") self.indent_sexp() self.newline() - field1073 = unwrapped_fields1072[0] - self.write(str(field1073)) + field1086 = unwrapped_fields1085[0] + self.write(str(field1086)) self.newline() - field1074 = unwrapped_fields1072[1] - self.write(str(field1074)) + field1087 = unwrapped_fields1085[1] + self.write(str(field1087)) self.newline() - field1075 = unwrapped_fields1072[2] - self.write(str(field1075)) + field1088 = unwrapped_fields1085[2] + self.write(str(field1088)) 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) + flat1100 = self._try_flat(msg, self.pretty_datetime) + if flat1100 is not None: + assert flat1100 is not None + self.write(flat1100) 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 + fields1090 = (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 fields1090 is not None + unwrapped_fields1091 = fields1090 self.write("(datetime") self.indent_sexp() self.newline() - field1079 = unwrapped_fields1078[0] - self.write(str(field1079)) + field1092 = unwrapped_fields1091[0] + self.write(str(field1092)) self.newline() - field1080 = unwrapped_fields1078[1] - self.write(str(field1080)) + field1093 = unwrapped_fields1091[1] + self.write(str(field1093)) self.newline() - field1081 = unwrapped_fields1078[2] - self.write(str(field1081)) + field1094 = unwrapped_fields1091[2] + self.write(str(field1094)) self.newline() - field1082 = unwrapped_fields1078[3] - self.write(str(field1082)) + field1095 = unwrapped_fields1091[3] + self.write(str(field1095)) self.newline() - field1083 = unwrapped_fields1078[4] - self.write(str(field1083)) + field1096 = unwrapped_fields1091[4] + self.write(str(field1096)) self.newline() - field1084 = unwrapped_fields1078[5] - self.write(str(field1084)) - field1085 = unwrapped_fields1078[6] - if field1085 is not None: + field1097 = unwrapped_fields1091[5] + self.write(str(field1097)) + field1098 = unwrapped_fields1091[6] + if field1098 is not None: self.newline() - assert field1085 is not None - opt_val1086 = field1085 - self.write(str(opt_val1086)) + assert field1098 is not None + opt_val1099 = field1098 + self.write(str(opt_val1099)) 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) + flat1105 = self._try_flat(msg, self.pretty_conjunction) + if flat1105 is not None: + assert flat1105 is not None + self.write(flat1105) return None else: _dollar_dollar = msg - fields1088 = _dollar_dollar.args - assert fields1088 is not None - unwrapped_fields1089 = fields1088 + fields1101 = _dollar_dollar.args + assert fields1101 is not None + unwrapped_fields1102 = fields1101 self.write("(and") self.indent_sexp() - if not len(unwrapped_fields1089) == 0: + if not len(unwrapped_fields1102) == 0: self.newline() - for i1091, elem1090 in enumerate(unwrapped_fields1089): - if (i1091 > 0): + for i1104, elem1103 in enumerate(unwrapped_fields1102): + if (i1104 > 0): self.newline() - self.pretty_formula(elem1090) + self.pretty_formula(elem1103) 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) + flat1110 = self._try_flat(msg, self.pretty_disjunction) + if flat1110 is not None: + assert flat1110 is not None + self.write(flat1110) return None else: _dollar_dollar = msg - fields1093 = _dollar_dollar.args - assert fields1093 is not None - unwrapped_fields1094 = fields1093 + fields1106 = _dollar_dollar.args + assert fields1106 is not None + unwrapped_fields1107 = fields1106 self.write("(or") self.indent_sexp() - if not len(unwrapped_fields1094) == 0: + if not len(unwrapped_fields1107) == 0: self.newline() - for i1096, elem1095 in enumerate(unwrapped_fields1094): - if (i1096 > 0): + for i1109, elem1108 in enumerate(unwrapped_fields1107): + if (i1109 > 0): self.newline() - self.pretty_formula(elem1095) + self.pretty_formula(elem1108) 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) + flat1113 = self._try_flat(msg, self.pretty_not) + if flat1113 is not None: + assert flat1113 is not None + self.write(flat1113) return None else: _dollar_dollar = msg - fields1098 = _dollar_dollar.arg - assert fields1098 is not None - unwrapped_fields1099 = fields1098 + fields1111 = _dollar_dollar.arg + assert fields1111 is not None + unwrapped_fields1112 = fields1111 self.write("(not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields1099) + self.pretty_formula(unwrapped_fields1112) 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) + flat1119 = self._try_flat(msg, self.pretty_ffi) + if flat1119 is not None: + assert flat1119 is not None + self.write(flat1119) return None else: _dollar_dollar = msg - fields1101 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - assert fields1101 is not None - unwrapped_fields1102 = fields1101 + fields1114 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + assert fields1114 is not None + unwrapped_fields1115 = fields1114 self.write("(ffi") self.indent_sexp() self.newline() - field1103 = unwrapped_fields1102[0] - self.pretty_name(field1103) + field1116 = unwrapped_fields1115[0] + self.pretty_name(field1116) self.newline() - field1104 = unwrapped_fields1102[1] - self.pretty_ffi_args(field1104) + field1117 = unwrapped_fields1115[1] + self.pretty_ffi_args(field1117) self.newline() - field1105 = unwrapped_fields1102[2] - self.pretty_terms(field1105) + field1118 = unwrapped_fields1115[2] + self.pretty_terms(field1118) 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) + flat1121 = self._try_flat(msg, self.pretty_name) + if flat1121 is not None: + assert flat1121 is not None + self.write(flat1121) return None else: - fields1107 = msg + fields1120 = msg self.write(":") - self.write(fields1107) + self.write(fields1120) 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) + flat1125 = self._try_flat(msg, self.pretty_ffi_args) + if flat1125 is not None: + assert flat1125 is not None + self.write(flat1125) return None else: - fields1109 = msg + fields1122 = msg self.write("(args") self.indent_sexp() - if not len(fields1109) == 0: + if not len(fields1122) == 0: self.newline() - for i1111, elem1110 in enumerate(fields1109): - if (i1111 > 0): + for i1124, elem1123 in enumerate(fields1122): + if (i1124 > 0): self.newline() - self.pretty_abstraction(elem1110) + self.pretty_abstraction(elem1123) 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) + flat1132 = self._try_flat(msg, self.pretty_atom) + if flat1132 is not None: + assert flat1132 is not None + self.write(flat1132) return None else: _dollar_dollar = msg - fields1113 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1113 is not None - unwrapped_fields1114 = fields1113 + fields1126 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1126 is not None + unwrapped_fields1127 = fields1126 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: + field1128 = unwrapped_fields1127[0] + self.pretty_relation_id(field1128) + field1129 = unwrapped_fields1127[1] + if not len(field1129) == 0: self.newline() - for i1118, elem1117 in enumerate(field1116): - if (i1118 > 0): + for i1131, elem1130 in enumerate(field1129): + if (i1131 > 0): self.newline() - self.pretty_term(elem1117) + self.pretty_term(elem1130) 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) + flat1139 = self._try_flat(msg, self.pretty_pragma) + if flat1139 is not None: + assert flat1139 is not None + self.write(flat1139) return None else: _dollar_dollar = msg - fields1120 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1120 is not None - unwrapped_fields1121 = fields1120 + fields1133 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1133 is not None + unwrapped_fields1134 = fields1133 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: + field1135 = unwrapped_fields1134[0] + self.pretty_name(field1135) + field1136 = unwrapped_fields1134[1] + if not len(field1136) == 0: self.newline() - for i1125, elem1124 in enumerate(field1123): - if (i1125 > 0): + for i1138, elem1137 in enumerate(field1136): + if (i1138 > 0): self.newline() - self.pretty_term(elem1124) + self.pretty_term(elem1137) 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) + flat1155 = self._try_flat(msg, self.pretty_primitive) + if flat1155 is not None: + assert flat1155 is not None + self.write(flat1155) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1663 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1689 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1663 = None - guard_result1141 = _t1663 - if guard_result1141 is not None: + _t1689 = None + guard_result1154 = _t1689 + if guard_result1154 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,) + _t1690 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1664 = None - guard_result1140 = _t1664 - if guard_result1140 is not None: + _t1690 = None + guard_result1153 = _t1690 + if guard_result1153 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,) + _t1691 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1665 = None - guard_result1139 = _t1665 - if guard_result1139 is not None: + _t1691 = None + guard_result1152 = _t1691 + if guard_result1152 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,) + _t1692 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1666 = None - guard_result1138 = _t1666 - if guard_result1138 is not None: + _t1692 = None + guard_result1151 = _t1692 + if guard_result1151 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,) + _t1693 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1667 = None - guard_result1137 = _t1667 - if guard_result1137 is not None: + _t1693 = None + guard_result1150 = _t1693 + if guard_result1150 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,) + _t1694 = (_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: + _t1694 = None + guard_result1149 = _t1694 + if guard_result1149 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,) + _t1695 = (_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: + _t1695 = None + guard_result1148 = _t1695 + if guard_result1148 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,) + _t1696 = (_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: + _t1696 = None + guard_result1147 = _t1696 + if guard_result1147 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,) + _t1697 = (_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: + _t1697 = None + guard_result1146 = _t1697 + if guard_result1146 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 + fields1140 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1140 is not None + unwrapped_fields1141 = fields1140 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: + field1142 = unwrapped_fields1141[0] + self.pretty_name(field1142) + field1143 = unwrapped_fields1141[1] + if not len(field1143) == 0: self.newline() - for i1132, elem1131 in enumerate(field1130): - if (i1132 > 0): + for i1145, elem1144 in enumerate(field1143): + if (i1145 > 0): self.newline() - self.pretty_rel_term(elem1131) + self.pretty_rel_term(elem1144) 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) + flat1160 = self._try_flat(msg, self.pretty_eq) + if flat1160 is not None: + assert flat1160 is not None + self.write(flat1160) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1672 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1698 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1672 = None - fields1143 = _t1672 - assert fields1143 is not None - unwrapped_fields1144 = fields1143 + _t1698 = None + fields1156 = _t1698 + assert fields1156 is not None + unwrapped_fields1157 = fields1156 self.write("(=") self.indent_sexp() self.newline() - field1145 = unwrapped_fields1144[0] - self.pretty_term(field1145) + field1158 = unwrapped_fields1157[0] + self.pretty_term(field1158) self.newline() - field1146 = unwrapped_fields1144[1] - self.pretty_term(field1146) + field1159 = unwrapped_fields1157[1] + self.pretty_term(field1159) 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) + flat1165 = self._try_flat(msg, self.pretty_lt) + if flat1165 is not None: + assert flat1165 is not None + self.write(flat1165) 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,) + _t1699 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1673 = None - fields1148 = _t1673 - assert fields1148 is not None - unwrapped_fields1149 = fields1148 + _t1699 = None + fields1161 = _t1699 + assert fields1161 is not None + unwrapped_fields1162 = fields1161 self.write("(<") self.indent_sexp() self.newline() - field1150 = unwrapped_fields1149[0] - self.pretty_term(field1150) + field1163 = unwrapped_fields1162[0] + self.pretty_term(field1163) self.newline() - field1151 = unwrapped_fields1149[1] - self.pretty_term(field1151) + field1164 = unwrapped_fields1162[1] + self.pretty_term(field1164) 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) + flat1170 = self._try_flat(msg, self.pretty_lt_eq) + if flat1170 is not None: + assert flat1170 is not None + self.write(flat1170) 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,) + _t1700 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1674 = None - fields1153 = _t1674 - assert fields1153 is not None - unwrapped_fields1154 = fields1153 + _t1700 = None + fields1166 = _t1700 + assert fields1166 is not None + unwrapped_fields1167 = fields1166 self.write("(<=") self.indent_sexp() self.newline() - field1155 = unwrapped_fields1154[0] - self.pretty_term(field1155) + field1168 = unwrapped_fields1167[0] + self.pretty_term(field1168) self.newline() - field1156 = unwrapped_fields1154[1] - self.pretty_term(field1156) + field1169 = unwrapped_fields1167[1] + self.pretty_term(field1169) 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) + flat1175 = self._try_flat(msg, self.pretty_gt) + if flat1175 is not None: + assert flat1175 is not None + self.write(flat1175) 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,) + _t1701 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1675 = None - fields1158 = _t1675 - assert fields1158 is not None - unwrapped_fields1159 = fields1158 + _t1701 = None + fields1171 = _t1701 + assert fields1171 is not None + unwrapped_fields1172 = fields1171 self.write("(>") self.indent_sexp() self.newline() - field1160 = unwrapped_fields1159[0] - self.pretty_term(field1160) + field1173 = unwrapped_fields1172[0] + self.pretty_term(field1173) self.newline() - field1161 = unwrapped_fields1159[1] - self.pretty_term(field1161) + field1174 = unwrapped_fields1172[1] + self.pretty_term(field1174) 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) + flat1180 = self._try_flat(msg, self.pretty_gt_eq) + if flat1180 is not None: + assert flat1180 is not None + self.write(flat1180) 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,) + _t1702 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1676 = None - fields1163 = _t1676 - assert fields1163 is not None - unwrapped_fields1164 = fields1163 + _t1702 = None + fields1176 = _t1702 + assert fields1176 is not None + unwrapped_fields1177 = fields1176 self.write("(>=") self.indent_sexp() self.newline() - field1165 = unwrapped_fields1164[0] - self.pretty_term(field1165) + field1178 = unwrapped_fields1177[0] + self.pretty_term(field1178) self.newline() - field1166 = unwrapped_fields1164[1] - self.pretty_term(field1166) + field1179 = unwrapped_fields1177[1] + self.pretty_term(field1179) 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) + flat1186 = self._try_flat(msg, self.pretty_add) + if flat1186 is not None: + assert flat1186 is not None + self.write(flat1186) 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,) + _t1703 = (_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 + _t1703 = None + fields1181 = _t1703 + assert fields1181 is not None + unwrapped_fields1182 = fields1181 self.write("(+") self.indent_sexp() self.newline() - field1170 = unwrapped_fields1169[0] - self.pretty_term(field1170) + field1183 = unwrapped_fields1182[0] + self.pretty_term(field1183) self.newline() - field1171 = unwrapped_fields1169[1] - self.pretty_term(field1171) + field1184 = unwrapped_fields1182[1] + self.pretty_term(field1184) self.newline() - field1172 = unwrapped_fields1169[2] - self.pretty_term(field1172) + field1185 = unwrapped_fields1182[2] + self.pretty_term(field1185) 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) + flat1192 = self._try_flat(msg, self.pretty_minus) + if flat1192 is not None: + assert flat1192 is not None + self.write(flat1192) 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,) + _t1704 = (_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 + _t1704 = None + fields1187 = _t1704 + assert fields1187 is not None + unwrapped_fields1188 = fields1187 self.write("(-") self.indent_sexp() self.newline() - field1176 = unwrapped_fields1175[0] - self.pretty_term(field1176) + field1189 = unwrapped_fields1188[0] + self.pretty_term(field1189) self.newline() - field1177 = unwrapped_fields1175[1] - self.pretty_term(field1177) + field1190 = unwrapped_fields1188[1] + self.pretty_term(field1190) self.newline() - field1178 = unwrapped_fields1175[2] - self.pretty_term(field1178) + field1191 = unwrapped_fields1188[2] + self.pretty_term(field1191) 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) + flat1198 = self._try_flat(msg, self.pretty_multiply) + if flat1198 is not None: + assert flat1198 is not None + self.write(flat1198) 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,) + _t1705 = (_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 + _t1705 = None + fields1193 = _t1705 + assert fields1193 is not None + unwrapped_fields1194 = fields1193 self.write("(*") self.indent_sexp() self.newline() - field1182 = unwrapped_fields1181[0] - self.pretty_term(field1182) + field1195 = unwrapped_fields1194[0] + self.pretty_term(field1195) self.newline() - field1183 = unwrapped_fields1181[1] - self.pretty_term(field1183) + field1196 = unwrapped_fields1194[1] + self.pretty_term(field1196) self.newline() - field1184 = unwrapped_fields1181[2] - self.pretty_term(field1184) + field1197 = unwrapped_fields1194[2] + self.pretty_term(field1197) 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) + flat1204 = self._try_flat(msg, self.pretty_divide) + if flat1204 is not None: + assert flat1204 is not None + self.write(flat1204) 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,) + _t1706 = (_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 + _t1706 = None + fields1199 = _t1706 + assert fields1199 is not None + unwrapped_fields1200 = fields1199 self.write("(/") self.indent_sexp() self.newline() - field1188 = unwrapped_fields1187[0] - self.pretty_term(field1188) + field1201 = unwrapped_fields1200[0] + self.pretty_term(field1201) self.newline() - field1189 = unwrapped_fields1187[1] - self.pretty_term(field1189) + field1202 = unwrapped_fields1200[1] + self.pretty_term(field1202) self.newline() - field1190 = unwrapped_fields1187[2] - self.pretty_term(field1190) + field1203 = unwrapped_fields1200[2] + self.pretty_term(field1203) 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) + flat1209 = self._try_flat(msg, self.pretty_rel_term) + if flat1209 is not None: + assert flat1209 is not None + self.write(flat1209) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("specialized_value"): - _t1681 = _dollar_dollar.specialized_value + _t1707 = _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) + _t1707 = None + deconstruct_result1207 = _t1707 + if deconstruct_result1207 is not None: + assert deconstruct_result1207 is not None + unwrapped1208 = deconstruct_result1207 + self.pretty_specialized_value(unwrapped1208) else: _dollar_dollar = msg if _dollar_dollar.HasField("term"): - _t1682 = _dollar_dollar.term + _t1708 = _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) + _t1708 = None + deconstruct_result1205 = _t1708 + if deconstruct_result1205 is not None: + assert deconstruct_result1205 is not None + unwrapped1206 = deconstruct_result1205 + self.pretty_term(unwrapped1206) 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) + flat1211 = self._try_flat(msg, self.pretty_specialized_value) + if flat1211 is not None: + assert flat1211 is not None + self.write(flat1211) return None else: - fields1197 = msg + fields1210 = msg self.write("#") - self.pretty_raw_value(fields1197) + self.pretty_raw_value(fields1210) 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) + flat1218 = self._try_flat(msg, self.pretty_rel_atom) + if flat1218 is not None: + assert flat1218 is not None + self.write(flat1218) return None else: _dollar_dollar = msg - fields1199 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1199 is not None - unwrapped_fields1200 = fields1199 + fields1212 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1212 is not None + unwrapped_fields1213 = fields1212 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: + field1214 = unwrapped_fields1213[0] + self.pretty_name(field1214) + field1215 = unwrapped_fields1213[1] + if not len(field1215) == 0: self.newline() - for i1204, elem1203 in enumerate(field1202): - if (i1204 > 0): + for i1217, elem1216 in enumerate(field1215): + if (i1217 > 0): self.newline() - self.pretty_rel_term(elem1203) + self.pretty_rel_term(elem1216) 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) + flat1223 = self._try_flat(msg, self.pretty_cast) + if flat1223 is not None: + assert flat1223 is not None + self.write(flat1223) return None else: _dollar_dollar = msg - fields1206 = (_dollar_dollar.input, _dollar_dollar.result,) - assert fields1206 is not None - unwrapped_fields1207 = fields1206 + fields1219 = (_dollar_dollar.input, _dollar_dollar.result,) + assert fields1219 is not None + unwrapped_fields1220 = fields1219 self.write("(cast") self.indent_sexp() self.newline() - field1208 = unwrapped_fields1207[0] - self.pretty_term(field1208) + field1221 = unwrapped_fields1220[0] + self.pretty_term(field1221) self.newline() - field1209 = unwrapped_fields1207[1] - self.pretty_term(field1209) + field1222 = unwrapped_fields1220[1] + self.pretty_term(field1222) 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) + flat1227 = self._try_flat(msg, self.pretty_attrs) + if flat1227 is not None: + assert flat1227 is not None + self.write(flat1227) return None else: - fields1211 = msg + fields1224 = msg self.write("(attrs") self.indent_sexp() - if not len(fields1211) == 0: + if not len(fields1224) == 0: self.newline() - for i1213, elem1212 in enumerate(fields1211): - if (i1213 > 0): + for i1226, elem1225 in enumerate(fields1224): + if (i1226 > 0): self.newline() - self.pretty_attribute(elem1212) + self.pretty_attribute(elem1225) 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) + flat1234 = self._try_flat(msg, self.pretty_attribute) + if flat1234 is not None: + assert flat1234 is not None + self.write(flat1234) return None else: _dollar_dollar = msg - fields1215 = (_dollar_dollar.name, _dollar_dollar.args,) - assert fields1215 is not None - unwrapped_fields1216 = fields1215 + fields1228 = (_dollar_dollar.name, _dollar_dollar.args,) + assert fields1228 is not None + unwrapped_fields1229 = fields1228 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: + field1230 = unwrapped_fields1229[0] + self.pretty_name(field1230) + field1231 = unwrapped_fields1229[1] + if not len(field1231) == 0: self.newline() - for i1220, elem1219 in enumerate(field1218): - if (i1220 > 0): + for i1233, elem1232 in enumerate(field1231): + if (i1233 > 0): self.newline() - self.pretty_raw_value(elem1219) + self.pretty_raw_value(elem1232) 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) + flat1243 = self._try_flat(msg, self.pretty_algorithm) + if flat1243 is not None: + assert flat1243 is not None + self.write(flat1243) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1683 = _dollar_dollar.attrs + _t1709 = _dollar_dollar.attrs else: - _t1683 = None - fields1222 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1683,) - assert fields1222 is not None - unwrapped_fields1223 = fields1222 + _t1709 = None + fields1235 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1709,) + assert fields1235 is not None + unwrapped_fields1236 = fields1235 self.write("(algorithm") self.indent_sexp() - field1224 = unwrapped_fields1223[0] - if not len(field1224) == 0: + field1237 = unwrapped_fields1236[0] + if not len(field1237) == 0: self.newline() - for i1226, elem1225 in enumerate(field1224): - if (i1226 > 0): + for i1239, elem1238 in enumerate(field1237): + if (i1239 > 0): self.newline() - self.pretty_relation_id(elem1225) + self.pretty_relation_id(elem1238) self.newline() - field1227 = unwrapped_fields1223[1] - self.pretty_script(field1227) - field1228 = unwrapped_fields1223[2] - if field1228 is not None: + field1240 = unwrapped_fields1236[1] + self.pretty_script(field1240) + field1241 = unwrapped_fields1236[2] + if field1241 is not None: self.newline() - assert field1228 is not None - opt_val1229 = field1228 - self.pretty_attrs(opt_val1229) + assert field1241 is not None + opt_val1242 = field1241 + self.pretty_attrs(opt_val1242) 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) + flat1248 = self._try_flat(msg, self.pretty_script) + if flat1248 is not None: + assert flat1248 is not None + self.write(flat1248) return None else: _dollar_dollar = msg - fields1231 = _dollar_dollar.constructs - assert fields1231 is not None - unwrapped_fields1232 = fields1231 + fields1244 = _dollar_dollar.constructs + assert fields1244 is not None + unwrapped_fields1245 = fields1244 self.write("(script") self.indent_sexp() - if not len(unwrapped_fields1232) == 0: + if not len(unwrapped_fields1245) == 0: self.newline() - for i1234, elem1233 in enumerate(unwrapped_fields1232): - if (i1234 > 0): + for i1247, elem1246 in enumerate(unwrapped_fields1245): + if (i1247 > 0): self.newline() - self.pretty_construct(elem1233) + self.pretty_construct(elem1246) 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) + flat1253 = self._try_flat(msg, self.pretty_construct) + if flat1253 is not None: + assert flat1253 is not None + self.write(flat1253) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("loop"): - _t1684 = _dollar_dollar.loop + _t1710 = _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) + _t1710 = None + deconstruct_result1251 = _t1710 + if deconstruct_result1251 is not None: + assert deconstruct_result1251 is not None + unwrapped1252 = deconstruct_result1251 + self.pretty_loop(unwrapped1252) else: _dollar_dollar = msg if _dollar_dollar.HasField("instruction"): - _t1685 = _dollar_dollar.instruction + _t1711 = _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) + _t1711 = None + deconstruct_result1249 = _t1711 + if deconstruct_result1249 is not None: + assert deconstruct_result1249 is not None + unwrapped1250 = deconstruct_result1249 + self.pretty_instruction(unwrapped1250) 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) + flat1260 = self._try_flat(msg, self.pretty_loop) + if flat1260 is not None: + assert flat1260 is not None + self.write(flat1260) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1686 = _dollar_dollar.attrs + _t1712 = _dollar_dollar.attrs else: - _t1686 = None - fields1241 = (_dollar_dollar.init, _dollar_dollar.body, _t1686,) - assert fields1241 is not None - unwrapped_fields1242 = fields1241 + _t1712 = None + fields1254 = (_dollar_dollar.init, _dollar_dollar.body, _t1712,) + assert fields1254 is not None + unwrapped_fields1255 = fields1254 self.write("(loop") self.indent_sexp() self.newline() - field1243 = unwrapped_fields1242[0] - self.pretty_init(field1243) + field1256 = unwrapped_fields1255[0] + self.pretty_init(field1256) self.newline() - field1244 = unwrapped_fields1242[1] - self.pretty_script(field1244) - field1245 = unwrapped_fields1242[2] - if field1245 is not None: + field1257 = unwrapped_fields1255[1] + self.pretty_script(field1257) + field1258 = unwrapped_fields1255[2] + if field1258 is not None: self.newline() - assert field1245 is not None - opt_val1246 = field1245 - self.pretty_attrs(opt_val1246) + assert field1258 is not None + opt_val1259 = field1258 + self.pretty_attrs(opt_val1259) 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) + flat1264 = self._try_flat(msg, self.pretty_init) + if flat1264 is not None: + assert flat1264 is not None + self.write(flat1264) return None else: - fields1248 = msg + fields1261 = msg self.write("(init") self.indent_sexp() - if not len(fields1248) == 0: + if not len(fields1261) == 0: self.newline() - for i1250, elem1249 in enumerate(fields1248): - if (i1250 > 0): + for i1263, elem1262 in enumerate(fields1261): + if (i1263 > 0): self.newline() - self.pretty_instruction(elem1249) + self.pretty_instruction(elem1262) 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) + flat1275 = self._try_flat(msg, self.pretty_instruction) + if flat1275 is not None: + assert flat1275 is not None + self.write(flat1275) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("assign"): - _t1687 = _dollar_dollar.assign + _t1713 = _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) + _t1713 = None + deconstruct_result1273 = _t1713 + if deconstruct_result1273 is not None: + assert deconstruct_result1273 is not None + unwrapped1274 = deconstruct_result1273 + self.pretty_assign(unwrapped1274) else: _dollar_dollar = msg if _dollar_dollar.HasField("upsert"): - _t1688 = _dollar_dollar.upsert + _t1714 = _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) + _t1714 = None + deconstruct_result1271 = _t1714 + if deconstruct_result1271 is not None: + assert deconstruct_result1271 is not None + unwrapped1272 = deconstruct_result1271 + self.pretty_upsert(unwrapped1272) else: _dollar_dollar = msg if _dollar_dollar.HasField("break"): - _t1689 = getattr(_dollar_dollar, 'break') + _t1715 = 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) + _t1715 = None + deconstruct_result1269 = _t1715 + if deconstruct_result1269 is not None: + assert deconstruct_result1269 is not None + unwrapped1270 = deconstruct_result1269 + self.pretty_break(unwrapped1270) else: _dollar_dollar = msg if _dollar_dollar.HasField("monoid_def"): - _t1690 = _dollar_dollar.monoid_def + _t1716 = _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) + _t1716 = None + deconstruct_result1267 = _t1716 + if deconstruct_result1267 is not None: + assert deconstruct_result1267 is not None + unwrapped1268 = deconstruct_result1267 + self.pretty_monoid_def(unwrapped1268) else: _dollar_dollar = msg if _dollar_dollar.HasField("monus_def"): - _t1691 = _dollar_dollar.monus_def + _t1717 = _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) + _t1717 = None + deconstruct_result1265 = _t1717 + if deconstruct_result1265 is not None: + assert deconstruct_result1265 is not None + unwrapped1266 = deconstruct_result1265 + self.pretty_monus_def(unwrapped1266) 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) + flat1282 = self._try_flat(msg, self.pretty_assign) + if flat1282 is not None: + assert flat1282 is not None + self.write(flat1282) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1692 = _dollar_dollar.attrs + _t1718 = _dollar_dollar.attrs else: - _t1692 = None - fields1263 = (_dollar_dollar.name, _dollar_dollar.body, _t1692,) - assert fields1263 is not None - unwrapped_fields1264 = fields1263 + _t1718 = None + fields1276 = (_dollar_dollar.name, _dollar_dollar.body, _t1718,) + assert fields1276 is not None + unwrapped_fields1277 = fields1276 self.write("(assign") self.indent_sexp() self.newline() - field1265 = unwrapped_fields1264[0] - self.pretty_relation_id(field1265) + field1278 = unwrapped_fields1277[0] + self.pretty_relation_id(field1278) self.newline() - field1266 = unwrapped_fields1264[1] - self.pretty_abstraction(field1266) - field1267 = unwrapped_fields1264[2] - if field1267 is not None: + field1279 = unwrapped_fields1277[1] + self.pretty_abstraction(field1279) + field1280 = unwrapped_fields1277[2] + if field1280 is not None: self.newline() - assert field1267 is not None - opt_val1268 = field1267 - self.pretty_attrs(opt_val1268) + assert field1280 is not None + opt_val1281 = field1280 + self.pretty_attrs(opt_val1281) 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) + flat1289 = self._try_flat(msg, self.pretty_upsert) + if flat1289 is not None: + assert flat1289 is not None + self.write(flat1289) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1693 = _dollar_dollar.attrs + _t1719 = _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 + _t1719 = None + fields1283 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1719,) + assert fields1283 is not None + unwrapped_fields1284 = fields1283 self.write("(upsert") self.indent_sexp() self.newline() - field1272 = unwrapped_fields1271[0] - self.pretty_relation_id(field1272) + field1285 = unwrapped_fields1284[0] + self.pretty_relation_id(field1285) self.newline() - field1273 = unwrapped_fields1271[1] - self.pretty_abstraction_with_arity(field1273) - field1274 = unwrapped_fields1271[2] - if field1274 is not None: + field1286 = unwrapped_fields1284[1] + self.pretty_abstraction_with_arity(field1286) + field1287 = unwrapped_fields1284[2] + if field1287 is not None: self.newline() - assert field1274 is not None - opt_val1275 = field1274 - self.pretty_attrs(opt_val1275) + assert field1287 is not None + opt_val1288 = field1287 + self.pretty_attrs(opt_val1288) 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) + flat1294 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1294 is not None: + assert flat1294 is not None + self.write(flat1294) 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 + _t1720 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + fields1290 = (_t1720, _dollar_dollar[0].value,) + assert fields1290 is not None + unwrapped_fields1291 = fields1290 self.write("(") self.indent() - field1279 = unwrapped_fields1278[0] - self.pretty_bindings(field1279) + field1292 = unwrapped_fields1291[0] + self.pretty_bindings(field1292) self.newline() - field1280 = unwrapped_fields1278[1] - self.pretty_formula(field1280) + field1293 = unwrapped_fields1291[1] + self.pretty_formula(field1293) 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) + flat1301 = self._try_flat(msg, self.pretty_break) + if flat1301 is not None: + assert flat1301 is not None + self.write(flat1301) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1695 = _dollar_dollar.attrs + _t1721 = _dollar_dollar.attrs else: - _t1695 = None - fields1282 = (_dollar_dollar.name, _dollar_dollar.body, _t1695,) - assert fields1282 is not None - unwrapped_fields1283 = fields1282 + _t1721 = None + fields1295 = (_dollar_dollar.name, _dollar_dollar.body, _t1721,) + assert fields1295 is not None + unwrapped_fields1296 = fields1295 self.write("(break") self.indent_sexp() self.newline() - field1284 = unwrapped_fields1283[0] - self.pretty_relation_id(field1284) + field1297 = unwrapped_fields1296[0] + self.pretty_relation_id(field1297) self.newline() - field1285 = unwrapped_fields1283[1] - self.pretty_abstraction(field1285) - field1286 = unwrapped_fields1283[2] - if field1286 is not None: + field1298 = unwrapped_fields1296[1] + self.pretty_abstraction(field1298) + field1299 = unwrapped_fields1296[2] + if field1299 is not None: self.newline() - assert field1286 is not None - opt_val1287 = field1286 - self.pretty_attrs(opt_val1287) + assert field1299 is not None + opt_val1300 = field1299 + self.pretty_attrs(opt_val1300) 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) + flat1309 = self._try_flat(msg, self.pretty_monoid_def) + if flat1309 is not None: + assert flat1309 is not None + self.write(flat1309) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1696 = _dollar_dollar.attrs + _t1722 = _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 + _t1722 = None + fields1302 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1722,) + assert fields1302 is not None + unwrapped_fields1303 = fields1302 self.write("(monoid") self.indent_sexp() self.newline() - field1291 = unwrapped_fields1290[0] - self.pretty_monoid(field1291) + field1304 = unwrapped_fields1303[0] + self.pretty_monoid(field1304) self.newline() - field1292 = unwrapped_fields1290[1] - self.pretty_relation_id(field1292) + field1305 = unwrapped_fields1303[1] + self.pretty_relation_id(field1305) self.newline() - field1293 = unwrapped_fields1290[2] - self.pretty_abstraction_with_arity(field1293) - field1294 = unwrapped_fields1290[3] - if field1294 is not None: + field1306 = unwrapped_fields1303[2] + self.pretty_abstraction_with_arity(field1306) + field1307 = unwrapped_fields1303[3] + if field1307 is not None: self.newline() - assert field1294 is not None - opt_val1295 = field1294 - self.pretty_attrs(opt_val1295) + assert field1307 is not None + opt_val1308 = field1307 + self.pretty_attrs(opt_val1308) 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) + flat1318 = self._try_flat(msg, self.pretty_monoid) + if flat1318 is not None: + assert flat1318 is not None + self.write(flat1318) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("or_monoid"): - _t1697 = _dollar_dollar.or_monoid + _t1723 = _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) + _t1723 = None + deconstruct_result1316 = _t1723 + if deconstruct_result1316 is not None: + assert deconstruct_result1316 is not None + unwrapped1317 = deconstruct_result1316 + self.pretty_or_monoid(unwrapped1317) else: _dollar_dollar = msg if _dollar_dollar.HasField("min_monoid"): - _t1698 = _dollar_dollar.min_monoid + _t1724 = _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) + _t1724 = None + deconstruct_result1314 = _t1724 + if deconstruct_result1314 is not None: + assert deconstruct_result1314 is not None + unwrapped1315 = deconstruct_result1314 + self.pretty_min_monoid(unwrapped1315) else: _dollar_dollar = msg if _dollar_dollar.HasField("max_monoid"): - _t1699 = _dollar_dollar.max_monoid + _t1725 = _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) + _t1725 = None + deconstruct_result1312 = _t1725 + if deconstruct_result1312 is not None: + assert deconstruct_result1312 is not None + unwrapped1313 = deconstruct_result1312 + self.pretty_max_monoid(unwrapped1313) else: _dollar_dollar = msg if _dollar_dollar.HasField("sum_monoid"): - _t1700 = _dollar_dollar.sum_monoid + _t1726 = _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) + _t1726 = None + deconstruct_result1310 = _t1726 + if deconstruct_result1310 is not None: + assert deconstruct_result1310 is not None + unwrapped1311 = deconstruct_result1310 + self.pretty_sum_monoid(unwrapped1311) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1306 = msg + fields1319 = 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) + flat1322 = self._try_flat(msg, self.pretty_min_monoid) + if flat1322 is not None: + assert flat1322 is not None + self.write(flat1322) return None else: _dollar_dollar = msg - fields1307 = _dollar_dollar.type - assert fields1307 is not None - unwrapped_fields1308 = fields1307 + fields1320 = _dollar_dollar.type + assert fields1320 is not None + unwrapped_fields1321 = fields1320 self.write("(min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1308) + self.pretty_type(unwrapped_fields1321) 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) + flat1325 = self._try_flat(msg, self.pretty_max_monoid) + if flat1325 is not None: + assert flat1325 is not None + self.write(flat1325) return None else: _dollar_dollar = msg - fields1310 = _dollar_dollar.type - assert fields1310 is not None - unwrapped_fields1311 = fields1310 + fields1323 = _dollar_dollar.type + assert fields1323 is not None + unwrapped_fields1324 = fields1323 self.write("(max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1311) + self.pretty_type(unwrapped_fields1324) 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) + flat1328 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1328 is not None: + assert flat1328 is not None + self.write(flat1328) return None else: _dollar_dollar = msg - fields1313 = _dollar_dollar.type - assert fields1313 is not None - unwrapped_fields1314 = fields1313 + fields1326 = _dollar_dollar.type + assert fields1326 is not None + unwrapped_fields1327 = fields1326 self.write("(sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1314) + self.pretty_type(unwrapped_fields1327) 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) + flat1336 = self._try_flat(msg, self.pretty_monus_def) + if flat1336 is not None: + assert flat1336 is not None + self.write(flat1336) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1701 = _dollar_dollar.attrs + _t1727 = _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 + _t1727 = None + fields1329 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1727,) + assert fields1329 is not None + unwrapped_fields1330 = fields1329 self.write("(monus") self.indent_sexp() self.newline() - field1318 = unwrapped_fields1317[0] - self.pretty_monoid(field1318) + field1331 = unwrapped_fields1330[0] + self.pretty_monoid(field1331) self.newline() - field1319 = unwrapped_fields1317[1] - self.pretty_relation_id(field1319) + field1332 = unwrapped_fields1330[1] + self.pretty_relation_id(field1332) self.newline() - field1320 = unwrapped_fields1317[2] - self.pretty_abstraction_with_arity(field1320) - field1321 = unwrapped_fields1317[3] - if field1321 is not None: + field1333 = unwrapped_fields1330[2] + self.pretty_abstraction_with_arity(field1333) + field1334 = unwrapped_fields1330[3] + if field1334 is not None: self.newline() - assert field1321 is not None - opt_val1322 = field1321 - self.pretty_attrs(opt_val1322) + assert field1334 is not None + opt_val1335 = field1334 + self.pretty_attrs(opt_val1335) 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) + flat1343 = self._try_flat(msg, self.pretty_constraint) + if flat1343 is not None: + assert flat1343 is not None + self.write(flat1343) 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 + fields1337 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) + assert fields1337 is not None + unwrapped_fields1338 = fields1337 self.write("(functional_dependency") self.indent_sexp() self.newline() - field1326 = unwrapped_fields1325[0] - self.pretty_relation_id(field1326) + field1339 = unwrapped_fields1338[0] + self.pretty_relation_id(field1339) self.newline() - field1327 = unwrapped_fields1325[1] - self.pretty_abstraction(field1327) + field1340 = unwrapped_fields1338[1] + self.pretty_abstraction(field1340) self.newline() - field1328 = unwrapped_fields1325[2] - self.pretty_functional_dependency_keys(field1328) + field1341 = unwrapped_fields1338[2] + self.pretty_functional_dependency_keys(field1341) self.newline() - field1329 = unwrapped_fields1325[3] - self.pretty_functional_dependency_values(field1329) + field1342 = unwrapped_fields1338[3] + self.pretty_functional_dependency_values(field1342) 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) + flat1347 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1347 is not None: + assert flat1347 is not None + self.write(flat1347) return None else: - fields1331 = msg + fields1344 = msg self.write("(keys") self.indent_sexp() - if not len(fields1331) == 0: + if not len(fields1344) == 0: self.newline() - for i1333, elem1332 in enumerate(fields1331): - if (i1333 > 0): + for i1346, elem1345 in enumerate(fields1344): + if (i1346 > 0): self.newline() - self.pretty_var(elem1332) + self.pretty_var(elem1345) 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) + flat1351 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1351 is not None: + assert flat1351 is not None + self.write(flat1351) return None else: - fields1335 = msg + fields1348 = msg self.write("(values") self.indent_sexp() - if not len(fields1335) == 0: + if not len(fields1348) == 0: self.newline() - for i1337, elem1336 in enumerate(fields1335): - if (i1337 > 0): + for i1350, elem1349 in enumerate(fields1348): + if (i1350 > 0): self.newline() - self.pretty_var(elem1336) + self.pretty_var(elem1349) 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) + flat1360 = self._try_flat(msg, self.pretty_data) + if flat1360 is not None: + assert flat1360 is not None + self.write(flat1360) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("edb"): - _t1702 = _dollar_dollar.edb + _t1728 = _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) + _t1728 = None + deconstruct_result1358 = _t1728 + if deconstruct_result1358 is not None: + assert deconstruct_result1358 is not None + unwrapped1359 = deconstruct_result1358 + self.pretty_edb(unwrapped1359) else: _dollar_dollar = msg if _dollar_dollar.HasField("betree_relation"): - _t1703 = _dollar_dollar.betree_relation + _t1729 = _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) + _t1729 = None + deconstruct_result1356 = _t1729 + if deconstruct_result1356 is not None: + assert deconstruct_result1356 is not None + unwrapped1357 = deconstruct_result1356 + self.pretty_betree_relation(unwrapped1357) else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_data"): - _t1704 = _dollar_dollar.csv_data + _t1730 = _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) + _t1730 = None + deconstruct_result1354 = _t1730 + if deconstruct_result1354 is not None: + assert deconstruct_result1354 is not None + unwrapped1355 = deconstruct_result1354 + self.pretty_csv_data(unwrapped1355) else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_data"): - _t1705 = _dollar_dollar.iceberg_data + _t1731 = _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) + _t1731 = None + deconstruct_result1352 = _t1731 + if deconstruct_result1352 is not None: + assert deconstruct_result1352 is not None + unwrapped1353 = deconstruct_result1352 + self.pretty_iceberg_data(unwrapped1353) 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) + flat1366 = self._try_flat(msg, self.pretty_edb) + if flat1366 is not None: + assert flat1366 is not None + self.write(flat1366) 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 + fields1361 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + assert fields1361 is not None + unwrapped_fields1362 = fields1361 self.write("(edb") self.indent_sexp() self.newline() - field1350 = unwrapped_fields1349[0] - self.pretty_relation_id(field1350) + field1363 = unwrapped_fields1362[0] + self.pretty_relation_id(field1363) self.newline() - field1351 = unwrapped_fields1349[1] - self.pretty_edb_path(field1351) + field1364 = unwrapped_fields1362[1] + self.pretty_edb_path(field1364) self.newline() - field1352 = unwrapped_fields1349[2] - self.pretty_edb_types(field1352) + field1365 = unwrapped_fields1362[2] + self.pretty_edb_types(field1365) 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) + flat1370 = self._try_flat(msg, self.pretty_edb_path) + if flat1370 is not None: + assert flat1370 is not None + self.write(flat1370) return None else: - fields1354 = msg + fields1367 = msg self.write("[") self.indent() - for i1356, elem1355 in enumerate(fields1354): - if (i1356 > 0): + for i1369, elem1368 in enumerate(fields1367): + if (i1369 > 0): self.newline() - self.write(self.format_string_value(elem1355)) + self.write(self.format_string_value(elem1368)) 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) + flat1374 = self._try_flat(msg, self.pretty_edb_types) + if flat1374 is not None: + assert flat1374 is not None + self.write(flat1374) return None else: - fields1358 = msg + fields1371 = msg self.write("[") self.indent() - for i1360, elem1359 in enumerate(fields1358): - if (i1360 > 0): + for i1373, elem1372 in enumerate(fields1371): + if (i1373 > 0): self.newline() - self.pretty_type(elem1359) + self.pretty_type(elem1372) 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) + flat1379 = self._try_flat(msg, self.pretty_betree_relation) + if flat1379 is not None: + assert flat1379 is not None + self.write(flat1379) return None else: _dollar_dollar = msg - fields1362 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - assert fields1362 is not None - unwrapped_fields1363 = fields1362 + fields1375 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + assert fields1375 is not None + unwrapped_fields1376 = fields1375 self.write("(betree_relation") self.indent_sexp() self.newline() - field1364 = unwrapped_fields1363[0] - self.pretty_relation_id(field1364) + field1377 = unwrapped_fields1376[0] + self.pretty_relation_id(field1377) self.newline() - field1365 = unwrapped_fields1363[1] - self.pretty_betree_info(field1365) + field1378 = unwrapped_fields1376[1] + self.pretty_betree_info(field1378) 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) + flat1385 = self._try_flat(msg, self.pretty_betree_info) + if flat1385 is not None: + assert flat1385 is not None + self.write(flat1385) 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 + _t1732 = self.deconstruct_betree_info_config(_dollar_dollar) + fields1380 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1732,) + assert fields1380 is not None + unwrapped_fields1381 = fields1380 self.write("(betree_info") self.indent_sexp() self.newline() - field1369 = unwrapped_fields1368[0] - self.pretty_betree_info_key_types(field1369) + field1382 = unwrapped_fields1381[0] + self.pretty_betree_info_key_types(field1382) self.newline() - field1370 = unwrapped_fields1368[1] - self.pretty_betree_info_value_types(field1370) + field1383 = unwrapped_fields1381[1] + self.pretty_betree_info_value_types(field1383) self.newline() - field1371 = unwrapped_fields1368[2] - self.pretty_config_dict(field1371) + field1384 = unwrapped_fields1381[2] + self.pretty_config_dict(field1384) 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) + flat1389 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1389 is not None: + assert flat1389 is not None + self.write(flat1389) return None else: - fields1373 = msg + fields1386 = msg self.write("(key_types") self.indent_sexp() - if not len(fields1373) == 0: + if not len(fields1386) == 0: self.newline() - for i1375, elem1374 in enumerate(fields1373): - if (i1375 > 0): + for i1388, elem1387 in enumerate(fields1386): + if (i1388 > 0): self.newline() - self.pretty_type(elem1374) + self.pretty_type(elem1387) 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) + flat1393 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1393 is not None: + assert flat1393 is not None + self.write(flat1393) return None else: - fields1377 = msg + fields1390 = msg self.write("(value_types") self.indent_sexp() - if not len(fields1377) == 0: + if not len(fields1390) == 0: self.newline() - for i1379, elem1378 in enumerate(fields1377): - if (i1379 > 0): + for i1392, elem1391 in enumerate(fields1390): + if (i1392 > 0): self.newline() - self.pretty_type(elem1378) + self.pretty_type(elem1391) 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) + flat1403 = self._try_flat(msg, self.pretty_csv_data) + if flat1403 is not None: + assert flat1403 is not None + self.write(flat1403) 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 + _t1733 = self.deconstruct_csv_data_columns_optional(_dollar_dollar) + _t1734 = self.deconstruct_csv_data_target_optional(_dollar_dollar) + fields1394 = (_dollar_dollar.locator, _dollar_dollar.config, _t1733, _t1734, _dollar_dollar.asof,) + assert fields1394 is not None + unwrapped_fields1395 = fields1394 self.write("(csv_data") self.indent_sexp() self.newline() - field1383 = unwrapped_fields1382[0] - self.pretty_csvlocator(field1383) + field1396 = unwrapped_fields1395[0] + self.pretty_csvlocator(field1396) self.newline() - field1384 = unwrapped_fields1382[1] - self.pretty_csv_config(field1384) - self.newline() - field1385 = unwrapped_fields1382[2] - self.pretty_gnf_columns(field1385) + field1397 = unwrapped_fields1395[1] + self.pretty_csv_config(field1397) + field1398 = unwrapped_fields1395[2] + if field1398 is not None: + self.newline() + assert field1398 is not None + opt_val1399 = field1398 + self.pretty_gnf_columns(opt_val1399) + field1400 = unwrapped_fields1395[3] + if field1400 is not None: + self.newline() + assert field1400 is not None + opt_val1401 = field1400 + self.pretty_csv_table(opt_val1401) self.newline() - field1386 = unwrapped_fields1382[3] - self.pretty_csv_asof(field1386) + field1402 = unwrapped_fields1395[4] + self.pretty_csv_asof(field1402) 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) + flat1410 = self._try_flat(msg, self.pretty_csvlocator) + if flat1410 is not None: + assert flat1410 is not None + self.write(flat1410) return None else: _dollar_dollar = msg if not len(_dollar_dollar.paths) == 0: - _t1707 = _dollar_dollar.paths + _t1735 = _dollar_dollar.paths else: - _t1707 = None + _t1735 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1708 = _dollar_dollar.inline_data.decode('utf-8') + _t1736 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1708 = None - fields1388 = (_t1707, _t1708,) - assert fields1388 is not None - unwrapped_fields1389 = fields1388 + _t1736 = None + fields1404 = (_t1735, _t1736,) + assert fields1404 is not None + unwrapped_fields1405 = fields1404 self.write("(csv_locator") self.indent_sexp() - field1390 = unwrapped_fields1389[0] - if field1390 is not None: + field1406 = unwrapped_fields1405[0] + if field1406 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 field1406 is not None + opt_val1407 = field1406 + self.pretty_csv_locator_paths(opt_val1407) + field1408 = unwrapped_fields1405[1] + if field1408 is not None: self.newline() - assert field1392 is not None - opt_val1393 = field1392 - self.pretty_csv_locator_inline_data(opt_val1393) + assert field1408 is not None + opt_val1409 = field1408 + self.pretty_csv_locator_inline_data(opt_val1409) 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) + flat1414 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1414 is not None: + assert flat1414 is not None + self.write(flat1414) return None else: - fields1395 = msg + fields1411 = msg self.write("(paths") self.indent_sexp() - if not len(fields1395) == 0: + if not len(fields1411) == 0: self.newline() - for i1397, elem1396 in enumerate(fields1395): - if (i1397 > 0): + for i1413, elem1412 in enumerate(fields1411): + if (i1413 > 0): self.newline() - self.write(self.format_string_value(elem1396)) + self.write(self.format_string_value(elem1412)) 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) + flat1416 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1416 is not None: + assert flat1416 is not None + self.write(flat1416) return None else: - fields1399 = msg + fields1415 = msg self.write("(inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1399)) + self.write(self.format_string_value(fields1415)) 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) + flat1419 = self._try_flat(msg, self.pretty_csv_config) + if flat1419 is not None: + assert flat1419 is not None + self.write(flat1419) return None else: _dollar_dollar = msg - _t1709 = self.deconstruct_csv_config(_dollar_dollar) - fields1401 = _t1709 - assert fields1401 is not None - unwrapped_fields1402 = fields1401 + _t1737 = self.deconstruct_csv_config(_dollar_dollar) + fields1417 = _t1737 + assert fields1417 is not None + unwrapped_fields1418 = fields1417 self.write("(csv_config") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields1402) + self.pretty_config_dict(unwrapped_fields1418) 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) + flat1423 = self._try_flat(msg, self.pretty_gnf_columns) + if flat1423 is not None: + assert flat1423 is not None + self.write(flat1423) return None else: - fields1404 = msg + fields1420 = msg self.write("(columns") self.indent_sexp() - if not len(fields1404) == 0: + if not len(fields1420) == 0: self.newline() - for i1406, elem1405 in enumerate(fields1404): - if (i1406 > 0): + for i1422, elem1421 in enumerate(fields1420): + if (i1422 > 0): self.newline() - self.pretty_gnf_column(elem1405) + self.pretty_gnf_column(elem1421) 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) + flat1432 = self._try_flat(msg, self.pretty_gnf_column) + if flat1432 is not None: + assert flat1432 is not None + self.write(flat1432) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("target_id"): - _t1710 = _dollar_dollar.target_id + _t1738 = _dollar_dollar.target_id else: - _t1710 = None - fields1408 = (_dollar_dollar.column_path, _t1710, _dollar_dollar.types,) - assert fields1408 is not None - unwrapped_fields1409 = fields1408 + _t1738 = None + fields1424 = (_dollar_dollar.column_path, _t1738, _dollar_dollar.types,) + assert fields1424 is not None + unwrapped_fields1425 = fields1424 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: + field1426 = unwrapped_fields1425[0] + self.pretty_gnf_column_path(field1426) + field1427 = unwrapped_fields1425[1] + if field1427 is not None: self.newline() - assert field1411 is not None - opt_val1412 = field1411 - self.pretty_relation_id(opt_val1412) + assert field1427 is not None + opt_val1428 = field1427 + self.pretty_relation_id(opt_val1428) self.newline() self.write("[") - field1413 = unwrapped_fields1409[2] - for i1415, elem1414 in enumerate(field1413): - if (i1415 > 0): + field1429 = unwrapped_fields1425[2] + for i1431, elem1430 in enumerate(field1429): + if (i1431 > 0): self.newline() - self.pretty_type(elem1414) + self.pretty_type(elem1430) 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) + flat1439 = self._try_flat(msg, self.pretty_gnf_column_path) + if flat1439 is not None: + assert flat1439 is not None + self.write(flat1439) return None else: _dollar_dollar = msg if len(_dollar_dollar) == 1: - _t1711 = _dollar_dollar[0] + _t1739 = _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)) + _t1739 = None + deconstruct_result1437 = _t1739 + if deconstruct_result1437 is not None: + assert deconstruct_result1437 is not None + unwrapped1438 = deconstruct_result1437 + self.write(self.format_string_value(unwrapped1438)) else: _dollar_dollar = msg if len(_dollar_dollar) != 1: - _t1712 = _dollar_dollar + _t1740 = _dollar_dollar else: - _t1712 = None - deconstruct_result1417 = _t1712 - if deconstruct_result1417 is not None: - assert deconstruct_result1417 is not None - unwrapped1418 = deconstruct_result1417 + _t1740 = None + deconstruct_result1433 = _t1740 + if deconstruct_result1433 is not None: + assert deconstruct_result1433 is not None + unwrapped1434 = deconstruct_result1433 self.write("[") self.indent() - for i1420, elem1419 in enumerate(unwrapped1418): - if (i1420 > 0): + for i1436, elem1435 in enumerate(unwrapped1434): + if (i1436 > 0): self.newline() - self.write(self.format_string_value(elem1419)) + self.write(self.format_string_value(elem1435)) self.dedent() self.write("]") else: raise ParseError("No matching rule for gnf_column_path") + def pretty_csv_table(self, msg: logic_pb2.CSVTarget): + flat1449 = self._try_flat(msg, self.pretty_csv_table) + if flat1449 is not None: + assert flat1449 is not None + self.write(flat1449) + return None + else: + _dollar_dollar = msg + fields1440 = (_dollar_dollar.target_id, _dollar_dollar.column_names, _dollar_dollar.types,) + assert fields1440 is not None + unwrapped_fields1441 = fields1440 + self.write("(table") + self.indent_sexp() + self.newline() + field1442 = unwrapped_fields1441[0] + self.pretty_relation_id(field1442) + self.newline() + self.write("[") + field1443 = unwrapped_fields1441[1] + for i1445, elem1444 in enumerate(field1443): + if (i1445 > 0): + self.newline() + self.write(self.format_string_value(elem1444)) + self.write("]") + self.newline() + self.write("[") + field1446 = unwrapped_fields1441[2] + for i1448, elem1447 in enumerate(field1446): + if (i1448 > 0): + self.newline() + self.pretty_type(elem1447) + self.write("]") + self.dedent() + self.write(")") + 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) + flat1451 = self._try_flat(msg, self.pretty_csv_asof) + if flat1451 is not None: + assert flat1451 is not None + self.write(flat1451) return None else: - fields1424 = msg + fields1450 = msg self.write("(asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1424)) + self.write(self.format_string_value(fields1450)) 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) + flat1462 = self._try_flat(msg, self.pretty_iceberg_data) + if flat1462 is not None: + assert flat1462 is not None + self.write(flat1462) 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 + _t1741 = self.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1742 = self.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1452 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1741, _t1742, _dollar_dollar.returns_delta,) + assert fields1452 is not None + unwrapped_fields1453 = fields1452 self.write("(iceberg_data") self.indent_sexp() self.newline() - field1428 = unwrapped_fields1427[0] - self.pretty_iceberg_locator(field1428) + field1454 = unwrapped_fields1453[0] + self.pretty_iceberg_locator(field1454) self.newline() - field1429 = unwrapped_fields1427[1] - self.pretty_iceberg_catalog_config(field1429) + field1455 = unwrapped_fields1453[1] + self.pretty_iceberg_catalog_config(field1455) self.newline() - field1430 = unwrapped_fields1427[2] - self.pretty_gnf_columns(field1430) - field1431 = unwrapped_fields1427[3] - if field1431 is not None: + field1456 = unwrapped_fields1453[2] + self.pretty_gnf_columns(field1456) + field1457 = unwrapped_fields1453[3] + if field1457 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 field1457 is not None + opt_val1458 = field1457 + self.pretty_iceberg_from_snapshot(opt_val1458) + field1459 = unwrapped_fields1453[4] + if field1459 is not None: self.newline() - assert field1433 is not None - opt_val1434 = field1433 - self.pretty_iceberg_to_snapshot(opt_val1434) + assert field1459 is not None + opt_val1460 = field1459 + self.pretty_iceberg_to_snapshot(opt_val1460) self.newline() - field1435 = unwrapped_fields1427[5] - self.pretty_boolean_value(field1435) + field1461 = unwrapped_fields1453[5] + self.pretty_boolean_value(field1461) 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) + flat1468 = self._try_flat(msg, self.pretty_iceberg_locator) + if flat1468 is not None: + assert flat1468 is not None + self.write(flat1468) 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 + fields1463 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + assert fields1463 is not None + unwrapped_fields1464 = fields1463 self.write("(iceberg_locator") self.indent_sexp() self.newline() - field1439 = unwrapped_fields1438[0] - self.pretty_iceberg_locator_table_name(field1439) + field1465 = unwrapped_fields1464[0] + self.pretty_iceberg_locator_table_name(field1465) self.newline() - field1440 = unwrapped_fields1438[1] - self.pretty_iceberg_locator_namespace(field1440) + field1466 = unwrapped_fields1464[1] + self.pretty_iceberg_locator_namespace(field1466) self.newline() - field1441 = unwrapped_fields1438[2] - self.pretty_iceberg_locator_warehouse(field1441) + field1467 = unwrapped_fields1464[2] + self.pretty_iceberg_locator_warehouse(field1467) 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) + flat1470 = self._try_flat(msg, self.pretty_iceberg_locator_table_name) + if flat1470 is not None: + assert flat1470 is not None + self.write(flat1470) return None else: - fields1443 = msg + fields1469 = msg self.write("(table_name") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1443)) + self.write(self.format_string_value(fields1469)) 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) + flat1474 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) + if flat1474 is not None: + assert flat1474 is not None + self.write(flat1474) return None else: - fields1445 = msg + fields1471 = msg self.write("(namespace") self.indent_sexp() - if not len(fields1445) == 0: + if not len(fields1471) == 0: self.newline() - for i1447, elem1446 in enumerate(fields1445): - if (i1447 > 0): + for i1473, elem1472 in enumerate(fields1471): + if (i1473 > 0): self.newline() - self.write(self.format_string_value(elem1446)) + self.write(self.format_string_value(elem1472)) 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) + flat1476 = self._try_flat(msg, self.pretty_iceberg_locator_warehouse) + if flat1476 is not None: + assert flat1476 is not None + self.write(flat1476) return None else: - fields1449 = msg + fields1475 = msg self.write("(warehouse") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1449)) + self.write(self.format_string_value(fields1475)) 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) + flat1484 = self._try_flat(msg, self.pretty_iceberg_catalog_config) + if flat1484 is not None: + assert flat1484 is not None + self.write(flat1484) 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 + _t1743 = self.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1477 = (_dollar_dollar.catalog_uri, _t1743, sorted(_dollar_dollar.properties.items()), sorted(_dollar_dollar.auth_properties.items()),) + assert fields1477 is not None + unwrapped_fields1478 = fields1477 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: + field1479 = unwrapped_fields1478[0] + self.pretty_iceberg_catalog_uri(field1479) + field1480 = unwrapped_fields1478[1] + if field1480 is not None: self.newline() - assert field1454 is not None - opt_val1455 = field1454 - self.pretty_iceberg_catalog_config_scope(opt_val1455) + assert field1480 is not None + opt_val1481 = field1480 + self.pretty_iceberg_catalog_config_scope(opt_val1481) self.newline() - field1456 = unwrapped_fields1452[2] - self.pretty_iceberg_properties(field1456) + field1482 = unwrapped_fields1478[2] + self.pretty_iceberg_properties(field1482) self.newline() - field1457 = unwrapped_fields1452[3] - self.pretty_iceberg_auth_properties(field1457) + field1483 = unwrapped_fields1478[3] + self.pretty_iceberg_auth_properties(field1483) 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) + flat1486 = self._try_flat(msg, self.pretty_iceberg_catalog_uri) + if flat1486 is not None: + assert flat1486 is not None + self.write(flat1486) return None else: - fields1459 = msg + fields1485 = msg self.write("(catalog_uri") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1459)) + self.write(self.format_string_value(fields1485)) 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) + flat1488 = self._try_flat(msg, self.pretty_iceberg_catalog_config_scope) + if flat1488 is not None: + assert flat1488 is not None + self.write(flat1488) return None else: - fields1461 = msg + fields1487 = msg self.write("(scope") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1461)) + self.write(self.format_string_value(fields1487)) 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) + flat1492 = self._try_flat(msg, self.pretty_iceberg_properties) + if flat1492 is not None: + assert flat1492 is not None + self.write(flat1492) return None else: - fields1463 = msg + fields1489 = msg self.write("(properties") self.indent_sexp() - if not len(fields1463) == 0: + if not len(fields1489) == 0: self.newline() - for i1465, elem1464 in enumerate(fields1463): - if (i1465 > 0): + for i1491, elem1490 in enumerate(fields1489): + if (i1491 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1464) + self.pretty_iceberg_property_entry(elem1490) 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) + flat1497 = self._try_flat(msg, self.pretty_iceberg_property_entry) + if flat1497 is not None: + assert flat1497 is not None + self.write(flat1497) return None else: _dollar_dollar = msg - fields1467 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields1467 is not None - unwrapped_fields1468 = fields1467 + fields1493 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields1493 is not None + unwrapped_fields1494 = fields1493 self.write("(prop") self.indent_sexp() self.newline() - field1469 = unwrapped_fields1468[0] - self.write(self.format_string_value(field1469)) + field1495 = unwrapped_fields1494[0] + self.write(self.format_string_value(field1495)) self.newline() - field1470 = unwrapped_fields1468[1] - self.write(self.format_string_value(field1470)) + field1496 = unwrapped_fields1494[1] + self.write(self.format_string_value(field1496)) 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) + flat1501 = self._try_flat(msg, self.pretty_iceberg_auth_properties) + if flat1501 is not None: + assert flat1501 is not None + self.write(flat1501) return None else: - fields1472 = msg + fields1498 = msg self.write("(auth_properties") self.indent_sexp() - if not len(fields1472) == 0: + if not len(fields1498) == 0: self.newline() - for i1474, elem1473 in enumerate(fields1472): - if (i1474 > 0): + for i1500, elem1499 in enumerate(fields1498): + if (i1500 > 0): self.newline() - self.pretty_iceberg_masked_property_entry(elem1473) + self.pretty_iceberg_masked_property_entry(elem1499) 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) + flat1506 = self._try_flat(msg, self.pretty_iceberg_masked_property_entry) + if flat1506 is not None: + assert flat1506 is not None + self.write(flat1506) 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 + _t1744 = self.mask_secret_value(_dollar_dollar) + fields1502 = (_dollar_dollar[0], _t1744,) + assert fields1502 is not None + unwrapped_fields1503 = fields1502 self.write("(prop") self.indent_sexp() self.newline() - field1478 = unwrapped_fields1477[0] - self.write(self.format_string_value(field1478)) + field1504 = unwrapped_fields1503[0] + self.write(self.format_string_value(field1504)) self.newline() - field1479 = unwrapped_fields1477[1] - self.write(self.format_string_value(field1479)) + field1505 = unwrapped_fields1503[1] + self.write(self.format_string_value(field1505)) 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) + flat1508 = self._try_flat(msg, self.pretty_iceberg_from_snapshot) + if flat1508 is not None: + assert flat1508 is not None + self.write(flat1508) return None else: - fields1481 = msg + fields1507 = msg self.write("(from_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1481)) + self.write(self.format_string_value(fields1507)) 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) + flat1510 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) + if flat1510 is not None: + assert flat1510 is not None + self.write(flat1510) return None else: - fields1483 = msg + fields1509 = msg self.write("(to_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1483)) + self.write(self.format_string_value(fields1509)) 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) + flat1513 = self._try_flat(msg, self.pretty_undefine) + if flat1513 is not None: + assert flat1513 is not None + self.write(flat1513) return None else: _dollar_dollar = msg - fields1485 = _dollar_dollar.fragment_id - assert fields1485 is not None - unwrapped_fields1486 = fields1485 + fields1511 = _dollar_dollar.fragment_id + assert fields1511 is not None + unwrapped_fields1512 = fields1511 self.write("(undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1486) + self.pretty_fragment_id(unwrapped_fields1512) 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) + flat1518 = self._try_flat(msg, self.pretty_context) + if flat1518 is not None: + assert flat1518 is not None + self.write(flat1518) return None else: _dollar_dollar = msg - fields1488 = _dollar_dollar.relations - assert fields1488 is not None - unwrapped_fields1489 = fields1488 + fields1514 = _dollar_dollar.relations + assert fields1514 is not None + unwrapped_fields1515 = fields1514 self.write("(context") self.indent_sexp() - if not len(unwrapped_fields1489) == 0: + if not len(unwrapped_fields1515) == 0: self.newline() - for i1491, elem1490 in enumerate(unwrapped_fields1489): - if (i1491 > 0): + for i1517, elem1516 in enumerate(unwrapped_fields1515): + if (i1517 > 0): self.newline() - self.pretty_relation_id(elem1490) + self.pretty_relation_id(elem1516) 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) + flat1525 = self._try_flat(msg, self.pretty_snapshot) + if flat1525 is not None: + assert flat1525 is not None + self.write(flat1525) return None else: _dollar_dollar = msg - fields1493 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - assert fields1493 is not None - unwrapped_fields1494 = fields1493 + fields1519 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + assert fields1519 is not None + unwrapped_fields1520 = fields1519 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: + field1521 = unwrapped_fields1520[0] + self.pretty_edb_path(field1521) + field1522 = unwrapped_fields1520[1] + if not len(field1522) == 0: self.newline() - for i1498, elem1497 in enumerate(field1496): - if (i1498 > 0): + for i1524, elem1523 in enumerate(field1522): + if (i1524 > 0): self.newline() - self.pretty_snapshot_mapping(elem1497) + self.pretty_snapshot_mapping(elem1523) 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) + flat1530 = self._try_flat(msg, self.pretty_snapshot_mapping) + if flat1530 is not None: + assert flat1530 is not None + self.write(flat1530) 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) + fields1526 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + assert fields1526 is not None + unwrapped_fields1527 = fields1526 + field1528 = unwrapped_fields1527[0] + self.pretty_edb_path(field1528) self.write(" ") - field1503 = unwrapped_fields1501[1] - self.pretty_relation_id(field1503) + field1529 = unwrapped_fields1527[1] + self.pretty_relation_id(field1529) 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) + flat1534 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1534 is not None: + assert flat1534 is not None + self.write(flat1534) return None else: - fields1505 = msg + fields1531 = msg self.write("(reads") self.indent_sexp() - if not len(fields1505) == 0: + if not len(fields1531) == 0: self.newline() - for i1507, elem1506 in enumerate(fields1505): - if (i1507 > 0): + for i1533, elem1532 in enumerate(fields1531): + if (i1533 > 0): self.newline() - self.pretty_read(elem1506) + self.pretty_read(elem1532) 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) + flat1545 = self._try_flat(msg, self.pretty_read) + if flat1545 is not None: + assert flat1545 is not None + self.write(flat1545) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("demand"): - _t1717 = _dollar_dollar.demand + _t1745 = _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) + _t1745 = None + deconstruct_result1543 = _t1745 + if deconstruct_result1543 is not None: + assert deconstruct_result1543 is not None + unwrapped1544 = deconstruct_result1543 + self.pretty_demand(unwrapped1544) else: _dollar_dollar = msg if _dollar_dollar.HasField("output"): - _t1718 = _dollar_dollar.output + _t1746 = _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) + _t1746 = None + deconstruct_result1541 = _t1746 + if deconstruct_result1541 is not None: + assert deconstruct_result1541 is not None + unwrapped1542 = deconstruct_result1541 + self.pretty_output(unwrapped1542) else: _dollar_dollar = msg if _dollar_dollar.HasField("what_if"): - _t1719 = _dollar_dollar.what_if + _t1747 = _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) + _t1747 = None + deconstruct_result1539 = _t1747 + if deconstruct_result1539 is not None: + assert deconstruct_result1539 is not None + unwrapped1540 = deconstruct_result1539 + self.pretty_what_if(unwrapped1540) else: _dollar_dollar = msg if _dollar_dollar.HasField("abort"): - _t1720 = _dollar_dollar.abort + _t1748 = _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) + _t1748 = None + deconstruct_result1537 = _t1748 + if deconstruct_result1537 is not None: + assert deconstruct_result1537 is not None + unwrapped1538 = deconstruct_result1537 + self.pretty_abort(unwrapped1538) else: _dollar_dollar = msg if _dollar_dollar.HasField("export"): - _t1721 = _dollar_dollar.export + _t1749 = _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) + _t1749 = None + deconstruct_result1535 = _t1749 + if deconstruct_result1535 is not None: + assert deconstruct_result1535 is not None + unwrapped1536 = deconstruct_result1535 + self.pretty_export(unwrapped1536) 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) + flat1548 = self._try_flat(msg, self.pretty_demand) + if flat1548 is not None: + assert flat1548 is not None + self.write(flat1548) return None else: _dollar_dollar = msg - fields1520 = _dollar_dollar.relation_id - assert fields1520 is not None - unwrapped_fields1521 = fields1520 + fields1546 = _dollar_dollar.relation_id + assert fields1546 is not None + unwrapped_fields1547 = fields1546 self.write("(demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1521) + self.pretty_relation_id(unwrapped_fields1547) 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) + flat1553 = self._try_flat(msg, self.pretty_output) + if flat1553 is not None: + assert flat1553 is not None + self.write(flat1553) return None else: _dollar_dollar = msg - fields1523 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - assert fields1523 is not None - unwrapped_fields1524 = fields1523 + fields1549 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + assert fields1549 is not None + unwrapped_fields1550 = fields1549 self.write("(output") self.indent_sexp() self.newline() - field1525 = unwrapped_fields1524[0] - self.pretty_name(field1525) + field1551 = unwrapped_fields1550[0] + self.pretty_name(field1551) self.newline() - field1526 = unwrapped_fields1524[1] - self.pretty_relation_id(field1526) + field1552 = unwrapped_fields1550[1] + self.pretty_relation_id(field1552) 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) + flat1558 = self._try_flat(msg, self.pretty_what_if) + if flat1558 is not None: + assert flat1558 is not None + self.write(flat1558) return None else: _dollar_dollar = msg - fields1528 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - assert fields1528 is not None - unwrapped_fields1529 = fields1528 + fields1554 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + assert fields1554 is not None + unwrapped_fields1555 = fields1554 self.write("(what_if") self.indent_sexp() self.newline() - field1530 = unwrapped_fields1529[0] - self.pretty_name(field1530) + field1556 = unwrapped_fields1555[0] + self.pretty_name(field1556) self.newline() - field1531 = unwrapped_fields1529[1] - self.pretty_epoch(field1531) + field1557 = unwrapped_fields1555[1] + self.pretty_epoch(field1557) 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) + flat1564 = self._try_flat(msg, self.pretty_abort) + if flat1564 is not None: + assert flat1564 is not None + self.write(flat1564) return None else: _dollar_dollar = msg if _dollar_dollar.name != "abort": - _t1722 = _dollar_dollar.name + _t1750 = _dollar_dollar.name else: - _t1722 = None - fields1533 = (_t1722, _dollar_dollar.relation_id,) - assert fields1533 is not None - unwrapped_fields1534 = fields1533 + _t1750 = None + fields1559 = (_t1750, _dollar_dollar.relation_id,) + assert fields1559 is not None + unwrapped_fields1560 = fields1559 self.write("(abort") self.indent_sexp() - field1535 = unwrapped_fields1534[0] - if field1535 is not None: + field1561 = unwrapped_fields1560[0] + if field1561 is not None: self.newline() - assert field1535 is not None - opt_val1536 = field1535 - self.pretty_name(opt_val1536) + assert field1561 is not None + opt_val1562 = field1561 + self.pretty_name(opt_val1562) self.newline() - field1537 = unwrapped_fields1534[1] - self.pretty_relation_id(field1537) + field1563 = unwrapped_fields1560[1] + self.pretty_relation_id(field1563) 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) + flat1569 = self._try_flat(msg, self.pretty_export) + if flat1569 is not None: + assert flat1569 is not None + self.write(flat1569) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_config"): - _t1723 = _dollar_dollar.csv_config + _t1751 = _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 + _t1751 = None + deconstruct_result1567 = _t1751 + if deconstruct_result1567 is not None: + assert deconstruct_result1567 is not None + unwrapped1568 = deconstruct_result1567 self.write("(export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped1542) + self.pretty_export_csv_config(unwrapped1568) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_config"): - _t1724 = _dollar_dollar.iceberg_config + _t1752 = _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 + _t1752 = None + deconstruct_result1565 = _t1752 + if deconstruct_result1565 is not None: + assert deconstruct_result1565 is not None + unwrapped1566 = deconstruct_result1565 self.write("(export_iceberg") self.indent_sexp() self.newline() - self.pretty_export_iceberg_config(unwrapped1540) + self.pretty_export_iceberg_config(unwrapped1566) 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) + flat1580 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1580 is not None: + assert flat1580 is not None + self.write(flat1580) 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,) + _t1753 = (_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 + _t1753 = None + deconstruct_result1575 = _t1753 + if deconstruct_result1575 is not None: + assert deconstruct_result1575 is not None + unwrapped1576 = deconstruct_result1575 self.write("(export_csv_config_v2") self.indent_sexp() self.newline() - field1551 = unwrapped1550[0] - self.pretty_export_csv_path(field1551) + field1577 = unwrapped1576[0] + self.pretty_export_csv_path(field1577) self.newline() - field1552 = unwrapped1550[1] - self.pretty_export_csv_source(field1552) + field1578 = unwrapped1576[1] + self.pretty_export_csv_source(field1578) self.newline() - field1553 = unwrapped1550[2] - self.pretty_csv_config(field1553) + field1579 = unwrapped1576[2] + self.pretty_csv_config(field1579) 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,) + _t1755 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1754 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1755,) else: - _t1726 = None - deconstruct_result1544 = _t1726 - if deconstruct_result1544 is not None: - assert deconstruct_result1544 is not None - unwrapped1545 = deconstruct_result1544 + _t1754 = None + deconstruct_result1570 = _t1754 + if deconstruct_result1570 is not None: + assert deconstruct_result1570 is not None + unwrapped1571 = deconstruct_result1570 self.write("(export_csv_config") self.indent_sexp() self.newline() - field1546 = unwrapped1545[0] - self.pretty_export_csv_path(field1546) + field1572 = unwrapped1571[0] + self.pretty_export_csv_path(field1572) self.newline() - field1547 = unwrapped1545[1] - self.pretty_export_csv_columns_list(field1547) + field1573 = unwrapped1571[1] + self.pretty_export_csv_columns_list(field1573) self.newline() - field1548 = unwrapped1545[2] - self.pretty_config_dict(field1548) + field1574 = unwrapped1571[2] + self.pretty_config_dict(field1574) 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) + flat1582 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1582 is not None: + assert flat1582 is not None + self.write(flat1582) return None else: - fields1555 = msg + fields1581 = msg self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1555)) + self.write(self.format_string_value(fields1581)) 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) + flat1589 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1589 is not None: + assert flat1589 is not None + self.write(flat1589) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("gnf_columns"): - _t1728 = _dollar_dollar.gnf_columns.columns + _t1756 = _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 + _t1756 = None + deconstruct_result1585 = _t1756 + if deconstruct_result1585 is not None: + assert deconstruct_result1585 is not None + unwrapped1586 = deconstruct_result1585 self.write("(gnf_columns") self.indent_sexp() - if not len(unwrapped1560) == 0: + if not len(unwrapped1586) == 0: self.newline() - for i1562, elem1561 in enumerate(unwrapped1560): - if (i1562 > 0): + for i1588, elem1587 in enumerate(unwrapped1586): + if (i1588 > 0): self.newline() - self.pretty_export_csv_column(elem1561) + self.pretty_export_csv_column(elem1587) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("table_def"): - _t1729 = _dollar_dollar.table_def + _t1757 = _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 + _t1757 = None + deconstruct_result1583 = _t1757 + if deconstruct_result1583 is not None: + assert deconstruct_result1583 is not None + unwrapped1584 = deconstruct_result1583 self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped1558) + self.pretty_relation_id(unwrapped1584) 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) + flat1594 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1594 is not None: + assert flat1594 is not None + self.write(flat1594) return None else: _dollar_dollar = msg - fields1564 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - assert fields1564 is not None - unwrapped_fields1565 = fields1564 + fields1590 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + assert fields1590 is not None + unwrapped_fields1591 = fields1590 self.write("(column") self.indent_sexp() self.newline() - field1566 = unwrapped_fields1565[0] - self.write(self.format_string_value(field1566)) + field1592 = unwrapped_fields1591[0] + self.write(self.format_string_value(field1592)) self.newline() - field1567 = unwrapped_fields1565[1] - self.pretty_relation_id(field1567) + field1593 = unwrapped_fields1591[1] + self.pretty_relation_id(field1593) 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) + flat1598 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1598 is not None: + assert flat1598 is not None + self.write(flat1598) return None else: - fields1569 = msg + fields1595 = msg self.write("(columns") self.indent_sexp() - if not len(fields1569) == 0: + if not len(fields1595) == 0: self.newline() - for i1571, elem1570 in enumerate(fields1569): - if (i1571 > 0): + for i1597, elem1596 in enumerate(fields1595): + if (i1597 > 0): self.newline() - self.pretty_export_csv_column(elem1570) + self.pretty_export_csv_column(elem1596) 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) + flat1607 = self._try_flat(msg, self.pretty_export_iceberg_config) + if flat1607 is not None: + assert flat1607 is not None + self.write(flat1607) 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 + _t1758 = self.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1599 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sorted(_dollar_dollar.table_properties.items()), _t1758,) + assert fields1599 is not None + unwrapped_fields1600 = fields1599 self.write("(export_iceberg_config") self.indent_sexp() self.newline() - field1575 = unwrapped_fields1574[0] - self.pretty_iceberg_locator(field1575) + field1601 = unwrapped_fields1600[0] + self.pretty_iceberg_locator(field1601) self.newline() - field1576 = unwrapped_fields1574[1] - self.pretty_iceberg_catalog_config(field1576) + field1602 = unwrapped_fields1600[1] + self.pretty_iceberg_catalog_config(field1602) self.newline() - field1577 = unwrapped_fields1574[2] - self.pretty_export_iceberg_table_def(field1577) + field1603 = unwrapped_fields1600[2] + self.pretty_export_iceberg_table_def(field1603) self.newline() - field1578 = unwrapped_fields1574[3] - self.pretty_iceberg_table_properties(field1578) - field1579 = unwrapped_fields1574[4] - if field1579 is not None: + field1604 = unwrapped_fields1600[3] + self.pretty_iceberg_table_properties(field1604) + field1605 = unwrapped_fields1600[4] + if field1605 is not None: self.newline() - assert field1579 is not None - opt_val1580 = field1579 - self.pretty_config_dict(opt_val1580) + assert field1605 is not None + opt_val1606 = field1605 + self.pretty_config_dict(opt_val1606) 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) + flat1609 = self._try_flat(msg, self.pretty_export_iceberg_table_def) + if flat1609 is not None: + assert flat1609 is not None + self.write(flat1609) return None else: - fields1582 = msg + fields1608 = msg self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(fields1582) + self.pretty_relation_id(fields1608) 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) + flat1613 = self._try_flat(msg, self.pretty_iceberg_table_properties) + if flat1613 is not None: + assert flat1613 is not None + self.write(flat1613) return None else: - fields1584 = msg + fields1610 = msg self.write("(table_properties") self.indent_sexp() - if not len(fields1584) == 0: + if not len(fields1610) == 0: self.newline() - for i1586, elem1585 in enumerate(fields1584): - if (i1586 > 0): + for i1612, elem1611 in enumerate(fields1610): + if (i1612 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1585) + self.pretty_iceberg_property_entry(elem1611) self.dedent() self.write(")") @@ -4342,8 +4403,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) + _t1806 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1806) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") @@ -4610,6 +4671,8 @@ def pprint_dispatch(self, msg): self.pretty_csv_config(msg) elif isinstance(msg, logic_pb2.GNFColumn): self.pretty_gnf_column(msg) + elif isinstance(msg, logic_pb2.CSVTarget): + self.pretty_csv_table(msg) elif isinstance(msg, logic_pb2.IcebergData): self.pretty_iceberg_data(msg) elif isinstance(msg, logic_pb2.IcebergLocator): 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..4c1a2cdb 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\"\x9d\x01\n\tCSVTarget\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12!\n\x0c\x63olumn_names\x18\x02 \x03(\tR\x0b\x63olumnNames\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x92\x02\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\x12;\n\x06target\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVTargetH\x00R\x06target\x88\x01\x01\x42\t\n\x07_target\"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') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -122,68 +122,70 @@ _globals['_BETREECONFIG']._serialized_end=6516 _globals['_BETREELOCATOR']._serialized_start=6519 _globals['_BETREELOCATOR']._serialized_end=6721 - _globals['_CSVDATA']._serialized_start=6724 - _globals['_CSVDATA']._serialized_end=6926 - _globals['_CSVLOCATOR']._serialized_start=6928 - _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['_CSVTARGET']._serialized_start=6724 + _globals['_CSVTARGET']._serialized_end=6881 + _globals['_CSVDATA']._serialized_start=6884 + _globals['_CSVDATA']._serialized_end=7158 + _globals['_CSVLOCATOR']._serialized_start=7160 + _globals['_CSVLOCATOR']._serialized_end=7227 + _globals['_CSVCONFIG']._serialized_start=7230 + _globals['_CSVCONFIG']._serialized_end=7629 + _globals['_ICEBERGDATA']._serialized_start=7632 + _globals['_ICEBERGDATA']._serialized_end=7984 + _globals['_ICEBERGLOCATOR']._serialized_start=7986 + _globals['_ICEBERGLOCATOR']._serialized_end=8093 + _globals['_ICEBERGCATALOGCONFIG']._serialized_start=8096 + _globals['_ICEBERGCATALOGCONFIG']._serialized_end=8513 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_start=8375 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_end=8436 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_start=8438 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_end=8503 + _globals['_GNFCOLUMN']._serialized_start=8516 + _globals['_GNFCOLUMN']._serialized_end=8690 + _globals['_RELATIONID']._serialized_start=8692 + _globals['_RELATIONID']._serialized_end=8752 + _globals['_TYPE']._serialized_start=8755 + _globals['_TYPE']._serialized_end=9736 + _globals['_UNSPECIFIEDTYPE']._serialized_start=9738 + _globals['_UNSPECIFIEDTYPE']._serialized_end=9755 + _globals['_STRINGTYPE']._serialized_start=9757 + _globals['_STRINGTYPE']._serialized_end=9769 + _globals['_INTTYPE']._serialized_start=9771 + _globals['_INTTYPE']._serialized_end=9780 + _globals['_FLOATTYPE']._serialized_start=9782 + _globals['_FLOATTYPE']._serialized_end=9793 + _globals['_UINT128TYPE']._serialized_start=9795 + _globals['_UINT128TYPE']._serialized_end=9808 + _globals['_INT128TYPE']._serialized_start=9810 + _globals['_INT128TYPE']._serialized_end=9822 + _globals['_DATETYPE']._serialized_start=9824 + _globals['_DATETYPE']._serialized_end=9834 + _globals['_DATETIMETYPE']._serialized_start=9836 + _globals['_DATETIMETYPE']._serialized_end=9850 + _globals['_MISSINGTYPE']._serialized_start=9852 + _globals['_MISSINGTYPE']._serialized_end=9865 + _globals['_DECIMALTYPE']._serialized_start=9867 + _globals['_DECIMALTYPE']._serialized_end=9932 + _globals['_BOOLEANTYPE']._serialized_start=9934 + _globals['_BOOLEANTYPE']._serialized_end=9947 + _globals['_INT32TYPE']._serialized_start=9949 + _globals['_INT32TYPE']._serialized_end=9960 + _globals['_FLOAT32TYPE']._serialized_start=9962 + _globals['_FLOAT32TYPE']._serialized_end=9975 + _globals['_UINT32TYPE']._serialized_start=9977 + _globals['_UINT32TYPE']._serialized_end=9989 + _globals['_VALUE']._serialized_start=9992 + _globals['_VALUE']._serialized_end=10696 + _globals['_UINT128VALUE']._serialized_start=10698 + _globals['_UINT128VALUE']._serialized_end=10750 + _globals['_INT128VALUE']._serialized_start=10752 + _globals['_INT128VALUE']._serialized_end=10803 + _globals['_MISSINGVALUE']._serialized_start=10805 + _globals['_MISSINGVALUE']._serialized_end=10819 + _globals['_DATEVALUE']._serialized_start=10821 + _globals['_DATEVALUE']._serialized_end=10892 + _globals['_DATETIMEVALUE']._serialized_start=10895 + _globals['_DATETIMEVALUE']._serialized_end=11072 + _globals['_DECIMALVALUE']._serialized_start=11074 + _globals['_DECIMALVALUE']._serialized_end=11196 # @@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..1de3afe6 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] @@ -406,20 +406,32 @@ class BeTreeLocator(_message.Message): tree_height: int def __init__(self, root_pageid: _Optional[_Union[UInt128Value, _Mapping]] = ..., inline_data: _Optional[bytes] = ..., element_count: _Optional[int] = ..., tree_height: _Optional[int] = ...) -> None: ... +class CSVTarget(_message.Message): + __slots__ = ("target_id", "column_names", "types") + TARGET_ID_FIELD_NUMBER: _ClassVar[int] + COLUMN_NAMES_FIELD_NUMBER: _ClassVar[int] + TYPES_FIELD_NUMBER: _ClassVar[int] + target_id: RelationId + column_names: _containers.RepeatedScalarFieldContainer[str] + types: _containers.RepeatedCompositeFieldContainer[Type] + def __init__(self, target_id: _Optional[_Union[RelationId, _Mapping]] = ..., column_names: _Optional[_Iterable[str]] = ..., types: _Optional[_Iterable[_Union[Type, _Mapping]]] = ...) -> None: ... + class CSVData(_message.Message): - __slots__ = () + __slots__ = ("locator", "config", "columns", "asof", "target") LOCATOR_FIELD_NUMBER: _ClassVar[int] CONFIG_FIELD_NUMBER: _ClassVar[int] COLUMNS_FIELD_NUMBER: _ClassVar[int] ASOF_FIELD_NUMBER: _ClassVar[int] + TARGET_FIELD_NUMBER: _ClassVar[int] locator: CSVLocator config: CSVConfig columns: _containers.RepeatedCompositeFieldContainer[GNFColumn] asof: str - def __init__(self, locator: _Optional[_Union[CSVLocator, _Mapping]] = ..., config: _Optional[_Union[CSVConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., asof: _Optional[str] = ...) -> None: ... + target: CSVTarget + def __init__(self, locator: _Optional[_Union[CSVLocator, _Mapping]] = ..., config: _Optional[_Union[CSVConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., asof: _Optional[str] = ..., target: _Optional[_Union[CSVTarget, _Mapping]] = ...) -> 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 +439,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] @@ -455,7 +467,7 @@ class CSVConfig(_message.Message): 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 IcebergData(_message.Message): - __slots__ = () + __slots__ = ("locator", "config", "columns", "from_snapshot", "to_snapshot", "returns_delta") LOCATOR_FIELD_NUMBER: _ClassVar[int] CONFIG_FIELD_NUMBER: _ClassVar[int] COLUMNS_FIELD_NUMBER: _ClassVar[int] @@ -471,7 +483,7 @@ class IcebergData(_message.Message): 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: ... 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 +493,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 +519,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 +529,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 +537,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 +605,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 +629,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 +659,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 +667,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 +679,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 +689,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 +707,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/csv_table.bin b/tests/bin/csv_table.bin new file mode 100644 index 0000000000000000000000000000000000000000..2c6bca7a6a52cb5916060e3f5dc0082e93285fa7 GIT binary patch literal 757 zcmd;j!^-uRh3gdy*K-yw7A~eVL!k<#GN}?SaW2tfV=I0Aq|)T<)Dr#Fl=ReMz2xFD zA!!aqB}N@BMkOOgB`-$3AlA~7G+m1*mc-JMd?gVh10z#i0~1{X!w>@lD=>=EQsWZh zRNnVP=KYu2TY?*9S6IwhZdfhETwIha#GF!GBE=-d0K!7ej7klRQgvK%LNa-Yxv4tE z$@xX8T#h-J$*DS)dZt`X`AIq!dgeqr!O#@R37SABh)cE4mg2bZ4lGGGLXxHEmZBtzo zuNnev?Fi`;o1o&ICzxp&b8|+{G<6}S%oLb+%Mx=+Qz3y4@v>A7wg|!&V%R){)jC#i zf)Qc^2W_zs3n& `edges` +;; ID `0x27966c98d95c39696e4b2490168e5488` -> `items` +;; ID `0x75fe6a492e212797315ea43f5ecfa66e` -> `scores` +;; ID `0x3748e83f5d0a69e3301569af01e1de93` -> `tags` From b4e782aeae766b419eb79a4a81dea233a635064e Mon Sep 17 00:00:00 2001 From: Henrik Barthels <25176271+hbarthels@users.noreply.github.com> Date: Fri, 5 Jun 2026 23:49:05 +0200 Subject: [PATCH 2/2] Fix. --- sdks/julia/LogicalQueryProtocol.jl/src/properties.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/properties.jl b/sdks/julia/LogicalQueryProtocol.jl/src/properties.jl index 1ad25287..bd2a21d0 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/properties.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/properties.jl @@ -224,6 +224,11 @@ function global_ids(data::Data) elseif dt.name == :csv_data csv_data = dt[]::CSVData ids = LQPRelationId[] + # Table mode: the target carries a single relation ID for the whole table. + if !isnothing(csv_data.target) && !isnothing(csv_data.target.target_id) + push!(ids, persistent_id(csv_data.target.target_id)) + end + # Column mode: each GNFColumn has its own target_id. for column in csv_data.columns if !isnothing(column.target_id) push!(ids, persistent_id(column.target_id))