From 6bc18041bfe9862c081f60e7c9cdbefa91f8ff7f Mon Sep 17 00:00:00 2001 From: Henrik Barthels <25176271+hbarthels@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:43:21 +0200 Subject: [PATCH] Support a load_errors sink in the (relations ...) CSV loading form Add an optional trailing `(load_errors :name)` clause to the generalized `(relations ...)` loading form, naming the relation that collects rows which fail to load: (relations (keys (column "id" INT)) (relation :wide (column "label" STRING) (column "ratio" FLOAT)) (load_errors :my_load_errors)) The load-errors relation has a loader-determined schema that differs from the declared keys and per-relation value columns, so it is called out as its own clause rather than being another target relation. Backed by a presence-tracked `optional RelationId load_errors` on `TargetRelations`, so an absent sink is distinct from a default-valued one. The clause is accepted after both plain targets and CDC insert/delete deltas. Regenerates the protobuf bindings, parsers, and pretty printers for all three SDKs, and extends the Julia equality/hashing for `TargetRelations` to cover the new field. Co-Authored-By: Claude Opus 5 --- meta/src/meta/grammar.y | 26 +- proto/relationalai/lqp/v1/logic.proto | 4 + sdks/go/src/lqp/v1/logic.pb.go | 647 +- sdks/go/src/parser.go | 5884 +++++++++-------- sdks/go/src/pretty.go | 4132 ++++++------ .../LogicalQueryProtocol.jl/src/equality.jl | 6 +- .../src/gen/relationalai/lqp/v1/logic_pb.jl | 14 +- .../LogicalQueryProtocol.jl/src/parser.jl | 4959 +++++++------- .../LogicalQueryProtocol.jl/src/pretty.jl | 4177 ++++++------ .../test/equality_tests.jl | 11 +- sdks/python/src/lqp/gen/parser.py | 4907 +++++++------- sdks/python/src/lqp/gen/pretty.py | 4734 ++++++------- sdks/python/src/lqp/proto/v1/logic_pb2.py | 132 +- sdks/python/src/lqp/proto/v1/logic_pb2.pyi | 6 +- sdks/python/tests/test_parser.py | 53 + tests/bin/relations_load_errors.bin | Bin 0 -> 319 bytes tests/bin/relations_load_errors_cdc.bin | Bin 0 -> 415 bytes tests/lqp/relations_load_errors.lqp | 24 + tests/lqp/relations_load_errors_cdc.lqp | 26 + tests/pretty/relations_load_errors.lqp | 25 + tests/pretty/relations_load_errors_cdc.lqp | 29 + tests/pretty_debug/relations_load_errors.lqp | 36 + .../relations_load_errors_cdc.lqp | 36 + 23 files changed, 15152 insertions(+), 14716 deletions(-) create mode 100644 tests/bin/relations_load_errors.bin create mode 100644 tests/bin/relations_load_errors_cdc.bin create mode 100644 tests/lqp/relations_load_errors.lqp create mode 100644 tests/lqp/relations_load_errors_cdc.lqp create mode 100644 tests/pretty/relations_load_errors.lqp create mode 100644 tests/pretty/relations_load_errors_cdc.lqp create mode 100644 tests/pretty_debug/relations_load_errors.lqp create mode 100644 tests/pretty_debug/relations_load_errors_cdc.lqp diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index 9d50fb7f..f1fcf6ec 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -94,6 +94,7 @@ %nonterm cdc_inserts Sequence[logic.TargetRelation] %nonterm cdc_deletes Sequence[logic.TargetRelation] %nonterm relation_body logic.TargetRelations +%nonterm load_errors logic.RelationId %nonterm target_relations logic.TargetRelations %nonterm csv_config logic.CSVConfig %nonterm csv_data logic.CSVData @@ -1168,12 +1169,16 @@ relation_body $1: Sequence[logic.TargetRelation] = $$.cdc.inserts $2: Sequence[logic.TargetRelation] = $$.cdc.deletes +load_errors + : "(" "load_errors" relation_id ")" + target_relations - : "(" "relations" relation_keys relation_body ")" - construct: $$ = construct_relations($3, $4) + : "(" "relations" relation_keys relation_body load_errors? ")" + construct: $$ = construct_relations($3, $4, $5) deconstruct: $3: Tuple[Sequence[logic.NamedColumn], Boolean] = deconstruct_relation_keys($$) $4: logic.TargetRelations = $$ + $5: Optional[logic.RelationId] = deconstruct_load_errors_optional($$) csv_locator_paths : "(" "paths" STRING* ")" @@ -1570,13 +1575,26 @@ def deconstruct_relation_keys( return builtin.tuple(msg.keys, msg.synthetic_key) +def deconstruct_load_errors_optional( + msg: logic.TargetRelations, +) -> Optional[logic.RelationId]: + if builtin.has_proto_field(msg, "load_errors"): + return builtin.some(builtin.unwrap_option(msg.load_errors)) + return builtin.none() + + def construct_relations( keys: Tuple[Sequence[logic.NamedColumn], Boolean], body: logic.TargetRelations, + load_errors_opt: Optional[logic.RelationId], ) -> logic.TargetRelations: if builtin.has_proto_field(body, "plain"): - return logic.TargetRelations(keys=keys[0], synthetic_key=keys[1], plain=body.plain) - return logic.TargetRelations(keys=keys[0], synthetic_key=keys[1], cdc=body.cdc) + return logic.TargetRelations( + keys=keys[0], synthetic_key=keys[1], plain=body.plain, load_errors=load_errors_opt + ) + return logic.TargetRelations( + keys=keys[0], synthetic_key=keys[1], cdc=body.cdc, load_errors=load_errors_opt + ) def construct_csv_data( diff --git a/proto/relationalai/lqp/v1/logic.proto b/proto/relationalai/lqp/v1/logic.proto index c1eeb495..ca8c3dae 100644 --- a/proto/relationalai/lqp/v1/logic.proto +++ b/proto/relationalai/lqp/v1/logic.proto @@ -323,6 +323,10 @@ message TargetRelations { // If true, the shared key is synthesized by the loader (e.g. a generated row key) // instead of being drawn from CSV columns. Mutually exclusive with `keys`. bool synthetic_key = 4; + // If present, rows that fail to load are collected into this relation. Its schema is + // determined by the loader and differs from `keys` plus the per-relation value columns, + // which is why it is called out separately instead of being a regular target relation. + optional RelationId load_errors = 5; } message CSVData { diff --git a/sdks/go/src/lqp/v1/logic.pb.go b/sdks/go/src/lqp/v1/logic.pb.go index edd776c8..befa9580 100644 --- a/sdks/go/src/lqp/v1/logic.pb.go +++ b/sdks/go/src/lqp/v1/logic.pb.go @@ -3231,7 +3231,11 @@ type TargetRelations struct { Body isTargetRelations_Body `protobuf_oneof:"body"` // If true, the shared key is synthesized by the loader (e.g. a generated row key) // instead of being drawn from CSV columns. Mutually exclusive with `keys`. - SyntheticKey bool `protobuf:"varint,4,opt,name=synthetic_key,json=syntheticKey,proto3" json:"synthetic_key,omitempty"` + SyntheticKey bool `protobuf:"varint,4,opt,name=synthetic_key,json=syntheticKey,proto3" json:"synthetic_key,omitempty"` + // If present, rows that fail to load are collected into this relation. Its schema is + // determined by the loader and differs from `keys` plus the per-relation value columns, + // which is why it is called out separately instead of being a regular target relation. + LoadErrors *RelationId `protobuf:"bytes,5,opt,name=load_errors,json=loadErrors,proto3,oneof" json:"load_errors,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -3305,6 +3309,13 @@ func (x *TargetRelations) GetSyntheticKey() bool { return false } +func (x *TargetRelations) GetLoadErrors() *RelationId { + if x != nil { + return x.LoadErrors + } + return nil +} + type isTargetRelations_Body interface { isTargetRelations_Body() } @@ -5791,7 +5802,7 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 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, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0xe4, 0x01, 0x0a, + 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x73, 0x22, 0xbb, 0x02, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, @@ -5805,291 +5816,296 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x44, 0x43, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x73, 0x48, 0x00, 0x52, 0x03, 0x63, 0x64, 0x63, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x79, 0x6e, 0x74, 0x68, 0x65, 0x74, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, - 0x79, 0x6e, 0x74, 0x68, 0x65, 0x74, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x62, - 0x6f, 0x64, 0x79, 0x22, 0xa1, 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, + 0x79, 0x6e, 0x74, 0x68, 0x65, 0x74, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x0b, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x05, 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, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, + 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x48, 0x01, 0x52, 0x0a, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x88, + 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6c, + 0x6f, 0x61, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x22, 0xa1, 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, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 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, 0x43, 0x53, 0x56, 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, 0x12, 0x0a, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x12, 0x47, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 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, 0x43, 0x53, 0x56, 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, 0x12, 0x0a, 0x04, - 0x61, 0x73, 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, - 0x12, 0x47, 0x0a, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 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, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x86, 0x04, 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, 0x12, 0x5d, - 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x72, 0x65, + 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x48, 0x00, 0x52, 0x09, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, 0x01, 0x01, + 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x86, 0x04, 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, 0x12, 0x5d, 0x0a, 0x13, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x73, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, - 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, - 0x14, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, - 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, + 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, 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, + 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, 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, + 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, 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, + 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, 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, + 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, 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, + 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, 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, 0x54, 0x79, 0x70, 0x65, 0x48, - 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, - 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, - 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, - 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, - 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, - 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, - 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, - 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, - 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x2e, 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, - 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, 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, + 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, + 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, + 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, + 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, + 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, + 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, + 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0c, 0x66, 0x6c, 0x6f, + 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, + 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x48, + 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, 0x31, + 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, 0x0a, + 0x0b, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, + 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, + 0x67, 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, + 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, 0x0d, + 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, + 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, 0x0a, + 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, + 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, 0x0a, + 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, + 0x7a, 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, + 0x61, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, + 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -6297,44 +6313,45 @@ var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 44, // 105: relationalai.lqp.v1.TargetRelations.keys:type_name -> relationalai.lqp.v1.NamedColumn 46, // 106: relationalai.lqp.v1.TargetRelations.plain:type_name -> relationalai.lqp.v1.PlainTargets 47, // 107: relationalai.lqp.v1.TargetRelations.cdc:type_name -> relationalai.lqp.v1.CDCTargets - 50, // 108: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator - 51, // 109: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig - 55, // 110: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn - 48, // 111: relationalai.lqp.v1.CSVData.relations:type_name -> relationalai.lqp.v1.TargetRelations - 43, // 112: relationalai.lqp.v1.CSVConfig.storage_integration:type_name -> relationalai.lqp.v1.StorageIntegration - 53, // 113: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator - 54, // 114: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergCatalogConfig - 55, // 115: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn - 79, // 116: relationalai.lqp.v1.IcebergCatalogConfig.properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry - 80, // 117: relationalai.lqp.v1.IcebergCatalogConfig.auth_properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry - 56, // 118: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId - 57, // 119: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type - 58, // 120: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType - 59, // 121: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType - 60, // 122: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType - 61, // 123: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType - 62, // 124: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type - 63, // 125: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type - 64, // 126: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType - 65, // 127: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType - 66, // 128: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType - 67, // 129: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType - 68, // 130: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType - 69, // 131: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type - 70, // 132: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type - 71, // 133: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type - 73, // 134: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value - 74, // 135: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value - 75, // 136: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue - 76, // 137: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue - 77, // 138: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue - 78, // 139: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue - 74, // 140: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value - 141, // [141:141] is the sub-list for method output_type - 141, // [141:141] is the sub-list for method input_type - 141, // [141:141] is the sub-list for extension type_name - 141, // [141:141] is the sub-list for extension extendee - 0, // [0:141] is the sub-list for field type_name + 56, // 108: relationalai.lqp.v1.TargetRelations.load_errors:type_name -> relationalai.lqp.v1.RelationId + 50, // 109: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator + 51, // 110: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig + 55, // 111: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 48, // 112: relationalai.lqp.v1.CSVData.relations:type_name -> relationalai.lqp.v1.TargetRelations + 43, // 113: relationalai.lqp.v1.CSVConfig.storage_integration:type_name -> relationalai.lqp.v1.StorageIntegration + 53, // 114: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator + 54, // 115: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergCatalogConfig + 55, // 116: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 79, // 117: relationalai.lqp.v1.IcebergCatalogConfig.properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.PropertiesEntry + 80, // 118: relationalai.lqp.v1.IcebergCatalogConfig.auth_properties:type_name -> relationalai.lqp.v1.IcebergCatalogConfig.AuthPropertiesEntry + 56, // 119: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId + 57, // 120: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type + 58, // 121: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType + 59, // 122: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType + 60, // 123: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType + 61, // 124: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType + 62, // 125: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type + 63, // 126: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type + 64, // 127: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType + 65, // 128: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType + 66, // 129: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType + 67, // 130: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType + 68, // 131: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType + 69, // 132: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type + 70, // 133: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type + 71, // 134: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type + 73, // 135: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value + 74, // 136: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value + 75, // 137: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue + 76, // 138: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue + 77, // 139: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue + 78, // 140: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue + 74, // 141: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value + 142, // [142:142] is the sub-list for method output_type + 142, // [142:142] is the sub-list for method input_type + 142, // [142:142] is the sub-list for extension type_name + 142, // [142:142] is the sub-list for extension extendee + 0, // [0:142] is the sub-list for field type_name } func init() { file_relationalai_lqp_v1_logic_proto_init() } diff --git a/sdks/go/src/parser.go b/sdks/go/src/parser.go index 46a03829..7d36dc42 100644 --- a/sdks/go/src/parser.go +++ b/sdks/go/src/parser.go @@ -668,211 +668,211 @@ func toPascalCase(s string) string { // --- Helper functions --- func (p *Parser) _extract_value_int32(value *pb.Value, default_ int64) int32 { - var _t2221 interface{} + var _t2232 interface{} if value == nil { return int32(default_) } - _ = _t2221 - var _t2222 interface{} + _ = _t2232 + var _t2233 interface{} if hasProtoField(value, "int32_value") { return value.GetInt32Value() } - _ = _t2222 + _ = _t2233 panic(ParseError{msg: "expected an int32 value (e.g. `1i32`) for this config field"}) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t2223 interface{} + var _t2234 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t2223 + _ = _t2234 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t2224 interface{} + var _t2235 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t2224 + _ = _t2235 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t2225 interface{} + var _t2236 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t2225 + _ = _t2236 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t2226 interface{} + var _t2237 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t2226 + _ = _t2237 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t2227 interface{} + var _t2238 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t2227 + _ = _t2238 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t2228 interface{} + var _t2239 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t2228 + _ = _t2239 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t2229 interface{} + var _t2240 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t2229 + _ = _t2240 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t2230 interface{} + var _t2241 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t2230 + _ = _t2241 return nil } func (p *Parser) construct_non_cdc_relations(targets []*pb.TargetRelation) *pb.TargetRelations { - _t2231 := &pb.PlainTargets{Targets: targets} - _t2232 := &pb.TargetRelations{Keys: []*pb.NamedColumn{}} - _t2232.Body = &pb.TargetRelations_Plain{Plain: _t2231} - return _t2232 + _t2242 := &pb.PlainTargets{Targets: targets} + _t2243 := &pb.TargetRelations{Keys: []*pb.NamedColumn{}} + _t2243.Body = &pb.TargetRelations_Plain{Plain: _t2242} + return _t2243 } func (p *Parser) construct_cdc_relations(inserts []*pb.TargetRelation, deletes []*pb.TargetRelation) *pb.TargetRelations { - _t2233 := &pb.CDCTargets{Inserts: inserts, Deletes: deletes} - _t2234 := &pb.TargetRelations{Keys: []*pb.NamedColumn{}} - _t2234.Body = &pb.TargetRelations_Cdc{Cdc: _t2233} - return _t2234 + _t2244 := &pb.CDCTargets{Inserts: inserts, Deletes: deletes} + _t2245 := &pb.TargetRelations{Keys: []*pb.NamedColumn{}} + _t2245.Body = &pb.TargetRelations_Cdc{Cdc: _t2244} + return _t2245 } -func (p *Parser) construct_relations(keys []interface{}, body *pb.TargetRelations) *pb.TargetRelations { - var _t2235 interface{} +func (p *Parser) construct_relations(keys []interface{}, body *pb.TargetRelations, load_errors_opt *pb.RelationId) *pb.TargetRelations { + var _t2246 interface{} if hasProtoField(body, "plain") { - _t2236 := &pb.TargetRelations{Keys: keys[0].([]*pb.NamedColumn), SyntheticKey: keys[1].(bool)} - _t2236.Body = &pb.TargetRelations_Plain{Plain: body.GetPlain()} - return _t2236 + _t2247 := &pb.TargetRelations{Keys: keys[0].([]*pb.NamedColumn), SyntheticKey: keys[1].(bool), LoadErrors: load_errors_opt} + _t2247.Body = &pb.TargetRelations_Plain{Plain: body.GetPlain()} + return _t2247 } - _ = _t2235 - _t2237 := &pb.TargetRelations{Keys: keys[0].([]*pb.NamedColumn), SyntheticKey: keys[1].(bool)} - _t2237.Body = &pb.TargetRelations_Cdc{Cdc: body.GetCdc()} - return _t2237 + _ = _t2246 + _t2248 := &pb.TargetRelations{Keys: keys[0].([]*pb.NamedColumn), SyntheticKey: keys[1].(bool), LoadErrors: load_errors_opt} + _t2248.Body = &pb.TargetRelations_Cdc{Cdc: body.GetCdc()} + return _t2248 } func (p *Parser) construct_csv_data(locator *pb.CSVLocator, config *pb.CSVConfig, columns_opt []*pb.GNFColumn, relations_opt *pb.TargetRelations, asof string) *pb.CSVData { - _t2238 := columns_opt + _t2249 := columns_opt if columns_opt == nil { - _t2238 = []*pb.GNFColumn{} + _t2249 = []*pb.GNFColumn{} } - _t2239 := &pb.CSVData{Locator: locator, Config: config, Columns: _t2238, Asof: asof, Relations: relations_opt} - return _t2239 + _t2250 := &pb.CSVData{Locator: locator, Config: config, Columns: _t2249, Asof: asof, Relations: relations_opt} + return _t2250 } func (p *Parser) construct_csv_config(config_dict [][]interface{}, storage_integration_opt [][]interface{}) *pb.CSVConfig { config := dictFromList(config_dict) - _t2240 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) - header_row := _t2240 - _t2241 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) - skip := _t2241 - _t2242 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") - new_line := _t2242 - _t2243 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") - delimiter := _t2243 - _t2244 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") - quotechar := _t2244 - _t2245 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") - escapechar := _t2245 - _t2246 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") - comment := _t2246 - _t2247 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) - missing_strings := _t2247 - _t2248 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") - decimal_separator := _t2248 - _t2249 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") - encoding := _t2249 - _t2250 := p._extract_value_string(dictGetValue(config, "csv_compression"), "") - compression := _t2250 - _t2251 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) - partition_size_mb := _t2251 - _t2252 := p.construct_csv_storage_integration(storage_integration_opt) - storage_integration := _t2252 - _t2253 := &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, StorageIntegration: storage_integration} - return _t2253 + _t2251 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t2251 + _t2252 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t2252 + _t2253 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t2253 + _t2254 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t2254 + _t2255 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t2255 + _t2256 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t2256 + _t2257 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t2257 + _t2258 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t2258 + _t2259 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t2259 + _t2260 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t2260 + _t2261 := p._extract_value_string(dictGetValue(config, "csv_compression"), "") + compression := _t2261 + _t2262 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t2262 + _t2263 := p.construct_csv_storage_integration(storage_integration_opt) + storage_integration := _t2263 + _t2264 := &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, StorageIntegration: storage_integration} + return _t2264 } func (p *Parser) construct_csv_storage_integration(storage_integration_opt [][]interface{}) *pb.StorageIntegration { - var _t2254 interface{} + var _t2265 interface{} if storage_integration_opt == nil { return nil } - _ = _t2254 + _ = _t2265 config := dictFromList(storage_integration_opt) - _t2255 := p._extract_value_string(dictGetValue(config, "provider"), "") - _t2256 := p._extract_value_string(dictGetValue(config, "azure_sas_token"), "") - _t2257 := p._extract_value_string(dictGetValue(config, "s3_region"), "") - _t2258 := p._extract_value_string(dictGetValue(config, "s3_access_key_id"), "") - _t2259 := p._extract_value_string(dictGetValue(config, "s3_secret_access_key"), "") - _t2260 := &pb.StorageIntegration{Provider: _t2255, AzureSasToken: _t2256, S3Region: _t2257, S3AccessKeyId: _t2258, S3SecretAccessKey: _t2259} - return _t2260 + _t2266 := p._extract_value_string(dictGetValue(config, "provider"), "") + _t2267 := p._extract_value_string(dictGetValue(config, "azure_sas_token"), "") + _t2268 := p._extract_value_string(dictGetValue(config, "s3_region"), "") + _t2269 := p._extract_value_string(dictGetValue(config, "s3_access_key_id"), "") + _t2270 := p._extract_value_string(dictGetValue(config, "s3_secret_access_key"), "") + _t2271 := &pb.StorageIntegration{Provider: _t2266, AzureSasToken: _t2267, S3Region: _t2268, S3AccessKeyId: _t2269, S3SecretAccessKey: _t2270} + return _t2271 } func (p *Parser) construct_betree_info(key_types []*pb.Type, value_types []*pb.Type, config_dict [][]interface{}) *pb.BeTreeInfo { config := dictFromList(config_dict) - _t2261 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) - epsilon := _t2261 - _t2262 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) - max_pivots := _t2262 - _t2263 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) - max_deltas := _t2263 - _t2264 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) - max_leaf := _t2264 - _t2265 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} - storage_config := _t2265 - _t2266 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) - root_pageid := _t2266 - _t2267 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) - inline_data := _t2267 - _t2268 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) - element_count := _t2268 - _t2269 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) - tree_height := _t2269 - _t2270 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} + _t2272 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t2272 + _t2273 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t2273 + _t2274 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t2274 + _t2275 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t2275 + _t2276 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t2276 + _t2277 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t2277 + _t2278 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t2278 + _t2279 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t2279 + _t2280 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t2280 + _t2281 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t2270.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t2281.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t2270.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t2281.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} } - relation_locator := _t2270 - _t2271 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} - return _t2271 + relation_locator := _t2281 + _t2282 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t2282 } func (p *Parser) default_configure() *pb.Configure { - _t2272 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} - ivm_config := _t2272 - _t2273 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} - return _t2273 + _t2283 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t2283 + _t2284 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t2284 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -894,10 +894,10 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } } - _t2274 := &pb.IVMConfig{Level: maintenance_level} - ivm_config := _t2274 - _t2275 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) - semantics_version := _t2275 + _t2285 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t2285 + _t2286 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t2286 config_values_pairs := [][]interface{}{} for _, pair := range config_dict { if (pair[0].(string) != "semantics_version" && pair[0].(string) != "ivm.maintenance_level") { @@ -905,3194 +905,3178 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } configuration_values := valueMapFromPairs(config_values_pairs) - _t2276 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config, ConfigurationValues: configuration_values} - return _t2276 + _t2287 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config, ConfigurationValues: configuration_values} + return _t2287 } func (p *Parser) construct_export_csv_config(path string, columns []*pb.ExportCSVColumn, config_dict [][]interface{}) *pb.ExportCSVConfig { config := dictFromList(config_dict) - _t2277 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) - partition_size := _t2277 - _t2278 := p._extract_value_string(dictGetValue(config, "compression"), "") - compression := _t2278 - _t2279 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) - syntax_header_row := _t2279 - _t2280 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") - syntax_missing_string := _t2280 - _t2281 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") - syntax_delim := _t2281 - _t2282 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") - syntax_quotechar := _t2282 - _t2283 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") - syntax_escapechar := _t2283 - _t2284 := &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 _t2284 + _t2288 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t2288 + _t2289 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t2289 + _t2290 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t2290 + _t2291 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t2291 + _t2292 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t2292 + _t2293 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t2293 + _t2294 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t2294 + _t2295 := &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 _t2295 } func (p *Parser) construct_export_csv_config_with_location(location []interface{}, csv_source *pb.ExportCSVSource, csv_config *pb.CSVConfig) *pb.ExportCSVConfig { - _t2285 := &pb.ExportCSVConfig{Path: location[0].(string), TransactionOutputName: location[1].(string), CsvSource: csv_source, CsvConfig: csv_config} - return _t2285 + _t2296 := &pb.ExportCSVConfig{Path: location[0].(string), TransactionOutputName: location[1].(string), CsvSource: csv_source, CsvConfig: csv_config} + return _t2296 } 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) - _t2286 := &pb.IcebergCatalogConfig{CatalogUri: catalog_uri, Scope: ptr(deref(scope_opt, "")), Properties: props, AuthProperties: auth_props} - return _t2286 + _t2297 := &pb.IcebergCatalogConfig{CatalogUri: catalog_uri, Scope: ptr(deref(scope_opt, "")), Properties: props, AuthProperties: auth_props} + return _t2297 } 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 { - _t2287 := &pb.IcebergData{Locator: locator, Config: config, Columns: columns, FromSnapshot: ptr(deref(from_snapshot_opt, "")), ToSnapshot: ptr(deref(to_snapshot_opt, "")), ReturnsDelta: returns_delta} - return _t2287 + _t2298 := &pb.IcebergData{Locator: locator, Config: config, Columns: columns, FromSnapshot: ptr(deref(from_snapshot_opt, "")), ToSnapshot: ptr(deref(to_snapshot_opt, "")), ReturnsDelta: returns_delta} + return _t2298 } 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 { - _t2288 := config_dict + _t2299 := config_dict if config_dict == nil { - _t2288 = [][]interface{}{} - } - cfg := dictFromList(_t2288) - _t2289 := p._extract_value_string(dictGetValue(cfg, "prefix"), "") - prefix := _t2289 - _t2290 := p._extract_value_int64(dictGetValue(cfg, "target_file_size_bytes"), 0) - target_file_size_bytes := _t2290 - _t2291 := p._extract_value_string(dictGetValue(cfg, "compression"), "") - compression := _t2291 + _t2299 = [][]interface{}{} + } + cfg := dictFromList(_t2299) + _t2300 := p._extract_value_string(dictGetValue(cfg, "prefix"), "") + prefix := _t2300 + _t2301 := p._extract_value_int64(dictGetValue(cfg, "target_file_size_bytes"), 0) + target_file_size_bytes := _t2301 + _t2302 := p._extract_value_string(dictGetValue(cfg, "compression"), "") + compression := _t2302 table_props := stringMapFromPairs(table_property_pairs) - _t2292 := &pb.ExportIcebergConfig{Locator: locator, Config: config, TableDef: table_def, Prefix: ptr(prefix), TargetFileSizeBytes: ptr(target_file_size_bytes), Compression: compression, TableProperties: table_props} - return _t2292 + _t2303 := &pb.ExportIcebergConfig{Locator: locator, Config: config, TableDef: table_def, Prefix: ptr(prefix), TargetFileSizeBytes: ptr(target_file_size_bytes), Compression: compression, TableProperties: table_props} + return _t2303 } // --- Parse functions --- func (p *Parser) parse_transaction() *pb.Transaction { - span_start714 := int64(p.spanStart()) + span_start718 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("transaction") - var _t1416 *pb.Configure + var _t1424 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t1417 := p.parse_configure() - _t1416 = _t1417 + _t1425 := p.parse_configure() + _t1424 = _t1425 } - configure708 := _t1416 - var _t1418 *pb.Sync + configure712 := _t1424 + var _t1426 *pb.Sync if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("sync", 1)) { - _t1419 := p.parse_sync() - _t1418 = _t1419 - } - sync709 := _t1418 - xs710 := []*pb.Epoch{} - cond711 := p.matchLookaheadLiteral("(", 0) - for cond711 { - _t1420 := p.parse_epoch() - item712 := _t1420 - xs710 = append(xs710, item712) - cond711 = p.matchLookaheadLiteral("(", 0) - } - epochs713 := xs710 + _t1427 := p.parse_sync() + _t1426 = _t1427 + } + sync713 := _t1426 + xs714 := []*pb.Epoch{} + cond715 := p.matchLookaheadLiteral("(", 0) + for cond715 { + _t1428 := p.parse_epoch() + item716 := _t1428 + xs714 = append(xs714, item716) + cond715 = p.matchLookaheadLiteral("(", 0) + } + epochs717 := xs714 p.consumeLiteral(")") - _t1421 := p.default_configure() - _t1422 := configure708 - if configure708 == nil { - _t1422 = _t1421 + _t1429 := p.default_configure() + _t1430 := configure712 + if configure712 == nil { + _t1430 = _t1429 } - _t1423 := &pb.Transaction{Epochs: epochs713, Configure: _t1422, Sync: sync709} - result715 := _t1423 - p.recordSpan(int(span_start714), "Transaction") - return result715 + _t1431 := &pb.Transaction{Epochs: epochs717, Configure: _t1430, Sync: sync713} + result719 := _t1431 + p.recordSpan(int(span_start718), "Transaction") + return result719 } func (p *Parser) parse_configure() *pb.Configure { - span_start717 := int64(p.spanStart()) + span_start721 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("configure") - _t1424 := p.parse_config_dict() - config_dict716 := _t1424 + _t1432 := p.parse_config_dict() + config_dict720 := _t1432 p.consumeLiteral(")") - _t1425 := p.construct_configure(config_dict716) - result718 := _t1425 - p.recordSpan(int(span_start717), "Configure") - return result718 + _t1433 := p.construct_configure(config_dict720) + result722 := _t1433 + p.recordSpan(int(span_start721), "Configure") + return result722 } func (p *Parser) parse_config_dict() [][]interface{} { p.consumeLiteral("{") - xs719 := [][]interface{}{} - cond720 := p.matchLookaheadLiteral(":", 0) - for cond720 { - _t1426 := p.parse_config_key_value() - item721 := _t1426 - xs719 = append(xs719, item721) - cond720 = p.matchLookaheadLiteral(":", 0) - } - config_key_values722 := xs719 + xs723 := [][]interface{}{} + cond724 := p.matchLookaheadLiteral(":", 0) + for cond724 { + _t1434 := p.parse_config_key_value() + item725 := _t1434 + xs723 = append(xs723, item725) + cond724 = p.matchLookaheadLiteral(":", 0) + } + config_key_values726 := xs723 p.consumeLiteral("}") - return config_key_values722 + return config_key_values726 } func (p *Parser) parse_config_key_value() []interface{} { p.consumeLiteral(":") - symbol723 := p.consumeTerminal("SYMBOL").Value.str - _t1427 := p.parse_raw_value() - raw_value724 := _t1427 - return []interface{}{symbol723, raw_value724} + symbol727 := p.consumeTerminal("SYMBOL").Value.str + _t1435 := p.parse_raw_value() + raw_value728 := _t1435 + return []interface{}{symbol727, raw_value728} } func (p *Parser) parse_raw_value() *pb.Value { - span_start738 := int64(p.spanStart()) - var _t1428 int64 + span_start742 := int64(p.spanStart()) + var _t1436 int64 if p.matchLookaheadLiteral("true", 0) { - _t1428 = 12 + _t1436 = 12 } else { - var _t1429 int64 + var _t1437 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1429 = 11 + _t1437 = 11 } else { - var _t1430 int64 + var _t1438 int64 if p.matchLookaheadLiteral("false", 0) { - _t1430 = 12 + _t1438 = 12 } else { - var _t1431 int64 + var _t1439 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1432 int64 + var _t1440 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1432 = 1 + _t1440 = 1 } else { - var _t1433 int64 + var _t1441 int64 if p.matchLookaheadLiteral("date", 1) { - _t1433 = 0 + _t1441 = 0 } else { - _t1433 = -1 + _t1441 = -1 } - _t1432 = _t1433 + _t1440 = _t1441 } - _t1431 = _t1432 + _t1439 = _t1440 } else { - var _t1434 int64 + var _t1442 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1434 = 7 + _t1442 = 7 } else { - var _t1435 int64 + var _t1443 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1435 = 8 + _t1443 = 8 } else { - var _t1436 int64 + var _t1444 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1436 = 2 + _t1444 = 2 } else { - var _t1437 int64 + var _t1445 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1437 = 3 + _t1445 = 3 } else { - var _t1438 int64 + var _t1446 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1438 = 9 + _t1446 = 9 } else { - var _t1439 int64 + var _t1447 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1439 = 4 + _t1447 = 4 } else { - var _t1440 int64 + var _t1448 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1440 = 5 + _t1448 = 5 } else { - var _t1441 int64 + var _t1449 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1441 = 6 + _t1449 = 6 } else { - var _t1442 int64 + var _t1450 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1442 = 10 + _t1450 = 10 } else { - _t1442 = -1 + _t1450 = -1 } - _t1441 = _t1442 + _t1449 = _t1450 } - _t1440 = _t1441 + _t1448 = _t1449 } - _t1439 = _t1440 + _t1447 = _t1448 } - _t1438 = _t1439 + _t1446 = _t1447 } - _t1437 = _t1438 + _t1445 = _t1446 } - _t1436 = _t1437 + _t1444 = _t1445 } - _t1435 = _t1436 + _t1443 = _t1444 } - _t1434 = _t1435 + _t1442 = _t1443 } - _t1431 = _t1434 + _t1439 = _t1442 } - _t1430 = _t1431 + _t1438 = _t1439 } - _t1429 = _t1430 + _t1437 = _t1438 } - _t1428 = _t1429 - } - prediction725 := _t1428 - var _t1443 *pb.Value - if prediction725 == 12 { - _t1444 := p.parse_boolean_value() - boolean_value737 := _t1444 - _t1445 := &pb.Value{} - _t1445.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value737} - _t1443 = _t1445 + _t1436 = _t1437 + } + prediction729 := _t1436 + var _t1451 *pb.Value + if prediction729 == 12 { + _t1452 := p.parse_boolean_value() + boolean_value741 := _t1452 + _t1453 := &pb.Value{} + _t1453.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value741} + _t1451 = _t1453 } else { - var _t1446 *pb.Value - if prediction725 == 11 { + var _t1454 *pb.Value + if prediction729 == 11 { p.consumeLiteral("missing") - _t1447 := &pb.MissingValue{} - _t1448 := &pb.Value{} - _t1448.Value = &pb.Value_MissingValue{MissingValue: _t1447} - _t1446 = _t1448 + _t1455 := &pb.MissingValue{} + _t1456 := &pb.Value{} + _t1456.Value = &pb.Value_MissingValue{MissingValue: _t1455} + _t1454 = _t1456 } else { - var _t1449 *pb.Value - if prediction725 == 10 { - decimal736 := p.consumeTerminal("DECIMAL").Value.decimal - _t1450 := &pb.Value{} - _t1450.Value = &pb.Value_DecimalValue{DecimalValue: decimal736} - _t1449 = _t1450 + var _t1457 *pb.Value + if prediction729 == 10 { + decimal740 := p.consumeTerminal("DECIMAL").Value.decimal + _t1458 := &pb.Value{} + _t1458.Value = &pb.Value_DecimalValue{DecimalValue: decimal740} + _t1457 = _t1458 } else { - var _t1451 *pb.Value - if prediction725 == 9 { - int128735 := p.consumeTerminal("INT128").Value.int128 - _t1452 := &pb.Value{} - _t1452.Value = &pb.Value_Int128Value{Int128Value: int128735} - _t1451 = _t1452 + var _t1459 *pb.Value + if prediction729 == 9 { + int128739 := p.consumeTerminal("INT128").Value.int128 + _t1460 := &pb.Value{} + _t1460.Value = &pb.Value_Int128Value{Int128Value: int128739} + _t1459 = _t1460 } else { - var _t1453 *pb.Value - if prediction725 == 8 { - uint128734 := p.consumeTerminal("UINT128").Value.uint128 - _t1454 := &pb.Value{} - _t1454.Value = &pb.Value_Uint128Value{Uint128Value: uint128734} - _t1453 = _t1454 + var _t1461 *pb.Value + if prediction729 == 8 { + uint128738 := p.consumeTerminal("UINT128").Value.uint128 + _t1462 := &pb.Value{} + _t1462.Value = &pb.Value_Uint128Value{Uint128Value: uint128738} + _t1461 = _t1462 } else { - var _t1455 *pb.Value - if prediction725 == 7 { - uint32733 := p.consumeTerminal("UINT32").Value.u32 - _t1456 := &pb.Value{} - _t1456.Value = &pb.Value_Uint32Value{Uint32Value: uint32733} - _t1455 = _t1456 + var _t1463 *pb.Value + if prediction729 == 7 { + uint32737 := p.consumeTerminal("UINT32").Value.u32 + _t1464 := &pb.Value{} + _t1464.Value = &pb.Value_Uint32Value{Uint32Value: uint32737} + _t1463 = _t1464 } else { - var _t1457 *pb.Value - if prediction725 == 6 { - float732 := p.consumeTerminal("FLOAT").Value.f64 - _t1458 := &pb.Value{} - _t1458.Value = &pb.Value_FloatValue{FloatValue: float732} - _t1457 = _t1458 + var _t1465 *pb.Value + if prediction729 == 6 { + float736 := p.consumeTerminal("FLOAT").Value.f64 + _t1466 := &pb.Value{} + _t1466.Value = &pb.Value_FloatValue{FloatValue: float736} + _t1465 = _t1466 } else { - var _t1459 *pb.Value - if prediction725 == 5 { - float32731 := p.consumeTerminal("FLOAT32").Value.f32 - _t1460 := &pb.Value{} - _t1460.Value = &pb.Value_Float32Value{Float32Value: float32731} - _t1459 = _t1460 + var _t1467 *pb.Value + if prediction729 == 5 { + float32735 := p.consumeTerminal("FLOAT32").Value.f32 + _t1468 := &pb.Value{} + _t1468.Value = &pb.Value_Float32Value{Float32Value: float32735} + _t1467 = _t1468 } else { - var _t1461 *pb.Value - if prediction725 == 4 { - int730 := p.consumeTerminal("INT").Value.i64 - _t1462 := &pb.Value{} - _t1462.Value = &pb.Value_IntValue{IntValue: int730} - _t1461 = _t1462 + var _t1469 *pb.Value + if prediction729 == 4 { + int734 := p.consumeTerminal("INT").Value.i64 + _t1470 := &pb.Value{} + _t1470.Value = &pb.Value_IntValue{IntValue: int734} + _t1469 = _t1470 } else { - var _t1463 *pb.Value - if prediction725 == 3 { - int32729 := p.consumeTerminal("INT32").Value.i32 - _t1464 := &pb.Value{} - _t1464.Value = &pb.Value_Int32Value{Int32Value: int32729} - _t1463 = _t1464 + var _t1471 *pb.Value + if prediction729 == 3 { + int32733 := p.consumeTerminal("INT32").Value.i32 + _t1472 := &pb.Value{} + _t1472.Value = &pb.Value_Int32Value{Int32Value: int32733} + _t1471 = _t1472 } else { - var _t1465 *pb.Value - if prediction725 == 2 { - string728 := p.consumeTerminal("STRING").Value.str - _t1466 := &pb.Value{} - _t1466.Value = &pb.Value_StringValue{StringValue: string728} - _t1465 = _t1466 + var _t1473 *pb.Value + if prediction729 == 2 { + string732 := p.consumeTerminal("STRING").Value.str + _t1474 := &pb.Value{} + _t1474.Value = &pb.Value_StringValue{StringValue: string732} + _t1473 = _t1474 } else { - var _t1467 *pb.Value - if prediction725 == 1 { - _t1468 := p.parse_raw_datetime() - raw_datetime727 := _t1468 - _t1469 := &pb.Value{} - _t1469.Value = &pb.Value_DatetimeValue{DatetimeValue: raw_datetime727} - _t1467 = _t1469 + var _t1475 *pb.Value + if prediction729 == 1 { + _t1476 := p.parse_raw_datetime() + raw_datetime731 := _t1476 + _t1477 := &pb.Value{} + _t1477.Value = &pb.Value_DatetimeValue{DatetimeValue: raw_datetime731} + _t1475 = _t1477 } else { - var _t1470 *pb.Value - if prediction725 == 0 { - _t1471 := p.parse_raw_date() - raw_date726 := _t1471 - _t1472 := &pb.Value{} - _t1472.Value = &pb.Value_DateValue{DateValue: raw_date726} - _t1470 = _t1472 + var _t1478 *pb.Value + if prediction729 == 0 { + _t1479 := p.parse_raw_date() + raw_date730 := _t1479 + _t1480 := &pb.Value{} + _t1480.Value = &pb.Value_DateValue{DateValue: raw_date730} + _t1478 = _t1480 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in raw_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1467 = _t1470 + _t1475 = _t1478 } - _t1465 = _t1467 + _t1473 = _t1475 } - _t1463 = _t1465 + _t1471 = _t1473 } - _t1461 = _t1463 + _t1469 = _t1471 } - _t1459 = _t1461 + _t1467 = _t1469 } - _t1457 = _t1459 + _t1465 = _t1467 } - _t1455 = _t1457 + _t1463 = _t1465 } - _t1453 = _t1455 + _t1461 = _t1463 } - _t1451 = _t1453 + _t1459 = _t1461 } - _t1449 = _t1451 + _t1457 = _t1459 } - _t1446 = _t1449 + _t1454 = _t1457 } - _t1443 = _t1446 + _t1451 = _t1454 } - result739 := _t1443 - p.recordSpan(int(span_start738), "Value") - return result739 + result743 := _t1451 + p.recordSpan(int(span_start742), "Value") + return result743 } func (p *Parser) parse_raw_date() *pb.DateValue { - span_start743 := int64(p.spanStart()) + span_start747 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("date") - int740 := p.consumeTerminal("INT").Value.i64 - int_3741 := p.consumeTerminal("INT").Value.i64 - int_4742 := p.consumeTerminal("INT").Value.i64 + int744 := p.consumeTerminal("INT").Value.i64 + int_3745 := p.consumeTerminal("INT").Value.i64 + int_4746 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1473 := &pb.DateValue{Year: int32(int740), Month: int32(int_3741), Day: int32(int_4742)} - result744 := _t1473 - p.recordSpan(int(span_start743), "DateValue") - return result744 + _t1481 := &pb.DateValue{Year: int32(int744), Month: int32(int_3745), Day: int32(int_4746)} + result748 := _t1481 + p.recordSpan(int(span_start747), "DateValue") + return result748 } func (p *Parser) parse_raw_datetime() *pb.DateTimeValue { - span_start752 := int64(p.spanStart()) + span_start756 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("datetime") - int745 := p.consumeTerminal("INT").Value.i64 - int_3746 := p.consumeTerminal("INT").Value.i64 - int_4747 := p.consumeTerminal("INT").Value.i64 - int_5748 := p.consumeTerminal("INT").Value.i64 - int_6749 := p.consumeTerminal("INT").Value.i64 - int_7750 := p.consumeTerminal("INT").Value.i64 - var _t1474 *int64 + int749 := p.consumeTerminal("INT").Value.i64 + int_3750 := p.consumeTerminal("INT").Value.i64 + int_4751 := p.consumeTerminal("INT").Value.i64 + int_5752 := p.consumeTerminal("INT").Value.i64 + int_6753 := p.consumeTerminal("INT").Value.i64 + int_7754 := p.consumeTerminal("INT").Value.i64 + var _t1482 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1474 = ptr(p.consumeTerminal("INT").Value.i64) + _t1482 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8751 := _t1474 + int_8755 := _t1482 p.consumeLiteral(")") - _t1475 := &pb.DateTimeValue{Year: int32(int745), Month: int32(int_3746), Day: int32(int_4747), Hour: int32(int_5748), Minute: int32(int_6749), Second: int32(int_7750), Microsecond: int32(deref(int_8751, 0))} - result753 := _t1475 - p.recordSpan(int(span_start752), "DateTimeValue") - return result753 + _t1483 := &pb.DateTimeValue{Year: int32(int749), Month: int32(int_3750), Day: int32(int_4751), Hour: int32(int_5752), Minute: int32(int_6753), Second: int32(int_7754), Microsecond: int32(deref(int_8755, 0))} + result757 := _t1483 + p.recordSpan(int(span_start756), "DateTimeValue") + return result757 } func (p *Parser) parse_boolean_value() bool { - var _t1476 int64 + var _t1484 int64 if p.matchLookaheadLiteral("true", 0) { - _t1476 = 0 + _t1484 = 0 } else { - var _t1477 int64 + var _t1485 int64 if p.matchLookaheadLiteral("false", 0) { - _t1477 = 1 + _t1485 = 1 } else { - _t1477 = -1 + _t1485 = -1 } - _t1476 = _t1477 + _t1484 = _t1485 } - prediction754 := _t1476 - var _t1478 bool - if prediction754 == 1 { + prediction758 := _t1484 + var _t1486 bool + if prediction758 == 1 { p.consumeLiteral("false") - _t1478 = false + _t1486 = false } else { - var _t1479 bool - if prediction754 == 0 { + var _t1487 bool + if prediction758 == 0 { p.consumeLiteral("true") - _t1479 = true + _t1487 = true } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in boolean_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1478 = _t1479 + _t1486 = _t1487 } - return _t1478 + return _t1486 } func (p *Parser) parse_sync() *pb.Sync { - span_start759 := int64(p.spanStart()) + span_start763 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sync") - xs755 := []*pb.FragmentId{} - cond756 := p.matchLookaheadLiteral(":", 0) - for cond756 { - _t1480 := p.parse_fragment_id() - item757 := _t1480 - xs755 = append(xs755, item757) - cond756 = p.matchLookaheadLiteral(":", 0) - } - fragment_ids758 := xs755 + xs759 := []*pb.FragmentId{} + cond760 := p.matchLookaheadLiteral(":", 0) + for cond760 { + _t1488 := p.parse_fragment_id() + item761 := _t1488 + xs759 = append(xs759, item761) + cond760 = p.matchLookaheadLiteral(":", 0) + } + fragment_ids762 := xs759 p.consumeLiteral(")") - _t1481 := &pb.Sync{Fragments: fragment_ids758} - result760 := _t1481 - p.recordSpan(int(span_start759), "Sync") - return result760 + _t1489 := &pb.Sync{Fragments: fragment_ids762} + result764 := _t1489 + p.recordSpan(int(span_start763), "Sync") + return result764 } func (p *Parser) parse_fragment_id() *pb.FragmentId { - span_start762 := int64(p.spanStart()) + span_start766 := int64(p.spanStart()) p.consumeLiteral(":") - symbol761 := p.consumeTerminal("SYMBOL").Value.str - result763 := &pb.FragmentId{Id: []byte(symbol761)} - p.recordSpan(int(span_start762), "FragmentId") - return result763 + symbol765 := p.consumeTerminal("SYMBOL").Value.str + result767 := &pb.FragmentId{Id: []byte(symbol765)} + p.recordSpan(int(span_start766), "FragmentId") + return result767 } func (p *Parser) parse_epoch() *pb.Epoch { - span_start766 := int64(p.spanStart()) + span_start770 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t1482 []*pb.Write + var _t1490 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t1483 := p.parse_epoch_writes() - _t1482 = _t1483 + _t1491 := p.parse_epoch_writes() + _t1490 = _t1491 } - epoch_writes764 := _t1482 - var _t1484 []*pb.Read + epoch_writes768 := _t1490 + var _t1492 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t1485 := p.parse_epoch_reads() - _t1484 = _t1485 + _t1493 := p.parse_epoch_reads() + _t1492 = _t1493 } - epoch_reads765 := _t1484 + epoch_reads769 := _t1492 p.consumeLiteral(")") - _t1486 := epoch_writes764 - if epoch_writes764 == nil { - _t1486 = []*pb.Write{} + _t1494 := epoch_writes768 + if epoch_writes768 == nil { + _t1494 = []*pb.Write{} } - _t1487 := epoch_reads765 - if epoch_reads765 == nil { - _t1487 = []*pb.Read{} + _t1495 := epoch_reads769 + if epoch_reads769 == nil { + _t1495 = []*pb.Read{} } - _t1488 := &pb.Epoch{Writes: _t1486, Reads: _t1487} - result767 := _t1488 - p.recordSpan(int(span_start766), "Epoch") - return result767 + _t1496 := &pb.Epoch{Writes: _t1494, Reads: _t1495} + result771 := _t1496 + p.recordSpan(int(span_start770), "Epoch") + return result771 } func (p *Parser) parse_epoch_writes() []*pb.Write { p.consumeLiteral("(") p.consumeLiteral("writes") - xs768 := []*pb.Write{} - cond769 := p.matchLookaheadLiteral("(", 0) - for cond769 { - _t1489 := p.parse_write() - item770 := _t1489 - xs768 = append(xs768, item770) - cond769 = p.matchLookaheadLiteral("(", 0) - } - writes771 := xs768 + xs772 := []*pb.Write{} + cond773 := p.matchLookaheadLiteral("(", 0) + for cond773 { + _t1497 := p.parse_write() + item774 := _t1497 + xs772 = append(xs772, item774) + cond773 = p.matchLookaheadLiteral("(", 0) + } + writes775 := xs772 p.consumeLiteral(")") - return writes771 + return writes775 } func (p *Parser) parse_write() *pb.Write { - span_start777 := int64(p.spanStart()) - var _t1490 int64 + span_start781 := int64(p.spanStart()) + var _t1498 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1491 int64 + var _t1499 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t1491 = 1 + _t1499 = 1 } else { - var _t1492 int64 + var _t1500 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t1492 = 3 + _t1500 = 3 } else { - var _t1493 int64 + var _t1501 int64 if p.matchLookaheadLiteral("define", 1) { - _t1493 = 0 + _t1501 = 0 } else { - var _t1494 int64 + var _t1502 int64 if p.matchLookaheadLiteral("context", 1) { - _t1494 = 2 + _t1502 = 2 } else { - _t1494 = -1 + _t1502 = -1 } - _t1493 = _t1494 + _t1501 = _t1502 } - _t1492 = _t1493 + _t1500 = _t1501 } - _t1491 = _t1492 + _t1499 = _t1500 } - _t1490 = _t1491 + _t1498 = _t1499 } else { - _t1490 = -1 - } - prediction772 := _t1490 - var _t1495 *pb.Write - if prediction772 == 3 { - _t1496 := p.parse_snapshot() - snapshot776 := _t1496 - _t1497 := &pb.Write{} - _t1497.WriteType = &pb.Write_Snapshot{Snapshot: snapshot776} - _t1495 = _t1497 + _t1498 = -1 + } + prediction776 := _t1498 + var _t1503 *pb.Write + if prediction776 == 3 { + _t1504 := p.parse_snapshot() + snapshot780 := _t1504 + _t1505 := &pb.Write{} + _t1505.WriteType = &pb.Write_Snapshot{Snapshot: snapshot780} + _t1503 = _t1505 } else { - var _t1498 *pb.Write - if prediction772 == 2 { - _t1499 := p.parse_context() - context775 := _t1499 - _t1500 := &pb.Write{} - _t1500.WriteType = &pb.Write_Context{Context: context775} - _t1498 = _t1500 + var _t1506 *pb.Write + if prediction776 == 2 { + _t1507 := p.parse_context() + context779 := _t1507 + _t1508 := &pb.Write{} + _t1508.WriteType = &pb.Write_Context{Context: context779} + _t1506 = _t1508 } else { - var _t1501 *pb.Write - if prediction772 == 1 { - _t1502 := p.parse_undefine() - undefine774 := _t1502 - _t1503 := &pb.Write{} - _t1503.WriteType = &pb.Write_Undefine{Undefine: undefine774} - _t1501 = _t1503 + var _t1509 *pb.Write + if prediction776 == 1 { + _t1510 := p.parse_undefine() + undefine778 := _t1510 + _t1511 := &pb.Write{} + _t1511.WriteType = &pb.Write_Undefine{Undefine: undefine778} + _t1509 = _t1511 } else { - var _t1504 *pb.Write - if prediction772 == 0 { - _t1505 := p.parse_define() - define773 := _t1505 - _t1506 := &pb.Write{} - _t1506.WriteType = &pb.Write_Define{Define: define773} - _t1504 = _t1506 + var _t1512 *pb.Write + if prediction776 == 0 { + _t1513 := p.parse_define() + define777 := _t1513 + _t1514 := &pb.Write{} + _t1514.WriteType = &pb.Write_Define{Define: define777} + _t1512 = _t1514 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1501 = _t1504 + _t1509 = _t1512 } - _t1498 = _t1501 + _t1506 = _t1509 } - _t1495 = _t1498 + _t1503 = _t1506 } - result778 := _t1495 - p.recordSpan(int(span_start777), "Write") - return result778 + result782 := _t1503 + p.recordSpan(int(span_start781), "Write") + return result782 } func (p *Parser) parse_define() *pb.Define { - span_start780 := int64(p.spanStart()) + span_start784 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("define") - _t1507 := p.parse_fragment() - fragment779 := _t1507 + _t1515 := p.parse_fragment() + fragment783 := _t1515 p.consumeLiteral(")") - _t1508 := &pb.Define{Fragment: fragment779} - result781 := _t1508 - p.recordSpan(int(span_start780), "Define") - return result781 + _t1516 := &pb.Define{Fragment: fragment783} + result785 := _t1516 + p.recordSpan(int(span_start784), "Define") + return result785 } func (p *Parser) parse_fragment() *pb.Fragment { - span_start787 := int64(p.spanStart()) + span_start791 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("fragment") - _t1509 := p.parse_new_fragment_id() - new_fragment_id782 := _t1509 - xs783 := []*pb.Declaration{} - cond784 := p.matchLookaheadLiteral("(", 0) - for cond784 { - _t1510 := p.parse_declaration() - item785 := _t1510 - xs783 = append(xs783, item785) - cond784 = p.matchLookaheadLiteral("(", 0) - } - declarations786 := xs783 + _t1517 := p.parse_new_fragment_id() + new_fragment_id786 := _t1517 + xs787 := []*pb.Declaration{} + cond788 := p.matchLookaheadLiteral("(", 0) + for cond788 { + _t1518 := p.parse_declaration() + item789 := _t1518 + xs787 = append(xs787, item789) + cond788 = p.matchLookaheadLiteral("(", 0) + } + declarations790 := xs787 p.consumeLiteral(")") - result788 := p.constructFragment(new_fragment_id782, declarations786) - p.recordSpan(int(span_start787), "Fragment") - return result788 + result792 := p.constructFragment(new_fragment_id786, declarations790) + p.recordSpan(int(span_start791), "Fragment") + return result792 } func (p *Parser) parse_new_fragment_id() *pb.FragmentId { - span_start790 := int64(p.spanStart()) - _t1511 := p.parse_fragment_id() - fragment_id789 := _t1511 - p.startFragment(fragment_id789) - result791 := fragment_id789 - p.recordSpan(int(span_start790), "FragmentId") - return result791 + span_start794 := int64(p.spanStart()) + _t1519 := p.parse_fragment_id() + fragment_id793 := _t1519 + p.startFragment(fragment_id793) + result795 := fragment_id793 + p.recordSpan(int(span_start794), "FragmentId") + return result795 } func (p *Parser) parse_declaration() *pb.Declaration { - span_start797 := int64(p.spanStart()) - var _t1512 int64 + span_start801 := int64(p.spanStart()) + var _t1520 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1513 int64 + var _t1521 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t1513 = 3 + _t1521 = 3 } else { - var _t1514 int64 + var _t1522 int64 if p.matchLookaheadLiteral("functional_dependency", 1) { - _t1514 = 2 + _t1522 = 2 } else { - var _t1515 int64 + var _t1523 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1515 = 3 + _t1523 = 3 } else { - var _t1516 int64 + var _t1524 int64 if p.matchLookaheadLiteral("def", 1) { - _t1516 = 0 + _t1524 = 0 } else { - var _t1517 int64 + var _t1525 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1517 = 3 + _t1525 = 3 } else { - var _t1518 int64 + var _t1526 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1518 = 3 + _t1526 = 3 } else { - var _t1519 int64 + var _t1527 int64 if p.matchLookaheadLiteral("algorithm", 1) { - _t1519 = 1 + _t1527 = 1 } else { - _t1519 = -1 + _t1527 = -1 } - _t1518 = _t1519 + _t1526 = _t1527 } - _t1517 = _t1518 + _t1525 = _t1526 } - _t1516 = _t1517 + _t1524 = _t1525 } - _t1515 = _t1516 + _t1523 = _t1524 } - _t1514 = _t1515 + _t1522 = _t1523 } - _t1513 = _t1514 + _t1521 = _t1522 } - _t1512 = _t1513 + _t1520 = _t1521 } else { - _t1512 = -1 - } - prediction792 := _t1512 - var _t1520 *pb.Declaration - if prediction792 == 3 { - _t1521 := p.parse_data() - data796 := _t1521 - _t1522 := &pb.Declaration{} - _t1522.DeclarationType = &pb.Declaration_Data{Data: data796} - _t1520 = _t1522 + _t1520 = -1 + } + prediction796 := _t1520 + var _t1528 *pb.Declaration + if prediction796 == 3 { + _t1529 := p.parse_data() + data800 := _t1529 + _t1530 := &pb.Declaration{} + _t1530.DeclarationType = &pb.Declaration_Data{Data: data800} + _t1528 = _t1530 } else { - var _t1523 *pb.Declaration - if prediction792 == 2 { - _t1524 := p.parse_constraint() - constraint795 := _t1524 - _t1525 := &pb.Declaration{} - _t1525.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint795} - _t1523 = _t1525 + var _t1531 *pb.Declaration + if prediction796 == 2 { + _t1532 := p.parse_constraint() + constraint799 := _t1532 + _t1533 := &pb.Declaration{} + _t1533.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint799} + _t1531 = _t1533 } else { - var _t1526 *pb.Declaration - if prediction792 == 1 { - _t1527 := p.parse_algorithm() - algorithm794 := _t1527 - _t1528 := &pb.Declaration{} - _t1528.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm794} - _t1526 = _t1528 + var _t1534 *pb.Declaration + if prediction796 == 1 { + _t1535 := p.parse_algorithm() + algorithm798 := _t1535 + _t1536 := &pb.Declaration{} + _t1536.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm798} + _t1534 = _t1536 } else { - var _t1529 *pb.Declaration - if prediction792 == 0 { - _t1530 := p.parse_def() - def793 := _t1530 - _t1531 := &pb.Declaration{} - _t1531.DeclarationType = &pb.Declaration_Def{Def: def793} - _t1529 = _t1531 + var _t1537 *pb.Declaration + if prediction796 == 0 { + _t1538 := p.parse_def() + def797 := _t1538 + _t1539 := &pb.Declaration{} + _t1539.DeclarationType = &pb.Declaration_Def{Def: def797} + _t1537 = _t1539 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1526 = _t1529 + _t1534 = _t1537 } - _t1523 = _t1526 + _t1531 = _t1534 } - _t1520 = _t1523 + _t1528 = _t1531 } - result798 := _t1520 - p.recordSpan(int(span_start797), "Declaration") - return result798 + result802 := _t1528 + p.recordSpan(int(span_start801), "Declaration") + return result802 } func (p *Parser) parse_def() *pb.Def { - span_start802 := int64(p.spanStart()) + span_start806 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("def") - _t1532 := p.parse_relation_id() - relation_id799 := _t1532 - _t1533 := p.parse_abstraction() - abstraction800 := _t1533 - var _t1534 []*pb.Attribute + _t1540 := p.parse_relation_id() + relation_id803 := _t1540 + _t1541 := p.parse_abstraction() + abstraction804 := _t1541 + var _t1542 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1535 := p.parse_attrs() - _t1534 = _t1535 + _t1543 := p.parse_attrs() + _t1542 = _t1543 } - attrs801 := _t1534 + attrs805 := _t1542 p.consumeLiteral(")") - _t1536 := attrs801 - if attrs801 == nil { - _t1536 = []*pb.Attribute{} + _t1544 := attrs805 + if attrs805 == nil { + _t1544 = []*pb.Attribute{} } - _t1537 := &pb.Def{Name: relation_id799, Body: abstraction800, Attrs: _t1536} - result803 := _t1537 - p.recordSpan(int(span_start802), "Def") - return result803 + _t1545 := &pb.Def{Name: relation_id803, Body: abstraction804, Attrs: _t1544} + result807 := _t1545 + p.recordSpan(int(span_start806), "Def") + return result807 } func (p *Parser) parse_relation_id() *pb.RelationId { - span_start807 := int64(p.spanStart()) - var _t1538 int64 + span_start811 := int64(p.spanStart()) + var _t1546 int64 if p.matchLookaheadLiteral(":", 0) { - _t1538 = 0 + _t1546 = 0 } else { - var _t1539 int64 + var _t1547 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1539 = 1 + _t1547 = 1 } else { - _t1539 = -1 + _t1547 = -1 } - _t1538 = _t1539 - } - prediction804 := _t1538 - var _t1540 *pb.RelationId - if prediction804 == 1 { - uint128806 := p.consumeTerminal("UINT128").Value.uint128 - _ = uint128806 - _t1540 = &pb.RelationId{IdLow: uint128806.Low, IdHigh: uint128806.High} + _t1546 = _t1547 + } + prediction808 := _t1546 + var _t1548 *pb.RelationId + if prediction808 == 1 { + uint128810 := p.consumeTerminal("UINT128").Value.uint128 + _ = uint128810 + _t1548 = &pb.RelationId{IdLow: uint128810.Low, IdHigh: uint128810.High} } else { - var _t1541 *pb.RelationId - if prediction804 == 0 { + var _t1549 *pb.RelationId + if prediction808 == 0 { p.consumeLiteral(":") - symbol805 := p.consumeTerminal("SYMBOL").Value.str - _t1541 = p.relationIdFromString(symbol805) + symbol809 := p.consumeTerminal("SYMBOL").Value.str + _t1549 = p.relationIdFromString(symbol809) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1540 = _t1541 + _t1548 = _t1549 } - result808 := _t1540 - p.recordSpan(int(span_start807), "RelationId") - return result808 + result812 := _t1548 + p.recordSpan(int(span_start811), "RelationId") + return result812 } func (p *Parser) parse_abstraction() *pb.Abstraction { - span_start811 := int64(p.spanStart()) + span_start815 := int64(p.spanStart()) p.consumeLiteral("(") - _t1542 := p.parse_bindings() - bindings809 := _t1542 - _t1543 := p.parse_formula() - formula810 := _t1543 + _t1550 := p.parse_bindings() + bindings813 := _t1550 + _t1551 := p.parse_formula() + formula814 := _t1551 p.consumeLiteral(")") - _t1544 := &pb.Abstraction{Vars: listConcat(bindings809[0].([]*pb.Binding), bindings809[1].([]*pb.Binding)), Value: formula810} - result812 := _t1544 - p.recordSpan(int(span_start811), "Abstraction") - return result812 + _t1552 := &pb.Abstraction{Vars: listConcat(bindings813[0].([]*pb.Binding), bindings813[1].([]*pb.Binding)), Value: formula814} + result816 := _t1552 + p.recordSpan(int(span_start815), "Abstraction") + return result816 } func (p *Parser) parse_bindings() []interface{} { p.consumeLiteral("[") - xs813 := []*pb.Binding{} - cond814 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond814 { - _t1545 := p.parse_binding() - item815 := _t1545 - xs813 = append(xs813, item815) - cond814 = p.matchLookaheadTerminal("SYMBOL", 0) - } - bindings816 := xs813 - var _t1546 []*pb.Binding + xs817 := []*pb.Binding{} + cond818 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond818 { + _t1553 := p.parse_binding() + item819 := _t1553 + xs817 = append(xs817, item819) + cond818 = p.matchLookaheadTerminal("SYMBOL", 0) + } + bindings820 := xs817 + var _t1554 []*pb.Binding if p.matchLookaheadLiteral("|", 0) { - _t1547 := p.parse_value_bindings() - _t1546 = _t1547 + _t1555 := p.parse_value_bindings() + _t1554 = _t1555 } - value_bindings817 := _t1546 + value_bindings821 := _t1554 p.consumeLiteral("]") - _t1548 := value_bindings817 - if value_bindings817 == nil { - _t1548 = []*pb.Binding{} + _t1556 := value_bindings821 + if value_bindings821 == nil { + _t1556 = []*pb.Binding{} } - return []interface{}{bindings816, _t1548} + return []interface{}{bindings820, _t1556} } func (p *Parser) parse_binding() *pb.Binding { - span_start820 := int64(p.spanStart()) - symbol818 := p.consumeTerminal("SYMBOL").Value.str + span_start824 := int64(p.spanStart()) + symbol822 := p.consumeTerminal("SYMBOL").Value.str p.consumeLiteral("::") - _t1549 := p.parse_type() - type819 := _t1549 - _t1550 := &pb.Var{Name: symbol818} - _t1551 := &pb.Binding{Var: _t1550, Type: type819} - result821 := _t1551 - p.recordSpan(int(span_start820), "Binding") - return result821 + _t1557 := p.parse_type() + type823 := _t1557 + _t1558 := &pb.Var{Name: symbol822} + _t1559 := &pb.Binding{Var: _t1558, Type: type823} + result825 := _t1559 + p.recordSpan(int(span_start824), "Binding") + return result825 } func (p *Parser) parse_type() *pb.Type { - span_start837 := int64(p.spanStart()) - var _t1552 int64 + span_start841 := int64(p.spanStart()) + var _t1560 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t1552 = 0 + _t1560 = 0 } else { - var _t1553 int64 + var _t1561 int64 if p.matchLookaheadLiteral("UINT32", 0) { - _t1553 = 13 + _t1561 = 13 } else { - var _t1554 int64 + var _t1562 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t1554 = 4 + _t1562 = 4 } else { - var _t1555 int64 + var _t1563 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t1555 = 1 + _t1563 = 1 } else { - var _t1556 int64 + var _t1564 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t1556 = 8 + _t1564 = 8 } else { - var _t1557 int64 + var _t1565 int64 if p.matchLookaheadLiteral("INT32", 0) { - _t1557 = 11 + _t1565 = 11 } else { - var _t1558 int64 + var _t1566 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t1558 = 5 + _t1566 = 5 } else { - var _t1559 int64 + var _t1567 int64 if p.matchLookaheadLiteral("INT", 0) { - _t1559 = 2 + _t1567 = 2 } else { - var _t1560 int64 + var _t1568 int64 if p.matchLookaheadLiteral("FLOAT32", 0) { - _t1560 = 12 + _t1568 = 12 } else { - var _t1561 int64 + var _t1569 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t1561 = 3 + _t1569 = 3 } else { - var _t1562 int64 + var _t1570 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t1562 = 7 + _t1570 = 7 } else { - var _t1563 int64 + var _t1571 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t1563 = 6 + _t1571 = 6 } else { - var _t1564 int64 + var _t1572 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t1564 = 10 + _t1572 = 10 } else { - var _t1565 int64 + var _t1573 int64 if p.matchLookaheadLiteral("(", 0) { - _t1565 = 9 + _t1573 = 9 } else { - _t1565 = -1 + _t1573 = -1 } - _t1564 = _t1565 + _t1572 = _t1573 } - _t1563 = _t1564 + _t1571 = _t1572 } - _t1562 = _t1563 + _t1570 = _t1571 } - _t1561 = _t1562 + _t1569 = _t1570 } - _t1560 = _t1561 + _t1568 = _t1569 } - _t1559 = _t1560 + _t1567 = _t1568 } - _t1558 = _t1559 + _t1566 = _t1567 } - _t1557 = _t1558 + _t1565 = _t1566 } - _t1556 = _t1557 + _t1564 = _t1565 } - _t1555 = _t1556 + _t1563 = _t1564 } - _t1554 = _t1555 + _t1562 = _t1563 } - _t1553 = _t1554 + _t1561 = _t1562 } - _t1552 = _t1553 - } - prediction822 := _t1552 - var _t1566 *pb.Type - if prediction822 == 13 { - _t1567 := p.parse_uint32_type() - uint32_type836 := _t1567 - _t1568 := &pb.Type{} - _t1568.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type836} - _t1566 = _t1568 + _t1560 = _t1561 + } + prediction826 := _t1560 + var _t1574 *pb.Type + if prediction826 == 13 { + _t1575 := p.parse_uint32_type() + uint32_type840 := _t1575 + _t1576 := &pb.Type{} + _t1576.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type840} + _t1574 = _t1576 } else { - var _t1569 *pb.Type - if prediction822 == 12 { - _t1570 := p.parse_float32_type() - float32_type835 := _t1570 - _t1571 := &pb.Type{} - _t1571.Type = &pb.Type_Float32Type{Float32Type: float32_type835} - _t1569 = _t1571 + var _t1577 *pb.Type + if prediction826 == 12 { + _t1578 := p.parse_float32_type() + float32_type839 := _t1578 + _t1579 := &pb.Type{} + _t1579.Type = &pb.Type_Float32Type{Float32Type: float32_type839} + _t1577 = _t1579 } else { - var _t1572 *pb.Type - if prediction822 == 11 { - _t1573 := p.parse_int32_type() - int32_type834 := _t1573 - _t1574 := &pb.Type{} - _t1574.Type = &pb.Type_Int32Type{Int32Type: int32_type834} - _t1572 = _t1574 + var _t1580 *pb.Type + if prediction826 == 11 { + _t1581 := p.parse_int32_type() + int32_type838 := _t1581 + _t1582 := &pb.Type{} + _t1582.Type = &pb.Type_Int32Type{Int32Type: int32_type838} + _t1580 = _t1582 } else { - var _t1575 *pb.Type - if prediction822 == 10 { - _t1576 := p.parse_boolean_type() - boolean_type833 := _t1576 - _t1577 := &pb.Type{} - _t1577.Type = &pb.Type_BooleanType{BooleanType: boolean_type833} - _t1575 = _t1577 + var _t1583 *pb.Type + if prediction826 == 10 { + _t1584 := p.parse_boolean_type() + boolean_type837 := _t1584 + _t1585 := &pb.Type{} + _t1585.Type = &pb.Type_BooleanType{BooleanType: boolean_type837} + _t1583 = _t1585 } else { - var _t1578 *pb.Type - if prediction822 == 9 { - _t1579 := p.parse_decimal_type() - decimal_type832 := _t1579 - _t1580 := &pb.Type{} - _t1580.Type = &pb.Type_DecimalType{DecimalType: decimal_type832} - _t1578 = _t1580 + var _t1586 *pb.Type + if prediction826 == 9 { + _t1587 := p.parse_decimal_type() + decimal_type836 := _t1587 + _t1588 := &pb.Type{} + _t1588.Type = &pb.Type_DecimalType{DecimalType: decimal_type836} + _t1586 = _t1588 } else { - var _t1581 *pb.Type - if prediction822 == 8 { - _t1582 := p.parse_missing_type() - missing_type831 := _t1582 - _t1583 := &pb.Type{} - _t1583.Type = &pb.Type_MissingType{MissingType: missing_type831} - _t1581 = _t1583 + var _t1589 *pb.Type + if prediction826 == 8 { + _t1590 := p.parse_missing_type() + missing_type835 := _t1590 + _t1591 := &pb.Type{} + _t1591.Type = &pb.Type_MissingType{MissingType: missing_type835} + _t1589 = _t1591 } else { - var _t1584 *pb.Type - if prediction822 == 7 { - _t1585 := p.parse_datetime_type() - datetime_type830 := _t1585 - _t1586 := &pb.Type{} - _t1586.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type830} - _t1584 = _t1586 + var _t1592 *pb.Type + if prediction826 == 7 { + _t1593 := p.parse_datetime_type() + datetime_type834 := _t1593 + _t1594 := &pb.Type{} + _t1594.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type834} + _t1592 = _t1594 } else { - var _t1587 *pb.Type - if prediction822 == 6 { - _t1588 := p.parse_date_type() - date_type829 := _t1588 - _t1589 := &pb.Type{} - _t1589.Type = &pb.Type_DateType{DateType: date_type829} - _t1587 = _t1589 + var _t1595 *pb.Type + if prediction826 == 6 { + _t1596 := p.parse_date_type() + date_type833 := _t1596 + _t1597 := &pb.Type{} + _t1597.Type = &pb.Type_DateType{DateType: date_type833} + _t1595 = _t1597 } else { - var _t1590 *pb.Type - if prediction822 == 5 { - _t1591 := p.parse_int128_type() - int128_type828 := _t1591 - _t1592 := &pb.Type{} - _t1592.Type = &pb.Type_Int128Type{Int128Type: int128_type828} - _t1590 = _t1592 + var _t1598 *pb.Type + if prediction826 == 5 { + _t1599 := p.parse_int128_type() + int128_type832 := _t1599 + _t1600 := &pb.Type{} + _t1600.Type = &pb.Type_Int128Type{Int128Type: int128_type832} + _t1598 = _t1600 } else { - var _t1593 *pb.Type - if prediction822 == 4 { - _t1594 := p.parse_uint128_type() - uint128_type827 := _t1594 - _t1595 := &pb.Type{} - _t1595.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type827} - _t1593 = _t1595 + var _t1601 *pb.Type + if prediction826 == 4 { + _t1602 := p.parse_uint128_type() + uint128_type831 := _t1602 + _t1603 := &pb.Type{} + _t1603.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type831} + _t1601 = _t1603 } else { - var _t1596 *pb.Type - if prediction822 == 3 { - _t1597 := p.parse_float_type() - float_type826 := _t1597 - _t1598 := &pb.Type{} - _t1598.Type = &pb.Type_FloatType{FloatType: float_type826} - _t1596 = _t1598 + var _t1604 *pb.Type + if prediction826 == 3 { + _t1605 := p.parse_float_type() + float_type830 := _t1605 + _t1606 := &pb.Type{} + _t1606.Type = &pb.Type_FloatType{FloatType: float_type830} + _t1604 = _t1606 } else { - var _t1599 *pb.Type - if prediction822 == 2 { - _t1600 := p.parse_int_type() - int_type825 := _t1600 - _t1601 := &pb.Type{} - _t1601.Type = &pb.Type_IntType{IntType: int_type825} - _t1599 = _t1601 + var _t1607 *pb.Type + if prediction826 == 2 { + _t1608 := p.parse_int_type() + int_type829 := _t1608 + _t1609 := &pb.Type{} + _t1609.Type = &pb.Type_IntType{IntType: int_type829} + _t1607 = _t1609 } else { - var _t1602 *pb.Type - if prediction822 == 1 { - _t1603 := p.parse_string_type() - string_type824 := _t1603 - _t1604 := &pb.Type{} - _t1604.Type = &pb.Type_StringType{StringType: string_type824} - _t1602 = _t1604 + var _t1610 *pb.Type + if prediction826 == 1 { + _t1611 := p.parse_string_type() + string_type828 := _t1611 + _t1612 := &pb.Type{} + _t1612.Type = &pb.Type_StringType{StringType: string_type828} + _t1610 = _t1612 } else { - var _t1605 *pb.Type - if prediction822 == 0 { - _t1606 := p.parse_unspecified_type() - unspecified_type823 := _t1606 - _t1607 := &pb.Type{} - _t1607.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type823} - _t1605 = _t1607 + var _t1613 *pb.Type + if prediction826 == 0 { + _t1614 := p.parse_unspecified_type() + unspecified_type827 := _t1614 + _t1615 := &pb.Type{} + _t1615.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type827} + _t1613 = _t1615 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1602 = _t1605 + _t1610 = _t1613 } - _t1599 = _t1602 + _t1607 = _t1610 } - _t1596 = _t1599 + _t1604 = _t1607 } - _t1593 = _t1596 + _t1601 = _t1604 } - _t1590 = _t1593 + _t1598 = _t1601 } - _t1587 = _t1590 + _t1595 = _t1598 } - _t1584 = _t1587 + _t1592 = _t1595 } - _t1581 = _t1584 + _t1589 = _t1592 } - _t1578 = _t1581 + _t1586 = _t1589 } - _t1575 = _t1578 + _t1583 = _t1586 } - _t1572 = _t1575 + _t1580 = _t1583 } - _t1569 = _t1572 + _t1577 = _t1580 } - _t1566 = _t1569 + _t1574 = _t1577 } - result838 := _t1566 - p.recordSpan(int(span_start837), "Type") - return result838 + result842 := _t1574 + p.recordSpan(int(span_start841), "Type") + return result842 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { - span_start839 := int64(p.spanStart()) + span_start843 := int64(p.spanStart()) p.consumeLiteral("UNKNOWN") - _t1608 := &pb.UnspecifiedType{} - result840 := _t1608 - p.recordSpan(int(span_start839), "UnspecifiedType") - return result840 + _t1616 := &pb.UnspecifiedType{} + result844 := _t1616 + p.recordSpan(int(span_start843), "UnspecifiedType") + return result844 } func (p *Parser) parse_string_type() *pb.StringType { - span_start841 := int64(p.spanStart()) + span_start845 := int64(p.spanStart()) p.consumeLiteral("STRING") - _t1609 := &pb.StringType{} - result842 := _t1609 - p.recordSpan(int(span_start841), "StringType") - return result842 + _t1617 := &pb.StringType{} + result846 := _t1617 + p.recordSpan(int(span_start845), "StringType") + return result846 } func (p *Parser) parse_int_type() *pb.IntType { - span_start843 := int64(p.spanStart()) + span_start847 := int64(p.spanStart()) p.consumeLiteral("INT") - _t1610 := &pb.IntType{} - result844 := _t1610 - p.recordSpan(int(span_start843), "IntType") - return result844 + _t1618 := &pb.IntType{} + result848 := _t1618 + p.recordSpan(int(span_start847), "IntType") + return result848 } func (p *Parser) parse_float_type() *pb.FloatType { - span_start845 := int64(p.spanStart()) + span_start849 := int64(p.spanStart()) p.consumeLiteral("FLOAT") - _t1611 := &pb.FloatType{} - result846 := _t1611 - p.recordSpan(int(span_start845), "FloatType") - return result846 + _t1619 := &pb.FloatType{} + result850 := _t1619 + p.recordSpan(int(span_start849), "FloatType") + return result850 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { - span_start847 := int64(p.spanStart()) + span_start851 := int64(p.spanStart()) p.consumeLiteral("UINT128") - _t1612 := &pb.UInt128Type{} - result848 := _t1612 - p.recordSpan(int(span_start847), "UInt128Type") - return result848 + _t1620 := &pb.UInt128Type{} + result852 := _t1620 + p.recordSpan(int(span_start851), "UInt128Type") + return result852 } func (p *Parser) parse_int128_type() *pb.Int128Type { - span_start849 := int64(p.spanStart()) + span_start853 := int64(p.spanStart()) p.consumeLiteral("INT128") - _t1613 := &pb.Int128Type{} - result850 := _t1613 - p.recordSpan(int(span_start849), "Int128Type") - return result850 + _t1621 := &pb.Int128Type{} + result854 := _t1621 + p.recordSpan(int(span_start853), "Int128Type") + return result854 } func (p *Parser) parse_date_type() *pb.DateType { - span_start851 := int64(p.spanStart()) + span_start855 := int64(p.spanStart()) p.consumeLiteral("DATE") - _t1614 := &pb.DateType{} - result852 := _t1614 - p.recordSpan(int(span_start851), "DateType") - return result852 + _t1622 := &pb.DateType{} + result856 := _t1622 + p.recordSpan(int(span_start855), "DateType") + return result856 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { - span_start853 := int64(p.spanStart()) + span_start857 := int64(p.spanStart()) p.consumeLiteral("DATETIME") - _t1615 := &pb.DateTimeType{} - result854 := _t1615 - p.recordSpan(int(span_start853), "DateTimeType") - return result854 + _t1623 := &pb.DateTimeType{} + result858 := _t1623 + p.recordSpan(int(span_start857), "DateTimeType") + return result858 } func (p *Parser) parse_missing_type() *pb.MissingType { - span_start855 := int64(p.spanStart()) + span_start859 := int64(p.spanStart()) p.consumeLiteral("MISSING") - _t1616 := &pb.MissingType{} - result856 := _t1616 - p.recordSpan(int(span_start855), "MissingType") - return result856 + _t1624 := &pb.MissingType{} + result860 := _t1624 + p.recordSpan(int(span_start859), "MissingType") + return result860 } func (p *Parser) parse_decimal_type() *pb.DecimalType { - span_start859 := int64(p.spanStart()) + span_start863 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int857 := p.consumeTerminal("INT").Value.i64 - int_3858 := p.consumeTerminal("INT").Value.i64 + int861 := p.consumeTerminal("INT").Value.i64 + int_3862 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1617 := &pb.DecimalType{Precision: int32(int857), Scale: int32(int_3858)} - result860 := _t1617 - p.recordSpan(int(span_start859), "DecimalType") - return result860 + _t1625 := &pb.DecimalType{Precision: int32(int861), Scale: int32(int_3862)} + result864 := _t1625 + p.recordSpan(int(span_start863), "DecimalType") + return result864 } func (p *Parser) parse_boolean_type() *pb.BooleanType { - span_start861 := int64(p.spanStart()) + span_start865 := int64(p.spanStart()) p.consumeLiteral("BOOLEAN") - _t1618 := &pb.BooleanType{} - result862 := _t1618 - p.recordSpan(int(span_start861), "BooleanType") - return result862 + _t1626 := &pb.BooleanType{} + result866 := _t1626 + p.recordSpan(int(span_start865), "BooleanType") + return result866 } func (p *Parser) parse_int32_type() *pb.Int32Type { - span_start863 := int64(p.spanStart()) + span_start867 := int64(p.spanStart()) p.consumeLiteral("INT32") - _t1619 := &pb.Int32Type{} - result864 := _t1619 - p.recordSpan(int(span_start863), "Int32Type") - return result864 + _t1627 := &pb.Int32Type{} + result868 := _t1627 + p.recordSpan(int(span_start867), "Int32Type") + return result868 } func (p *Parser) parse_float32_type() *pb.Float32Type { - span_start865 := int64(p.spanStart()) + span_start869 := int64(p.spanStart()) p.consumeLiteral("FLOAT32") - _t1620 := &pb.Float32Type{} - result866 := _t1620 - p.recordSpan(int(span_start865), "Float32Type") - return result866 + _t1628 := &pb.Float32Type{} + result870 := _t1628 + p.recordSpan(int(span_start869), "Float32Type") + return result870 } func (p *Parser) parse_uint32_type() *pb.UInt32Type { - span_start867 := int64(p.spanStart()) + span_start871 := int64(p.spanStart()) p.consumeLiteral("UINT32") - _t1621 := &pb.UInt32Type{} - result868 := _t1621 - p.recordSpan(int(span_start867), "UInt32Type") - return result868 + _t1629 := &pb.UInt32Type{} + result872 := _t1629 + p.recordSpan(int(span_start871), "UInt32Type") + return result872 } func (p *Parser) parse_value_bindings() []*pb.Binding { p.consumeLiteral("|") - xs869 := []*pb.Binding{} - cond870 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond870 { - _t1622 := p.parse_binding() - item871 := _t1622 - xs869 = append(xs869, item871) - cond870 = p.matchLookaheadTerminal("SYMBOL", 0) + xs873 := []*pb.Binding{} + cond874 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond874 { + _t1630 := p.parse_binding() + item875 := _t1630 + xs873 = append(xs873, item875) + cond874 = p.matchLookaheadTerminal("SYMBOL", 0) } - bindings872 := xs869 - return bindings872 + bindings876 := xs873 + return bindings876 } func (p *Parser) parse_formula() *pb.Formula { - span_start887 := int64(p.spanStart()) - var _t1623 int64 + span_start891 := int64(p.spanStart()) + var _t1631 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1624 int64 + var _t1632 int64 if p.matchLookaheadLiteral("true", 1) { - _t1624 = 0 + _t1632 = 0 } else { - var _t1625 int64 + var _t1633 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t1625 = 11 + _t1633 = 11 } else { - var _t1626 int64 + var _t1634 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t1626 = 3 + _t1634 = 3 } else { - var _t1627 int64 + var _t1635 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1627 = 10 + _t1635 = 10 } else { - var _t1628 int64 + var _t1636 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t1628 = 9 + _t1636 = 9 } else { - var _t1629 int64 + var _t1637 int64 if p.matchLookaheadLiteral("or", 1) { - _t1629 = 5 + _t1637 = 5 } else { - var _t1630 int64 + var _t1638 int64 if p.matchLookaheadLiteral("not", 1) { - _t1630 = 6 + _t1638 = 6 } else { - var _t1631 int64 + var _t1639 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t1631 = 7 + _t1639 = 7 } else { - var _t1632 int64 + var _t1640 int64 if p.matchLookaheadLiteral("false", 1) { - _t1632 = 1 + _t1640 = 1 } else { - var _t1633 int64 + var _t1641 int64 if p.matchLookaheadLiteral("exists", 1) { - _t1633 = 2 + _t1641 = 2 } else { - var _t1634 int64 + var _t1642 int64 if p.matchLookaheadLiteral("cast", 1) { - _t1634 = 12 + _t1642 = 12 } else { - var _t1635 int64 + var _t1643 int64 if p.matchLookaheadLiteral("atom", 1) { - _t1635 = 8 + _t1643 = 8 } else { - var _t1636 int64 + var _t1644 int64 if p.matchLookaheadLiteral("and", 1) { - _t1636 = 4 + _t1644 = 4 } else { - var _t1637 int64 + var _t1645 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1637 = 10 + _t1645 = 10 } else { - var _t1638 int64 + var _t1646 int64 if p.matchLookaheadLiteral(">", 1) { - _t1638 = 10 + _t1646 = 10 } else { - var _t1639 int64 + var _t1647 int64 if p.matchLookaheadLiteral("=", 1) { - _t1639 = 10 + _t1647 = 10 } else { - var _t1640 int64 + var _t1648 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1640 = 10 + _t1648 = 10 } else { - var _t1641 int64 + var _t1649 int64 if p.matchLookaheadLiteral("<", 1) { - _t1641 = 10 + _t1649 = 10 } else { - var _t1642 int64 + var _t1650 int64 if p.matchLookaheadLiteral("/", 1) { - _t1642 = 10 + _t1650 = 10 } else { - var _t1643 int64 + var _t1651 int64 if p.matchLookaheadLiteral("-", 1) { - _t1643 = 10 + _t1651 = 10 } else { - var _t1644 int64 + var _t1652 int64 if p.matchLookaheadLiteral("+", 1) { - _t1644 = 10 + _t1652 = 10 } else { - var _t1645 int64 + var _t1653 int64 if p.matchLookaheadLiteral("*", 1) { - _t1645 = 10 + _t1653 = 10 } else { - _t1645 = -1 + _t1653 = -1 } - _t1644 = _t1645 + _t1652 = _t1653 } - _t1643 = _t1644 + _t1651 = _t1652 } - _t1642 = _t1643 + _t1650 = _t1651 } - _t1641 = _t1642 + _t1649 = _t1650 } - _t1640 = _t1641 + _t1648 = _t1649 } - _t1639 = _t1640 + _t1647 = _t1648 } - _t1638 = _t1639 + _t1646 = _t1647 } - _t1637 = _t1638 + _t1645 = _t1646 } - _t1636 = _t1637 + _t1644 = _t1645 } - _t1635 = _t1636 + _t1643 = _t1644 } - _t1634 = _t1635 + _t1642 = _t1643 } - _t1633 = _t1634 + _t1641 = _t1642 } - _t1632 = _t1633 + _t1640 = _t1641 } - _t1631 = _t1632 + _t1639 = _t1640 } - _t1630 = _t1631 + _t1638 = _t1639 } - _t1629 = _t1630 + _t1637 = _t1638 } - _t1628 = _t1629 + _t1636 = _t1637 } - _t1627 = _t1628 + _t1635 = _t1636 } - _t1626 = _t1627 + _t1634 = _t1635 } - _t1625 = _t1626 + _t1633 = _t1634 } - _t1624 = _t1625 + _t1632 = _t1633 } - _t1623 = _t1624 + _t1631 = _t1632 } else { - _t1623 = -1 - } - prediction873 := _t1623 - var _t1646 *pb.Formula - if prediction873 == 12 { - _t1647 := p.parse_cast() - cast886 := _t1647 - _t1648 := &pb.Formula{} - _t1648.FormulaType = &pb.Formula_Cast{Cast: cast886} - _t1646 = _t1648 + _t1631 = -1 + } + prediction877 := _t1631 + var _t1654 *pb.Formula + if prediction877 == 12 { + _t1655 := p.parse_cast() + cast890 := _t1655 + _t1656 := &pb.Formula{} + _t1656.FormulaType = &pb.Formula_Cast{Cast: cast890} + _t1654 = _t1656 } else { - var _t1649 *pb.Formula - if prediction873 == 11 { - _t1650 := p.parse_rel_atom() - rel_atom885 := _t1650 - _t1651 := &pb.Formula{} - _t1651.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom885} - _t1649 = _t1651 + var _t1657 *pb.Formula + if prediction877 == 11 { + _t1658 := p.parse_rel_atom() + rel_atom889 := _t1658 + _t1659 := &pb.Formula{} + _t1659.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom889} + _t1657 = _t1659 } else { - var _t1652 *pb.Formula - if prediction873 == 10 { - _t1653 := p.parse_primitive() - primitive884 := _t1653 - _t1654 := &pb.Formula{} - _t1654.FormulaType = &pb.Formula_Primitive{Primitive: primitive884} - _t1652 = _t1654 + var _t1660 *pb.Formula + if prediction877 == 10 { + _t1661 := p.parse_primitive() + primitive888 := _t1661 + _t1662 := &pb.Formula{} + _t1662.FormulaType = &pb.Formula_Primitive{Primitive: primitive888} + _t1660 = _t1662 } else { - var _t1655 *pb.Formula - if prediction873 == 9 { - _t1656 := p.parse_pragma() - pragma883 := _t1656 - _t1657 := &pb.Formula{} - _t1657.FormulaType = &pb.Formula_Pragma{Pragma: pragma883} - _t1655 = _t1657 + var _t1663 *pb.Formula + if prediction877 == 9 { + _t1664 := p.parse_pragma() + pragma887 := _t1664 + _t1665 := &pb.Formula{} + _t1665.FormulaType = &pb.Formula_Pragma{Pragma: pragma887} + _t1663 = _t1665 } else { - var _t1658 *pb.Formula - if prediction873 == 8 { - _t1659 := p.parse_atom() - atom882 := _t1659 - _t1660 := &pb.Formula{} - _t1660.FormulaType = &pb.Formula_Atom{Atom: atom882} - _t1658 = _t1660 + var _t1666 *pb.Formula + if prediction877 == 8 { + _t1667 := p.parse_atom() + atom886 := _t1667 + _t1668 := &pb.Formula{} + _t1668.FormulaType = &pb.Formula_Atom{Atom: atom886} + _t1666 = _t1668 } else { - var _t1661 *pb.Formula - if prediction873 == 7 { - _t1662 := p.parse_ffi() - ffi881 := _t1662 - _t1663 := &pb.Formula{} - _t1663.FormulaType = &pb.Formula_Ffi{Ffi: ffi881} - _t1661 = _t1663 + var _t1669 *pb.Formula + if prediction877 == 7 { + _t1670 := p.parse_ffi() + ffi885 := _t1670 + _t1671 := &pb.Formula{} + _t1671.FormulaType = &pb.Formula_Ffi{Ffi: ffi885} + _t1669 = _t1671 } else { - var _t1664 *pb.Formula - if prediction873 == 6 { - _t1665 := p.parse_not() - not880 := _t1665 - _t1666 := &pb.Formula{} - _t1666.FormulaType = &pb.Formula_Not{Not: not880} - _t1664 = _t1666 + var _t1672 *pb.Formula + if prediction877 == 6 { + _t1673 := p.parse_not() + not884 := _t1673 + _t1674 := &pb.Formula{} + _t1674.FormulaType = &pb.Formula_Not{Not: not884} + _t1672 = _t1674 } else { - var _t1667 *pb.Formula - if prediction873 == 5 { - _t1668 := p.parse_disjunction() - disjunction879 := _t1668 - _t1669 := &pb.Formula{} - _t1669.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction879} - _t1667 = _t1669 + var _t1675 *pb.Formula + if prediction877 == 5 { + _t1676 := p.parse_disjunction() + disjunction883 := _t1676 + _t1677 := &pb.Formula{} + _t1677.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction883} + _t1675 = _t1677 } else { - var _t1670 *pb.Formula - if prediction873 == 4 { - _t1671 := p.parse_conjunction() - conjunction878 := _t1671 - _t1672 := &pb.Formula{} - _t1672.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction878} - _t1670 = _t1672 + var _t1678 *pb.Formula + if prediction877 == 4 { + _t1679 := p.parse_conjunction() + conjunction882 := _t1679 + _t1680 := &pb.Formula{} + _t1680.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction882} + _t1678 = _t1680 } else { - var _t1673 *pb.Formula - if prediction873 == 3 { - _t1674 := p.parse_reduce() - reduce877 := _t1674 - _t1675 := &pb.Formula{} - _t1675.FormulaType = &pb.Formula_Reduce{Reduce: reduce877} - _t1673 = _t1675 + var _t1681 *pb.Formula + if prediction877 == 3 { + _t1682 := p.parse_reduce() + reduce881 := _t1682 + _t1683 := &pb.Formula{} + _t1683.FormulaType = &pb.Formula_Reduce{Reduce: reduce881} + _t1681 = _t1683 } else { - var _t1676 *pb.Formula - if prediction873 == 2 { - _t1677 := p.parse_exists() - exists876 := _t1677 - _t1678 := &pb.Formula{} - _t1678.FormulaType = &pb.Formula_Exists{Exists: exists876} - _t1676 = _t1678 + var _t1684 *pb.Formula + if prediction877 == 2 { + _t1685 := p.parse_exists() + exists880 := _t1685 + _t1686 := &pb.Formula{} + _t1686.FormulaType = &pb.Formula_Exists{Exists: exists880} + _t1684 = _t1686 } else { - var _t1679 *pb.Formula - if prediction873 == 1 { - _t1680 := p.parse_false() - false875 := _t1680 - _t1681 := &pb.Formula{} - _t1681.FormulaType = &pb.Formula_Disjunction{Disjunction: false875} - _t1679 = _t1681 + var _t1687 *pb.Formula + if prediction877 == 1 { + _t1688 := p.parse_false() + false879 := _t1688 + _t1689 := &pb.Formula{} + _t1689.FormulaType = &pb.Formula_Disjunction{Disjunction: false879} + _t1687 = _t1689 } else { - var _t1682 *pb.Formula - if prediction873 == 0 { - _t1683 := p.parse_true() - true874 := _t1683 - _t1684 := &pb.Formula{} - _t1684.FormulaType = &pb.Formula_Conjunction{Conjunction: true874} - _t1682 = _t1684 + var _t1690 *pb.Formula + if prediction877 == 0 { + _t1691 := p.parse_true() + true878 := _t1691 + _t1692 := &pb.Formula{} + _t1692.FormulaType = &pb.Formula_Conjunction{Conjunction: true878} + _t1690 = _t1692 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1679 = _t1682 + _t1687 = _t1690 } - _t1676 = _t1679 + _t1684 = _t1687 } - _t1673 = _t1676 + _t1681 = _t1684 } - _t1670 = _t1673 + _t1678 = _t1681 } - _t1667 = _t1670 + _t1675 = _t1678 } - _t1664 = _t1667 + _t1672 = _t1675 } - _t1661 = _t1664 + _t1669 = _t1672 } - _t1658 = _t1661 + _t1666 = _t1669 } - _t1655 = _t1658 + _t1663 = _t1666 } - _t1652 = _t1655 + _t1660 = _t1663 } - _t1649 = _t1652 + _t1657 = _t1660 } - _t1646 = _t1649 + _t1654 = _t1657 } - result888 := _t1646 - p.recordSpan(int(span_start887), "Formula") - return result888 + result892 := _t1654 + p.recordSpan(int(span_start891), "Formula") + return result892 } func (p *Parser) parse_true() *pb.Conjunction { - span_start889 := int64(p.spanStart()) + span_start893 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("true") p.consumeLiteral(")") - _t1685 := &pb.Conjunction{Args: []*pb.Formula{}} - result890 := _t1685 - p.recordSpan(int(span_start889), "Conjunction") - return result890 + _t1693 := &pb.Conjunction{Args: []*pb.Formula{}} + result894 := _t1693 + p.recordSpan(int(span_start893), "Conjunction") + return result894 } func (p *Parser) parse_false() *pb.Disjunction { - span_start891 := int64(p.spanStart()) + span_start895 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("false") p.consumeLiteral(")") - _t1686 := &pb.Disjunction{Args: []*pb.Formula{}} - result892 := _t1686 - p.recordSpan(int(span_start891), "Disjunction") - return result892 + _t1694 := &pb.Disjunction{Args: []*pb.Formula{}} + result896 := _t1694 + p.recordSpan(int(span_start895), "Disjunction") + return result896 } func (p *Parser) parse_exists() *pb.Exists { - span_start895 := int64(p.spanStart()) + span_start899 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("exists") - _t1687 := p.parse_bindings() - bindings893 := _t1687 - _t1688 := p.parse_formula() - formula894 := _t1688 + _t1695 := p.parse_bindings() + bindings897 := _t1695 + _t1696 := p.parse_formula() + formula898 := _t1696 p.consumeLiteral(")") - _t1689 := &pb.Abstraction{Vars: listConcat(bindings893[0].([]*pb.Binding), bindings893[1].([]*pb.Binding)), Value: formula894} - _t1690 := &pb.Exists{Body: _t1689} - result896 := _t1690 - p.recordSpan(int(span_start895), "Exists") - return result896 + _t1697 := &pb.Abstraction{Vars: listConcat(bindings897[0].([]*pb.Binding), bindings897[1].([]*pb.Binding)), Value: formula898} + _t1698 := &pb.Exists{Body: _t1697} + result900 := _t1698 + p.recordSpan(int(span_start899), "Exists") + return result900 } func (p *Parser) parse_reduce() *pb.Reduce { - span_start900 := int64(p.spanStart()) + span_start904 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("reduce") - _t1691 := p.parse_abstraction() - abstraction897 := _t1691 - _t1692 := p.parse_abstraction() - abstraction_3898 := _t1692 - _t1693 := p.parse_terms() - terms899 := _t1693 + _t1699 := p.parse_abstraction() + abstraction901 := _t1699 + _t1700 := p.parse_abstraction() + abstraction_3902 := _t1700 + _t1701 := p.parse_terms() + terms903 := _t1701 p.consumeLiteral(")") - _t1694 := &pb.Reduce{Op: abstraction897, Body: abstraction_3898, Terms: terms899} - result901 := _t1694 - p.recordSpan(int(span_start900), "Reduce") - return result901 + _t1702 := &pb.Reduce{Op: abstraction901, Body: abstraction_3902, Terms: terms903} + result905 := _t1702 + p.recordSpan(int(span_start904), "Reduce") + return result905 } func (p *Parser) parse_terms() []*pb.Term { p.consumeLiteral("(") p.consumeLiteral("terms") - xs902 := []*pb.Term{} - cond903 := (((((((((((((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 cond903 { - _t1695 := p.parse_term() - item904 := _t1695 - xs902 = append(xs902, item904) - cond903 = (((((((((((((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)) - } - terms905 := xs902 + xs906 := []*pb.Term{} + cond907 := (((((((((((((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 cond907 { + _t1703 := p.parse_term() + item908 := _t1703 + xs906 = append(xs906, item908) + cond907 = (((((((((((((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)) + } + terms909 := xs906 p.consumeLiteral(")") - return terms905 + return terms909 } func (p *Parser) parse_term() *pb.Term { - span_start909 := int64(p.spanStart()) - var _t1696 int64 + span_start913 := int64(p.spanStart()) + var _t1704 int64 if p.matchLookaheadLiteral("true", 0) { - _t1696 = 1 + _t1704 = 1 } else { - var _t1697 int64 + var _t1705 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1697 = 1 + _t1705 = 1 } else { - var _t1698 int64 + var _t1706 int64 if p.matchLookaheadLiteral("false", 0) { - _t1698 = 1 + _t1706 = 1 } else { - var _t1699 int64 + var _t1707 int64 if p.matchLookaheadLiteral("(", 0) { - _t1699 = 1 + _t1707 = 1 } else { - var _t1700 int64 + var _t1708 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1700 = 0 + _t1708 = 0 } else { - var _t1701 int64 + var _t1709 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1701 = 1 + _t1709 = 1 } else { - var _t1702 int64 + var _t1710 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1702 = 1 + _t1710 = 1 } else { - var _t1703 int64 + var _t1711 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1703 = 1 + _t1711 = 1 } else { - var _t1704 int64 + var _t1712 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1704 = 1 + _t1712 = 1 } else { - var _t1705 int64 + var _t1713 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1705 = 1 + _t1713 = 1 } else { - var _t1706 int64 + var _t1714 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1706 = 1 + _t1714 = 1 } else { - var _t1707 int64 + var _t1715 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1707 = 1 + _t1715 = 1 } else { - var _t1708 int64 + var _t1716 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1708 = 1 + _t1716 = 1 } else { - var _t1709 int64 + var _t1717 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1709 = 1 + _t1717 = 1 } else { - _t1709 = -1 + _t1717 = -1 } - _t1708 = _t1709 + _t1716 = _t1717 } - _t1707 = _t1708 + _t1715 = _t1716 } - _t1706 = _t1707 + _t1714 = _t1715 } - _t1705 = _t1706 + _t1713 = _t1714 } - _t1704 = _t1705 + _t1712 = _t1713 } - _t1703 = _t1704 + _t1711 = _t1712 } - _t1702 = _t1703 + _t1710 = _t1711 } - _t1701 = _t1702 + _t1709 = _t1710 } - _t1700 = _t1701 + _t1708 = _t1709 } - _t1699 = _t1700 + _t1707 = _t1708 } - _t1698 = _t1699 + _t1706 = _t1707 } - _t1697 = _t1698 + _t1705 = _t1706 } - _t1696 = _t1697 - } - prediction906 := _t1696 - var _t1710 *pb.Term - if prediction906 == 1 { - _t1711 := p.parse_value() - value908 := _t1711 - _t1712 := &pb.Term{} - _t1712.TermType = &pb.Term_Constant{Constant: value908} - _t1710 = _t1712 + _t1704 = _t1705 + } + prediction910 := _t1704 + var _t1718 *pb.Term + if prediction910 == 1 { + _t1719 := p.parse_value() + value912 := _t1719 + _t1720 := &pb.Term{} + _t1720.TermType = &pb.Term_Constant{Constant: value912} + _t1718 = _t1720 } else { - var _t1713 *pb.Term - if prediction906 == 0 { - _t1714 := p.parse_var() - var907 := _t1714 - _t1715 := &pb.Term{} - _t1715.TermType = &pb.Term_Var{Var: var907} - _t1713 = _t1715 + var _t1721 *pb.Term + if prediction910 == 0 { + _t1722 := p.parse_var() + var911 := _t1722 + _t1723 := &pb.Term{} + _t1723.TermType = &pb.Term_Var{Var: var911} + _t1721 = _t1723 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1710 = _t1713 + _t1718 = _t1721 } - result910 := _t1710 - p.recordSpan(int(span_start909), "Term") - return result910 + result914 := _t1718 + p.recordSpan(int(span_start913), "Term") + return result914 } func (p *Parser) parse_var() *pb.Var { - span_start912 := int64(p.spanStart()) - symbol911 := p.consumeTerminal("SYMBOL").Value.str - _t1716 := &pb.Var{Name: symbol911} - result913 := _t1716 - p.recordSpan(int(span_start912), "Var") - return result913 + span_start916 := int64(p.spanStart()) + symbol915 := p.consumeTerminal("SYMBOL").Value.str + _t1724 := &pb.Var{Name: symbol915} + result917 := _t1724 + p.recordSpan(int(span_start916), "Var") + return result917 } func (p *Parser) parse_value() *pb.Value { - span_start927 := int64(p.spanStart()) - var _t1717 int64 + span_start931 := int64(p.spanStart()) + var _t1725 int64 if p.matchLookaheadLiteral("true", 0) { - _t1717 = 12 + _t1725 = 12 } else { - var _t1718 int64 + var _t1726 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1718 = 11 + _t1726 = 11 } else { - var _t1719 int64 + var _t1727 int64 if p.matchLookaheadLiteral("false", 0) { - _t1719 = 12 + _t1727 = 12 } else { - var _t1720 int64 + var _t1728 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1721 int64 + var _t1729 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1721 = 1 + _t1729 = 1 } else { - var _t1722 int64 + var _t1730 int64 if p.matchLookaheadLiteral("date", 1) { - _t1722 = 0 + _t1730 = 0 } else { - _t1722 = -1 + _t1730 = -1 } - _t1721 = _t1722 + _t1729 = _t1730 } - _t1720 = _t1721 + _t1728 = _t1729 } else { - var _t1723 int64 + var _t1731 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1723 = 7 + _t1731 = 7 } else { - var _t1724 int64 + var _t1732 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1724 = 8 + _t1732 = 8 } else { - var _t1725 int64 + var _t1733 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1725 = 2 + _t1733 = 2 } else { - var _t1726 int64 + var _t1734 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1726 = 3 + _t1734 = 3 } else { - var _t1727 int64 + var _t1735 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1727 = 9 + _t1735 = 9 } else { - var _t1728 int64 + var _t1736 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1728 = 4 + _t1736 = 4 } else { - var _t1729 int64 + var _t1737 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1729 = 5 + _t1737 = 5 } else { - var _t1730 int64 + var _t1738 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1730 = 6 + _t1738 = 6 } else { - var _t1731 int64 + var _t1739 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1731 = 10 + _t1739 = 10 } else { - _t1731 = -1 + _t1739 = -1 } - _t1730 = _t1731 + _t1738 = _t1739 } - _t1729 = _t1730 + _t1737 = _t1738 } - _t1728 = _t1729 + _t1736 = _t1737 } - _t1727 = _t1728 + _t1735 = _t1736 } - _t1726 = _t1727 + _t1734 = _t1735 } - _t1725 = _t1726 + _t1733 = _t1734 } - _t1724 = _t1725 + _t1732 = _t1733 } - _t1723 = _t1724 + _t1731 = _t1732 } - _t1720 = _t1723 + _t1728 = _t1731 } - _t1719 = _t1720 + _t1727 = _t1728 } - _t1718 = _t1719 + _t1726 = _t1727 } - _t1717 = _t1718 - } - prediction914 := _t1717 - var _t1732 *pb.Value - if prediction914 == 12 { - _t1733 := p.parse_boolean_value() - boolean_value926 := _t1733 - _t1734 := &pb.Value{} - _t1734.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value926} - _t1732 = _t1734 + _t1725 = _t1726 + } + prediction918 := _t1725 + var _t1740 *pb.Value + if prediction918 == 12 { + _t1741 := p.parse_boolean_value() + boolean_value930 := _t1741 + _t1742 := &pb.Value{} + _t1742.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value930} + _t1740 = _t1742 } else { - var _t1735 *pb.Value - if prediction914 == 11 { + var _t1743 *pb.Value + if prediction918 == 11 { p.consumeLiteral("missing") - _t1736 := &pb.MissingValue{} - _t1737 := &pb.Value{} - _t1737.Value = &pb.Value_MissingValue{MissingValue: _t1736} - _t1735 = _t1737 + _t1744 := &pb.MissingValue{} + _t1745 := &pb.Value{} + _t1745.Value = &pb.Value_MissingValue{MissingValue: _t1744} + _t1743 = _t1745 } else { - var _t1738 *pb.Value - if prediction914 == 10 { - formatted_decimal925 := p.consumeTerminal("DECIMAL").Value.decimal - _t1739 := &pb.Value{} - _t1739.Value = &pb.Value_DecimalValue{DecimalValue: formatted_decimal925} - _t1738 = _t1739 + var _t1746 *pb.Value + if prediction918 == 10 { + formatted_decimal929 := p.consumeTerminal("DECIMAL").Value.decimal + _t1747 := &pb.Value{} + _t1747.Value = &pb.Value_DecimalValue{DecimalValue: formatted_decimal929} + _t1746 = _t1747 } else { - var _t1740 *pb.Value - if prediction914 == 9 { - formatted_int128924 := p.consumeTerminal("INT128").Value.int128 - _t1741 := &pb.Value{} - _t1741.Value = &pb.Value_Int128Value{Int128Value: formatted_int128924} - _t1740 = _t1741 + var _t1748 *pb.Value + if prediction918 == 9 { + formatted_int128928 := p.consumeTerminal("INT128").Value.int128 + _t1749 := &pb.Value{} + _t1749.Value = &pb.Value_Int128Value{Int128Value: formatted_int128928} + _t1748 = _t1749 } else { - var _t1742 *pb.Value - if prediction914 == 8 { - formatted_uint128923 := p.consumeTerminal("UINT128").Value.uint128 - _t1743 := &pb.Value{} - _t1743.Value = &pb.Value_Uint128Value{Uint128Value: formatted_uint128923} - _t1742 = _t1743 + var _t1750 *pb.Value + if prediction918 == 8 { + formatted_uint128927 := p.consumeTerminal("UINT128").Value.uint128 + _t1751 := &pb.Value{} + _t1751.Value = &pb.Value_Uint128Value{Uint128Value: formatted_uint128927} + _t1750 = _t1751 } else { - var _t1744 *pb.Value - if prediction914 == 7 { - formatted_uint32922 := p.consumeTerminal("UINT32").Value.u32 - _t1745 := &pb.Value{} - _t1745.Value = &pb.Value_Uint32Value{Uint32Value: formatted_uint32922} - _t1744 = _t1745 + var _t1752 *pb.Value + if prediction918 == 7 { + formatted_uint32926 := p.consumeTerminal("UINT32").Value.u32 + _t1753 := &pb.Value{} + _t1753.Value = &pb.Value_Uint32Value{Uint32Value: formatted_uint32926} + _t1752 = _t1753 } else { - var _t1746 *pb.Value - if prediction914 == 6 { - formatted_float921 := p.consumeTerminal("FLOAT").Value.f64 - _t1747 := &pb.Value{} - _t1747.Value = &pb.Value_FloatValue{FloatValue: formatted_float921} - _t1746 = _t1747 + var _t1754 *pb.Value + if prediction918 == 6 { + formatted_float925 := p.consumeTerminal("FLOAT").Value.f64 + _t1755 := &pb.Value{} + _t1755.Value = &pb.Value_FloatValue{FloatValue: formatted_float925} + _t1754 = _t1755 } else { - var _t1748 *pb.Value - if prediction914 == 5 { - formatted_float32920 := p.consumeTerminal("FLOAT32").Value.f32 - _t1749 := &pb.Value{} - _t1749.Value = &pb.Value_Float32Value{Float32Value: formatted_float32920} - _t1748 = _t1749 + var _t1756 *pb.Value + if prediction918 == 5 { + formatted_float32924 := p.consumeTerminal("FLOAT32").Value.f32 + _t1757 := &pb.Value{} + _t1757.Value = &pb.Value_Float32Value{Float32Value: formatted_float32924} + _t1756 = _t1757 } else { - var _t1750 *pb.Value - if prediction914 == 4 { - formatted_int919 := p.consumeTerminal("INT").Value.i64 - _t1751 := &pb.Value{} - _t1751.Value = &pb.Value_IntValue{IntValue: formatted_int919} - _t1750 = _t1751 + var _t1758 *pb.Value + if prediction918 == 4 { + formatted_int923 := p.consumeTerminal("INT").Value.i64 + _t1759 := &pb.Value{} + _t1759.Value = &pb.Value_IntValue{IntValue: formatted_int923} + _t1758 = _t1759 } else { - var _t1752 *pb.Value - if prediction914 == 3 { - formatted_int32918 := p.consumeTerminal("INT32").Value.i32 - _t1753 := &pb.Value{} - _t1753.Value = &pb.Value_Int32Value{Int32Value: formatted_int32918} - _t1752 = _t1753 + var _t1760 *pb.Value + if prediction918 == 3 { + formatted_int32922 := p.consumeTerminal("INT32").Value.i32 + _t1761 := &pb.Value{} + _t1761.Value = &pb.Value_Int32Value{Int32Value: formatted_int32922} + _t1760 = _t1761 } else { - var _t1754 *pb.Value - if prediction914 == 2 { - formatted_string917 := p.consumeTerminal("STRING").Value.str - _t1755 := &pb.Value{} - _t1755.Value = &pb.Value_StringValue{StringValue: formatted_string917} - _t1754 = _t1755 + var _t1762 *pb.Value + if prediction918 == 2 { + formatted_string921 := p.consumeTerminal("STRING").Value.str + _t1763 := &pb.Value{} + _t1763.Value = &pb.Value_StringValue{StringValue: formatted_string921} + _t1762 = _t1763 } else { - var _t1756 *pb.Value - if prediction914 == 1 { - _t1757 := p.parse_datetime() - datetime916 := _t1757 - _t1758 := &pb.Value{} - _t1758.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime916} - _t1756 = _t1758 + var _t1764 *pb.Value + if prediction918 == 1 { + _t1765 := p.parse_datetime() + datetime920 := _t1765 + _t1766 := &pb.Value{} + _t1766.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime920} + _t1764 = _t1766 } else { - var _t1759 *pb.Value - if prediction914 == 0 { - _t1760 := p.parse_date() - date915 := _t1760 - _t1761 := &pb.Value{} - _t1761.Value = &pb.Value_DateValue{DateValue: date915} - _t1759 = _t1761 + var _t1767 *pb.Value + if prediction918 == 0 { + _t1768 := p.parse_date() + date919 := _t1768 + _t1769 := &pb.Value{} + _t1769.Value = &pb.Value_DateValue{DateValue: date919} + _t1767 = _t1769 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1756 = _t1759 + _t1764 = _t1767 } - _t1754 = _t1756 + _t1762 = _t1764 } - _t1752 = _t1754 + _t1760 = _t1762 } - _t1750 = _t1752 + _t1758 = _t1760 } - _t1748 = _t1750 + _t1756 = _t1758 } - _t1746 = _t1748 + _t1754 = _t1756 } - _t1744 = _t1746 + _t1752 = _t1754 } - _t1742 = _t1744 + _t1750 = _t1752 } - _t1740 = _t1742 + _t1748 = _t1750 } - _t1738 = _t1740 + _t1746 = _t1748 } - _t1735 = _t1738 + _t1743 = _t1746 } - _t1732 = _t1735 + _t1740 = _t1743 } - result928 := _t1732 - p.recordSpan(int(span_start927), "Value") - return result928 + result932 := _t1740 + p.recordSpan(int(span_start931), "Value") + return result932 } func (p *Parser) parse_date() *pb.DateValue { - span_start932 := int64(p.spanStart()) + span_start936 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("date") - formatted_int929 := p.consumeTerminal("INT").Value.i64 - formatted_int_3930 := p.consumeTerminal("INT").Value.i64 - formatted_int_4931 := p.consumeTerminal("INT").Value.i64 + formatted_int933 := p.consumeTerminal("INT").Value.i64 + formatted_int_3934 := p.consumeTerminal("INT").Value.i64 + formatted_int_4935 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1762 := &pb.DateValue{Year: int32(formatted_int929), Month: int32(formatted_int_3930), Day: int32(formatted_int_4931)} - result933 := _t1762 - p.recordSpan(int(span_start932), "DateValue") - return result933 + _t1770 := &pb.DateValue{Year: int32(formatted_int933), Month: int32(formatted_int_3934), Day: int32(formatted_int_4935)} + result937 := _t1770 + p.recordSpan(int(span_start936), "DateValue") + return result937 } func (p *Parser) parse_datetime() *pb.DateTimeValue { - span_start941 := int64(p.spanStart()) + span_start945 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("datetime") - formatted_int934 := p.consumeTerminal("INT").Value.i64 - formatted_int_3935 := p.consumeTerminal("INT").Value.i64 - formatted_int_4936 := p.consumeTerminal("INT").Value.i64 - formatted_int_5937 := p.consumeTerminal("INT").Value.i64 - formatted_int_6938 := p.consumeTerminal("INT").Value.i64 - formatted_int_7939 := p.consumeTerminal("INT").Value.i64 - var _t1763 *int64 + formatted_int938 := p.consumeTerminal("INT").Value.i64 + formatted_int_3939 := p.consumeTerminal("INT").Value.i64 + formatted_int_4940 := p.consumeTerminal("INT").Value.i64 + formatted_int_5941 := p.consumeTerminal("INT").Value.i64 + formatted_int_6942 := p.consumeTerminal("INT").Value.i64 + formatted_int_7943 := p.consumeTerminal("INT").Value.i64 + var _t1771 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1763 = ptr(p.consumeTerminal("INT").Value.i64) + _t1771 = ptr(p.consumeTerminal("INT").Value.i64) } - formatted_int_8940 := _t1763 + formatted_int_8944 := _t1771 p.consumeLiteral(")") - _t1764 := &pb.DateTimeValue{Year: int32(formatted_int934), Month: int32(formatted_int_3935), Day: int32(formatted_int_4936), Hour: int32(formatted_int_5937), Minute: int32(formatted_int_6938), Second: int32(formatted_int_7939), Microsecond: int32(deref(formatted_int_8940, 0))} - result942 := _t1764 - p.recordSpan(int(span_start941), "DateTimeValue") - return result942 + _t1772 := &pb.DateTimeValue{Year: int32(formatted_int938), Month: int32(formatted_int_3939), Day: int32(formatted_int_4940), Hour: int32(formatted_int_5941), Minute: int32(formatted_int_6942), Second: int32(formatted_int_7943), Microsecond: int32(deref(formatted_int_8944, 0))} + result946 := _t1772 + p.recordSpan(int(span_start945), "DateTimeValue") + return result946 } func (p *Parser) parse_conjunction() *pb.Conjunction { - span_start947 := int64(p.spanStart()) + span_start951 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("and") - xs943 := []*pb.Formula{} - cond944 := p.matchLookaheadLiteral("(", 0) - for cond944 { - _t1765 := p.parse_formula() - item945 := _t1765 - xs943 = append(xs943, item945) - cond944 = p.matchLookaheadLiteral("(", 0) - } - formulas946 := xs943 + xs947 := []*pb.Formula{} + cond948 := p.matchLookaheadLiteral("(", 0) + for cond948 { + _t1773 := p.parse_formula() + item949 := _t1773 + xs947 = append(xs947, item949) + cond948 = p.matchLookaheadLiteral("(", 0) + } + formulas950 := xs947 p.consumeLiteral(")") - _t1766 := &pb.Conjunction{Args: formulas946} - result948 := _t1766 - p.recordSpan(int(span_start947), "Conjunction") - return result948 + _t1774 := &pb.Conjunction{Args: formulas950} + result952 := _t1774 + p.recordSpan(int(span_start951), "Conjunction") + return result952 } func (p *Parser) parse_disjunction() *pb.Disjunction { - span_start953 := int64(p.spanStart()) + span_start957 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") - xs949 := []*pb.Formula{} - cond950 := p.matchLookaheadLiteral("(", 0) - for cond950 { - _t1767 := p.parse_formula() - item951 := _t1767 - xs949 = append(xs949, item951) - cond950 = p.matchLookaheadLiteral("(", 0) - } - formulas952 := xs949 + xs953 := []*pb.Formula{} + cond954 := p.matchLookaheadLiteral("(", 0) + for cond954 { + _t1775 := p.parse_formula() + item955 := _t1775 + xs953 = append(xs953, item955) + cond954 = p.matchLookaheadLiteral("(", 0) + } + formulas956 := xs953 p.consumeLiteral(")") - _t1768 := &pb.Disjunction{Args: formulas952} - result954 := _t1768 - p.recordSpan(int(span_start953), "Disjunction") - return result954 + _t1776 := &pb.Disjunction{Args: formulas956} + result958 := _t1776 + p.recordSpan(int(span_start957), "Disjunction") + return result958 } func (p *Parser) parse_not() *pb.Not { - span_start956 := int64(p.spanStart()) + span_start960 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("not") - _t1769 := p.parse_formula() - formula955 := _t1769 + _t1777 := p.parse_formula() + formula959 := _t1777 p.consumeLiteral(")") - _t1770 := &pb.Not{Arg: formula955} - result957 := _t1770 - p.recordSpan(int(span_start956), "Not") - return result957 + _t1778 := &pb.Not{Arg: formula959} + result961 := _t1778 + p.recordSpan(int(span_start960), "Not") + return result961 } func (p *Parser) parse_ffi() *pb.FFI { - span_start961 := int64(p.spanStart()) + span_start965 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("ffi") - _t1771 := p.parse_name() - name958 := _t1771 - _t1772 := p.parse_ffi_args() - ffi_args959 := _t1772 - _t1773 := p.parse_terms() - terms960 := _t1773 + _t1779 := p.parse_name() + name962 := _t1779 + _t1780 := p.parse_ffi_args() + ffi_args963 := _t1780 + _t1781 := p.parse_terms() + terms964 := _t1781 p.consumeLiteral(")") - _t1774 := &pb.FFI{Name: name958, Args: ffi_args959, Terms: terms960} - result962 := _t1774 - p.recordSpan(int(span_start961), "FFI") - return result962 + _t1782 := &pb.FFI{Name: name962, Args: ffi_args963, Terms: terms964} + result966 := _t1782 + p.recordSpan(int(span_start965), "FFI") + return result966 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol963 := p.consumeTerminal("SYMBOL").Value.str - return symbol963 + symbol967 := p.consumeTerminal("SYMBOL").Value.str + return symbol967 } func (p *Parser) parse_ffi_args() []*pb.Abstraction { p.consumeLiteral("(") p.consumeLiteral("args") - xs964 := []*pb.Abstraction{} - cond965 := p.matchLookaheadLiteral("(", 0) - for cond965 { - _t1775 := p.parse_abstraction() - item966 := _t1775 - xs964 = append(xs964, item966) - cond965 = p.matchLookaheadLiteral("(", 0) - } - abstractions967 := xs964 + xs968 := []*pb.Abstraction{} + cond969 := p.matchLookaheadLiteral("(", 0) + for cond969 { + _t1783 := p.parse_abstraction() + item970 := _t1783 + xs968 = append(xs968, item970) + cond969 = p.matchLookaheadLiteral("(", 0) + } + abstractions971 := xs968 p.consumeLiteral(")") - return abstractions967 + return abstractions971 } func (p *Parser) parse_atom() *pb.Atom { - span_start973 := int64(p.spanStart()) + span_start977 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("atom") - _t1776 := p.parse_relation_id() - relation_id968 := _t1776 - xs969 := []*pb.Term{} - cond970 := (((((((((((((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 cond970 { - _t1777 := p.parse_term() - item971 := _t1777 - xs969 = append(xs969, item971) - cond970 = (((((((((((((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)) - } - terms972 := xs969 + _t1784 := p.parse_relation_id() + relation_id972 := _t1784 + xs973 := []*pb.Term{} + cond974 := (((((((((((((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 cond974 { + _t1785 := p.parse_term() + item975 := _t1785 + xs973 = append(xs973, item975) + cond974 = (((((((((((((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)) + } + terms976 := xs973 p.consumeLiteral(")") - _t1778 := &pb.Atom{Name: relation_id968, Terms: terms972} - result974 := _t1778 - p.recordSpan(int(span_start973), "Atom") - return result974 + _t1786 := &pb.Atom{Name: relation_id972, Terms: terms976} + result978 := _t1786 + p.recordSpan(int(span_start977), "Atom") + return result978 } func (p *Parser) parse_pragma() *pb.Pragma { - span_start980 := int64(p.spanStart()) + span_start984 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("pragma") - _t1779 := p.parse_name() - name975 := _t1779 - xs976 := []*pb.Term{} - cond977 := (((((((((((((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 cond977 { - _t1780 := p.parse_term() - item978 := _t1780 - xs976 = append(xs976, item978) - cond977 = (((((((((((((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)) - } - terms979 := xs976 + _t1787 := p.parse_name() + name979 := _t1787 + xs980 := []*pb.Term{} + cond981 := (((((((((((((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 cond981 { + _t1788 := p.parse_term() + item982 := _t1788 + xs980 = append(xs980, item982) + cond981 = (((((((((((((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)) + } + terms983 := xs980 p.consumeLiteral(")") - _t1781 := &pb.Pragma{Name: name975, Terms: terms979} - result981 := _t1781 - p.recordSpan(int(span_start980), "Pragma") - return result981 + _t1789 := &pb.Pragma{Name: name979, Terms: terms983} + result985 := _t1789 + p.recordSpan(int(span_start984), "Pragma") + return result985 } func (p *Parser) parse_primitive() *pb.Primitive { - span_start997 := int64(p.spanStart()) - var _t1782 int64 + span_start1001 := int64(p.spanStart()) + var _t1790 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1783 int64 + var _t1791 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1783 = 9 + _t1791 = 9 } else { - var _t1784 int64 + var _t1792 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1784 = 4 + _t1792 = 4 } else { - var _t1785 int64 + var _t1793 int64 if p.matchLookaheadLiteral(">", 1) { - _t1785 = 3 + _t1793 = 3 } else { - var _t1786 int64 + var _t1794 int64 if p.matchLookaheadLiteral("=", 1) { - _t1786 = 0 + _t1794 = 0 } else { - var _t1787 int64 + var _t1795 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1787 = 2 + _t1795 = 2 } else { - var _t1788 int64 + var _t1796 int64 if p.matchLookaheadLiteral("<", 1) { - _t1788 = 1 + _t1796 = 1 } else { - var _t1789 int64 + var _t1797 int64 if p.matchLookaheadLiteral("/", 1) { - _t1789 = 8 + _t1797 = 8 } else { - var _t1790 int64 + var _t1798 int64 if p.matchLookaheadLiteral("-", 1) { - _t1790 = 6 + _t1798 = 6 } else { - var _t1791 int64 + var _t1799 int64 if p.matchLookaheadLiteral("+", 1) { - _t1791 = 5 + _t1799 = 5 } else { - var _t1792 int64 + var _t1800 int64 if p.matchLookaheadLiteral("*", 1) { - _t1792 = 7 + _t1800 = 7 } else { - _t1792 = -1 + _t1800 = -1 } - _t1791 = _t1792 + _t1799 = _t1800 } - _t1790 = _t1791 + _t1798 = _t1799 } - _t1789 = _t1790 + _t1797 = _t1798 } - _t1788 = _t1789 + _t1796 = _t1797 } - _t1787 = _t1788 + _t1795 = _t1796 } - _t1786 = _t1787 + _t1794 = _t1795 } - _t1785 = _t1786 + _t1793 = _t1794 } - _t1784 = _t1785 + _t1792 = _t1793 } - _t1783 = _t1784 + _t1791 = _t1792 } - _t1782 = _t1783 + _t1790 = _t1791 } else { - _t1782 = -1 + _t1790 = -1 } - prediction982 := _t1782 - var _t1793 *pb.Primitive - if prediction982 == 9 { + prediction986 := _t1790 + var _t1801 *pb.Primitive + if prediction986 == 9 { p.consumeLiteral("(") p.consumeLiteral("primitive") - _t1794 := p.parse_name() - name992 := _t1794 - xs993 := []*pb.RelTerm{} - cond994 := ((((((((((((((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 cond994 { - _t1795 := p.parse_rel_term() - item995 := _t1795 - xs993 = append(xs993, item995) - cond994 = ((((((((((((((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)) + _t1802 := p.parse_name() + name996 := _t1802 + xs997 := []*pb.RelTerm{} + cond998 := ((((((((((((((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 cond998 { + _t1803 := p.parse_rel_term() + item999 := _t1803 + xs997 = append(xs997, item999) + cond998 = ((((((((((((((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_terms996 := xs993 + rel_terms1000 := xs997 p.consumeLiteral(")") - _t1796 := &pb.Primitive{Name: name992, Terms: rel_terms996} - _t1793 = _t1796 + _t1804 := &pb.Primitive{Name: name996, Terms: rel_terms1000} + _t1801 = _t1804 } else { - var _t1797 *pb.Primitive - if prediction982 == 8 { - _t1798 := p.parse_divide() - divide991 := _t1798 - _t1797 = divide991 + var _t1805 *pb.Primitive + if prediction986 == 8 { + _t1806 := p.parse_divide() + divide995 := _t1806 + _t1805 = divide995 } else { - var _t1799 *pb.Primitive - if prediction982 == 7 { - _t1800 := p.parse_multiply() - multiply990 := _t1800 - _t1799 = multiply990 + var _t1807 *pb.Primitive + if prediction986 == 7 { + _t1808 := p.parse_multiply() + multiply994 := _t1808 + _t1807 = multiply994 } else { - var _t1801 *pb.Primitive - if prediction982 == 6 { - _t1802 := p.parse_minus() - minus989 := _t1802 - _t1801 = minus989 + var _t1809 *pb.Primitive + if prediction986 == 6 { + _t1810 := p.parse_minus() + minus993 := _t1810 + _t1809 = minus993 } else { - var _t1803 *pb.Primitive - if prediction982 == 5 { - _t1804 := p.parse_add() - add988 := _t1804 - _t1803 = add988 + var _t1811 *pb.Primitive + if prediction986 == 5 { + _t1812 := p.parse_add() + add992 := _t1812 + _t1811 = add992 } else { - var _t1805 *pb.Primitive - if prediction982 == 4 { - _t1806 := p.parse_gt_eq() - gt_eq987 := _t1806 - _t1805 = gt_eq987 + var _t1813 *pb.Primitive + if prediction986 == 4 { + _t1814 := p.parse_gt_eq() + gt_eq991 := _t1814 + _t1813 = gt_eq991 } else { - var _t1807 *pb.Primitive - if prediction982 == 3 { - _t1808 := p.parse_gt() - gt986 := _t1808 - _t1807 = gt986 + var _t1815 *pb.Primitive + if prediction986 == 3 { + _t1816 := p.parse_gt() + gt990 := _t1816 + _t1815 = gt990 } else { - var _t1809 *pb.Primitive - if prediction982 == 2 { - _t1810 := p.parse_lt_eq() - lt_eq985 := _t1810 - _t1809 = lt_eq985 + var _t1817 *pb.Primitive + if prediction986 == 2 { + _t1818 := p.parse_lt_eq() + lt_eq989 := _t1818 + _t1817 = lt_eq989 } else { - var _t1811 *pb.Primitive - if prediction982 == 1 { - _t1812 := p.parse_lt() - lt984 := _t1812 - _t1811 = lt984 + var _t1819 *pb.Primitive + if prediction986 == 1 { + _t1820 := p.parse_lt() + lt988 := _t1820 + _t1819 = lt988 } else { - var _t1813 *pb.Primitive - if prediction982 == 0 { - _t1814 := p.parse_eq() - eq983 := _t1814 - _t1813 = eq983 + var _t1821 *pb.Primitive + if prediction986 == 0 { + _t1822 := p.parse_eq() + eq987 := _t1822 + _t1821 = eq987 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1811 = _t1813 + _t1819 = _t1821 } - _t1809 = _t1811 + _t1817 = _t1819 } - _t1807 = _t1809 + _t1815 = _t1817 } - _t1805 = _t1807 + _t1813 = _t1815 } - _t1803 = _t1805 + _t1811 = _t1813 } - _t1801 = _t1803 + _t1809 = _t1811 } - _t1799 = _t1801 + _t1807 = _t1809 } - _t1797 = _t1799 + _t1805 = _t1807 } - _t1793 = _t1797 + _t1801 = _t1805 } - result998 := _t1793 - p.recordSpan(int(span_start997), "Primitive") - return result998 -} - -func (p *Parser) parse_eq() *pb.Primitive { - span_start1001 := int64(p.spanStart()) - p.consumeLiteral("(") - p.consumeLiteral("=") - _t1815 := p.parse_term() - term999 := _t1815 - _t1816 := p.parse_term() - term_31000 := _t1816 - p.consumeLiteral(")") - _t1817 := &pb.RelTerm{} - _t1817.RelTermType = &pb.RelTerm_Term{Term: term999} - _t1818 := &pb.RelTerm{} - _t1818.RelTermType = &pb.RelTerm_Term{Term: term_31000} - _t1819 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1817, _t1818}} - result1002 := _t1819 + result1002 := _t1801 p.recordSpan(int(span_start1001), "Primitive") return result1002 } -func (p *Parser) parse_lt() *pb.Primitive { +func (p *Parser) parse_eq() *pb.Primitive { span_start1005 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("<") - _t1820 := p.parse_term() - term1003 := _t1820 - _t1821 := p.parse_term() - term_31004 := _t1821 + p.consumeLiteral("=") + _t1823 := p.parse_term() + term1003 := _t1823 + _t1824 := p.parse_term() + term_31004 := _t1824 p.consumeLiteral(")") - _t1822 := &pb.RelTerm{} - _t1822.RelTermType = &pb.RelTerm_Term{Term: term1003} - _t1823 := &pb.RelTerm{} - _t1823.RelTermType = &pb.RelTerm_Term{Term: term_31004} - _t1824 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1822, _t1823}} - result1006 := _t1824 + _t1825 := &pb.RelTerm{} + _t1825.RelTermType = &pb.RelTerm_Term{Term: term1003} + _t1826 := &pb.RelTerm{} + _t1826.RelTermType = &pb.RelTerm_Term{Term: term_31004} + _t1827 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1825, _t1826}} + result1006 := _t1827 p.recordSpan(int(span_start1005), "Primitive") return result1006 } -func (p *Parser) parse_lt_eq() *pb.Primitive { +func (p *Parser) parse_lt() *pb.Primitive { span_start1009 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("<=") - _t1825 := p.parse_term() - term1007 := _t1825 - _t1826 := p.parse_term() - term_31008 := _t1826 + p.consumeLiteral("<") + _t1828 := p.parse_term() + term1007 := _t1828 + _t1829 := p.parse_term() + term_31008 := _t1829 p.consumeLiteral(")") - _t1827 := &pb.RelTerm{} - _t1827.RelTermType = &pb.RelTerm_Term{Term: term1007} - _t1828 := &pb.RelTerm{} - _t1828.RelTermType = &pb.RelTerm_Term{Term: term_31008} - _t1829 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1827, _t1828}} - result1010 := _t1829 + _t1830 := &pb.RelTerm{} + _t1830.RelTermType = &pb.RelTerm_Term{Term: term1007} + _t1831 := &pb.RelTerm{} + _t1831.RelTermType = &pb.RelTerm_Term{Term: term_31008} + _t1832 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1830, _t1831}} + result1010 := _t1832 p.recordSpan(int(span_start1009), "Primitive") return result1010 } -func (p *Parser) parse_gt() *pb.Primitive { +func (p *Parser) parse_lt_eq() *pb.Primitive { span_start1013 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral(">") - _t1830 := p.parse_term() - term1011 := _t1830 - _t1831 := p.parse_term() - term_31012 := _t1831 + p.consumeLiteral("<=") + _t1833 := p.parse_term() + term1011 := _t1833 + _t1834 := p.parse_term() + term_31012 := _t1834 p.consumeLiteral(")") - _t1832 := &pb.RelTerm{} - _t1832.RelTermType = &pb.RelTerm_Term{Term: term1011} - _t1833 := &pb.RelTerm{} - _t1833.RelTermType = &pb.RelTerm_Term{Term: term_31012} - _t1834 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1832, _t1833}} - result1014 := _t1834 + _t1835 := &pb.RelTerm{} + _t1835.RelTermType = &pb.RelTerm_Term{Term: term1011} + _t1836 := &pb.RelTerm{} + _t1836.RelTermType = &pb.RelTerm_Term{Term: term_31012} + _t1837 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1835, _t1836}} + result1014 := _t1837 p.recordSpan(int(span_start1013), "Primitive") return result1014 } -func (p *Parser) parse_gt_eq() *pb.Primitive { +func (p *Parser) parse_gt() *pb.Primitive { span_start1017 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral(">=") - _t1835 := p.parse_term() - term1015 := _t1835 - _t1836 := p.parse_term() - term_31016 := _t1836 + p.consumeLiteral(">") + _t1838 := p.parse_term() + term1015 := _t1838 + _t1839 := p.parse_term() + term_31016 := _t1839 p.consumeLiteral(")") - _t1837 := &pb.RelTerm{} - _t1837.RelTermType = &pb.RelTerm_Term{Term: term1015} - _t1838 := &pb.RelTerm{} - _t1838.RelTermType = &pb.RelTerm_Term{Term: term_31016} - _t1839 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1837, _t1838}} - result1018 := _t1839 + _t1840 := &pb.RelTerm{} + _t1840.RelTermType = &pb.RelTerm_Term{Term: term1015} + _t1841 := &pb.RelTerm{} + _t1841.RelTermType = &pb.RelTerm_Term{Term: term_31016} + _t1842 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1840, _t1841}} + result1018 := _t1842 p.recordSpan(int(span_start1017), "Primitive") return result1018 } -func (p *Parser) parse_add() *pb.Primitive { - span_start1022 := int64(p.spanStart()) +func (p *Parser) parse_gt_eq() *pb.Primitive { + span_start1021 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("+") - _t1840 := p.parse_term() - term1019 := _t1840 - _t1841 := p.parse_term() - term_31020 := _t1841 - _t1842 := p.parse_term() - term_41021 := _t1842 + p.consumeLiteral(">=") + _t1843 := p.parse_term() + term1019 := _t1843 + _t1844 := p.parse_term() + term_31020 := _t1844 p.consumeLiteral(")") - _t1843 := &pb.RelTerm{} - _t1843.RelTermType = &pb.RelTerm_Term{Term: term1019} - _t1844 := &pb.RelTerm{} - _t1844.RelTermType = &pb.RelTerm_Term{Term: term_31020} _t1845 := &pb.RelTerm{} - _t1845.RelTermType = &pb.RelTerm_Term{Term: term_41021} - _t1846 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1843, _t1844, _t1845}} - result1023 := _t1846 - p.recordSpan(int(span_start1022), "Primitive") - return result1023 + _t1845.RelTermType = &pb.RelTerm_Term{Term: term1019} + _t1846 := &pb.RelTerm{} + _t1846.RelTermType = &pb.RelTerm_Term{Term: term_31020} + _t1847 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1845, _t1846}} + result1022 := _t1847 + p.recordSpan(int(span_start1021), "Primitive") + return result1022 } -func (p *Parser) parse_minus() *pb.Primitive { - span_start1027 := int64(p.spanStart()) +func (p *Parser) parse_add() *pb.Primitive { + span_start1026 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("-") - _t1847 := p.parse_term() - term1024 := _t1847 + p.consumeLiteral("+") _t1848 := p.parse_term() - term_31025 := _t1848 + term1023 := _t1848 _t1849 := p.parse_term() - term_41026 := _t1849 + term_31024 := _t1849 + _t1850 := p.parse_term() + term_41025 := _t1850 p.consumeLiteral(")") - _t1850 := &pb.RelTerm{} - _t1850.RelTermType = &pb.RelTerm_Term{Term: term1024} _t1851 := &pb.RelTerm{} - _t1851.RelTermType = &pb.RelTerm_Term{Term: term_31025} + _t1851.RelTermType = &pb.RelTerm_Term{Term: term1023} _t1852 := &pb.RelTerm{} - _t1852.RelTermType = &pb.RelTerm_Term{Term: term_41026} - _t1853 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1850, _t1851, _t1852}} - result1028 := _t1853 - p.recordSpan(int(span_start1027), "Primitive") - return result1028 + _t1852.RelTermType = &pb.RelTerm_Term{Term: term_31024} + _t1853 := &pb.RelTerm{} + _t1853.RelTermType = &pb.RelTerm_Term{Term: term_41025} + _t1854 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1851, _t1852, _t1853}} + result1027 := _t1854 + p.recordSpan(int(span_start1026), "Primitive") + return result1027 } -func (p *Parser) parse_multiply() *pb.Primitive { - span_start1032 := int64(p.spanStart()) +func (p *Parser) parse_minus() *pb.Primitive { + span_start1031 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("*") - _t1854 := p.parse_term() - term1029 := _t1854 + p.consumeLiteral("-") _t1855 := p.parse_term() - term_31030 := _t1855 + term1028 := _t1855 _t1856 := p.parse_term() - term_41031 := _t1856 + term_31029 := _t1856 + _t1857 := p.parse_term() + term_41030 := _t1857 p.consumeLiteral(")") - _t1857 := &pb.RelTerm{} - _t1857.RelTermType = &pb.RelTerm_Term{Term: term1029} _t1858 := &pb.RelTerm{} - _t1858.RelTermType = &pb.RelTerm_Term{Term: term_31030} + _t1858.RelTermType = &pb.RelTerm_Term{Term: term1028} _t1859 := &pb.RelTerm{} - _t1859.RelTermType = &pb.RelTerm_Term{Term: term_41031} - _t1860 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1857, _t1858, _t1859}} - result1033 := _t1860 - p.recordSpan(int(span_start1032), "Primitive") - return result1033 + _t1859.RelTermType = &pb.RelTerm_Term{Term: term_31029} + _t1860 := &pb.RelTerm{} + _t1860.RelTermType = &pb.RelTerm_Term{Term: term_41030} + _t1861 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1858, _t1859, _t1860}} + result1032 := _t1861 + p.recordSpan(int(span_start1031), "Primitive") + return result1032 } -func (p *Parser) parse_divide() *pb.Primitive { - span_start1037 := int64(p.spanStart()) +func (p *Parser) parse_multiply() *pb.Primitive { + span_start1036 := int64(p.spanStart()) p.consumeLiteral("(") - p.consumeLiteral("/") - _t1861 := p.parse_term() - term1034 := _t1861 + p.consumeLiteral("*") _t1862 := p.parse_term() - term_31035 := _t1862 + term1033 := _t1862 _t1863 := p.parse_term() - term_41036 := _t1863 + term_31034 := _t1863 + _t1864 := p.parse_term() + term_41035 := _t1864 p.consumeLiteral(")") - _t1864 := &pb.RelTerm{} - _t1864.RelTermType = &pb.RelTerm_Term{Term: term1034} _t1865 := &pb.RelTerm{} - _t1865.RelTermType = &pb.RelTerm_Term{Term: term_31035} + _t1865.RelTermType = &pb.RelTerm_Term{Term: term1033} _t1866 := &pb.RelTerm{} - _t1866.RelTermType = &pb.RelTerm_Term{Term: term_41036} - _t1867 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1864, _t1865, _t1866}} - result1038 := _t1867 - p.recordSpan(int(span_start1037), "Primitive") - return result1038 + _t1866.RelTermType = &pb.RelTerm_Term{Term: term_31034} + _t1867 := &pb.RelTerm{} + _t1867.RelTermType = &pb.RelTerm_Term{Term: term_41035} + _t1868 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1865, _t1866, _t1867}} + result1037 := _t1868 + p.recordSpan(int(span_start1036), "Primitive") + return result1037 +} + +func (p *Parser) parse_divide() *pb.Primitive { + span_start1041 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("/") + _t1869 := p.parse_term() + term1038 := _t1869 + _t1870 := p.parse_term() + term_31039 := _t1870 + _t1871 := p.parse_term() + term_41040 := _t1871 + p.consumeLiteral(")") + _t1872 := &pb.RelTerm{} + _t1872.RelTermType = &pb.RelTerm_Term{Term: term1038} + _t1873 := &pb.RelTerm{} + _t1873.RelTermType = &pb.RelTerm_Term{Term: term_31039} + _t1874 := &pb.RelTerm{} + _t1874.RelTermType = &pb.RelTerm_Term{Term: term_41040} + _t1875 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1872, _t1873, _t1874}} + result1042 := _t1875 + p.recordSpan(int(span_start1041), "Primitive") + return result1042 } func (p *Parser) parse_rel_term() *pb.RelTerm { - span_start1042 := int64(p.spanStart()) - var _t1868 int64 + span_start1046 := int64(p.spanStart()) + var _t1876 int64 if p.matchLookaheadLiteral("true", 0) { - _t1868 = 1 + _t1876 = 1 } else { - var _t1869 int64 + var _t1877 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1869 = 1 + _t1877 = 1 } else { - var _t1870 int64 + var _t1878 int64 if p.matchLookaheadLiteral("false", 0) { - _t1870 = 1 + _t1878 = 1 } else { - var _t1871 int64 + var _t1879 int64 if p.matchLookaheadLiteral("(", 0) { - _t1871 = 1 + _t1879 = 1 } else { - var _t1872 int64 + var _t1880 int64 if p.matchLookaheadLiteral("#", 0) { - _t1872 = 0 + _t1880 = 0 } else { - var _t1873 int64 + var _t1881 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1873 = 1 + _t1881 = 1 } else { - var _t1874 int64 + var _t1882 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1874 = 1 + _t1882 = 1 } else { - var _t1875 int64 + var _t1883 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1875 = 1 + _t1883 = 1 } else { - var _t1876 int64 + var _t1884 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1876 = 1 + _t1884 = 1 } else { - var _t1877 int64 + var _t1885 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1877 = 1 + _t1885 = 1 } else { - var _t1878 int64 + var _t1886 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1878 = 1 + _t1886 = 1 } else { - var _t1879 int64 + var _t1887 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1879 = 1 + _t1887 = 1 } else { - var _t1880 int64 + var _t1888 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1880 = 1 + _t1888 = 1 } else { - var _t1881 int64 + var _t1889 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1881 = 1 + _t1889 = 1 } else { - var _t1882 int64 + var _t1890 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1882 = 1 + _t1890 = 1 } else { - _t1882 = -1 + _t1890 = -1 } - _t1881 = _t1882 + _t1889 = _t1890 } - _t1880 = _t1881 + _t1888 = _t1889 } - _t1879 = _t1880 + _t1887 = _t1888 } - _t1878 = _t1879 + _t1886 = _t1887 } - _t1877 = _t1878 + _t1885 = _t1886 } - _t1876 = _t1877 + _t1884 = _t1885 } - _t1875 = _t1876 + _t1883 = _t1884 } - _t1874 = _t1875 + _t1882 = _t1883 } - _t1873 = _t1874 + _t1881 = _t1882 } - _t1872 = _t1873 + _t1880 = _t1881 } - _t1871 = _t1872 + _t1879 = _t1880 } - _t1870 = _t1871 + _t1878 = _t1879 } - _t1869 = _t1870 + _t1877 = _t1878 } - _t1868 = _t1869 - } - prediction1039 := _t1868 - var _t1883 *pb.RelTerm - if prediction1039 == 1 { - _t1884 := p.parse_term() - term1041 := _t1884 - _t1885 := &pb.RelTerm{} - _t1885.RelTermType = &pb.RelTerm_Term{Term: term1041} - _t1883 = _t1885 + _t1876 = _t1877 + } + prediction1043 := _t1876 + var _t1891 *pb.RelTerm + if prediction1043 == 1 { + _t1892 := p.parse_term() + term1045 := _t1892 + _t1893 := &pb.RelTerm{} + _t1893.RelTermType = &pb.RelTerm_Term{Term: term1045} + _t1891 = _t1893 } else { - var _t1886 *pb.RelTerm - if prediction1039 == 0 { - _t1887 := p.parse_specialized_value() - specialized_value1040 := _t1887 - _t1888 := &pb.RelTerm{} - _t1888.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value1040} - _t1886 = _t1888 + var _t1894 *pb.RelTerm + if prediction1043 == 0 { + _t1895 := p.parse_specialized_value() + specialized_value1044 := _t1895 + _t1896 := &pb.RelTerm{} + _t1896.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value1044} + _t1894 = _t1896 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1883 = _t1886 + _t1891 = _t1894 } - result1043 := _t1883 - p.recordSpan(int(span_start1042), "RelTerm") - return result1043 + result1047 := _t1891 + p.recordSpan(int(span_start1046), "RelTerm") + return result1047 } func (p *Parser) parse_specialized_value() *pb.Value { - span_start1045 := int64(p.spanStart()) + span_start1049 := int64(p.spanStart()) p.consumeLiteral("#") - _t1889 := p.parse_raw_value() - raw_value1044 := _t1889 - result1046 := raw_value1044 - p.recordSpan(int(span_start1045), "Value") - return result1046 + _t1897 := p.parse_raw_value() + raw_value1048 := _t1897 + result1050 := raw_value1048 + p.recordSpan(int(span_start1049), "Value") + return result1050 } func (p *Parser) parse_rel_atom() *pb.RelAtom { - span_start1052 := int64(p.spanStart()) + span_start1056 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("relatom") - _t1890 := p.parse_name() - name1047 := _t1890 - xs1048 := []*pb.RelTerm{} - cond1049 := ((((((((((((((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 cond1049 { - _t1891 := p.parse_rel_term() - item1050 := _t1891 - xs1048 = append(xs1048, item1050) - cond1049 = ((((((((((((((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_terms1051 := xs1048 + _t1898 := p.parse_name() + name1051 := _t1898 + xs1052 := []*pb.RelTerm{} + cond1053 := ((((((((((((((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 cond1053 { + _t1899 := p.parse_rel_term() + item1054 := _t1899 + xs1052 = append(xs1052, item1054) + cond1053 = ((((((((((((((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_terms1055 := xs1052 p.consumeLiteral(")") - _t1892 := &pb.RelAtom{Name: name1047, Terms: rel_terms1051} - result1053 := _t1892 - p.recordSpan(int(span_start1052), "RelAtom") - return result1053 + _t1900 := &pb.RelAtom{Name: name1051, Terms: rel_terms1055} + result1057 := _t1900 + p.recordSpan(int(span_start1056), "RelAtom") + return result1057 } func (p *Parser) parse_cast() *pb.Cast { - span_start1056 := int64(p.spanStart()) + span_start1060 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("cast") - _t1893 := p.parse_term() - term1054 := _t1893 - _t1894 := p.parse_term() - term_31055 := _t1894 + _t1901 := p.parse_term() + term1058 := _t1901 + _t1902 := p.parse_term() + term_31059 := _t1902 p.consumeLiteral(")") - _t1895 := &pb.Cast{Input: term1054, Result: term_31055} - result1057 := _t1895 - p.recordSpan(int(span_start1056), "Cast") - return result1057 + _t1903 := &pb.Cast{Input: term1058, Result: term_31059} + result1061 := _t1903 + p.recordSpan(int(span_start1060), "Cast") + return result1061 } func (p *Parser) parse_attrs() []*pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attrs") - xs1058 := []*pb.Attribute{} - cond1059 := p.matchLookaheadLiteral("(", 0) - for cond1059 { - _t1896 := p.parse_attribute() - item1060 := _t1896 - xs1058 = append(xs1058, item1060) - cond1059 = p.matchLookaheadLiteral("(", 0) - } - attributes1061 := xs1058 + xs1062 := []*pb.Attribute{} + cond1063 := p.matchLookaheadLiteral("(", 0) + for cond1063 { + _t1904 := p.parse_attribute() + item1064 := _t1904 + xs1062 = append(xs1062, item1064) + cond1063 = p.matchLookaheadLiteral("(", 0) + } + attributes1065 := xs1062 p.consumeLiteral(")") - return attributes1061 + return attributes1065 } func (p *Parser) parse_attribute() *pb.Attribute { - span_start1067 := int64(p.spanStart()) + span_start1071 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("attribute") - _t1897 := p.parse_name() - name1062 := _t1897 - xs1063 := []*pb.Value{} - cond1064 := ((((((((((((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 cond1064 { - _t1898 := p.parse_raw_value() - item1065 := _t1898 - xs1063 = append(xs1063, item1065) - cond1064 = ((((((((((((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_values1066 := xs1063 + _t1905 := p.parse_name() + name1066 := _t1905 + xs1067 := []*pb.Value{} + cond1068 := ((((((((((((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 cond1068 { + _t1906 := p.parse_raw_value() + item1069 := _t1906 + xs1067 = append(xs1067, item1069) + cond1068 = ((((((((((((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_values1070 := xs1067 p.consumeLiteral(")") - _t1899 := &pb.Attribute{Name: name1062, Args: raw_values1066} - result1068 := _t1899 - p.recordSpan(int(span_start1067), "Attribute") - return result1068 + _t1907 := &pb.Attribute{Name: name1066, Args: raw_values1070} + result1072 := _t1907 + p.recordSpan(int(span_start1071), "Attribute") + return result1072 } func (p *Parser) parse_algorithm() *pb.Algorithm { - span_start1075 := int64(p.spanStart()) + span_start1079 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("algorithm") - xs1069 := []*pb.RelationId{} - cond1070 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond1070 { - _t1900 := p.parse_relation_id() - item1071 := _t1900 - xs1069 = append(xs1069, item1071) - cond1070 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids1072 := xs1069 - _t1901 := p.parse_script() - script1073 := _t1901 - var _t1902 []*pb.Attribute + xs1073 := []*pb.RelationId{} + cond1074 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1074 { + _t1908 := p.parse_relation_id() + item1075 := _t1908 + xs1073 = append(xs1073, item1075) + cond1074 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1076 := xs1073 + _t1909 := p.parse_script() + script1077 := _t1909 + var _t1910 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1903 := p.parse_attrs() - _t1902 = _t1903 + _t1911 := p.parse_attrs() + _t1910 = _t1911 } - attrs1074 := _t1902 + attrs1078 := _t1910 p.consumeLiteral(")") - _t1904 := attrs1074 - if attrs1074 == nil { - _t1904 = []*pb.Attribute{} + _t1912 := attrs1078 + if attrs1078 == nil { + _t1912 = []*pb.Attribute{} } - _t1905 := &pb.Algorithm{Global: relation_ids1072, Body: script1073, Attrs: _t1904} - result1076 := _t1905 - p.recordSpan(int(span_start1075), "Algorithm") - return result1076 + _t1913 := &pb.Algorithm{Global: relation_ids1076, Body: script1077, Attrs: _t1912} + result1080 := _t1913 + p.recordSpan(int(span_start1079), "Algorithm") + return result1080 } func (p *Parser) parse_script() *pb.Script { - span_start1081 := int64(p.spanStart()) + span_start1085 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("script") - xs1077 := []*pb.Construct{} - cond1078 := p.matchLookaheadLiteral("(", 0) - for cond1078 { - _t1906 := p.parse_construct() - item1079 := _t1906 - xs1077 = append(xs1077, item1079) - cond1078 = p.matchLookaheadLiteral("(", 0) - } - constructs1080 := xs1077 + xs1081 := []*pb.Construct{} + cond1082 := p.matchLookaheadLiteral("(", 0) + for cond1082 { + _t1914 := p.parse_construct() + item1083 := _t1914 + xs1081 = append(xs1081, item1083) + cond1082 = p.matchLookaheadLiteral("(", 0) + } + constructs1084 := xs1081 p.consumeLiteral(")") - _t1907 := &pb.Script{Constructs: constructs1080} - result1082 := _t1907 - p.recordSpan(int(span_start1081), "Script") - return result1082 + _t1915 := &pb.Script{Constructs: constructs1084} + result1086 := _t1915 + p.recordSpan(int(span_start1085), "Script") + return result1086 } func (p *Parser) parse_construct() *pb.Construct { - span_start1086 := int64(p.spanStart()) - var _t1908 int64 + span_start1090 := int64(p.spanStart()) + var _t1916 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1909 int64 + var _t1917 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1909 = 1 + _t1917 = 1 } else { - var _t1910 int64 + var _t1918 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1910 = 1 + _t1918 = 1 } else { - var _t1911 int64 + var _t1919 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1911 = 1 + _t1919 = 1 } else { - var _t1912 int64 + var _t1920 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1912 = 0 + _t1920 = 0 } else { - var _t1913 int64 + var _t1921 int64 if p.matchLookaheadLiteral("break", 1) { - _t1913 = 1 + _t1921 = 1 } else { - var _t1914 int64 + var _t1922 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1914 = 1 + _t1922 = 1 } else { - _t1914 = -1 + _t1922 = -1 } - _t1913 = _t1914 + _t1921 = _t1922 } - _t1912 = _t1913 + _t1920 = _t1921 } - _t1911 = _t1912 + _t1919 = _t1920 } - _t1910 = _t1911 + _t1918 = _t1919 } - _t1909 = _t1910 + _t1917 = _t1918 } - _t1908 = _t1909 + _t1916 = _t1917 } else { - _t1908 = -1 - } - prediction1083 := _t1908 - var _t1915 *pb.Construct - if prediction1083 == 1 { - _t1916 := p.parse_instruction() - instruction1085 := _t1916 - _t1917 := &pb.Construct{} - _t1917.ConstructType = &pb.Construct_Instruction{Instruction: instruction1085} - _t1915 = _t1917 + _t1916 = -1 + } + prediction1087 := _t1916 + var _t1923 *pb.Construct + if prediction1087 == 1 { + _t1924 := p.parse_instruction() + instruction1089 := _t1924 + _t1925 := &pb.Construct{} + _t1925.ConstructType = &pb.Construct_Instruction{Instruction: instruction1089} + _t1923 = _t1925 } else { - var _t1918 *pb.Construct - if prediction1083 == 0 { - _t1919 := p.parse_loop() - loop1084 := _t1919 - _t1920 := &pb.Construct{} - _t1920.ConstructType = &pb.Construct_Loop{Loop: loop1084} - _t1918 = _t1920 + var _t1926 *pb.Construct + if prediction1087 == 0 { + _t1927 := p.parse_loop() + loop1088 := _t1927 + _t1928 := &pb.Construct{} + _t1928.ConstructType = &pb.Construct_Loop{Loop: loop1088} + _t1926 = _t1928 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1915 = _t1918 + _t1923 = _t1926 } - result1087 := _t1915 - p.recordSpan(int(span_start1086), "Construct") - return result1087 + result1091 := _t1923 + p.recordSpan(int(span_start1090), "Construct") + return result1091 } func (p *Parser) parse_loop() *pb.Loop { - span_start1091 := int64(p.spanStart()) + span_start1095 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("loop") - _t1921 := p.parse_init() - init1088 := _t1921 - _t1922 := p.parse_script() - script1089 := _t1922 - var _t1923 []*pb.Attribute + _t1929 := p.parse_init() + init1092 := _t1929 + _t1930 := p.parse_script() + script1093 := _t1930 + var _t1931 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1924 := p.parse_attrs() - _t1923 = _t1924 + _t1932 := p.parse_attrs() + _t1931 = _t1932 } - attrs1090 := _t1923 + attrs1094 := _t1931 p.consumeLiteral(")") - _t1925 := attrs1090 - if attrs1090 == nil { - _t1925 = []*pb.Attribute{} + _t1933 := attrs1094 + if attrs1094 == nil { + _t1933 = []*pb.Attribute{} } - _t1926 := &pb.Loop{Init: init1088, Body: script1089, Attrs: _t1925} - result1092 := _t1926 - p.recordSpan(int(span_start1091), "Loop") - return result1092 + _t1934 := &pb.Loop{Init: init1092, Body: script1093, Attrs: _t1933} + result1096 := _t1934 + p.recordSpan(int(span_start1095), "Loop") + return result1096 } func (p *Parser) parse_init() []*pb.Instruction { p.consumeLiteral("(") p.consumeLiteral("init") - xs1093 := []*pb.Instruction{} - cond1094 := p.matchLookaheadLiteral("(", 0) - for cond1094 { - _t1927 := p.parse_instruction() - item1095 := _t1927 - xs1093 = append(xs1093, item1095) - cond1094 = p.matchLookaheadLiteral("(", 0) - } - instructions1096 := xs1093 + xs1097 := []*pb.Instruction{} + cond1098 := p.matchLookaheadLiteral("(", 0) + for cond1098 { + _t1935 := p.parse_instruction() + item1099 := _t1935 + xs1097 = append(xs1097, item1099) + cond1098 = p.matchLookaheadLiteral("(", 0) + } + instructions1100 := xs1097 p.consumeLiteral(")") - return instructions1096 + return instructions1100 } func (p *Parser) parse_instruction() *pb.Instruction { - span_start1103 := int64(p.spanStart()) - var _t1928 int64 + span_start1107 := int64(p.spanStart()) + var _t1936 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1929 int64 + var _t1937 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1929 = 1 + _t1937 = 1 } else { - var _t1930 int64 + var _t1938 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1930 = 4 + _t1938 = 4 } else { - var _t1931 int64 + var _t1939 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1931 = 3 + _t1939 = 3 } else { - var _t1932 int64 + var _t1940 int64 if p.matchLookaheadLiteral("break", 1) { - _t1932 = 2 + _t1940 = 2 } else { - var _t1933 int64 + var _t1941 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1933 = 0 + _t1941 = 0 } else { - _t1933 = -1 + _t1941 = -1 } - _t1932 = _t1933 + _t1940 = _t1941 } - _t1931 = _t1932 + _t1939 = _t1940 } - _t1930 = _t1931 + _t1938 = _t1939 } - _t1929 = _t1930 + _t1937 = _t1938 } - _t1928 = _t1929 + _t1936 = _t1937 } else { - _t1928 = -1 - } - prediction1097 := _t1928 - var _t1934 *pb.Instruction - if prediction1097 == 4 { - _t1935 := p.parse_monus_def() - monus_def1102 := _t1935 - _t1936 := &pb.Instruction{} - _t1936.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def1102} - _t1934 = _t1936 + _t1936 = -1 + } + prediction1101 := _t1936 + var _t1942 *pb.Instruction + if prediction1101 == 4 { + _t1943 := p.parse_monus_def() + monus_def1106 := _t1943 + _t1944 := &pb.Instruction{} + _t1944.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def1106} + _t1942 = _t1944 } else { - var _t1937 *pb.Instruction - if prediction1097 == 3 { - _t1938 := p.parse_monoid_def() - monoid_def1101 := _t1938 - _t1939 := &pb.Instruction{} - _t1939.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def1101} - _t1937 = _t1939 + var _t1945 *pb.Instruction + if prediction1101 == 3 { + _t1946 := p.parse_monoid_def() + monoid_def1105 := _t1946 + _t1947 := &pb.Instruction{} + _t1947.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def1105} + _t1945 = _t1947 } else { - var _t1940 *pb.Instruction - if prediction1097 == 2 { - _t1941 := p.parse_break() - break1100 := _t1941 - _t1942 := &pb.Instruction{} - _t1942.InstrType = &pb.Instruction_Break{Break: break1100} - _t1940 = _t1942 + var _t1948 *pb.Instruction + if prediction1101 == 2 { + _t1949 := p.parse_break() + break1104 := _t1949 + _t1950 := &pb.Instruction{} + _t1950.InstrType = &pb.Instruction_Break{Break: break1104} + _t1948 = _t1950 } else { - var _t1943 *pb.Instruction - if prediction1097 == 1 { - _t1944 := p.parse_upsert() - upsert1099 := _t1944 - _t1945 := &pb.Instruction{} - _t1945.InstrType = &pb.Instruction_Upsert{Upsert: upsert1099} - _t1943 = _t1945 + var _t1951 *pb.Instruction + if prediction1101 == 1 { + _t1952 := p.parse_upsert() + upsert1103 := _t1952 + _t1953 := &pb.Instruction{} + _t1953.InstrType = &pb.Instruction_Upsert{Upsert: upsert1103} + _t1951 = _t1953 } else { - var _t1946 *pb.Instruction - if prediction1097 == 0 { - _t1947 := p.parse_assign() - assign1098 := _t1947 - _t1948 := &pb.Instruction{} - _t1948.InstrType = &pb.Instruction_Assign{Assign: assign1098} - _t1946 = _t1948 + var _t1954 *pb.Instruction + if prediction1101 == 0 { + _t1955 := p.parse_assign() + assign1102 := _t1955 + _t1956 := &pb.Instruction{} + _t1956.InstrType = &pb.Instruction_Assign{Assign: assign1102} + _t1954 = _t1956 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1943 = _t1946 + _t1951 = _t1954 } - _t1940 = _t1943 + _t1948 = _t1951 } - _t1937 = _t1940 + _t1945 = _t1948 } - _t1934 = _t1937 + _t1942 = _t1945 } - result1104 := _t1934 - p.recordSpan(int(span_start1103), "Instruction") - return result1104 + result1108 := _t1942 + p.recordSpan(int(span_start1107), "Instruction") + return result1108 } func (p *Parser) parse_assign() *pb.Assign { - span_start1108 := int64(p.spanStart()) + span_start1112 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("assign") - _t1949 := p.parse_relation_id() - relation_id1105 := _t1949 - _t1950 := p.parse_abstraction() - abstraction1106 := _t1950 - var _t1951 []*pb.Attribute + _t1957 := p.parse_relation_id() + relation_id1109 := _t1957 + _t1958 := p.parse_abstraction() + abstraction1110 := _t1958 + var _t1959 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1952 := p.parse_attrs() - _t1951 = _t1952 + _t1960 := p.parse_attrs() + _t1959 = _t1960 } - attrs1107 := _t1951 + attrs1111 := _t1959 p.consumeLiteral(")") - _t1953 := attrs1107 - if attrs1107 == nil { - _t1953 = []*pb.Attribute{} + _t1961 := attrs1111 + if attrs1111 == nil { + _t1961 = []*pb.Attribute{} } - _t1954 := &pb.Assign{Name: relation_id1105, Body: abstraction1106, Attrs: _t1953} - result1109 := _t1954 - p.recordSpan(int(span_start1108), "Assign") - return result1109 + _t1962 := &pb.Assign{Name: relation_id1109, Body: abstraction1110, Attrs: _t1961} + result1113 := _t1962 + p.recordSpan(int(span_start1112), "Assign") + return result1113 } func (p *Parser) parse_upsert() *pb.Upsert { - span_start1113 := int64(p.spanStart()) + span_start1117 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("upsert") - _t1955 := p.parse_relation_id() - relation_id1110 := _t1955 - _t1956 := p.parse_abstraction_with_arity() - abstraction_with_arity1111 := _t1956 - var _t1957 []*pb.Attribute + _t1963 := p.parse_relation_id() + relation_id1114 := _t1963 + _t1964 := p.parse_abstraction_with_arity() + abstraction_with_arity1115 := _t1964 + var _t1965 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1958 := p.parse_attrs() - _t1957 = _t1958 + _t1966 := p.parse_attrs() + _t1965 = _t1966 } - attrs1112 := _t1957 + attrs1116 := _t1965 p.consumeLiteral(")") - _t1959 := attrs1112 - if attrs1112 == nil { - _t1959 = []*pb.Attribute{} + _t1967 := attrs1116 + if attrs1116 == nil { + _t1967 = []*pb.Attribute{} } - _t1960 := &pb.Upsert{Name: relation_id1110, Body: abstraction_with_arity1111[0].(*pb.Abstraction), Attrs: _t1959, ValueArity: abstraction_with_arity1111[1].(int64)} - result1114 := _t1960 - p.recordSpan(int(span_start1113), "Upsert") - return result1114 + _t1968 := &pb.Upsert{Name: relation_id1114, Body: abstraction_with_arity1115[0].(*pb.Abstraction), Attrs: _t1967, ValueArity: abstraction_with_arity1115[1].(int64)} + result1118 := _t1968 + p.recordSpan(int(span_start1117), "Upsert") + return result1118 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1961 := p.parse_bindings() - bindings1115 := _t1961 - _t1962 := p.parse_formula() - formula1116 := _t1962 + _t1969 := p.parse_bindings() + bindings1119 := _t1969 + _t1970 := p.parse_formula() + formula1120 := _t1970 p.consumeLiteral(")") - _t1963 := &pb.Abstraction{Vars: listConcat(bindings1115[0].([]*pb.Binding), bindings1115[1].([]*pb.Binding)), Value: formula1116} - return []interface{}{_t1963, int64(len(bindings1115[1].([]*pb.Binding)))} + _t1971 := &pb.Abstraction{Vars: listConcat(bindings1119[0].([]*pb.Binding), bindings1119[1].([]*pb.Binding)), Value: formula1120} + return []interface{}{_t1971, int64(len(bindings1119[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { - span_start1120 := int64(p.spanStart()) + span_start1124 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("break") - _t1964 := p.parse_relation_id() - relation_id1117 := _t1964 - _t1965 := p.parse_abstraction() - abstraction1118 := _t1965 - var _t1966 []*pb.Attribute + _t1972 := p.parse_relation_id() + relation_id1121 := _t1972 + _t1973 := p.parse_abstraction() + abstraction1122 := _t1973 + var _t1974 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1967 := p.parse_attrs() - _t1966 = _t1967 + _t1975 := p.parse_attrs() + _t1974 = _t1975 } - attrs1119 := _t1966 + attrs1123 := _t1974 p.consumeLiteral(")") - _t1968 := attrs1119 - if attrs1119 == nil { - _t1968 = []*pb.Attribute{} + _t1976 := attrs1123 + if attrs1123 == nil { + _t1976 = []*pb.Attribute{} } - _t1969 := &pb.Break{Name: relation_id1117, Body: abstraction1118, Attrs: _t1968} - result1121 := _t1969 - p.recordSpan(int(span_start1120), "Break") - return result1121 + _t1977 := &pb.Break{Name: relation_id1121, Body: abstraction1122, Attrs: _t1976} + result1125 := _t1977 + p.recordSpan(int(span_start1124), "Break") + return result1125 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { - span_start1126 := int64(p.spanStart()) + span_start1130 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monoid") - _t1970 := p.parse_monoid() - monoid1122 := _t1970 - _t1971 := p.parse_relation_id() - relation_id1123 := _t1971 - _t1972 := p.parse_abstraction_with_arity() - abstraction_with_arity1124 := _t1972 - var _t1973 []*pb.Attribute + _t1978 := p.parse_monoid() + monoid1126 := _t1978 + _t1979 := p.parse_relation_id() + relation_id1127 := _t1979 + _t1980 := p.parse_abstraction_with_arity() + abstraction_with_arity1128 := _t1980 + var _t1981 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1974 := p.parse_attrs() - _t1973 = _t1974 + _t1982 := p.parse_attrs() + _t1981 = _t1982 } - attrs1125 := _t1973 + attrs1129 := _t1981 p.consumeLiteral(")") - _t1975 := attrs1125 - if attrs1125 == nil { - _t1975 = []*pb.Attribute{} + _t1983 := attrs1129 + if attrs1129 == nil { + _t1983 = []*pb.Attribute{} } - _t1976 := &pb.MonoidDef{Monoid: monoid1122, Name: relation_id1123, Body: abstraction_with_arity1124[0].(*pb.Abstraction), Attrs: _t1975, ValueArity: abstraction_with_arity1124[1].(int64)} - result1127 := _t1976 - p.recordSpan(int(span_start1126), "MonoidDef") - return result1127 + _t1984 := &pb.MonoidDef{Monoid: monoid1126, Name: relation_id1127, Body: abstraction_with_arity1128[0].(*pb.Abstraction), Attrs: _t1983, ValueArity: abstraction_with_arity1128[1].(int64)} + result1131 := _t1984 + p.recordSpan(int(span_start1130), "MonoidDef") + return result1131 } func (p *Parser) parse_monoid() *pb.Monoid { - span_start1133 := int64(p.spanStart()) - var _t1977 int64 + span_start1137 := int64(p.spanStart()) + var _t1985 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1978 int64 + var _t1986 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1978 = 3 + _t1986 = 3 } else { - var _t1979 int64 + var _t1987 int64 if p.matchLookaheadLiteral("or", 1) { - _t1979 = 0 + _t1987 = 0 } else { - var _t1980 int64 + var _t1988 int64 if p.matchLookaheadLiteral("min", 1) { - _t1980 = 1 + _t1988 = 1 } else { - var _t1981 int64 + var _t1989 int64 if p.matchLookaheadLiteral("max", 1) { - _t1981 = 2 + _t1989 = 2 } else { - _t1981 = -1 + _t1989 = -1 } - _t1980 = _t1981 + _t1988 = _t1989 } - _t1979 = _t1980 + _t1987 = _t1988 } - _t1978 = _t1979 + _t1986 = _t1987 } - _t1977 = _t1978 + _t1985 = _t1986 } else { - _t1977 = -1 - } - prediction1128 := _t1977 - var _t1982 *pb.Monoid - if prediction1128 == 3 { - _t1983 := p.parse_sum_monoid() - sum_monoid1132 := _t1983 - _t1984 := &pb.Monoid{} - _t1984.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1132} - _t1982 = _t1984 + _t1985 = -1 + } + prediction1132 := _t1985 + var _t1990 *pb.Monoid + if prediction1132 == 3 { + _t1991 := p.parse_sum_monoid() + sum_monoid1136 := _t1991 + _t1992 := &pb.Monoid{} + _t1992.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1136} + _t1990 = _t1992 } else { - var _t1985 *pb.Monoid - if prediction1128 == 2 { - _t1986 := p.parse_max_monoid() - max_monoid1131 := _t1986 - _t1987 := &pb.Monoid{} - _t1987.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1131} - _t1985 = _t1987 + var _t1993 *pb.Monoid + if prediction1132 == 2 { + _t1994 := p.parse_max_monoid() + max_monoid1135 := _t1994 + _t1995 := &pb.Monoid{} + _t1995.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1135} + _t1993 = _t1995 } else { - var _t1988 *pb.Monoid - if prediction1128 == 1 { - _t1989 := p.parse_min_monoid() - min_monoid1130 := _t1989 - _t1990 := &pb.Monoid{} - _t1990.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1130} - _t1988 = _t1990 + var _t1996 *pb.Monoid + if prediction1132 == 1 { + _t1997 := p.parse_min_monoid() + min_monoid1134 := _t1997 + _t1998 := &pb.Monoid{} + _t1998.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1134} + _t1996 = _t1998 } else { - var _t1991 *pb.Monoid - if prediction1128 == 0 { - _t1992 := p.parse_or_monoid() - or_monoid1129 := _t1992 - _t1993 := &pb.Monoid{} - _t1993.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1129} - _t1991 = _t1993 + var _t1999 *pb.Monoid + if prediction1132 == 0 { + _t2000 := p.parse_or_monoid() + or_monoid1133 := _t2000 + _t2001 := &pb.Monoid{} + _t2001.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1133} + _t1999 = _t2001 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1988 = _t1991 + _t1996 = _t1999 } - _t1985 = _t1988 + _t1993 = _t1996 } - _t1982 = _t1985 + _t1990 = _t1993 } - result1134 := _t1982 - p.recordSpan(int(span_start1133), "Monoid") - return result1134 + result1138 := _t1990 + p.recordSpan(int(span_start1137), "Monoid") + return result1138 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { - span_start1135 := int64(p.spanStart()) + span_start1139 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1994 := &pb.OrMonoid{} - result1136 := _t1994 - p.recordSpan(int(span_start1135), "OrMonoid") - return result1136 + _t2002 := &pb.OrMonoid{} + result1140 := _t2002 + p.recordSpan(int(span_start1139), "OrMonoid") + return result1140 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { - span_start1138 := int64(p.spanStart()) + span_start1142 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("min") - _t1995 := p.parse_type() - type1137 := _t1995 + _t2003 := p.parse_type() + type1141 := _t2003 p.consumeLiteral(")") - _t1996 := &pb.MinMonoid{Type: type1137} - result1139 := _t1996 - p.recordSpan(int(span_start1138), "MinMonoid") - return result1139 + _t2004 := &pb.MinMonoid{Type: type1141} + result1143 := _t2004 + p.recordSpan(int(span_start1142), "MinMonoid") + return result1143 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { - span_start1141 := int64(p.spanStart()) + span_start1145 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("max") - _t1997 := p.parse_type() - type1140 := _t1997 + _t2005 := p.parse_type() + type1144 := _t2005 p.consumeLiteral(")") - _t1998 := &pb.MaxMonoid{Type: type1140} - result1142 := _t1998 - p.recordSpan(int(span_start1141), "MaxMonoid") - return result1142 + _t2006 := &pb.MaxMonoid{Type: type1144} + result1146 := _t2006 + p.recordSpan(int(span_start1145), "MaxMonoid") + return result1146 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { - span_start1144 := int64(p.spanStart()) + span_start1148 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sum") - _t1999 := p.parse_type() - type1143 := _t1999 + _t2007 := p.parse_type() + type1147 := _t2007 p.consumeLiteral(")") - _t2000 := &pb.SumMonoid{Type: type1143} - result1145 := _t2000 - p.recordSpan(int(span_start1144), "SumMonoid") - return result1145 + _t2008 := &pb.SumMonoid{Type: type1147} + result1149 := _t2008 + p.recordSpan(int(span_start1148), "SumMonoid") + return result1149 } func (p *Parser) parse_monus_def() *pb.MonusDef { - span_start1150 := int64(p.spanStart()) + span_start1154 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monus") - _t2001 := p.parse_monoid() - monoid1146 := _t2001 - _t2002 := p.parse_relation_id() - relation_id1147 := _t2002 - _t2003 := p.parse_abstraction_with_arity() - abstraction_with_arity1148 := _t2003 - var _t2004 []*pb.Attribute + _t2009 := p.parse_monoid() + monoid1150 := _t2009 + _t2010 := p.parse_relation_id() + relation_id1151 := _t2010 + _t2011 := p.parse_abstraction_with_arity() + abstraction_with_arity1152 := _t2011 + var _t2012 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t2005 := p.parse_attrs() - _t2004 = _t2005 + _t2013 := p.parse_attrs() + _t2012 = _t2013 } - attrs1149 := _t2004 + attrs1153 := _t2012 p.consumeLiteral(")") - _t2006 := attrs1149 - if attrs1149 == nil { - _t2006 = []*pb.Attribute{} + _t2014 := attrs1153 + if attrs1153 == nil { + _t2014 = []*pb.Attribute{} } - _t2007 := &pb.MonusDef{Monoid: monoid1146, Name: relation_id1147, Body: abstraction_with_arity1148[0].(*pb.Abstraction), Attrs: _t2006, ValueArity: abstraction_with_arity1148[1].(int64)} - result1151 := _t2007 - p.recordSpan(int(span_start1150), "MonusDef") - return result1151 + _t2015 := &pb.MonusDef{Monoid: monoid1150, Name: relation_id1151, Body: abstraction_with_arity1152[0].(*pb.Abstraction), Attrs: _t2014, ValueArity: abstraction_with_arity1152[1].(int64)} + result1155 := _t2015 + p.recordSpan(int(span_start1154), "MonusDef") + return result1155 } func (p *Parser) parse_constraint() *pb.Constraint { - span_start1156 := int64(p.spanStart()) + span_start1160 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("functional_dependency") - _t2008 := p.parse_relation_id() - relation_id1152 := _t2008 - _t2009 := p.parse_abstraction() - abstraction1153 := _t2009 - _t2010 := p.parse_functional_dependency_keys() - functional_dependency_keys1154 := _t2010 - _t2011 := p.parse_functional_dependency_values() - functional_dependency_values1155 := _t2011 + _t2016 := p.parse_relation_id() + relation_id1156 := _t2016 + _t2017 := p.parse_abstraction() + abstraction1157 := _t2017 + _t2018 := p.parse_functional_dependency_keys() + functional_dependency_keys1158 := _t2018 + _t2019 := p.parse_functional_dependency_values() + functional_dependency_values1159 := _t2019 p.consumeLiteral(")") - _t2012 := &pb.FunctionalDependency{Guard: abstraction1153, Keys: functional_dependency_keys1154, Values: functional_dependency_values1155} - _t2013 := &pb.Constraint{Name: relation_id1152} - _t2013.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t2012} - result1157 := _t2013 - p.recordSpan(int(span_start1156), "Constraint") - return result1157 + _t2020 := &pb.FunctionalDependency{Guard: abstraction1157, Keys: functional_dependency_keys1158, Values: functional_dependency_values1159} + _t2021 := &pb.Constraint{Name: relation_id1156} + _t2021.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t2020} + result1161 := _t2021 + p.recordSpan(int(span_start1160), "Constraint") + return result1161 } func (p *Parser) parse_functional_dependency_keys() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("keys") - xs1158 := []*pb.Var{} - cond1159 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond1159 { - _t2014 := p.parse_var() - item1160 := _t2014 - xs1158 = append(xs1158, item1160) - cond1159 = p.matchLookaheadTerminal("SYMBOL", 0) - } - vars1161 := xs1158 - p.consumeLiteral(")") - return vars1161 -} - -func (p *Parser) parse_functional_dependency_values() []*pb.Var { - p.consumeLiteral("(") - p.consumeLiteral("values") xs1162 := []*pb.Var{} cond1163 := p.matchLookaheadTerminal("SYMBOL", 0) for cond1163 { - _t2015 := p.parse_var() - item1164 := _t2015 + _t2022 := p.parse_var() + item1164 := _t2022 xs1162 = append(xs1162, item1164) cond1163 = p.matchLookaheadTerminal("SYMBOL", 0) } @@ -4101,186 +4085,186 @@ func (p *Parser) parse_functional_dependency_values() []*pb.Var { return vars1165 } +func (p *Parser) parse_functional_dependency_values() []*pb.Var { + p.consumeLiteral("(") + p.consumeLiteral("values") + xs1166 := []*pb.Var{} + cond1167 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1167 { + _t2023 := p.parse_var() + item1168 := _t2023 + xs1166 = append(xs1166, item1168) + cond1167 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1169 := xs1166 + p.consumeLiteral(")") + return vars1169 +} + func (p *Parser) parse_data() *pb.Data { - span_start1171 := int64(p.spanStart()) - var _t2016 int64 + span_start1175 := int64(p.spanStart()) + var _t2024 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2017 int64 + var _t2025 int64 if p.matchLookaheadLiteral("iceberg_data", 1) { - _t2017 = 3 + _t2025 = 3 } else { - var _t2018 int64 + var _t2026 int64 if p.matchLookaheadLiteral("edb", 1) { - _t2018 = 0 + _t2026 = 0 } else { - var _t2019 int64 + var _t2027 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t2019 = 2 + _t2027 = 2 } else { - var _t2020 int64 + var _t2028 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t2020 = 1 + _t2028 = 1 } else { - _t2020 = -1 + _t2028 = -1 } - _t2019 = _t2020 + _t2027 = _t2028 } - _t2018 = _t2019 + _t2026 = _t2027 } - _t2017 = _t2018 + _t2025 = _t2026 } - _t2016 = _t2017 + _t2024 = _t2025 } else { - _t2016 = -1 - } - prediction1166 := _t2016 - var _t2021 *pb.Data - if prediction1166 == 3 { - _t2022 := p.parse_iceberg_data() - iceberg_data1170 := _t2022 - _t2023 := &pb.Data{} - _t2023.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1170} - _t2021 = _t2023 + _t2024 = -1 + } + prediction1170 := _t2024 + var _t2029 *pb.Data + if prediction1170 == 3 { + _t2030 := p.parse_iceberg_data() + iceberg_data1174 := _t2030 + _t2031 := &pb.Data{} + _t2031.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1174} + _t2029 = _t2031 } else { - var _t2024 *pb.Data - if prediction1166 == 2 { - _t2025 := p.parse_csv_data() - csv_data1169 := _t2025 - _t2026 := &pb.Data{} - _t2026.DataType = &pb.Data_CsvData{CsvData: csv_data1169} - _t2024 = _t2026 + var _t2032 *pb.Data + if prediction1170 == 2 { + _t2033 := p.parse_csv_data() + csv_data1173 := _t2033 + _t2034 := &pb.Data{} + _t2034.DataType = &pb.Data_CsvData{CsvData: csv_data1173} + _t2032 = _t2034 } else { - var _t2027 *pb.Data - if prediction1166 == 1 { - _t2028 := p.parse_betree_relation() - betree_relation1168 := _t2028 - _t2029 := &pb.Data{} - _t2029.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1168} - _t2027 = _t2029 + var _t2035 *pb.Data + if prediction1170 == 1 { + _t2036 := p.parse_betree_relation() + betree_relation1172 := _t2036 + _t2037 := &pb.Data{} + _t2037.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1172} + _t2035 = _t2037 } else { - var _t2030 *pb.Data - if prediction1166 == 0 { - _t2031 := p.parse_edb() - edb1167 := _t2031 - _t2032 := &pb.Data{} - _t2032.DataType = &pb.Data_Edb{Edb: edb1167} - _t2030 = _t2032 + var _t2038 *pb.Data + if prediction1170 == 0 { + _t2039 := p.parse_edb() + edb1171 := _t2039 + _t2040 := &pb.Data{} + _t2040.DataType = &pb.Data_Edb{Edb: edb1171} + _t2038 = _t2040 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2027 = _t2030 + _t2035 = _t2038 } - _t2024 = _t2027 + _t2032 = _t2035 } - _t2021 = _t2024 + _t2029 = _t2032 } - result1172 := _t2021 - p.recordSpan(int(span_start1171), "Data") - return result1172 + result1176 := _t2029 + p.recordSpan(int(span_start1175), "Data") + return result1176 } func (p *Parser) parse_edb() *pb.EDB { - span_start1176 := int64(p.spanStart()) + span_start1180 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("edb") - _t2033 := p.parse_relation_id() - relation_id1173 := _t2033 - _t2034 := p.parse_edb_path() - edb_path1174 := _t2034 - _t2035 := p.parse_edb_types() - edb_types1175 := _t2035 + _t2041 := p.parse_relation_id() + relation_id1177 := _t2041 + _t2042 := p.parse_edb_path() + edb_path1178 := _t2042 + _t2043 := p.parse_edb_types() + edb_types1179 := _t2043 p.consumeLiteral(")") - _t2036 := &pb.EDB{TargetId: relation_id1173, Path: edb_path1174, Types: edb_types1175} - result1177 := _t2036 - p.recordSpan(int(span_start1176), "EDB") - return result1177 + _t2044 := &pb.EDB{TargetId: relation_id1177, Path: edb_path1178, Types: edb_types1179} + result1181 := _t2044 + p.recordSpan(int(span_start1180), "EDB") + return result1181 } func (p *Parser) parse_edb_path() []string { p.consumeLiteral("[") - xs1178 := []string{} - cond1179 := p.matchLookaheadTerminal("STRING", 0) - for cond1179 { - item1180 := p.consumeTerminal("STRING").Value.str - xs1178 = append(xs1178, item1180) - cond1179 = p.matchLookaheadTerminal("STRING", 0) - } - strings1181 := xs1178 + xs1182 := []string{} + cond1183 := p.matchLookaheadTerminal("STRING", 0) + for cond1183 { + item1184 := p.consumeTerminal("STRING").Value.str + xs1182 = append(xs1182, item1184) + cond1183 = p.matchLookaheadTerminal("STRING", 0) + } + strings1185 := xs1182 p.consumeLiteral("]") - return strings1181 + return strings1185 } func (p *Parser) parse_edb_types() []*pb.Type { p.consumeLiteral("[") - xs1182 := []*pb.Type{} - cond1183 := (((((((((((((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 cond1183 { - _t2037 := p.parse_type() - item1184 := _t2037 - xs1182 = append(xs1182, item1184) - cond1183 = (((((((((((((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)) + xs1186 := []*pb.Type{} + cond1187 := (((((((((((((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 cond1187 { + _t2045 := p.parse_type() + item1188 := _t2045 + xs1186 = append(xs1186, item1188) + cond1187 = (((((((((((((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)) } - types1185 := xs1182 + types1189 := xs1186 p.consumeLiteral("]") - return types1185 + return types1189 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { - span_start1188 := int64(p.spanStart()) + span_start1192 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_relation") - _t2038 := p.parse_relation_id() - relation_id1186 := _t2038 - _t2039 := p.parse_betree_info() - betree_info1187 := _t2039 + _t2046 := p.parse_relation_id() + relation_id1190 := _t2046 + _t2047 := p.parse_betree_info() + betree_info1191 := _t2047 p.consumeLiteral(")") - _t2040 := &pb.BeTreeRelation{Name: relation_id1186, RelationInfo: betree_info1187} - result1189 := _t2040 - p.recordSpan(int(span_start1188), "BeTreeRelation") - return result1189 + _t2048 := &pb.BeTreeRelation{Name: relation_id1190, RelationInfo: betree_info1191} + result1193 := _t2048 + p.recordSpan(int(span_start1192), "BeTreeRelation") + return result1193 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { - span_start1193 := int64(p.spanStart()) + span_start1197 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_info") - _t2041 := p.parse_betree_info_key_types() - betree_info_key_types1190 := _t2041 - _t2042 := p.parse_betree_info_value_types() - betree_info_value_types1191 := _t2042 - _t2043 := p.parse_config_dict() - config_dict1192 := _t2043 + _t2049 := p.parse_betree_info_key_types() + betree_info_key_types1194 := _t2049 + _t2050 := p.parse_betree_info_value_types() + betree_info_value_types1195 := _t2050 + _t2051 := p.parse_config_dict() + config_dict1196 := _t2051 p.consumeLiteral(")") - _t2044 := p.construct_betree_info(betree_info_key_types1190, betree_info_value_types1191, config_dict1192) - result1194 := _t2044 - p.recordSpan(int(span_start1193), "BeTreeInfo") - return result1194 + _t2052 := p.construct_betree_info(betree_info_key_types1194, betree_info_value_types1195, config_dict1196) + result1198 := _t2052 + p.recordSpan(int(span_start1197), "BeTreeInfo") + return result1198 } func (p *Parser) parse_betree_info_key_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("key_types") - xs1195 := []*pb.Type{} - cond1196 := (((((((((((((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 cond1196 { - _t2045 := p.parse_type() - item1197 := _t2045 - xs1195 = append(xs1195, item1197) - cond1196 = (((((((((((((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)) - } - types1198 := xs1195 - p.consumeLiteral(")") - return types1198 -} - -func (p *Parser) parse_betree_info_value_types() []*pb.Type { - p.consumeLiteral("(") - p.consumeLiteral("value_types") xs1199 := []*pb.Type{} cond1200 := (((((((((((((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 cond1200 { - _t2046 := p.parse_type() - item1201 := _t2046 + _t2053 := p.parse_type() + item1201 := _t2053 xs1199 = append(xs1199, item1201) cond1200 = (((((((((((((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)) } @@ -4289,1144 +4273,1178 @@ func (p *Parser) parse_betree_info_value_types() []*pb.Type { return types1202 } +func (p *Parser) parse_betree_info_value_types() []*pb.Type { + p.consumeLiteral("(") + p.consumeLiteral("value_types") + xs1203 := []*pb.Type{} + cond1204 := (((((((((((((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 cond1204 { + _t2054 := p.parse_type() + item1205 := _t2054 + xs1203 = append(xs1203, item1205) + cond1204 = (((((((((((((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)) + } + types1206 := xs1203 + p.consumeLiteral(")") + return types1206 +} + func (p *Parser) parse_csv_data() *pb.CSVData { - span_start1208 := int64(p.spanStart()) + span_start1212 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_data") - _t2047 := p.parse_csvlocator() - csvlocator1203 := _t2047 - _t2048 := p.parse_csv_config() - csv_config1204 := _t2048 - var _t2049 []*pb.GNFColumn + _t2055 := p.parse_csvlocator() + csvlocator1207 := _t2055 + _t2056 := p.parse_csv_config() + csv_config1208 := _t2056 + var _t2057 []*pb.GNFColumn if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("columns", 1)) { - _t2050 := p.parse_gnf_columns() - _t2049 = _t2050 + _t2058 := p.parse_gnf_columns() + _t2057 = _t2058 } - gnf_columns1205 := _t2049 - var _t2051 *pb.TargetRelations + gnf_columns1209 := _t2057 + var _t2059 *pb.TargetRelations if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("relations", 1)) { - _t2052 := p.parse_target_relations() - _t2051 = _t2052 + _t2060 := p.parse_target_relations() + _t2059 = _t2060 } - target_relations1206 := _t2051 - _t2053 := p.parse_csv_asof() - csv_asof1207 := _t2053 + target_relations1210 := _t2059 + _t2061 := p.parse_csv_asof() + csv_asof1211 := _t2061 p.consumeLiteral(")") - _t2054 := p.construct_csv_data(csvlocator1203, csv_config1204, gnf_columns1205, target_relations1206, csv_asof1207) - result1209 := _t2054 - p.recordSpan(int(span_start1208), "CSVData") - return result1209 + _t2062 := p.construct_csv_data(csvlocator1207, csv_config1208, gnf_columns1209, target_relations1210, csv_asof1211) + result1213 := _t2062 + p.recordSpan(int(span_start1212), "CSVData") + return result1213 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { - span_start1212 := int64(p.spanStart()) + span_start1216 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t2055 []string + var _t2063 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t2056 := p.parse_csv_locator_paths() - _t2055 = _t2056 + _t2064 := p.parse_csv_locator_paths() + _t2063 = _t2064 } - csv_locator_paths1210 := _t2055 - var _t2057 *string + csv_locator_paths1214 := _t2063 + var _t2065 *string if p.matchLookaheadLiteral("(", 0) { - _t2058 := p.parse_csv_locator_inline_data() - _t2057 = ptr(_t2058) + _t2066 := p.parse_csv_locator_inline_data() + _t2065 = ptr(_t2066) } - csv_locator_inline_data1211 := _t2057 + csv_locator_inline_data1215 := _t2065 p.consumeLiteral(")") - _t2059 := csv_locator_paths1210 - if csv_locator_paths1210 == nil { - _t2059 = []string{} + _t2067 := csv_locator_paths1214 + if csv_locator_paths1214 == nil { + _t2067 = []string{} } - _t2060 := &pb.CSVLocator{Paths: _t2059, InlineData: []byte(deref(csv_locator_inline_data1211, ""))} - result1213 := _t2060 - p.recordSpan(int(span_start1212), "CSVLocator") - return result1213 + _t2068 := &pb.CSVLocator{Paths: _t2067, InlineData: []byte(deref(csv_locator_inline_data1215, ""))} + result1217 := _t2068 + p.recordSpan(int(span_start1216), "CSVLocator") + return result1217 } func (p *Parser) parse_csv_locator_paths() []string { p.consumeLiteral("(") p.consumeLiteral("paths") - xs1214 := []string{} - cond1215 := p.matchLookaheadTerminal("STRING", 0) - for cond1215 { - item1216 := p.consumeTerminal("STRING").Value.str - xs1214 = append(xs1214, item1216) - cond1215 = p.matchLookaheadTerminal("STRING", 0) - } - strings1217 := xs1214 + xs1218 := []string{} + cond1219 := p.matchLookaheadTerminal("STRING", 0) + for cond1219 { + item1220 := p.consumeTerminal("STRING").Value.str + xs1218 = append(xs1218, item1220) + cond1219 = p.matchLookaheadTerminal("STRING", 0) + } + strings1221 := xs1218 p.consumeLiteral(")") - return strings1217 + return strings1221 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - formatted_string1218 := p.consumeTerminal("STRING").Value.str + formatted_string1222 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return formatted_string1218 + return formatted_string1222 } func (p *Parser) parse_csv_config() *pb.CSVConfig { - span_start1221 := int64(p.spanStart()) + span_start1225 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t2061 := p.parse_config_dict() - config_dict1219 := _t2061 - var _t2062 [][]interface{} + _t2069 := p.parse_config_dict() + config_dict1223 := _t2069 + var _t2070 [][]interface{} if p.matchLookaheadLiteral("(", 0) { - _t2063 := p.parse__storage_integration() - _t2062 = _t2063 + _t2071 := p.parse__storage_integration() + _t2070 = _t2071 } - _storage_integration1220 := _t2062 + _storage_integration1224 := _t2070 p.consumeLiteral(")") - _t2064 := p.construct_csv_config(config_dict1219, _storage_integration1220) - result1222 := _t2064 - p.recordSpan(int(span_start1221), "CSVConfig") - return result1222 + _t2072 := p.construct_csv_config(config_dict1223, _storage_integration1224) + result1226 := _t2072 + p.recordSpan(int(span_start1225), "CSVConfig") + return result1226 } func (p *Parser) parse__storage_integration() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("storage_integration") - _t2065 := p.parse_config_dict() - config_dict1223 := _t2065 + _t2073 := p.parse_config_dict() + config_dict1227 := _t2073 p.consumeLiteral(")") - return config_dict1223 + return config_dict1227 } func (p *Parser) parse_gnf_columns() []*pb.GNFColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1224 := []*pb.GNFColumn{} - cond1225 := p.matchLookaheadLiteral("(", 0) - for cond1225 { - _t2066 := p.parse_gnf_column() - item1226 := _t2066 - xs1224 = append(xs1224, item1226) - cond1225 = p.matchLookaheadLiteral("(", 0) - } - gnf_columns1227 := xs1224 + xs1228 := []*pb.GNFColumn{} + cond1229 := p.matchLookaheadLiteral("(", 0) + for cond1229 { + _t2074 := p.parse_gnf_column() + item1230 := _t2074 + xs1228 = append(xs1228, item1230) + cond1229 = p.matchLookaheadLiteral("(", 0) + } + gnf_columns1231 := xs1228 p.consumeLiteral(")") - return gnf_columns1227 + return gnf_columns1231 } func (p *Parser) parse_gnf_column() *pb.GNFColumn { - span_start1234 := int64(p.spanStart()) + span_start1238 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - _t2067 := p.parse_gnf_column_path() - gnf_column_path1228 := _t2067 - var _t2068 *pb.RelationId + _t2075 := p.parse_gnf_column_path() + gnf_column_path1232 := _t2075 + var _t2076 *pb.RelationId if (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) { - _t2069 := p.parse_relation_id() - _t2068 = _t2069 + _t2077 := p.parse_relation_id() + _t2076 = _t2077 } - relation_id1229 := _t2068 + relation_id1233 := _t2076 p.consumeLiteral("[") - xs1230 := []*pb.Type{} - cond1231 := (((((((((((((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 cond1231 { - _t2070 := p.parse_type() - item1232 := _t2070 - xs1230 = append(xs1230, item1232) - cond1231 = (((((((((((((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)) - } - types1233 := xs1230 + xs1234 := []*pb.Type{} + cond1235 := (((((((((((((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 cond1235 { + _t2078 := p.parse_type() + item1236 := _t2078 + xs1234 = append(xs1234, item1236) + cond1235 = (((((((((((((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)) + } + types1237 := xs1234 p.consumeLiteral("]") p.consumeLiteral(")") - _t2071 := &pb.GNFColumn{ColumnPath: gnf_column_path1228, TargetId: relation_id1229, Types: types1233} - result1235 := _t2071 - p.recordSpan(int(span_start1234), "GNFColumn") - return result1235 + _t2079 := &pb.GNFColumn{ColumnPath: gnf_column_path1232, TargetId: relation_id1233, Types: types1237} + result1239 := _t2079 + p.recordSpan(int(span_start1238), "GNFColumn") + return result1239 } func (p *Parser) parse_gnf_column_path() []string { - var _t2072 int64 + var _t2080 int64 if p.matchLookaheadLiteral("[", 0) { - _t2072 = 1 + _t2080 = 1 } else { - var _t2073 int64 + var _t2081 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t2073 = 0 + _t2081 = 0 } else { - _t2073 = -1 + _t2081 = -1 } - _t2072 = _t2073 + _t2080 = _t2081 } - prediction1236 := _t2072 - var _t2074 []string - if prediction1236 == 1 { + prediction1240 := _t2080 + var _t2082 []string + if prediction1240 == 1 { p.consumeLiteral("[") - xs1238 := []string{} - cond1239 := p.matchLookaheadTerminal("STRING", 0) - for cond1239 { - item1240 := p.consumeTerminal("STRING").Value.str - xs1238 = append(xs1238, item1240) - cond1239 = p.matchLookaheadTerminal("STRING", 0) + xs1242 := []string{} + cond1243 := p.matchLookaheadTerminal("STRING", 0) + for cond1243 { + item1244 := p.consumeTerminal("STRING").Value.str + xs1242 = append(xs1242, item1244) + cond1243 = p.matchLookaheadTerminal("STRING", 0) } - strings1241 := xs1238 + strings1245 := xs1242 p.consumeLiteral("]") - _t2074 = strings1241 + _t2082 = strings1245 } else { - var _t2075 []string - if prediction1236 == 0 { - string1237 := p.consumeTerminal("STRING").Value.str - _ = string1237 - _t2075 = []string{string1237} + var _t2083 []string + if prediction1240 == 0 { + string1241 := p.consumeTerminal("STRING").Value.str + _ = string1241 + _t2083 = []string{string1241} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in gnf_column_path", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2074 = _t2075 + _t2082 = _t2083 } - return _t2074 + return _t2082 } func (p *Parser) parse_target_relations() *pb.TargetRelations { - span_start1244 := int64(p.spanStart()) + span_start1249 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("relations") - _t2076 := p.parse_relation_keys() - relation_keys1242 := _t2076 - _t2077 := p.parse_relation_body() - relation_body1243 := _t2077 + _t2084 := p.parse_relation_keys() + relation_keys1246 := _t2084 + _t2085 := p.parse_relation_body() + relation_body1247 := _t2085 + var _t2086 *pb.RelationId + if p.matchLookaheadLiteral("(", 0) { + _t2087 := p.parse_load_errors() + _t2086 = _t2087 + } + load_errors1248 := _t2086 p.consumeLiteral(")") - _t2078 := p.construct_relations(relation_keys1242, relation_body1243) - result1245 := _t2078 - p.recordSpan(int(span_start1244), "TargetRelations") - return result1245 + _t2088 := p.construct_relations(relation_keys1246, relation_body1247, load_errors1248) + result1250 := _t2088 + p.recordSpan(int(span_start1249), "TargetRelations") + return result1250 } func (p *Parser) parse_relation_keys() []interface{} { - var _t2079 int64 + var _t2089 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2080 int64 + var _t2090 int64 if p.matchLookaheadLiteral("keys", 1) { - var _t2081 int64 + var _t2091 int64 if p.matchLookaheadLiteral("synthetic", 2) { - _t2081 = 1 + _t2091 = 1 } else { - var _t2082 int64 + var _t2092 int64 if p.matchLookaheadLiteral(")", 2) { - _t2082 = 0 + _t2092 = 0 } else { - var _t2083 int64 + var _t2093 int64 if p.matchLookaheadLiteral("(", 2) { - _t2083 = 0 + _t2093 = 0 } else { - _t2083 = -1 + _t2093 = -1 } - _t2082 = _t2083 + _t2092 = _t2093 } - _t2081 = _t2082 + _t2091 = _t2092 } - _t2080 = _t2081 + _t2090 = _t2091 } else { - _t2080 = -1 + _t2090 = -1 } - _t2079 = _t2080 + _t2089 = _t2090 } else { - _t2079 = -1 + _t2089 = -1 } - prediction1246 := _t2079 - var _t2084 []interface{} - if prediction1246 == 1 { + prediction1251 := _t2089 + var _t2094 []interface{} + if prediction1251 == 1 { p.consumeLiteral("(") p.consumeLiteral("keys") p.consumeLiteral("synthetic") p.consumeLiteral(")") - _t2084 = []interface{}{[]*pb.NamedColumn{}, true} + _t2094 = []interface{}{[]*pb.NamedColumn{}, true} } else { - var _t2085 []interface{} - if prediction1246 == 0 { + var _t2095 []interface{} + if prediction1251 == 0 { p.consumeLiteral("(") p.consumeLiteral("keys") - xs1247 := []*pb.NamedColumn{} - cond1248 := p.matchLookaheadLiteral("(", 0) - for cond1248 { - _t2086 := p.parse_named_column() - item1249 := _t2086 - xs1247 = append(xs1247, item1249) - cond1248 = p.matchLookaheadLiteral("(", 0) + xs1252 := []*pb.NamedColumn{} + cond1253 := p.matchLookaheadLiteral("(", 0) + for cond1253 { + _t2096 := p.parse_named_column() + item1254 := _t2096 + xs1252 = append(xs1252, item1254) + cond1253 = p.matchLookaheadLiteral("(", 0) } - named_columns1250 := xs1247 + named_columns1255 := xs1252 p.consumeLiteral(")") - _t2085 = []interface{}{named_columns1250, false} + _t2095 = []interface{}{named_columns1255, false} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_keys", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2084 = _t2085 + _t2094 = _t2095 } - return _t2084 + return _t2094 } func (p *Parser) parse_named_column() *pb.NamedColumn { - span_start1253 := int64(p.spanStart()) + span_start1258 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - string1251 := p.consumeTerminal("STRING").Value.str - _t2087 := p.parse_type() - type1252 := _t2087 + string1256 := p.consumeTerminal("STRING").Value.str + _t2097 := p.parse_type() + type1257 := _t2097 p.consumeLiteral(")") - _t2088 := &pb.NamedColumn{Name: string1251, Type: type1252} - result1254 := _t2088 - p.recordSpan(int(span_start1253), "NamedColumn") - return result1254 + _t2098 := &pb.NamedColumn{Name: string1256, Type: type1257} + result1259 := _t2098 + p.recordSpan(int(span_start1258), "NamedColumn") + return result1259 } func (p *Parser) parse_relation_body() *pb.TargetRelations { - span_start1259 := int64(p.spanStart()) - var _t2089 int64 + span_start1264 := int64(p.spanStart()) + var _t2099 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2090 int64 + var _t2100 int64 if p.matchLookaheadLiteral("relation", 1) { - _t2090 = 0 + _t2100 = 0 } else { - var _t2091 int64 + var _t2101 int64 if p.matchLookaheadLiteral("inserts", 1) { - _t2091 = 1 + _t2101 = 1 } else { - _t2091 = 0 + _t2101 = 0 } - _t2090 = _t2091 + _t2100 = _t2101 } - _t2089 = _t2090 + _t2099 = _t2100 } else { - _t2089 = 0 - } - prediction1255 := _t2089 - var _t2092 *pb.TargetRelations - if prediction1255 == 1 { - _t2093 := p.parse_cdc_inserts() - cdc_inserts1257 := _t2093 - _t2094 := p.parse_cdc_deletes() - cdc_deletes1258 := _t2094 - _t2095 := p.construct_cdc_relations(cdc_inserts1257, cdc_deletes1258) - _t2092 = _t2095 + _t2099 = 0 + } + prediction1260 := _t2099 + var _t2102 *pb.TargetRelations + if prediction1260 == 1 { + _t2103 := p.parse_cdc_inserts() + cdc_inserts1262 := _t2103 + _t2104 := p.parse_cdc_deletes() + cdc_deletes1263 := _t2104 + _t2105 := p.construct_cdc_relations(cdc_inserts1262, cdc_deletes1263) + _t2102 = _t2105 } else { - var _t2096 *pb.TargetRelations - if prediction1255 == 0 { - _t2097 := p.parse_non_cdc_relations() - non_cdc_relations1256 := _t2097 - _t2098 := p.construct_non_cdc_relations(non_cdc_relations1256) - _t2096 = _t2098 + var _t2106 *pb.TargetRelations + if prediction1260 == 0 { + _t2107 := p.parse_non_cdc_relations() + non_cdc_relations1261 := _t2107 + _t2108 := p.construct_non_cdc_relations(non_cdc_relations1261) + _t2106 = _t2108 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_body", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2092 = _t2096 + _t2102 = _t2106 } - result1260 := _t2092 - p.recordSpan(int(span_start1259), "TargetRelations") - return result1260 + result1265 := _t2102 + p.recordSpan(int(span_start1264), "TargetRelations") + return result1265 } func (p *Parser) parse_non_cdc_relations() []*pb.TargetRelation { - xs1261 := []*pb.TargetRelation{} - cond1262 := p.matchLookaheadLiteral("(", 0) - for cond1262 { - _t2099 := p.parse_target_relation() - item1263 := _t2099 - xs1261 = append(xs1261, item1263) - cond1262 = p.matchLookaheadLiteral("(", 0) + xs1266 := []*pb.TargetRelation{} + cond1267 := (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("relation", 1)) + for cond1267 { + _t2109 := p.parse_target_relation() + item1268 := _t2109 + xs1266 = append(xs1266, item1268) + cond1267 = (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("relation", 1)) } - return xs1261 + return xs1266 } func (p *Parser) parse_target_relation() *pb.TargetRelation { - span_start1269 := int64(p.spanStart()) + span_start1274 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("relation") - _t2100 := p.parse_relation_id() - relation_id1264 := _t2100 - xs1265 := []*pb.NamedColumn{} - cond1266 := p.matchLookaheadLiteral("(", 0) - for cond1266 { - _t2101 := p.parse_named_column() - item1267 := _t2101 - xs1265 = append(xs1265, item1267) - cond1266 = p.matchLookaheadLiteral("(", 0) - } - named_columns1268 := xs1265 + _t2110 := p.parse_relation_id() + relation_id1269 := _t2110 + xs1270 := []*pb.NamedColumn{} + cond1271 := p.matchLookaheadLiteral("(", 0) + for cond1271 { + _t2111 := p.parse_named_column() + item1272 := _t2111 + xs1270 = append(xs1270, item1272) + cond1271 = p.matchLookaheadLiteral("(", 0) + } + named_columns1273 := xs1270 p.consumeLiteral(")") - _t2102 := &pb.TargetRelation{TargetId: relation_id1264, Values: named_columns1268} - result1270 := _t2102 - p.recordSpan(int(span_start1269), "TargetRelation") - return result1270 + _t2112 := &pb.TargetRelation{TargetId: relation_id1269, Values: named_columns1273} + result1275 := _t2112 + p.recordSpan(int(span_start1274), "TargetRelation") + return result1275 } func (p *Parser) parse_cdc_inserts() []*pb.TargetRelation { p.consumeLiteral("(") p.consumeLiteral("inserts") - xs1271 := []*pb.TargetRelation{} - cond1272 := p.matchLookaheadLiteral("(", 0) - for cond1272 { - _t2103 := p.parse_target_relation() - item1273 := _t2103 - xs1271 = append(xs1271, item1273) - cond1272 = p.matchLookaheadLiteral("(", 0) - } - target_relations1274 := xs1271 + xs1276 := []*pb.TargetRelation{} + cond1277 := p.matchLookaheadLiteral("(", 0) + for cond1277 { + _t2113 := p.parse_target_relation() + item1278 := _t2113 + xs1276 = append(xs1276, item1278) + cond1277 = p.matchLookaheadLiteral("(", 0) + } + target_relations1279 := xs1276 p.consumeLiteral(")") - return target_relations1274 + return target_relations1279 } func (p *Parser) parse_cdc_deletes() []*pb.TargetRelation { p.consumeLiteral("(") p.consumeLiteral("deletes") - xs1275 := []*pb.TargetRelation{} - cond1276 := p.matchLookaheadLiteral("(", 0) - for cond1276 { - _t2104 := p.parse_target_relation() - item1277 := _t2104 - xs1275 = append(xs1275, item1277) - cond1276 = p.matchLookaheadLiteral("(", 0) - } - target_relations1278 := xs1275 + xs1280 := []*pb.TargetRelation{} + cond1281 := p.matchLookaheadLiteral("(", 0) + for cond1281 { + _t2114 := p.parse_target_relation() + item1282 := _t2114 + xs1280 = append(xs1280, item1282) + cond1281 = p.matchLookaheadLiteral("(", 0) + } + target_relations1283 := xs1280 p.consumeLiteral(")") - return target_relations1278 + return target_relations1283 +} + +func (p *Parser) parse_load_errors() *pb.RelationId { + span_start1285 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("load_errors") + _t2115 := p.parse_relation_id() + relation_id1284 := _t2115 + p.consumeLiteral(")") + result1286 := relation_id1284 + p.recordSpan(int(span_start1285), "RelationId") + return result1286 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string1279 := p.consumeTerminal("STRING").Value.str + string1287 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1279 + return string1287 } func (p *Parser) parse_iceberg_data() *pb.IcebergData { - span_start1286 := int64(p.spanStart()) + span_start1294 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_data") - _t2105 := p.parse_iceberg_locator() - iceberg_locator1280 := _t2105 - _t2106 := p.parse_iceberg_catalog_config() - iceberg_catalog_config1281 := _t2106 - _t2107 := p.parse_gnf_columns() - gnf_columns1282 := _t2107 - var _t2108 *string + _t2116 := p.parse_iceberg_locator() + iceberg_locator1288 := _t2116 + _t2117 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1289 := _t2117 + _t2118 := p.parse_gnf_columns() + gnf_columns1290 := _t2118 + var _t2119 *string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("from_snapshot", 1)) { - _t2109 := p.parse_iceberg_from_snapshot() - _t2108 = ptr(_t2109) + _t2120 := p.parse_iceberg_from_snapshot() + _t2119 = ptr(_t2120) } - iceberg_from_snapshot1283 := _t2108 - var _t2110 *string + iceberg_from_snapshot1291 := _t2119 + var _t2121 *string if p.matchLookaheadLiteral("(", 0) { - _t2111 := p.parse_iceberg_to_snapshot() - _t2110 = ptr(_t2111) + _t2122 := p.parse_iceberg_to_snapshot() + _t2121 = ptr(_t2122) } - iceberg_to_snapshot1284 := _t2110 - _t2112 := p.parse_boolean_value() - boolean_value1285 := _t2112 + iceberg_to_snapshot1292 := _t2121 + _t2123 := p.parse_boolean_value() + boolean_value1293 := _t2123 p.consumeLiteral(")") - _t2113 := p.construct_iceberg_data(iceberg_locator1280, iceberg_catalog_config1281, gnf_columns1282, iceberg_from_snapshot1283, iceberg_to_snapshot1284, boolean_value1285) - result1287 := _t2113 - p.recordSpan(int(span_start1286), "IcebergData") - return result1287 + _t2124 := p.construct_iceberg_data(iceberg_locator1288, iceberg_catalog_config1289, gnf_columns1290, iceberg_from_snapshot1291, iceberg_to_snapshot1292, boolean_value1293) + result1295 := _t2124 + p.recordSpan(int(span_start1294), "IcebergData") + return result1295 } func (p *Parser) parse_iceberg_locator() *pb.IcebergLocator { - span_start1291 := int64(p.spanStart()) + span_start1299 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_locator") - _t2114 := p.parse_iceberg_locator_table_name() - iceberg_locator_table_name1288 := _t2114 - _t2115 := p.parse_iceberg_locator_namespace() - iceberg_locator_namespace1289 := _t2115 - _t2116 := p.parse_iceberg_locator_warehouse() - iceberg_locator_warehouse1290 := _t2116 + _t2125 := p.parse_iceberg_locator_table_name() + iceberg_locator_table_name1296 := _t2125 + _t2126 := p.parse_iceberg_locator_namespace() + iceberg_locator_namespace1297 := _t2126 + _t2127 := p.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1298 := _t2127 p.consumeLiteral(")") - _t2117 := &pb.IcebergLocator{TableName: iceberg_locator_table_name1288, Namespace: iceberg_locator_namespace1289, Warehouse: iceberg_locator_warehouse1290} - result1292 := _t2117 - p.recordSpan(int(span_start1291), "IcebergLocator") - return result1292 + _t2128 := &pb.IcebergLocator{TableName: iceberg_locator_table_name1296, Namespace: iceberg_locator_namespace1297, Warehouse: iceberg_locator_warehouse1298} + result1300 := _t2128 + p.recordSpan(int(span_start1299), "IcebergLocator") + return result1300 } func (p *Parser) parse_iceberg_locator_table_name() string { p.consumeLiteral("(") p.consumeLiteral("table_name") - string1293 := p.consumeTerminal("STRING").Value.str + string1301 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1293 + return string1301 } func (p *Parser) parse_iceberg_locator_namespace() []string { p.consumeLiteral("(") p.consumeLiteral("namespace") - xs1294 := []string{} - cond1295 := p.matchLookaheadTerminal("STRING", 0) - for cond1295 { - item1296 := p.consumeTerminal("STRING").Value.str - xs1294 = append(xs1294, item1296) - cond1295 = p.matchLookaheadTerminal("STRING", 0) - } - strings1297 := xs1294 + xs1302 := []string{} + cond1303 := p.matchLookaheadTerminal("STRING", 0) + for cond1303 { + item1304 := p.consumeTerminal("STRING").Value.str + xs1302 = append(xs1302, item1304) + cond1303 = p.matchLookaheadTerminal("STRING", 0) + } + strings1305 := xs1302 p.consumeLiteral(")") - return strings1297 + return strings1305 } func (p *Parser) parse_iceberg_locator_warehouse() string { p.consumeLiteral("(") p.consumeLiteral("warehouse") - string1298 := p.consumeTerminal("STRING").Value.str + string1306 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1298 + return string1306 } func (p *Parser) parse_iceberg_catalog_config() *pb.IcebergCatalogConfig { - span_start1303 := int64(p.spanStart()) + span_start1311 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("iceberg_catalog_config") - _t2118 := p.parse_iceberg_catalog_uri() - iceberg_catalog_uri1299 := _t2118 - var _t2119 *string + _t2129 := p.parse_iceberg_catalog_uri() + iceberg_catalog_uri1307 := _t2129 + var _t2130 *string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("scope", 1)) { - _t2120 := p.parse_iceberg_catalog_config_scope() - _t2119 = ptr(_t2120) - } - iceberg_catalog_config_scope1300 := _t2119 - _t2121 := p.parse_iceberg_properties() - iceberg_properties1301 := _t2121 - _t2122 := p.parse_iceberg_auth_properties() - iceberg_auth_properties1302 := _t2122 + _t2131 := p.parse_iceberg_catalog_config_scope() + _t2130 = ptr(_t2131) + } + iceberg_catalog_config_scope1308 := _t2130 + _t2132 := p.parse_iceberg_properties() + iceberg_properties1309 := _t2132 + _t2133 := p.parse_iceberg_auth_properties() + iceberg_auth_properties1310 := _t2133 p.consumeLiteral(")") - _t2123 := p.construct_iceberg_catalog_config(iceberg_catalog_uri1299, iceberg_catalog_config_scope1300, iceberg_properties1301, iceberg_auth_properties1302) - result1304 := _t2123 - p.recordSpan(int(span_start1303), "IcebergCatalogConfig") - return result1304 + _t2134 := p.construct_iceberg_catalog_config(iceberg_catalog_uri1307, iceberg_catalog_config_scope1308, iceberg_properties1309, iceberg_auth_properties1310) + result1312 := _t2134 + p.recordSpan(int(span_start1311), "IcebergCatalogConfig") + return result1312 } func (p *Parser) parse_iceberg_catalog_uri() string { p.consumeLiteral("(") p.consumeLiteral("catalog_uri") - string1305 := p.consumeTerminal("STRING").Value.str + string1313 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1305 + return string1313 } func (p *Parser) parse_iceberg_catalog_config_scope() string { p.consumeLiteral("(") p.consumeLiteral("scope") - string1306 := p.consumeTerminal("STRING").Value.str + string1314 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1306 + return string1314 } func (p *Parser) parse_iceberg_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("properties") - xs1307 := [][]interface{}{} - cond1308 := p.matchLookaheadLiteral("(", 0) - for cond1308 { - _t2124 := p.parse_iceberg_property_entry() - item1309 := _t2124 - xs1307 = append(xs1307, item1309) - cond1308 = p.matchLookaheadLiteral("(", 0) - } - iceberg_property_entrys1310 := xs1307 + xs1315 := [][]interface{}{} + cond1316 := p.matchLookaheadLiteral("(", 0) + for cond1316 { + _t2135 := p.parse_iceberg_property_entry() + item1317 := _t2135 + xs1315 = append(xs1315, item1317) + cond1316 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1318 := xs1315 p.consumeLiteral(")") - return iceberg_property_entrys1310 + return iceberg_property_entrys1318 } func (p *Parser) parse_iceberg_property_entry() []interface{} { p.consumeLiteral("(") p.consumeLiteral("prop") - string1311 := p.consumeTerminal("STRING").Value.str - string_31312 := p.consumeTerminal("STRING").Value.str + string1319 := p.consumeTerminal("STRING").Value.str + string_31320 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1311, string_31312} + return []interface{}{string1319, string_31320} } func (p *Parser) parse_iceberg_auth_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("auth_properties") - xs1313 := [][]interface{}{} - cond1314 := p.matchLookaheadLiteral("(", 0) - for cond1314 { - _t2125 := p.parse_iceberg_masked_property_entry() - item1315 := _t2125 - xs1313 = append(xs1313, item1315) - cond1314 = p.matchLookaheadLiteral("(", 0) - } - iceberg_masked_property_entrys1316 := xs1313 + xs1321 := [][]interface{}{} + cond1322 := p.matchLookaheadLiteral("(", 0) + for cond1322 { + _t2136 := p.parse_iceberg_masked_property_entry() + item1323 := _t2136 + xs1321 = append(xs1321, item1323) + cond1322 = p.matchLookaheadLiteral("(", 0) + } + iceberg_masked_property_entrys1324 := xs1321 p.consumeLiteral(")") - return iceberg_masked_property_entrys1316 + return iceberg_masked_property_entrys1324 } func (p *Parser) parse_iceberg_masked_property_entry() []interface{} { p.consumeLiteral("(") p.consumeLiteral("prop") - string1317 := p.consumeTerminal("STRING").Value.str - string_31318 := p.consumeTerminal("STRING").Value.str + string1325 := p.consumeTerminal("STRING").Value.str + string_31326 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return []interface{}{string1317, string_31318} + return []interface{}{string1325, string_31326} } func (p *Parser) parse_iceberg_from_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("from_snapshot") - string1319 := p.consumeTerminal("STRING").Value.str + string1327 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1319 + return string1327 } func (p *Parser) parse_iceberg_to_snapshot() string { p.consumeLiteral("(") p.consumeLiteral("to_snapshot") - string1320 := p.consumeTerminal("STRING").Value.str + string1328 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1320 + return string1328 } func (p *Parser) parse_undefine() *pb.Undefine { - span_start1322 := int64(p.spanStart()) + span_start1330 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("undefine") - _t2126 := p.parse_fragment_id() - fragment_id1321 := _t2126 + _t2137 := p.parse_fragment_id() + fragment_id1329 := _t2137 p.consumeLiteral(")") - _t2127 := &pb.Undefine{FragmentId: fragment_id1321} - result1323 := _t2127 - p.recordSpan(int(span_start1322), "Undefine") - return result1323 + _t2138 := &pb.Undefine{FragmentId: fragment_id1329} + result1331 := _t2138 + p.recordSpan(int(span_start1330), "Undefine") + return result1331 } func (p *Parser) parse_context() *pb.Context { - span_start1328 := int64(p.spanStart()) + span_start1336 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("context") - xs1324 := []*pb.RelationId{} - cond1325 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond1325 { - _t2128 := p.parse_relation_id() - item1326 := _t2128 - xs1324 = append(xs1324, item1326) - cond1325 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids1327 := xs1324 + xs1332 := []*pb.RelationId{} + cond1333 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1333 { + _t2139 := p.parse_relation_id() + item1334 := _t2139 + xs1332 = append(xs1332, item1334) + cond1333 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1335 := xs1332 p.consumeLiteral(")") - _t2129 := &pb.Context{Relations: relation_ids1327} - result1329 := _t2129 - p.recordSpan(int(span_start1328), "Context") - return result1329 + _t2140 := &pb.Context{Relations: relation_ids1335} + result1337 := _t2140 + p.recordSpan(int(span_start1336), "Context") + return result1337 } func (p *Parser) parse_snapshot() *pb.Snapshot { - span_start1335 := int64(p.spanStart()) + span_start1343 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("snapshot") - _t2130 := p.parse_edb_path() - edb_path1330 := _t2130 - xs1331 := []*pb.SnapshotMapping{} - cond1332 := p.matchLookaheadLiteral("[", 0) - for cond1332 { - _t2131 := p.parse_snapshot_mapping() - item1333 := _t2131 - xs1331 = append(xs1331, item1333) - cond1332 = p.matchLookaheadLiteral("[", 0) - } - snapshot_mappings1334 := xs1331 + _t2141 := p.parse_edb_path() + edb_path1338 := _t2141 + xs1339 := []*pb.SnapshotMapping{} + cond1340 := p.matchLookaheadLiteral("[", 0) + for cond1340 { + _t2142 := p.parse_snapshot_mapping() + item1341 := _t2142 + xs1339 = append(xs1339, item1341) + cond1340 = p.matchLookaheadLiteral("[", 0) + } + snapshot_mappings1342 := xs1339 p.consumeLiteral(")") - _t2132 := &pb.Snapshot{Prefix: edb_path1330, Mappings: snapshot_mappings1334} - result1336 := _t2132 - p.recordSpan(int(span_start1335), "Snapshot") - return result1336 + _t2143 := &pb.Snapshot{Prefix: edb_path1338, Mappings: snapshot_mappings1342} + result1344 := _t2143 + p.recordSpan(int(span_start1343), "Snapshot") + return result1344 } func (p *Parser) parse_snapshot_mapping() *pb.SnapshotMapping { - span_start1339 := int64(p.spanStart()) - _t2133 := p.parse_edb_path() - edb_path1337 := _t2133 - _t2134 := p.parse_relation_id() - relation_id1338 := _t2134 - _t2135 := &pb.SnapshotMapping{DestinationPath: edb_path1337, SourceRelation: relation_id1338} - result1340 := _t2135 - p.recordSpan(int(span_start1339), "SnapshotMapping") - return result1340 + span_start1347 := int64(p.spanStart()) + _t2144 := p.parse_edb_path() + edb_path1345 := _t2144 + _t2145 := p.parse_relation_id() + relation_id1346 := _t2145 + _t2146 := &pb.SnapshotMapping{DestinationPath: edb_path1345, SourceRelation: relation_id1346} + result1348 := _t2146 + p.recordSpan(int(span_start1347), "SnapshotMapping") + return result1348 } func (p *Parser) parse_epoch_reads() []*pb.Read { p.consumeLiteral("(") p.consumeLiteral("reads") - xs1341 := []*pb.Read{} - cond1342 := p.matchLookaheadLiteral("(", 0) - for cond1342 { - _t2136 := p.parse_read() - item1343 := _t2136 - xs1341 = append(xs1341, item1343) - cond1342 = p.matchLookaheadLiteral("(", 0) - } - reads1344 := xs1341 + xs1349 := []*pb.Read{} + cond1350 := p.matchLookaheadLiteral("(", 0) + for cond1350 { + _t2147 := p.parse_read() + item1351 := _t2147 + xs1349 = append(xs1349, item1351) + cond1350 = p.matchLookaheadLiteral("(", 0) + } + reads1352 := xs1349 p.consumeLiteral(")") - return reads1344 + return reads1352 } func (p *Parser) parse_read() *pb.Read { - span_start1351 := int64(p.spanStart()) - var _t2137 int64 + span_start1359 := int64(p.spanStart()) + var _t2148 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2138 int64 + var _t2149 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t2138 = 2 + _t2149 = 2 } else { - var _t2139 int64 + var _t2150 int64 if p.matchLookaheadLiteral("output", 1) { - _t2139 = 1 + _t2150 = 1 } else { - var _t2140 int64 + var _t2151 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2140 = 4 + _t2151 = 4 } else { - var _t2141 int64 + var _t2152 int64 if p.matchLookaheadLiteral("export", 1) { - _t2141 = 4 + _t2152 = 4 } else { - var _t2142 int64 + var _t2153 int64 if p.matchLookaheadLiteral("demand", 1) { - _t2142 = 0 + _t2153 = 0 } else { - var _t2143 int64 + var _t2154 int64 if p.matchLookaheadLiteral("abort", 1) { - _t2143 = 3 + _t2154 = 3 } else { - _t2143 = -1 + _t2154 = -1 } - _t2142 = _t2143 + _t2153 = _t2154 } - _t2141 = _t2142 + _t2152 = _t2153 } - _t2140 = _t2141 + _t2151 = _t2152 } - _t2139 = _t2140 + _t2150 = _t2151 } - _t2138 = _t2139 + _t2149 = _t2150 } - _t2137 = _t2138 + _t2148 = _t2149 } else { - _t2137 = -1 - } - prediction1345 := _t2137 - var _t2144 *pb.Read - if prediction1345 == 4 { - _t2145 := p.parse_export() - export1350 := _t2145 - _t2146 := &pb.Read{} - _t2146.ReadType = &pb.Read_Export{Export: export1350} - _t2144 = _t2146 + _t2148 = -1 + } + prediction1353 := _t2148 + var _t2155 *pb.Read + if prediction1353 == 4 { + _t2156 := p.parse_export() + export1358 := _t2156 + _t2157 := &pb.Read{} + _t2157.ReadType = &pb.Read_Export{Export: export1358} + _t2155 = _t2157 } else { - var _t2147 *pb.Read - if prediction1345 == 3 { - _t2148 := p.parse_abort() - abort1349 := _t2148 - _t2149 := &pb.Read{} - _t2149.ReadType = &pb.Read_Abort{Abort: abort1349} - _t2147 = _t2149 + var _t2158 *pb.Read + if prediction1353 == 3 { + _t2159 := p.parse_abort() + abort1357 := _t2159 + _t2160 := &pb.Read{} + _t2160.ReadType = &pb.Read_Abort{Abort: abort1357} + _t2158 = _t2160 } else { - var _t2150 *pb.Read - if prediction1345 == 2 { - _t2151 := p.parse_what_if() - what_if1348 := _t2151 - _t2152 := &pb.Read{} - _t2152.ReadType = &pb.Read_WhatIf{WhatIf: what_if1348} - _t2150 = _t2152 + var _t2161 *pb.Read + if prediction1353 == 2 { + _t2162 := p.parse_what_if() + what_if1356 := _t2162 + _t2163 := &pb.Read{} + _t2163.ReadType = &pb.Read_WhatIf{WhatIf: what_if1356} + _t2161 = _t2163 } else { - var _t2153 *pb.Read - if prediction1345 == 1 { - _t2154 := p.parse_output() - output1347 := _t2154 - _t2155 := &pb.Read{} - _t2155.ReadType = &pb.Read_Output{Output: output1347} - _t2153 = _t2155 + var _t2164 *pb.Read + if prediction1353 == 1 { + _t2165 := p.parse_output() + output1355 := _t2165 + _t2166 := &pb.Read{} + _t2166.ReadType = &pb.Read_Output{Output: output1355} + _t2164 = _t2166 } else { - var _t2156 *pb.Read - if prediction1345 == 0 { - _t2157 := p.parse_demand() - demand1346 := _t2157 - _t2158 := &pb.Read{} - _t2158.ReadType = &pb.Read_Demand{Demand: demand1346} - _t2156 = _t2158 + var _t2167 *pb.Read + if prediction1353 == 0 { + _t2168 := p.parse_demand() + demand1354 := _t2168 + _t2169 := &pb.Read{} + _t2169.ReadType = &pb.Read_Demand{Demand: demand1354} + _t2167 = _t2169 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2153 = _t2156 + _t2164 = _t2167 } - _t2150 = _t2153 + _t2161 = _t2164 } - _t2147 = _t2150 + _t2158 = _t2161 } - _t2144 = _t2147 + _t2155 = _t2158 } - result1352 := _t2144 - p.recordSpan(int(span_start1351), "Read") - return result1352 + result1360 := _t2155 + p.recordSpan(int(span_start1359), "Read") + return result1360 } func (p *Parser) parse_demand() *pb.Demand { - span_start1354 := int64(p.spanStart()) + span_start1362 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("demand") - _t2159 := p.parse_relation_id() - relation_id1353 := _t2159 + _t2170 := p.parse_relation_id() + relation_id1361 := _t2170 p.consumeLiteral(")") - _t2160 := &pb.Demand{RelationId: relation_id1353} - result1355 := _t2160 - p.recordSpan(int(span_start1354), "Demand") - return result1355 + _t2171 := &pb.Demand{RelationId: relation_id1361} + result1363 := _t2171 + p.recordSpan(int(span_start1362), "Demand") + return result1363 } func (p *Parser) parse_output() *pb.Output { - span_start1358 := int64(p.spanStart()) + span_start1366 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("output") - _t2161 := p.parse_name() - name1356 := _t2161 - _t2162 := p.parse_relation_id() - relation_id1357 := _t2162 + _t2172 := p.parse_name() + name1364 := _t2172 + _t2173 := p.parse_relation_id() + relation_id1365 := _t2173 p.consumeLiteral(")") - _t2163 := &pb.Output{Name: name1356, RelationId: relation_id1357} - result1359 := _t2163 - p.recordSpan(int(span_start1358), "Output") - return result1359 + _t2174 := &pb.Output{Name: name1364, RelationId: relation_id1365} + result1367 := _t2174 + p.recordSpan(int(span_start1366), "Output") + return result1367 } func (p *Parser) parse_what_if() *pb.WhatIf { - span_start1362 := int64(p.spanStart()) + span_start1370 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("what_if") - _t2164 := p.parse_name() - name1360 := _t2164 - _t2165 := p.parse_epoch() - epoch1361 := _t2165 + _t2175 := p.parse_name() + name1368 := _t2175 + _t2176 := p.parse_epoch() + epoch1369 := _t2176 p.consumeLiteral(")") - _t2166 := &pb.WhatIf{Branch: name1360, Epoch: epoch1361} - result1363 := _t2166 - p.recordSpan(int(span_start1362), "WhatIf") - return result1363 + _t2177 := &pb.WhatIf{Branch: name1368, Epoch: epoch1369} + result1371 := _t2177 + p.recordSpan(int(span_start1370), "WhatIf") + return result1371 } func (p *Parser) parse_abort() *pb.Abort { - span_start1366 := int64(p.spanStart()) + span_start1374 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("abort") - var _t2167 *string + var _t2178 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t2168 := p.parse_name() - _t2167 = ptr(_t2168) + _t2179 := p.parse_name() + _t2178 = ptr(_t2179) } - name1364 := _t2167 - _t2169 := p.parse_relation_id() - relation_id1365 := _t2169 + name1372 := _t2178 + _t2180 := p.parse_relation_id() + relation_id1373 := _t2180 p.consumeLiteral(")") - _t2170 := &pb.Abort{Name: deref(name1364, "abort"), RelationId: relation_id1365} - result1367 := _t2170 - p.recordSpan(int(span_start1366), "Abort") - return result1367 + _t2181 := &pb.Abort{Name: deref(name1372, "abort"), RelationId: relation_id1373} + result1375 := _t2181 + p.recordSpan(int(span_start1374), "Abort") + return result1375 } func (p *Parser) parse_export() *pb.Export { - span_start1371 := int64(p.spanStart()) - var _t2171 int64 + span_start1379 := int64(p.spanStart()) + var _t2182 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2172 int64 + var _t2183 int64 if p.matchLookaheadLiteral("export_iceberg", 1) { - _t2172 = 1 + _t2183 = 1 } else { - var _t2173 int64 + var _t2184 int64 if p.matchLookaheadLiteral("export", 1) { - _t2173 = 0 + _t2184 = 0 } else { - _t2173 = -1 + _t2184 = -1 } - _t2172 = _t2173 + _t2183 = _t2184 } - _t2171 = _t2172 + _t2182 = _t2183 } else { - _t2171 = -1 + _t2182 = -1 } - prediction1368 := _t2171 - var _t2174 *pb.Export - if prediction1368 == 1 { + prediction1376 := _t2182 + var _t2185 *pb.Export + if prediction1376 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_iceberg") - _t2175 := p.parse_export_iceberg_config() - export_iceberg_config1370 := _t2175 + _t2186 := p.parse_export_iceberg_config() + export_iceberg_config1378 := _t2186 p.consumeLiteral(")") - _t2176 := &pb.Export{} - _t2176.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1370} - _t2174 = _t2176 + _t2187 := &pb.Export{} + _t2187.ExportConfig = &pb.Export_IcebergConfig{IcebergConfig: export_iceberg_config1378} + _t2185 = _t2187 } else { - var _t2177 *pb.Export - if prediction1368 == 0 { + var _t2188 *pb.Export + if prediction1376 == 0 { p.consumeLiteral("(") p.consumeLiteral("export") - _t2178 := p.parse_export_csv_config() - export_csv_config1369 := _t2178 + _t2189 := p.parse_export_csv_config() + export_csv_config1377 := _t2189 p.consumeLiteral(")") - _t2179 := &pb.Export{} - _t2179.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1369} - _t2177 = _t2179 + _t2190 := &pb.Export{} + _t2190.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1377} + _t2188 = _t2190 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2174 = _t2177 + _t2185 = _t2188 } - result1372 := _t2174 - p.recordSpan(int(span_start1371), "Export") - return result1372 + result1380 := _t2185 + p.recordSpan(int(span_start1379), "Export") + return result1380 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - span_start1380 := int64(p.spanStart()) - var _t2180 int64 + span_start1388 := int64(p.spanStart()) + var _t2191 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2181 int64 + var _t2192 int64 if p.matchLookaheadLiteral("export_csv_config_v2", 1) { - _t2181 = 0 + _t2192 = 0 } else { - var _t2182 int64 + var _t2193 int64 if p.matchLookaheadLiteral("export_csv_config", 1) { - _t2182 = 1 + _t2193 = 1 } else { - _t2182 = -1 + _t2193 = -1 } - _t2181 = _t2182 + _t2192 = _t2193 } - _t2180 = _t2181 + _t2191 = _t2192 } else { - _t2180 = -1 + _t2191 = -1 } - prediction1373 := _t2180 - var _t2183 *pb.ExportCSVConfig - if prediction1373 == 1 { + prediction1381 := _t2191 + var _t2194 *pb.ExportCSVConfig + if prediction1381 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config") - _t2184 := p.parse_export_csv_path() - export_csv_path1377 := _t2184 - _t2185 := p.parse_export_csv_columns_list() - export_csv_columns_list1378 := _t2185 - _t2186 := p.parse_config_dict() - config_dict1379 := _t2186 + _t2195 := p.parse_export_csv_path() + export_csv_path1385 := _t2195 + _t2196 := p.parse_export_csv_columns_list() + export_csv_columns_list1386 := _t2196 + _t2197 := p.parse_config_dict() + config_dict1387 := _t2197 p.consumeLiteral(")") - _t2187 := p.construct_export_csv_config(export_csv_path1377, export_csv_columns_list1378, config_dict1379) - _t2183 = _t2187 + _t2198 := p.construct_export_csv_config(export_csv_path1385, export_csv_columns_list1386, config_dict1387) + _t2194 = _t2198 } else { - var _t2188 *pb.ExportCSVConfig - if prediction1373 == 0 { + var _t2199 *pb.ExportCSVConfig + if prediction1381 == 0 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config_v2") - _t2189 := p.parse_export_csv_output_location() - export_csv_output_location1374 := _t2189 - _t2190 := p.parse_export_csv_source() - export_csv_source1375 := _t2190 - _t2191 := p.parse_csv_config() - csv_config1376 := _t2191 + _t2200 := p.parse_export_csv_output_location() + export_csv_output_location1382 := _t2200 + _t2201 := p.parse_export_csv_source() + export_csv_source1383 := _t2201 + _t2202 := p.parse_csv_config() + csv_config1384 := _t2202 p.consumeLiteral(")") - _t2192 := p.construct_export_csv_config_with_location(export_csv_output_location1374, export_csv_source1375, csv_config1376) - _t2188 = _t2192 + _t2203 := p.construct_export_csv_config_with_location(export_csv_output_location1382, export_csv_source1383, csv_config1384) + _t2199 = _t2203 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_config", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2183 = _t2188 + _t2194 = _t2199 } - result1381 := _t2183 - p.recordSpan(int(span_start1380), "ExportCSVConfig") - return result1381 + result1389 := _t2194 + p.recordSpan(int(span_start1388), "ExportCSVConfig") + return result1389 } func (p *Parser) parse_export_csv_output_location() []interface{} { - var _t2193 int64 + var _t2204 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2194 int64 + var _t2205 int64 if p.matchLookaheadLiteral("transaction_output_name", 1) { - _t2194 = 1 + _t2205 = 1 } else { - var _t2195 int64 + var _t2206 int64 if p.matchLookaheadLiteral("path", 1) { - _t2195 = 0 + _t2206 = 0 } else { - _t2195 = -1 + _t2206 = -1 } - _t2194 = _t2195 + _t2205 = _t2206 } - _t2193 = _t2194 + _t2204 = _t2205 } else { - _t2193 = -1 + _t2204 = -1 } - prediction1382 := _t2193 - var _t2196 []interface{} - if prediction1382 == 1 { + prediction1390 := _t2204 + var _t2207 []interface{} + if prediction1390 == 1 { p.consumeLiteral("(") p.consumeLiteral("transaction_output_name") - _t2197 := p.parse_name() - name1384 := _t2197 + _t2208 := p.parse_name() + name1392 := _t2208 p.consumeLiteral(")") - _t2196 = []interface{}{"", name1384} + _t2207 = []interface{}{"", name1392} } else { - var _t2198 []interface{} - if prediction1382 == 0 { + var _t2209 []interface{} + if prediction1390 == 0 { p.consumeLiteral("(") p.consumeLiteral("path") - string1383 := p.consumeTerminal("STRING").Value.str + string1391 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - _t2198 = []interface{}{string1383, ""} + _t2209 = []interface{}{string1391, ""} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_output_location", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2196 = _t2198 + _t2207 = _t2209 } - return _t2196 + return _t2207 } func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { - span_start1391 := int64(p.spanStart()) - var _t2199 int64 + span_start1399 := int64(p.spanStart()) + var _t2210 int64 if p.matchLookaheadLiteral("(", 0) { - var _t2200 int64 + var _t2211 int64 if p.matchLookaheadLiteral("table_def", 1) { - _t2200 = 1 + _t2211 = 1 } else { - var _t2201 int64 + var _t2212 int64 if p.matchLookaheadLiteral("gnf_columns", 1) { - _t2201 = 0 + _t2212 = 0 } else { - _t2201 = -1 + _t2212 = -1 } - _t2200 = _t2201 + _t2211 = _t2212 } - _t2199 = _t2200 + _t2210 = _t2211 } else { - _t2199 = -1 + _t2210 = -1 } - prediction1385 := _t2199 - var _t2202 *pb.ExportCSVSource - if prediction1385 == 1 { + prediction1393 := _t2210 + var _t2213 *pb.ExportCSVSource + if prediction1393 == 1 { p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2203 := p.parse_relation_id() - relation_id1390 := _t2203 + _t2214 := p.parse_relation_id() + relation_id1398 := _t2214 p.consumeLiteral(")") - _t2204 := &pb.ExportCSVSource{} - _t2204.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1390} - _t2202 = _t2204 + _t2215 := &pb.ExportCSVSource{} + _t2215.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1398} + _t2213 = _t2215 } else { - var _t2205 *pb.ExportCSVSource - if prediction1385 == 0 { + var _t2216 *pb.ExportCSVSource + if prediction1393 == 0 { p.consumeLiteral("(") p.consumeLiteral("gnf_columns") - xs1386 := []*pb.ExportCSVColumn{} - cond1387 := p.matchLookaheadLiteral("(", 0) - for cond1387 { - _t2206 := p.parse_export_csv_column() - item1388 := _t2206 - xs1386 = append(xs1386, item1388) - cond1387 = p.matchLookaheadLiteral("(", 0) + xs1394 := []*pb.ExportCSVColumn{} + cond1395 := p.matchLookaheadLiteral("(", 0) + for cond1395 { + _t2217 := p.parse_export_csv_column() + item1396 := _t2217 + xs1394 = append(xs1394, item1396) + cond1395 = p.matchLookaheadLiteral("(", 0) } - export_csv_columns1389 := xs1386 + export_csv_columns1397 := xs1394 p.consumeLiteral(")") - _t2207 := &pb.ExportCSVColumns{Columns: export_csv_columns1389} - _t2208 := &pb.ExportCSVSource{} - _t2208.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2207} - _t2205 = _t2208 + _t2218 := &pb.ExportCSVColumns{Columns: export_csv_columns1397} + _t2219 := &pb.ExportCSVSource{} + _t2219.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t2218} + _t2216 = _t2219 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_source", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t2202 = _t2205 + _t2213 = _t2216 } - result1392 := _t2202 - p.recordSpan(int(span_start1391), "ExportCSVSource") - return result1392 + result1400 := _t2213 + p.recordSpan(int(span_start1399), "ExportCSVSource") + return result1400 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { - span_start1395 := int64(p.spanStart()) + span_start1403 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - string1393 := p.consumeTerminal("STRING").Value.str - _t2209 := p.parse_relation_id() - relation_id1394 := _t2209 + string1401 := p.consumeTerminal("STRING").Value.str + _t2220 := p.parse_relation_id() + relation_id1402 := _t2220 p.consumeLiteral(")") - _t2210 := &pb.ExportCSVColumn{ColumnName: string1393, ColumnData: relation_id1394} - result1396 := _t2210 - p.recordSpan(int(span_start1395), "ExportCSVColumn") - return result1396 + _t2221 := &pb.ExportCSVColumn{ColumnName: string1401, ColumnData: relation_id1402} + result1404 := _t2221 + p.recordSpan(int(span_start1403), "ExportCSVColumn") + return result1404 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string1397 := p.consumeTerminal("STRING").Value.str + string1405 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1397 + return string1405 } func (p *Parser) parse_export_csv_columns_list() []*pb.ExportCSVColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1398 := []*pb.ExportCSVColumn{} - cond1399 := p.matchLookaheadLiteral("(", 0) - for cond1399 { - _t2211 := p.parse_export_csv_column() - item1400 := _t2211 - xs1398 = append(xs1398, item1400) - cond1399 = p.matchLookaheadLiteral("(", 0) - } - export_csv_columns1401 := xs1398 + xs1406 := []*pb.ExportCSVColumn{} + cond1407 := p.matchLookaheadLiteral("(", 0) + for cond1407 { + _t2222 := p.parse_export_csv_column() + item1408 := _t2222 + xs1406 = append(xs1406, item1408) + cond1407 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns1409 := xs1406 p.consumeLiteral(")") - return export_csv_columns1401 + return export_csv_columns1409 } func (p *Parser) parse_export_iceberg_config() *pb.ExportIcebergConfig { - span_start1407 := int64(p.spanStart()) + span_start1415 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("export_iceberg_config") - _t2212 := p.parse_iceberg_locator() - iceberg_locator1402 := _t2212 - _t2213 := p.parse_iceberg_catalog_config() - iceberg_catalog_config1403 := _t2213 - _t2214 := p.parse_export_iceberg_table_def() - export_iceberg_table_def1404 := _t2214 - _t2215 := p.parse_iceberg_table_properties() - iceberg_table_properties1405 := _t2215 - var _t2216 [][]interface{} + _t2223 := p.parse_iceberg_locator() + iceberg_locator1410 := _t2223 + _t2224 := p.parse_iceberg_catalog_config() + iceberg_catalog_config1411 := _t2224 + _t2225 := p.parse_export_iceberg_table_def() + export_iceberg_table_def1412 := _t2225 + _t2226 := p.parse_iceberg_table_properties() + iceberg_table_properties1413 := _t2226 + var _t2227 [][]interface{} if p.matchLookaheadLiteral("{", 0) { - _t2217 := p.parse_config_dict() - _t2216 = _t2217 + _t2228 := p.parse_config_dict() + _t2227 = _t2228 } - config_dict1406 := _t2216 + config_dict1414 := _t2227 p.consumeLiteral(")") - _t2218 := p.construct_export_iceberg_config_full(iceberg_locator1402, iceberg_catalog_config1403, export_iceberg_table_def1404, iceberg_table_properties1405, config_dict1406) - result1408 := _t2218 - p.recordSpan(int(span_start1407), "ExportIcebergConfig") - return result1408 + _t2229 := p.construct_export_iceberg_config_full(iceberg_locator1410, iceberg_catalog_config1411, export_iceberg_table_def1412, iceberg_table_properties1413, config_dict1414) + result1416 := _t2229 + p.recordSpan(int(span_start1415), "ExportIcebergConfig") + return result1416 } func (p *Parser) parse_export_iceberg_table_def() *pb.RelationId { - span_start1410 := int64(p.spanStart()) + span_start1418 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("table_def") - _t2219 := p.parse_relation_id() - relation_id1409 := _t2219 + _t2230 := p.parse_relation_id() + relation_id1417 := _t2230 p.consumeLiteral(")") - result1411 := relation_id1409 - p.recordSpan(int(span_start1410), "RelationId") - return result1411 + result1419 := relation_id1417 + p.recordSpan(int(span_start1418), "RelationId") + return result1419 } func (p *Parser) parse_iceberg_table_properties() [][]interface{} { p.consumeLiteral("(") p.consumeLiteral("table_properties") - xs1412 := [][]interface{}{} - cond1413 := p.matchLookaheadLiteral("(", 0) - for cond1413 { - _t2220 := p.parse_iceberg_property_entry() - item1414 := _t2220 - xs1412 = append(xs1412, item1414) - cond1413 = p.matchLookaheadLiteral("(", 0) - } - iceberg_property_entrys1415 := xs1412 + xs1420 := [][]interface{}{} + cond1421 := p.matchLookaheadLiteral("(", 0) + for cond1421 { + _t2231 := p.parse_iceberg_property_entry() + item1422 := _t2231 + xs1420 = append(xs1420, item1422) + cond1421 = p.matchLookaheadLiteral("(", 0) + } + iceberg_property_entrys1423 := xs1420 p.consumeLiteral(")") - return iceberg_property_entrys1415 + return iceberg_property_entrys1423 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index f4e3a89e..63aa196d 100644 --- a/sdks/go/src/pretty.go +++ b/sdks/go/src/pretty.go @@ -363,21 +363,30 @@ func (p *PrettyPrinter) deconstruct_relation_keys(msg *pb.TargetRelations) []int return []interface{}{msg.GetKeys(), msg.GetSyntheticKey()} } +func (p *PrettyPrinter) deconstruct_load_errors_optional(msg *pb.TargetRelations) *pb.RelationId { + var _t1863 interface{} + if hasProtoField(msg, "load_errors") { + return msg.GetLoadErrors() + } + _ = _t1863 + return nil +} + func (p *PrettyPrinter) deconstruct_csv_data_columns_optional(msg *pb.CSVData) []*pb.GNFColumn { - var _t1854 interface{} + var _t1864 interface{} if hasProtoField(msg, "relations") { return nil } - _ = _t1854 + _ = _t1864 return msg.GetColumns() } func (p *PrettyPrinter) deconstruct_csv_data_relations_optional(msg *pb.CSVData) *pb.TargetRelations { - var _t1855 interface{} + var _t1865 interface{} if hasProtoField(msg, "relations") { return msg.GetRelations() } - _ = _t1855 + _ = _t1865 return nil } @@ -386,59 +395,59 @@ func (p *PrettyPrinter) deconstruct_export_csv_output_location(msg *pb.ExportCSV } func (p *PrettyPrinter) _make_value_int32(v int32) *pb.Value { - _t1856 := &pb.Value{} - _t1856.Value = &pb.Value_Int32Value{Int32Value: v} - return _t1856 + _t1866 := &pb.Value{} + _t1866.Value = &pb.Value_Int32Value{Int32Value: v} + return _t1866 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1857 := &pb.Value{} - _t1857.Value = &pb.Value_IntValue{IntValue: v} - return _t1857 + _t1867 := &pb.Value{} + _t1867.Value = &pb.Value_IntValue{IntValue: v} + return _t1867 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1858 := &pb.Value{} - _t1858.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1858 + _t1868 := &pb.Value{} + _t1868.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1868 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1859 := &pb.Value{} - _t1859.Value = &pb.Value_StringValue{StringValue: v} - return _t1859 + _t1869 := &pb.Value{} + _t1869.Value = &pb.Value_StringValue{StringValue: v} + return _t1869 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1860 := &pb.Value{} - _t1860.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1860 + _t1870 := &pb.Value{} + _t1870.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1870 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1861 := &pb.Value{} - _t1861.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1861 + _t1871 := &pb.Value{} + _t1871.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1871 } func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} { result := [][]interface{}{} if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_AUTO { - _t1862 := p._make_value_string("auto") - result = append(result, []interface{}{"ivm.maintenance_level", _t1862}) + _t1872 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1872}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1863 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1863}) + _t1873 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1873}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1864 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1864}) + _t1874 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1874}) } } } - _t1865 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1865}) + _t1875 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1875}) for _, pair := range valueMapToPairs(msg.GetConfigurationValues()) { result = append(result, pair) } @@ -447,130 +456,130 @@ func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} func (p *PrettyPrinter) deconstruct_csv_config(msg *pb.CSVConfig) [][]interface{} { result := [][]interface{}{} - _t1866 := p._make_value_int32(msg.GetHeaderRow()) - result = append(result, []interface{}{"csv_header_row", _t1866}) - _t1867 := p._make_value_int64(msg.GetSkip()) - result = append(result, []interface{}{"csv_skip", _t1867}) + _t1876 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1876}) + _t1877 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1877}) if msg.GetNewLine() != "" { - _t1868 := p._make_value_string(msg.GetNewLine()) - result = append(result, []interface{}{"csv_new_line", _t1868}) - } - _t1869 := p._make_value_string(msg.GetDelimiter()) - result = append(result, []interface{}{"csv_delimiter", _t1869}) - _t1870 := p._make_value_string(msg.GetQuotechar()) - result = append(result, []interface{}{"csv_quotechar", _t1870}) - _t1871 := p._make_value_string(msg.GetEscapechar()) - result = append(result, []interface{}{"csv_escapechar", _t1871}) + _t1878 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1878}) + } + _t1879 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1879}) + _t1880 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1880}) + _t1881 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1881}) if msg.GetComment() != "" { - _t1872 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1872}) + _t1882 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1882}) } for _, missing_string := range msg.GetMissingStrings() { - _t1873 := p._make_value_string(missing_string) - result = append(result, []interface{}{"csv_missing_strings", _t1873}) - } - _t1874 := p._make_value_string(msg.GetDecimalSeparator()) - result = append(result, []interface{}{"csv_decimal_separator", _t1874}) - _t1875 := p._make_value_string(msg.GetEncoding()) - result = append(result, []interface{}{"csv_encoding", _t1875}) - _t1876 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"csv_compression", _t1876}) + _t1883 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1883}) + } + _t1884 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1884}) + _t1885 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1885}) + _t1886 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1886}) if msg.GetPartitionSizeMb() != 0 { - _t1877 := p._make_value_int64(msg.GetPartitionSizeMb()) - result = append(result, []interface{}{"csv_partition_size_mb", _t1877}) + _t1887 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1887}) } return listSort(result) } func (p *PrettyPrinter) deconstruct_csv_storage_integration_optional(msg *pb.CSVConfig) [][]interface{} { - var _t1878 interface{} + var _t1888 interface{} if !(hasProtoField(msg, "storage_integration")) { return nil } - _ = _t1878 + _ = _t1888 si := msg.GetStorageIntegration() result := [][]interface{}{} if si.GetProvider() != "" { - _t1879 := p._make_value_string(si.GetProvider()) - result = append(result, []interface{}{"provider", _t1879}) + _t1889 := p._make_value_string(si.GetProvider()) + result = append(result, []interface{}{"provider", _t1889}) } if si.GetAzureSasToken() != "" { - _t1880 := p._make_value_string("***") - result = append(result, []interface{}{"azure_sas_token", _t1880}) + _t1890 := p._make_value_string("***") + result = append(result, []interface{}{"azure_sas_token", _t1890}) } if si.GetS3Region() != "" { - _t1881 := p._make_value_string(si.GetS3Region()) - result = append(result, []interface{}{"s3_region", _t1881}) + _t1891 := p._make_value_string(si.GetS3Region()) + result = append(result, []interface{}{"s3_region", _t1891}) } if si.GetS3AccessKeyId() != "" { - _t1882 := p._make_value_string("***") - result = append(result, []interface{}{"s3_access_key_id", _t1882}) + _t1892 := p._make_value_string("***") + result = append(result, []interface{}{"s3_access_key_id", _t1892}) } if si.GetS3SecretAccessKey() != "" { - _t1883 := p._make_value_string("***") - result = append(result, []interface{}{"s3_secret_access_key", _t1883}) + _t1893 := p._make_value_string("***") + result = append(result, []interface{}{"s3_secret_access_key", _t1893}) } return listSort(result) } func (p *PrettyPrinter) deconstruct_betree_info_config(msg *pb.BeTreeInfo) [][]interface{} { result := [][]interface{}{} - _t1884 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) - result = append(result, []interface{}{"betree_config_epsilon", _t1884}) - _t1885 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) - result = append(result, []interface{}{"betree_config_max_pivots", _t1885}) - _t1886 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) - result = append(result, []interface{}{"betree_config_max_deltas", _t1886}) - _t1887 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) - result = append(result, []interface{}{"betree_config_max_leaf", _t1887}) + _t1894 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1894}) + _t1895 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1895}) + _t1896 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1896}) + _t1897 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1897}) if hasProtoField(msg.GetRelationLocator(), "root_pageid") { if msg.GetRelationLocator().GetRootPageid() != nil { - _t1888 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) - result = append(result, []interface{}{"betree_locator_root_pageid", _t1888}) + _t1898 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1898}) } } if hasProtoField(msg.GetRelationLocator(), "inline_data") { if msg.GetRelationLocator().GetInlineData() != nil { - _t1889 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) - result = append(result, []interface{}{"betree_locator_inline_data", _t1889}) + _t1899 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1899}) } } - _t1890 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) - result = append(result, []interface{}{"betree_locator_element_count", _t1890}) - _t1891 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) - result = append(result, []interface{}{"betree_locator_tree_height", _t1891}) + _t1900 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1900}) + _t1901 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1901}) return listSort(result) } func (p *PrettyPrinter) deconstruct_export_csv_config(msg *pb.ExportCSVConfig) [][]interface{} { result := [][]interface{}{} if msg.PartitionSize != nil { - _t1892 := p._make_value_int64(*msg.PartitionSize) - result = append(result, []interface{}{"partition_size", _t1892}) + _t1902 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1902}) } if msg.Compression != nil { - _t1893 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1893}) + _t1903 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1903}) } if msg.SyntaxHeaderRow != nil { - _t1894 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1894}) + _t1904 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1904}) } if msg.SyntaxMissingString != nil { - _t1895 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1895}) + _t1905 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1905}) } if msg.SyntaxDelim != nil { - _t1896 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1896}) + _t1906 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1906}) } if msg.SyntaxQuotechar != nil { - _t1897 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1897}) + _t1907 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1907}) } if msg.SyntaxEscapechar != nil { - _t1898 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1898}) + _t1908 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1908}) } return listSort(result) } @@ -580,51 +589,51 @@ func (p *PrettyPrinter) mask_secret_value(pair []interface{}) string { } func (p *PrettyPrinter) deconstruct_iceberg_catalog_config_scope_optional(msg *pb.IcebergCatalogConfig) *string { - var _t1899 interface{} + var _t1909 interface{} if *msg.Scope != "" { return ptr(*msg.Scope) } - _ = _t1899 + _ = _t1909 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_from_snapshot_optional(msg *pb.IcebergData) *string { - var _t1900 interface{} + var _t1910 interface{} if *msg.FromSnapshot != "" { return ptr(*msg.FromSnapshot) } - _ = _t1900 + _ = _t1910 return nil } func (p *PrettyPrinter) deconstruct_iceberg_data_to_snapshot_optional(msg *pb.IcebergData) *string { - var _t1901 interface{} + var _t1911 interface{} if *msg.ToSnapshot != "" { return ptr(*msg.ToSnapshot) } - _ = _t1901 + _ = _t1911 return nil } func (p *PrettyPrinter) deconstruct_export_iceberg_config_optional(msg *pb.ExportIcebergConfig) [][]interface{} { result := [][]interface{}{} if *msg.Prefix != "" { - _t1902 := p._make_value_string(*msg.Prefix) - result = append(result, []interface{}{"prefix", _t1902}) + _t1912 := p._make_value_string(*msg.Prefix) + result = append(result, []interface{}{"prefix", _t1912}) } if *msg.TargetFileSizeBytes != 0 { - _t1903 := p._make_value_int64(*msg.TargetFileSizeBytes) - result = append(result, []interface{}{"target_file_size_bytes", _t1903}) + _t1913 := p._make_value_int64(*msg.TargetFileSizeBytes) + result = append(result, []interface{}{"target_file_size_bytes", _t1913}) } if msg.GetCompression() != "" { - _t1904 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"compression", _t1904}) + _t1914 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"compression", _t1914}) } - var _t1905 interface{} + var _t1915 interface{} if int64(len(result)) == 0 { return nil } - _ = _t1905 + _ = _t1915 return listSort(result) } @@ -635,11 +644,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 _t1906 interface{} + var _t1916 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1906 + _ = _t1916 return nil } @@ -657,45 +666,45 @@ func (p *PrettyPrinter) deconstruct_bindings_with_arity(abs *pb.Abstraction, val // --- Pretty-print methods --- func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { - flat859 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) - if flat859 != nil { - p.write(*flat859) + flat863 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat863 != nil { + p.write(*flat863) return nil } else { _dollar_dollar := msg - var _t1700 *pb.Configure + var _t1708 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1700 = _dollar_dollar.GetConfigure() + _t1708 = _dollar_dollar.GetConfigure() } - var _t1701 *pb.Sync + var _t1709 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1701 = _dollar_dollar.GetSync() + _t1709 = _dollar_dollar.GetSync() } - fields850 := []interface{}{_t1700, _t1701, _dollar_dollar.GetEpochs()} - unwrapped_fields851 := fields850 + fields854 := []interface{}{_t1708, _t1709, _dollar_dollar.GetEpochs()} + unwrapped_fields855 := fields854 p.write("(") p.write("transaction") p.indentSexp() - field852 := unwrapped_fields851[0].(*pb.Configure) - if field852 != nil { + field856 := unwrapped_fields855[0].(*pb.Configure) + if field856 != nil { p.newline() - opt_val853 := field852 - p.pretty_configure(opt_val853) + opt_val857 := field856 + p.pretty_configure(opt_val857) } - field854 := unwrapped_fields851[1].(*pb.Sync) - if field854 != nil { + field858 := unwrapped_fields855[1].(*pb.Sync) + if field858 != nil { p.newline() - opt_val855 := field854 - p.pretty_sync(opt_val855) + opt_val859 := field858 + p.pretty_sync(opt_val859) } - field856 := unwrapped_fields851[2].([]*pb.Epoch) - if !(len(field856) == 0) { + field860 := unwrapped_fields855[2].([]*pb.Epoch) + if !(len(field860) == 0) { p.newline() - for i858, elem857 := range field856 { - if (i858 > 0) { + for i862, elem861 := range field860 { + if (i862 > 0) { p.newline() } - p.pretty_epoch(elem857) + p.pretty_epoch(elem861) } } p.dedent() @@ -705,20 +714,20 @@ func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { } func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { - flat862 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) - if flat862 != nil { - p.write(*flat862) + flat866 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat866 != nil { + p.write(*flat866) return nil } else { _dollar_dollar := msg - _t1702 := p.deconstruct_configure(_dollar_dollar) - fields860 := _t1702 - unwrapped_fields861 := fields860 + _t1710 := p.deconstruct_configure(_dollar_dollar) + fields864 := _t1710 + unwrapped_fields865 := fields864 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields861) + p.pretty_config_dict(unwrapped_fields865) p.dedent() p.write(")") } @@ -726,21 +735,21 @@ func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { } func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { - flat866 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) - if flat866 != nil { - p.write(*flat866) + flat870 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat870 != nil { + p.write(*flat870) return nil } else { - fields863 := msg + fields867 := msg p.write("{") p.indent() - if !(len(fields863) == 0) { + if !(len(fields867) == 0) { p.newline() - for i865, elem864 := range fields863 { - if (i865 > 0) { + for i869, elem868 := range fields867 { + if (i869 > 0) { p.newline() } - p.pretty_config_key_value(elem864) + p.pretty_config_key_value(elem868) } } p.dedent() @@ -750,152 +759,152 @@ func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { } func (p *PrettyPrinter) pretty_config_key_value(msg []interface{}) interface{} { - flat871 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) - if flat871 != nil { - p.write(*flat871) + flat875 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat875 != nil { + p.write(*flat875) return nil } else { _dollar_dollar := msg - fields867 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} - unwrapped_fields868 := fields867 + fields871 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} + unwrapped_fields872 := fields871 p.write(":") - field869 := unwrapped_fields868[0].(string) - p.write(field869) + field873 := unwrapped_fields872[0].(string) + p.write(field873) p.write(" ") - field870 := unwrapped_fields868[1].(*pb.Value) - p.pretty_raw_value(field870) + field874 := unwrapped_fields872[1].(*pb.Value) + p.pretty_raw_value(field874) } return nil } func (p *PrettyPrinter) pretty_raw_value(msg *pb.Value) interface{} { - flat897 := p.tryFlat(msg, func() { p.pretty_raw_value(msg) }) - if flat897 != nil { - p.write(*flat897) + flat901 := p.tryFlat(msg, func() { p.pretty_raw_value(msg) }) + if flat901 != nil { + p.write(*flat901) return nil } else { _dollar_dollar := msg - var _t1703 *pb.DateValue + var _t1711 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1703 = _dollar_dollar.GetDateValue() + _t1711 = _dollar_dollar.GetDateValue() } - deconstruct_result895 := _t1703 - if deconstruct_result895 != nil { - unwrapped896 := deconstruct_result895 - p.pretty_raw_date(unwrapped896) + deconstruct_result899 := _t1711 + if deconstruct_result899 != nil { + unwrapped900 := deconstruct_result899 + p.pretty_raw_date(unwrapped900) } else { _dollar_dollar := msg - var _t1704 *pb.DateTimeValue + var _t1712 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1704 = _dollar_dollar.GetDatetimeValue() + _t1712 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result893 := _t1704 - if deconstruct_result893 != nil { - unwrapped894 := deconstruct_result893 - p.pretty_raw_datetime(unwrapped894) + deconstruct_result897 := _t1712 + if deconstruct_result897 != nil { + unwrapped898 := deconstruct_result897 + p.pretty_raw_datetime(unwrapped898) } else { _dollar_dollar := msg - var _t1705 *string + var _t1713 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1705 = ptr(_dollar_dollar.GetStringValue()) + _t1713 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result891 := _t1705 - if deconstruct_result891 != nil { - unwrapped892 := *deconstruct_result891 - p.write(p.formatStringValue(unwrapped892)) + deconstruct_result895 := _t1713 + if deconstruct_result895 != nil { + unwrapped896 := *deconstruct_result895 + p.write(p.formatStringValue(unwrapped896)) } else { _dollar_dollar := msg - var _t1706 *int32 + var _t1714 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1706 = ptr(_dollar_dollar.GetInt32Value()) + _t1714 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result889 := _t1706 - if deconstruct_result889 != nil { - unwrapped890 := *deconstruct_result889 - p.write(fmt.Sprintf("%di32", unwrapped890)) + deconstruct_result893 := _t1714 + if deconstruct_result893 != nil { + unwrapped894 := *deconstruct_result893 + p.write(fmt.Sprintf("%di32", unwrapped894)) } else { _dollar_dollar := msg - var _t1707 *int64 + var _t1715 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1707 = ptr(_dollar_dollar.GetIntValue()) + _t1715 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result887 := _t1707 - if deconstruct_result887 != nil { - unwrapped888 := *deconstruct_result887 - p.write(fmt.Sprintf("%d", unwrapped888)) + deconstruct_result891 := _t1715 + if deconstruct_result891 != nil { + unwrapped892 := *deconstruct_result891 + p.write(fmt.Sprintf("%d", unwrapped892)) } else { _dollar_dollar := msg - var _t1708 *float32 + var _t1716 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1708 = ptr(_dollar_dollar.GetFloat32Value()) + _t1716 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result885 := _t1708 - if deconstruct_result885 != nil { - unwrapped886 := *deconstruct_result885 - p.write(formatFloat32(unwrapped886)) + deconstruct_result889 := _t1716 + if deconstruct_result889 != nil { + unwrapped890 := *deconstruct_result889 + p.write(formatFloat32(unwrapped890)) } else { _dollar_dollar := msg - var _t1709 *float64 + var _t1717 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1709 = ptr(_dollar_dollar.GetFloatValue()) + _t1717 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result883 := _t1709 - if deconstruct_result883 != nil { - unwrapped884 := *deconstruct_result883 - p.write(formatFloat64(unwrapped884)) + deconstruct_result887 := _t1717 + if deconstruct_result887 != nil { + unwrapped888 := *deconstruct_result887 + p.write(formatFloat64(unwrapped888)) } else { _dollar_dollar := msg - var _t1710 *uint32 + var _t1718 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1710 = ptr(_dollar_dollar.GetUint32Value()) + _t1718 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result881 := _t1710 - if deconstruct_result881 != nil { - unwrapped882 := *deconstruct_result881 - p.write(fmt.Sprintf("%du32", unwrapped882)) + deconstruct_result885 := _t1718 + if deconstruct_result885 != nil { + unwrapped886 := *deconstruct_result885 + p.write(fmt.Sprintf("%du32", unwrapped886)) } else { _dollar_dollar := msg - var _t1711 *pb.UInt128Value + var _t1719 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1711 = _dollar_dollar.GetUint128Value() + _t1719 = _dollar_dollar.GetUint128Value() } - deconstruct_result879 := _t1711 - if deconstruct_result879 != nil { - unwrapped880 := deconstruct_result879 - p.write(p.formatUint128(unwrapped880)) + deconstruct_result883 := _t1719 + if deconstruct_result883 != nil { + unwrapped884 := deconstruct_result883 + p.write(p.formatUint128(unwrapped884)) } else { _dollar_dollar := msg - var _t1712 *pb.Int128Value + var _t1720 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1712 = _dollar_dollar.GetInt128Value() + _t1720 = _dollar_dollar.GetInt128Value() } - deconstruct_result877 := _t1712 - if deconstruct_result877 != nil { - unwrapped878 := deconstruct_result877 - p.write(p.formatInt128(unwrapped878)) + deconstruct_result881 := _t1720 + if deconstruct_result881 != nil { + unwrapped882 := deconstruct_result881 + p.write(p.formatInt128(unwrapped882)) } else { _dollar_dollar := msg - var _t1713 *pb.DecimalValue + var _t1721 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1713 = _dollar_dollar.GetDecimalValue() + _t1721 = _dollar_dollar.GetDecimalValue() } - deconstruct_result875 := _t1713 - if deconstruct_result875 != nil { - unwrapped876 := deconstruct_result875 - p.write(p.formatDecimal(unwrapped876)) + deconstruct_result879 := _t1721 + if deconstruct_result879 != nil { + unwrapped880 := deconstruct_result879 + p.write(p.formatDecimal(unwrapped880)) } else { _dollar_dollar := msg - var _t1714 *bool + var _t1722 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1714 = ptr(_dollar_dollar.GetBooleanValue()) + _t1722 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result873 := _t1714 - if deconstruct_result873 != nil { - unwrapped874 := *deconstruct_result873 - p.pretty_boolean_value(unwrapped874) + deconstruct_result877 := _t1722 + if deconstruct_result877 != nil { + unwrapped878 := *deconstruct_result877 + p.pretty_boolean_value(unwrapped878) } else { - fields872 := msg - _ = fields872 + fields876 := msg + _ = fields876 p.write("missing") } } @@ -914,26 +923,26 @@ func (p *PrettyPrinter) pretty_raw_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_raw_date(msg *pb.DateValue) interface{} { - flat903 := p.tryFlat(msg, func() { p.pretty_raw_date(msg) }) - if flat903 != nil { - p.write(*flat903) + flat907 := p.tryFlat(msg, func() { p.pretty_raw_date(msg) }) + if flat907 != nil { + p.write(*flat907) return nil } else { _dollar_dollar := msg - fields898 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields899 := fields898 + fields902 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields903 := fields902 p.write("(") p.write("date") p.indentSexp() p.newline() - field900 := unwrapped_fields899[0].(int64) - p.write(fmt.Sprintf("%d", field900)) + field904 := unwrapped_fields903[0].(int64) + p.write(fmt.Sprintf("%d", field904)) p.newline() - field901 := unwrapped_fields899[1].(int64) - p.write(fmt.Sprintf("%d", field901)) + field905 := unwrapped_fields903[1].(int64) + p.write(fmt.Sprintf("%d", field905)) p.newline() - field902 := unwrapped_fields899[2].(int64) - p.write(fmt.Sprintf("%d", field902)) + field906 := unwrapped_fields903[2].(int64) + p.write(fmt.Sprintf("%d", field906)) p.dedent() p.write(")") } @@ -941,40 +950,40 @@ func (p *PrettyPrinter) pretty_raw_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_raw_datetime(msg *pb.DateTimeValue) interface{} { - flat914 := p.tryFlat(msg, func() { p.pretty_raw_datetime(msg) }) - if flat914 != nil { - p.write(*flat914) + flat918 := p.tryFlat(msg, func() { p.pretty_raw_datetime(msg) }) + if flat918 != nil { + p.write(*flat918) return nil } else { _dollar_dollar := msg - fields904 := []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_fields905 := fields904 + fields908 := []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_fields909 := fields908 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field906 := unwrapped_fields905[0].(int64) - p.write(fmt.Sprintf("%d", field906)) + field910 := unwrapped_fields909[0].(int64) + p.write(fmt.Sprintf("%d", field910)) p.newline() - field907 := unwrapped_fields905[1].(int64) - p.write(fmt.Sprintf("%d", field907)) + field911 := unwrapped_fields909[1].(int64) + p.write(fmt.Sprintf("%d", field911)) p.newline() - field908 := unwrapped_fields905[2].(int64) - p.write(fmt.Sprintf("%d", field908)) + field912 := unwrapped_fields909[2].(int64) + p.write(fmt.Sprintf("%d", field912)) p.newline() - field909 := unwrapped_fields905[3].(int64) - p.write(fmt.Sprintf("%d", field909)) + field913 := unwrapped_fields909[3].(int64) + p.write(fmt.Sprintf("%d", field913)) p.newline() - field910 := unwrapped_fields905[4].(int64) - p.write(fmt.Sprintf("%d", field910)) + field914 := unwrapped_fields909[4].(int64) + p.write(fmt.Sprintf("%d", field914)) p.newline() - field911 := unwrapped_fields905[5].(int64) - p.write(fmt.Sprintf("%d", field911)) - field912 := unwrapped_fields905[6].(*int64) - if field912 != nil { + field915 := unwrapped_fields909[5].(int64) + p.write(fmt.Sprintf("%d", field915)) + field916 := unwrapped_fields909[6].(*int64) + if field916 != nil { p.newline() - opt_val913 := *field912 - p.write(fmt.Sprintf("%d", opt_val913)) + opt_val917 := *field916 + p.write(fmt.Sprintf("%d", opt_val917)) } p.dedent() p.write(")") @@ -984,25 +993,25 @@ func (p *PrettyPrinter) pretty_raw_datetime(msg *pb.DateTimeValue) interface{} { func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { _dollar_dollar := msg - var _t1715 []interface{} + var _t1723 []interface{} if _dollar_dollar { - _t1715 = []interface{}{} + _t1723 = []interface{}{} } - deconstruct_result917 := _t1715 - if deconstruct_result917 != nil { - unwrapped918 := deconstruct_result917 - _ = unwrapped918 + deconstruct_result921 := _t1723 + if deconstruct_result921 != nil { + unwrapped922 := deconstruct_result921 + _ = unwrapped922 p.write("true") } else { _dollar_dollar := msg - var _t1716 []interface{} + var _t1724 []interface{} if !(_dollar_dollar) { - _t1716 = []interface{}{} + _t1724 = []interface{}{} } - deconstruct_result915 := _t1716 - if deconstruct_result915 != nil { - unwrapped916 := deconstruct_result915 - _ = unwrapped916 + deconstruct_result919 := _t1724 + if deconstruct_result919 != nil { + unwrapped920 := deconstruct_result919 + _ = unwrapped920 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -1012,24 +1021,24 @@ func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { } func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { - flat923 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) - if flat923 != nil { - p.write(*flat923) + flat927 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat927 != nil { + p.write(*flat927) return nil } else { _dollar_dollar := msg - fields919 := _dollar_dollar.GetFragments() - unwrapped_fields920 := fields919 + fields923 := _dollar_dollar.GetFragments() + unwrapped_fields924 := fields923 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields920) == 0) { + if !(len(unwrapped_fields924) == 0) { p.newline() - for i922, elem921 := range unwrapped_fields920 { - if (i922 > 0) { + for i926, elem925 := range unwrapped_fields924 { + if (i926 > 0) { p.newline() } - p.pretty_fragment_id(elem921) + p.pretty_fragment_id(elem925) } } p.dedent() @@ -1039,51 +1048,51 @@ func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { } func (p *PrettyPrinter) pretty_fragment_id(msg *pb.FragmentId) interface{} { - flat926 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) - if flat926 != nil { - p.write(*flat926) + flat930 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat930 != nil { + p.write(*flat930) return nil } else { _dollar_dollar := msg - fields924 := p.fragmentIdToString(_dollar_dollar) - unwrapped_fields925 := fields924 + fields928 := p.fragmentIdToString(_dollar_dollar) + unwrapped_fields929 := fields928 p.write(":") - p.write(unwrapped_fields925) + p.write(unwrapped_fields929) } return nil } func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { - flat933 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) - if flat933 != nil { - p.write(*flat933) + flat937 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat937 != nil { + p.write(*flat937) return nil } else { _dollar_dollar := msg - var _t1717 []*pb.Write + var _t1725 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1717 = _dollar_dollar.GetWrites() + _t1725 = _dollar_dollar.GetWrites() } - var _t1718 []*pb.Read + var _t1726 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1718 = _dollar_dollar.GetReads() + _t1726 = _dollar_dollar.GetReads() } - fields927 := []interface{}{_t1717, _t1718} - unwrapped_fields928 := fields927 + fields931 := []interface{}{_t1725, _t1726} + unwrapped_fields932 := fields931 p.write("(") p.write("epoch") p.indentSexp() - field929 := unwrapped_fields928[0].([]*pb.Write) - if field929 != nil { + field933 := unwrapped_fields932[0].([]*pb.Write) + if field933 != nil { p.newline() - opt_val930 := field929 - p.pretty_epoch_writes(opt_val930) + opt_val934 := field933 + p.pretty_epoch_writes(opt_val934) } - field931 := unwrapped_fields928[1].([]*pb.Read) - if field931 != nil { + field935 := unwrapped_fields932[1].([]*pb.Read) + if field935 != nil { p.newline() - opt_val932 := field931 - p.pretty_epoch_reads(opt_val932) + opt_val936 := field935 + p.pretty_epoch_reads(opt_val936) } p.dedent() p.write(")") @@ -1092,22 +1101,22 @@ func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { } func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { - flat937 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) - if flat937 != nil { - p.write(*flat937) + flat941 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat941 != nil { + p.write(*flat941) return nil } else { - fields934 := msg + fields938 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields934) == 0) { + if !(len(fields938) == 0) { p.newline() - for i936, elem935 := range fields934 { - if (i936 > 0) { + for i940, elem939 := range fields938 { + if (i940 > 0) { p.newline() } - p.pretty_write(elem935) + p.pretty_write(elem939) } } p.dedent() @@ -1117,50 +1126,50 @@ func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { } func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { - flat946 := p.tryFlat(msg, func() { p.pretty_write(msg) }) - if flat946 != nil { - p.write(*flat946) + flat950 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat950 != nil { + p.write(*flat950) return nil } else { _dollar_dollar := msg - var _t1719 *pb.Define + var _t1727 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1719 = _dollar_dollar.GetDefine() + _t1727 = _dollar_dollar.GetDefine() } - deconstruct_result944 := _t1719 - if deconstruct_result944 != nil { - unwrapped945 := deconstruct_result944 - p.pretty_define(unwrapped945) + deconstruct_result948 := _t1727 + if deconstruct_result948 != nil { + unwrapped949 := deconstruct_result948 + p.pretty_define(unwrapped949) } else { _dollar_dollar := msg - var _t1720 *pb.Undefine + var _t1728 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1720 = _dollar_dollar.GetUndefine() + _t1728 = _dollar_dollar.GetUndefine() } - deconstruct_result942 := _t1720 - if deconstruct_result942 != nil { - unwrapped943 := deconstruct_result942 - p.pretty_undefine(unwrapped943) + deconstruct_result946 := _t1728 + if deconstruct_result946 != nil { + unwrapped947 := deconstruct_result946 + p.pretty_undefine(unwrapped947) } else { _dollar_dollar := msg - var _t1721 *pb.Context + var _t1729 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1721 = _dollar_dollar.GetContext() + _t1729 = _dollar_dollar.GetContext() } - deconstruct_result940 := _t1721 - if deconstruct_result940 != nil { - unwrapped941 := deconstruct_result940 - p.pretty_context(unwrapped941) + deconstruct_result944 := _t1729 + if deconstruct_result944 != nil { + unwrapped945 := deconstruct_result944 + p.pretty_context(unwrapped945) } else { _dollar_dollar := msg - var _t1722 *pb.Snapshot + var _t1730 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1722 = _dollar_dollar.GetSnapshot() + _t1730 = _dollar_dollar.GetSnapshot() } - deconstruct_result938 := _t1722 - if deconstruct_result938 != nil { - unwrapped939 := deconstruct_result938 - p.pretty_snapshot(unwrapped939) + deconstruct_result942 := _t1730 + if deconstruct_result942 != nil { + unwrapped943 := deconstruct_result942 + p.pretty_snapshot(unwrapped943) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -1172,19 +1181,19 @@ func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { } func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { - flat949 := p.tryFlat(msg, func() { p.pretty_define(msg) }) - if flat949 != nil { - p.write(*flat949) + flat953 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat953 != nil { + p.write(*flat953) return nil } else { _dollar_dollar := msg - fields947 := _dollar_dollar.GetFragment() - unwrapped_fields948 := fields947 + fields951 := _dollar_dollar.GetFragment() + unwrapped_fields952 := fields951 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields948) + p.pretty_fragment(unwrapped_fields952) p.dedent() p.write(")") } @@ -1192,29 +1201,29 @@ func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { } func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { - flat956 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) - if flat956 != nil { - p.write(*flat956) + flat960 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat960 != nil { + p.write(*flat960) return nil } else { _dollar_dollar := msg p.startPrettyFragment(_dollar_dollar) - fields950 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} - unwrapped_fields951 := fields950 + fields954 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} + unwrapped_fields955 := fields954 p.write("(") p.write("fragment") p.indentSexp() p.newline() - field952 := unwrapped_fields951[0].(*pb.FragmentId) - p.pretty_new_fragment_id(field952) - field953 := unwrapped_fields951[1].([]*pb.Declaration) - if !(len(field953) == 0) { + field956 := unwrapped_fields955[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field956) + field957 := unwrapped_fields955[1].([]*pb.Declaration) + if !(len(field957) == 0) { p.newline() - for i955, elem954 := range field953 { - if (i955 > 0) { + for i959, elem958 := range field957 { + if (i959 > 0) { p.newline() } - p.pretty_declaration(elem954) + p.pretty_declaration(elem958) } } p.dedent() @@ -1224,62 +1233,62 @@ func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { } func (p *PrettyPrinter) pretty_new_fragment_id(msg *pb.FragmentId) interface{} { - flat958 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) - if flat958 != nil { - p.write(*flat958) + flat962 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat962 != nil { + p.write(*flat962) return nil } else { - fields957 := msg - p.pretty_fragment_id(fields957) + fields961 := msg + p.pretty_fragment_id(fields961) } return nil } func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { - flat967 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) - if flat967 != nil { - p.write(*flat967) + flat971 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat971 != nil { + p.write(*flat971) return nil } else { _dollar_dollar := msg - var _t1723 *pb.Def + var _t1731 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1723 = _dollar_dollar.GetDef() + _t1731 = _dollar_dollar.GetDef() } - deconstruct_result965 := _t1723 - if deconstruct_result965 != nil { - unwrapped966 := deconstruct_result965 - p.pretty_def(unwrapped966) + deconstruct_result969 := _t1731 + if deconstruct_result969 != nil { + unwrapped970 := deconstruct_result969 + p.pretty_def(unwrapped970) } else { _dollar_dollar := msg - var _t1724 *pb.Algorithm + var _t1732 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1724 = _dollar_dollar.GetAlgorithm() + _t1732 = _dollar_dollar.GetAlgorithm() } - deconstruct_result963 := _t1724 - if deconstruct_result963 != nil { - unwrapped964 := deconstruct_result963 - p.pretty_algorithm(unwrapped964) + deconstruct_result967 := _t1732 + if deconstruct_result967 != nil { + unwrapped968 := deconstruct_result967 + p.pretty_algorithm(unwrapped968) } else { _dollar_dollar := msg - var _t1725 *pb.Constraint + var _t1733 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1725 = _dollar_dollar.GetConstraint() + _t1733 = _dollar_dollar.GetConstraint() } - deconstruct_result961 := _t1725 - if deconstruct_result961 != nil { - unwrapped962 := deconstruct_result961 - p.pretty_constraint(unwrapped962) + deconstruct_result965 := _t1733 + if deconstruct_result965 != nil { + unwrapped966 := deconstruct_result965 + p.pretty_constraint(unwrapped966) } else { _dollar_dollar := msg - var _t1726 *pb.Data + var _t1734 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1726 = _dollar_dollar.GetData() + _t1734 = _dollar_dollar.GetData() } - deconstruct_result959 := _t1726 - if deconstruct_result959 != nil { - unwrapped960 := deconstruct_result959 - p.pretty_data(unwrapped960) + deconstruct_result963 := _t1734 + if deconstruct_result963 != nil { + unwrapped964 := deconstruct_result963 + p.pretty_data(unwrapped964) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1291,32 +1300,32 @@ func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { } func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { - flat974 := p.tryFlat(msg, func() { p.pretty_def(msg) }) - if flat974 != nil { - p.write(*flat974) + flat978 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat978 != nil { + p.write(*flat978) return nil } else { _dollar_dollar := msg - var _t1727 []*pb.Attribute + var _t1735 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1727 = _dollar_dollar.GetAttrs() + _t1735 = _dollar_dollar.GetAttrs() } - fields968 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1727} - unwrapped_fields969 := fields968 + fields972 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1735} + unwrapped_fields973 := fields972 p.write("(") p.write("def") p.indentSexp() p.newline() - field970 := unwrapped_fields969[0].(*pb.RelationId) - p.pretty_relation_id(field970) + field974 := unwrapped_fields973[0].(*pb.RelationId) + p.pretty_relation_id(field974) p.newline() - field971 := unwrapped_fields969[1].(*pb.Abstraction) - p.pretty_abstraction(field971) - field972 := unwrapped_fields969[2].([]*pb.Attribute) - if field972 != nil { + field975 := unwrapped_fields973[1].(*pb.Abstraction) + p.pretty_abstraction(field975) + field976 := unwrapped_fields973[2].([]*pb.Attribute) + if field976 != nil { p.newline() - opt_val973 := field972 - p.pretty_attrs(opt_val973) + opt_val977 := field976 + p.pretty_attrs(opt_val977) } p.dedent() p.write(")") @@ -1325,29 +1334,29 @@ func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { } func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { - flat979 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) - if flat979 != nil { - p.write(*flat979) + flat983 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat983 != nil { + p.write(*flat983) return nil } else { _dollar_dollar := msg - var _t1728 *string + var _t1736 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1729 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1728 = ptr(_t1729) + _t1737 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1736 = ptr(_t1737) } - deconstruct_result977 := _t1728 - if deconstruct_result977 != nil { - unwrapped978 := *deconstruct_result977 + deconstruct_result981 := _t1736 + if deconstruct_result981 != nil { + unwrapped982 := *deconstruct_result981 p.write(":") - p.write(unwrapped978) + p.write(unwrapped982) } else { _dollar_dollar := msg - _t1730 := p.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result975 := _t1730 - if deconstruct_result975 != nil { - unwrapped976 := deconstruct_result975 - p.write(p.formatUint128(unwrapped976)) + _t1738 := p.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result979 := _t1738 + if deconstruct_result979 != nil { + unwrapped980 := deconstruct_result979 + p.write(p.formatUint128(unwrapped980)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1357,22 +1366,22 @@ func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { } func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { - flat984 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) - if flat984 != nil { - p.write(*flat984) + flat988 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat988 != nil { + p.write(*flat988) return nil } else { _dollar_dollar := msg - _t1731 := p.deconstruct_bindings(_dollar_dollar) - fields980 := []interface{}{_t1731, _dollar_dollar.GetValue()} - unwrapped_fields981 := fields980 + _t1739 := p.deconstruct_bindings(_dollar_dollar) + fields984 := []interface{}{_t1739, _dollar_dollar.GetValue()} + unwrapped_fields985 := fields984 p.write("(") p.indent() - field982 := unwrapped_fields981[0].([]interface{}) - p.pretty_bindings(field982) + field986 := unwrapped_fields985[0].([]interface{}) + p.pretty_bindings(field986) p.newline() - field983 := unwrapped_fields981[1].(*pb.Formula) - p.pretty_formula(field983) + field987 := unwrapped_fields985[1].(*pb.Formula) + p.pretty_formula(field987) p.dedent() p.write(")") } @@ -1380,32 +1389,32 @@ func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { - flat992 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) - if flat992 != nil { - p.write(*flat992) + flat996 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat996 != nil { + p.write(*flat996) return nil } else { _dollar_dollar := msg - var _t1732 []*pb.Binding + var _t1740 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1732 = _dollar_dollar[1].([]*pb.Binding) + _t1740 = _dollar_dollar[1].([]*pb.Binding) } - fields985 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1732} - unwrapped_fields986 := fields985 + fields989 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1740} + unwrapped_fields990 := fields989 p.write("[") p.indent() - field987 := unwrapped_fields986[0].([]*pb.Binding) - for i989, elem988 := range field987 { - if (i989 > 0) { + field991 := unwrapped_fields990[0].([]*pb.Binding) + for i993, elem992 := range field991 { + if (i993 > 0) { p.newline() } - p.pretty_binding(elem988) + p.pretty_binding(elem992) } - field990 := unwrapped_fields986[1].([]*pb.Binding) - if field990 != nil { + field994 := unwrapped_fields990[1].([]*pb.Binding) + if field994 != nil { p.newline() - opt_val991 := field990 - p.pretty_value_bindings(opt_val991) + opt_val995 := field994 + p.pretty_value_bindings(opt_val995) } p.dedent() p.write("]") @@ -1414,168 +1423,168 @@ func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_binding(msg *pb.Binding) interface{} { - flat997 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) - if flat997 != nil { - p.write(*flat997) + flat1001 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat1001 != nil { + p.write(*flat1001) return nil } else { _dollar_dollar := msg - fields993 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} - unwrapped_fields994 := fields993 - field995 := unwrapped_fields994[0].(string) - p.write(field995) + fields997 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} + unwrapped_fields998 := fields997 + field999 := unwrapped_fields998[0].(string) + p.write(field999) p.write("::") - field996 := unwrapped_fields994[1].(*pb.Type) - p.pretty_type(field996) + field1000 := unwrapped_fields998[1].(*pb.Type) + p.pretty_type(field1000) } return nil } func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { - flat1026 := p.tryFlat(msg, func() { p.pretty_type(msg) }) - if flat1026 != nil { - p.write(*flat1026) + flat1030 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat1030 != nil { + p.write(*flat1030) return nil } else { _dollar_dollar := msg - var _t1733 *pb.UnspecifiedType + var _t1741 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1733 = _dollar_dollar.GetUnspecifiedType() + _t1741 = _dollar_dollar.GetUnspecifiedType() } - deconstruct_result1024 := _t1733 - if deconstruct_result1024 != nil { - unwrapped1025 := deconstruct_result1024 - p.pretty_unspecified_type(unwrapped1025) + deconstruct_result1028 := _t1741 + if deconstruct_result1028 != nil { + unwrapped1029 := deconstruct_result1028 + p.pretty_unspecified_type(unwrapped1029) } else { _dollar_dollar := msg - var _t1734 *pb.StringType + var _t1742 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1734 = _dollar_dollar.GetStringType() + _t1742 = _dollar_dollar.GetStringType() } - deconstruct_result1022 := _t1734 - if deconstruct_result1022 != nil { - unwrapped1023 := deconstruct_result1022 - p.pretty_string_type(unwrapped1023) + deconstruct_result1026 := _t1742 + if deconstruct_result1026 != nil { + unwrapped1027 := deconstruct_result1026 + p.pretty_string_type(unwrapped1027) } else { _dollar_dollar := msg - var _t1735 *pb.IntType + var _t1743 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1735 = _dollar_dollar.GetIntType() + _t1743 = _dollar_dollar.GetIntType() } - deconstruct_result1020 := _t1735 - if deconstruct_result1020 != nil { - unwrapped1021 := deconstruct_result1020 - p.pretty_int_type(unwrapped1021) + deconstruct_result1024 := _t1743 + if deconstruct_result1024 != nil { + unwrapped1025 := deconstruct_result1024 + p.pretty_int_type(unwrapped1025) } else { _dollar_dollar := msg - var _t1736 *pb.FloatType + var _t1744 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1736 = _dollar_dollar.GetFloatType() + _t1744 = _dollar_dollar.GetFloatType() } - deconstruct_result1018 := _t1736 - if deconstruct_result1018 != nil { - unwrapped1019 := deconstruct_result1018 - p.pretty_float_type(unwrapped1019) + deconstruct_result1022 := _t1744 + if deconstruct_result1022 != nil { + unwrapped1023 := deconstruct_result1022 + p.pretty_float_type(unwrapped1023) } else { _dollar_dollar := msg - var _t1737 *pb.UInt128Type + var _t1745 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1737 = _dollar_dollar.GetUint128Type() + _t1745 = _dollar_dollar.GetUint128Type() } - deconstruct_result1016 := _t1737 - if deconstruct_result1016 != nil { - unwrapped1017 := deconstruct_result1016 - p.pretty_uint128_type(unwrapped1017) + deconstruct_result1020 := _t1745 + if deconstruct_result1020 != nil { + unwrapped1021 := deconstruct_result1020 + p.pretty_uint128_type(unwrapped1021) } else { _dollar_dollar := msg - var _t1738 *pb.Int128Type + var _t1746 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1738 = _dollar_dollar.GetInt128Type() + _t1746 = _dollar_dollar.GetInt128Type() } - deconstruct_result1014 := _t1738 - if deconstruct_result1014 != nil { - unwrapped1015 := deconstruct_result1014 - p.pretty_int128_type(unwrapped1015) + deconstruct_result1018 := _t1746 + if deconstruct_result1018 != nil { + unwrapped1019 := deconstruct_result1018 + p.pretty_int128_type(unwrapped1019) } else { _dollar_dollar := msg - var _t1739 *pb.DateType + var _t1747 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1739 = _dollar_dollar.GetDateType() + _t1747 = _dollar_dollar.GetDateType() } - deconstruct_result1012 := _t1739 - if deconstruct_result1012 != nil { - unwrapped1013 := deconstruct_result1012 - p.pretty_date_type(unwrapped1013) + deconstruct_result1016 := _t1747 + if deconstruct_result1016 != nil { + unwrapped1017 := deconstruct_result1016 + p.pretty_date_type(unwrapped1017) } else { _dollar_dollar := msg - var _t1740 *pb.DateTimeType + var _t1748 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1740 = _dollar_dollar.GetDatetimeType() + _t1748 = _dollar_dollar.GetDatetimeType() } - deconstruct_result1010 := _t1740 - if deconstruct_result1010 != nil { - unwrapped1011 := deconstruct_result1010 - p.pretty_datetime_type(unwrapped1011) + deconstruct_result1014 := _t1748 + if deconstruct_result1014 != nil { + unwrapped1015 := deconstruct_result1014 + p.pretty_datetime_type(unwrapped1015) } else { _dollar_dollar := msg - var _t1741 *pb.MissingType + var _t1749 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1741 = _dollar_dollar.GetMissingType() + _t1749 = _dollar_dollar.GetMissingType() } - deconstruct_result1008 := _t1741 - if deconstruct_result1008 != nil { - unwrapped1009 := deconstruct_result1008 - p.pretty_missing_type(unwrapped1009) + deconstruct_result1012 := _t1749 + if deconstruct_result1012 != nil { + unwrapped1013 := deconstruct_result1012 + p.pretty_missing_type(unwrapped1013) } else { _dollar_dollar := msg - var _t1742 *pb.DecimalType + var _t1750 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1742 = _dollar_dollar.GetDecimalType() + _t1750 = _dollar_dollar.GetDecimalType() } - deconstruct_result1006 := _t1742 - if deconstruct_result1006 != nil { - unwrapped1007 := deconstruct_result1006 - p.pretty_decimal_type(unwrapped1007) + deconstruct_result1010 := _t1750 + if deconstruct_result1010 != nil { + unwrapped1011 := deconstruct_result1010 + p.pretty_decimal_type(unwrapped1011) } else { _dollar_dollar := msg - var _t1743 *pb.BooleanType + var _t1751 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1743 = _dollar_dollar.GetBooleanType() + _t1751 = _dollar_dollar.GetBooleanType() } - deconstruct_result1004 := _t1743 - if deconstruct_result1004 != nil { - unwrapped1005 := deconstruct_result1004 - p.pretty_boolean_type(unwrapped1005) + deconstruct_result1008 := _t1751 + if deconstruct_result1008 != nil { + unwrapped1009 := deconstruct_result1008 + p.pretty_boolean_type(unwrapped1009) } else { _dollar_dollar := msg - var _t1744 *pb.Int32Type + var _t1752 *pb.Int32Type if hasProtoField(_dollar_dollar, "int32_type") { - _t1744 = _dollar_dollar.GetInt32Type() + _t1752 = _dollar_dollar.GetInt32Type() } - deconstruct_result1002 := _t1744 - if deconstruct_result1002 != nil { - unwrapped1003 := deconstruct_result1002 - p.pretty_int32_type(unwrapped1003) + deconstruct_result1006 := _t1752 + if deconstruct_result1006 != nil { + unwrapped1007 := deconstruct_result1006 + p.pretty_int32_type(unwrapped1007) } else { _dollar_dollar := msg - var _t1745 *pb.Float32Type + var _t1753 *pb.Float32Type if hasProtoField(_dollar_dollar, "float32_type") { - _t1745 = _dollar_dollar.GetFloat32Type() + _t1753 = _dollar_dollar.GetFloat32Type() } - deconstruct_result1000 := _t1745 - if deconstruct_result1000 != nil { - unwrapped1001 := deconstruct_result1000 - p.pretty_float32_type(unwrapped1001) + deconstruct_result1004 := _t1753 + if deconstruct_result1004 != nil { + unwrapped1005 := deconstruct_result1004 + p.pretty_float32_type(unwrapped1005) } else { _dollar_dollar := msg - var _t1746 *pb.UInt32Type + var _t1754 *pb.UInt32Type if hasProtoField(_dollar_dollar, "uint32_type") { - _t1746 = _dollar_dollar.GetUint32Type() + _t1754 = _dollar_dollar.GetUint32Type() } - deconstruct_result998 := _t1746 - if deconstruct_result998 != nil { - unwrapped999 := deconstruct_result998 - p.pretty_uint32_type(unwrapped999) + deconstruct_result1002 := _t1754 + if deconstruct_result1002 != nil { + unwrapped1003 := deconstruct_result1002 + p.pretty_uint32_type(unwrapped1003) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1597,86 +1606,86 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields1027 := msg - _ = fields1027 + fields1031 := msg + _ = fields1031 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields1028 := msg - _ = fields1028 + fields1032 := msg + _ = fields1032 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields1029 := msg - _ = fields1029 + fields1033 := msg + _ = fields1033 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields1030 := msg - _ = fields1030 + fields1034 := msg + _ = fields1034 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields1031 := msg - _ = fields1031 + fields1035 := msg + _ = fields1035 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields1032 := msg - _ = fields1032 + fields1036 := msg + _ = fields1036 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields1033 := msg - _ = fields1033 + fields1037 := msg + _ = fields1037 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields1034 := msg - _ = fields1034 + fields1038 := msg + _ = fields1038 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields1035 := msg - _ = fields1035 + fields1039 := msg + _ = fields1039 p.write("MISSING") return nil } func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { - flat1040 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) - if flat1040 != nil { - p.write(*flat1040) + flat1044 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat1044 != nil { + p.write(*flat1044) return nil } else { _dollar_dollar := msg - fields1036 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} - unwrapped_fields1037 := fields1036 + fields1040 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} + unwrapped_fields1041 := fields1040 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field1038 := unwrapped_fields1037[0].(int64) - p.write(fmt.Sprintf("%d", field1038)) + field1042 := unwrapped_fields1041[0].(int64) + p.write(fmt.Sprintf("%d", field1042)) p.newline() - field1039 := unwrapped_fields1037[1].(int64) - p.write(fmt.Sprintf("%d", field1039)) + field1043 := unwrapped_fields1041[1].(int64) + p.write(fmt.Sprintf("%d", field1043)) p.dedent() p.write(")") } @@ -1684,48 +1693,48 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields1041 := msg - _ = fields1041 + fields1045 := msg + _ = fields1045 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_int32_type(msg *pb.Int32Type) interface{} { - fields1042 := msg - _ = fields1042 + fields1046 := msg + _ = fields1046 p.write("INT32") return nil } func (p *PrettyPrinter) pretty_float32_type(msg *pb.Float32Type) interface{} { - fields1043 := msg - _ = fields1043 + fields1047 := msg + _ = fields1047 p.write("FLOAT32") return nil } func (p *PrettyPrinter) pretty_uint32_type(msg *pb.UInt32Type) interface{} { - fields1044 := msg - _ = fields1044 + fields1048 := msg + _ = fields1048 p.write("UINT32") return nil } func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { - flat1048 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) - if flat1048 != nil { - p.write(*flat1048) + flat1052 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat1052 != nil { + p.write(*flat1052) return nil } else { - fields1045 := msg + fields1049 := msg p.write("|") - if !(len(fields1045) == 0) { + if !(len(fields1049) == 0) { p.write(" ") - for i1047, elem1046 := range fields1045 { - if (i1047 > 0) { + for i1051, elem1050 := range fields1049 { + if (i1051 > 0) { p.newline() } - p.pretty_binding(elem1046) + p.pretty_binding(elem1050) } } } @@ -1733,140 +1742,140 @@ func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { } func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { - flat1075 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) - if flat1075 != nil { - p.write(*flat1075) + flat1079 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat1079 != nil { + p.write(*flat1079) return nil } else { _dollar_dollar := msg - var _t1747 *pb.Conjunction + var _t1755 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1747 = _dollar_dollar.GetConjunction() + _t1755 = _dollar_dollar.GetConjunction() } - deconstruct_result1073 := _t1747 - if deconstruct_result1073 != nil { - unwrapped1074 := deconstruct_result1073 - p.pretty_true(unwrapped1074) + deconstruct_result1077 := _t1755 + if deconstruct_result1077 != nil { + unwrapped1078 := deconstruct_result1077 + p.pretty_true(unwrapped1078) } else { _dollar_dollar := msg - var _t1748 *pb.Disjunction + var _t1756 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1748 = _dollar_dollar.GetDisjunction() + _t1756 = _dollar_dollar.GetDisjunction() } - deconstruct_result1071 := _t1748 - if deconstruct_result1071 != nil { - unwrapped1072 := deconstruct_result1071 - p.pretty_false(unwrapped1072) + deconstruct_result1075 := _t1756 + if deconstruct_result1075 != nil { + unwrapped1076 := deconstruct_result1075 + p.pretty_false(unwrapped1076) } else { _dollar_dollar := msg - var _t1749 *pb.Exists + var _t1757 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1749 = _dollar_dollar.GetExists() + _t1757 = _dollar_dollar.GetExists() } - deconstruct_result1069 := _t1749 - if deconstruct_result1069 != nil { - unwrapped1070 := deconstruct_result1069 - p.pretty_exists(unwrapped1070) + deconstruct_result1073 := _t1757 + if deconstruct_result1073 != nil { + unwrapped1074 := deconstruct_result1073 + p.pretty_exists(unwrapped1074) } else { _dollar_dollar := msg - var _t1750 *pb.Reduce + var _t1758 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1750 = _dollar_dollar.GetReduce() + _t1758 = _dollar_dollar.GetReduce() } - deconstruct_result1067 := _t1750 - if deconstruct_result1067 != nil { - unwrapped1068 := deconstruct_result1067 - p.pretty_reduce(unwrapped1068) + deconstruct_result1071 := _t1758 + if deconstruct_result1071 != nil { + unwrapped1072 := deconstruct_result1071 + p.pretty_reduce(unwrapped1072) } else { _dollar_dollar := msg - var _t1751 *pb.Conjunction + var _t1759 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1751 = _dollar_dollar.GetConjunction() + _t1759 = _dollar_dollar.GetConjunction() } - deconstruct_result1065 := _t1751 - if deconstruct_result1065 != nil { - unwrapped1066 := deconstruct_result1065 - p.pretty_conjunction(unwrapped1066) + deconstruct_result1069 := _t1759 + if deconstruct_result1069 != nil { + unwrapped1070 := deconstruct_result1069 + p.pretty_conjunction(unwrapped1070) } else { _dollar_dollar := msg - var _t1752 *pb.Disjunction + var _t1760 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1752 = _dollar_dollar.GetDisjunction() + _t1760 = _dollar_dollar.GetDisjunction() } - deconstruct_result1063 := _t1752 - if deconstruct_result1063 != nil { - unwrapped1064 := deconstruct_result1063 - p.pretty_disjunction(unwrapped1064) + deconstruct_result1067 := _t1760 + if deconstruct_result1067 != nil { + unwrapped1068 := deconstruct_result1067 + p.pretty_disjunction(unwrapped1068) } else { _dollar_dollar := msg - var _t1753 *pb.Not + var _t1761 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1753 = _dollar_dollar.GetNot() + _t1761 = _dollar_dollar.GetNot() } - deconstruct_result1061 := _t1753 - if deconstruct_result1061 != nil { - unwrapped1062 := deconstruct_result1061 - p.pretty_not(unwrapped1062) + deconstruct_result1065 := _t1761 + if deconstruct_result1065 != nil { + unwrapped1066 := deconstruct_result1065 + p.pretty_not(unwrapped1066) } else { _dollar_dollar := msg - var _t1754 *pb.FFI + var _t1762 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1754 = _dollar_dollar.GetFfi() + _t1762 = _dollar_dollar.GetFfi() } - deconstruct_result1059 := _t1754 - if deconstruct_result1059 != nil { - unwrapped1060 := deconstruct_result1059 - p.pretty_ffi(unwrapped1060) + deconstruct_result1063 := _t1762 + if deconstruct_result1063 != nil { + unwrapped1064 := deconstruct_result1063 + p.pretty_ffi(unwrapped1064) } else { _dollar_dollar := msg - var _t1755 *pb.Atom + var _t1763 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1755 = _dollar_dollar.GetAtom() + _t1763 = _dollar_dollar.GetAtom() } - deconstruct_result1057 := _t1755 - if deconstruct_result1057 != nil { - unwrapped1058 := deconstruct_result1057 - p.pretty_atom(unwrapped1058) + deconstruct_result1061 := _t1763 + if deconstruct_result1061 != nil { + unwrapped1062 := deconstruct_result1061 + p.pretty_atom(unwrapped1062) } else { _dollar_dollar := msg - var _t1756 *pb.Pragma + var _t1764 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1756 = _dollar_dollar.GetPragma() + _t1764 = _dollar_dollar.GetPragma() } - deconstruct_result1055 := _t1756 - if deconstruct_result1055 != nil { - unwrapped1056 := deconstruct_result1055 - p.pretty_pragma(unwrapped1056) + deconstruct_result1059 := _t1764 + if deconstruct_result1059 != nil { + unwrapped1060 := deconstruct_result1059 + p.pretty_pragma(unwrapped1060) } else { _dollar_dollar := msg - var _t1757 *pb.Primitive + var _t1765 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1757 = _dollar_dollar.GetPrimitive() + _t1765 = _dollar_dollar.GetPrimitive() } - deconstruct_result1053 := _t1757 - if deconstruct_result1053 != nil { - unwrapped1054 := deconstruct_result1053 - p.pretty_primitive(unwrapped1054) + deconstruct_result1057 := _t1765 + if deconstruct_result1057 != nil { + unwrapped1058 := deconstruct_result1057 + p.pretty_primitive(unwrapped1058) } else { _dollar_dollar := msg - var _t1758 *pb.RelAtom + var _t1766 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1758 = _dollar_dollar.GetRelAtom() + _t1766 = _dollar_dollar.GetRelAtom() } - deconstruct_result1051 := _t1758 - if deconstruct_result1051 != nil { - unwrapped1052 := deconstruct_result1051 - p.pretty_rel_atom(unwrapped1052) + deconstruct_result1055 := _t1766 + if deconstruct_result1055 != nil { + unwrapped1056 := deconstruct_result1055 + p.pretty_rel_atom(unwrapped1056) } else { _dollar_dollar := msg - var _t1759 *pb.Cast + var _t1767 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1759 = _dollar_dollar.GetCast() + _t1767 = _dollar_dollar.GetCast() } - deconstruct_result1049 := _t1759 - if deconstruct_result1049 != nil { - unwrapped1050 := deconstruct_result1049 - p.pretty_cast(unwrapped1050) + deconstruct_result1053 := _t1767 + if deconstruct_result1053 != nil { + unwrapped1054 := deconstruct_result1053 + p.pretty_cast(unwrapped1054) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1887,8 +1896,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields1076 := msg - _ = fields1076 + fields1080 := msg + _ = fields1080 p.write("(") p.write("true") p.write(")") @@ -1896,8 +1905,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields1077 := msg - _ = fields1077 + fields1081 := msg + _ = fields1081 p.write("(") p.write("false") p.write(")") @@ -1905,24 +1914,24 @@ func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { - flat1082 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) - if flat1082 != nil { - p.write(*flat1082) + flat1086 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat1086 != nil { + p.write(*flat1086) return nil } else { _dollar_dollar := msg - _t1760 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - fields1078 := []interface{}{_t1760, _dollar_dollar.GetBody().GetValue()} - unwrapped_fields1079 := fields1078 + _t1768 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + fields1082 := []interface{}{_t1768, _dollar_dollar.GetBody().GetValue()} + unwrapped_fields1083 := fields1082 p.write("(") p.write("exists") p.indentSexp() p.newline() - field1080 := unwrapped_fields1079[0].([]interface{}) - p.pretty_bindings(field1080) + field1084 := unwrapped_fields1083[0].([]interface{}) + p.pretty_bindings(field1084) p.newline() - field1081 := unwrapped_fields1079[1].(*pb.Formula) - p.pretty_formula(field1081) + field1085 := unwrapped_fields1083[1].(*pb.Formula) + p.pretty_formula(field1085) p.dedent() p.write(")") } @@ -1930,26 +1939,26 @@ func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { } func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { - flat1088 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) - if flat1088 != nil { - p.write(*flat1088) + flat1092 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat1092 != nil { + p.write(*flat1092) return nil } else { _dollar_dollar := msg - fields1083 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} - unwrapped_fields1084 := fields1083 + fields1087 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} + unwrapped_fields1088 := fields1087 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field1085 := unwrapped_fields1084[0].(*pb.Abstraction) - p.pretty_abstraction(field1085) + field1089 := unwrapped_fields1088[0].(*pb.Abstraction) + p.pretty_abstraction(field1089) p.newline() - field1086 := unwrapped_fields1084[1].(*pb.Abstraction) - p.pretty_abstraction(field1086) + field1090 := unwrapped_fields1088[1].(*pb.Abstraction) + p.pretty_abstraction(field1090) p.newline() - field1087 := unwrapped_fields1084[2].([]*pb.Term) - p.pretty_terms(field1087) + field1091 := unwrapped_fields1088[2].([]*pb.Term) + p.pretty_terms(field1091) p.dedent() p.write(")") } @@ -1957,22 +1966,22 @@ func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { } func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { - flat1092 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) - if flat1092 != nil { - p.write(*flat1092) + flat1096 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat1096 != nil { + p.write(*flat1096) return nil } else { - fields1089 := msg + fields1093 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields1089) == 0) { + if !(len(fields1093) == 0) { p.newline() - for i1091, elem1090 := range fields1089 { - if (i1091 > 0) { + for i1095, elem1094 := range fields1093 { + if (i1095 > 0) { p.newline() } - p.pretty_term(elem1090) + p.pretty_term(elem1094) } } p.dedent() @@ -1982,30 +1991,30 @@ func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { } func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { - flat1097 := p.tryFlat(msg, func() { p.pretty_term(msg) }) - if flat1097 != nil { - p.write(*flat1097) + flat1101 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat1101 != nil { + p.write(*flat1101) return nil } else { _dollar_dollar := msg - var _t1761 *pb.Var + var _t1769 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1761 = _dollar_dollar.GetVar() + _t1769 = _dollar_dollar.GetVar() } - deconstruct_result1095 := _t1761 - if deconstruct_result1095 != nil { - unwrapped1096 := deconstruct_result1095 - p.pretty_var(unwrapped1096) + deconstruct_result1099 := _t1769 + if deconstruct_result1099 != nil { + unwrapped1100 := deconstruct_result1099 + p.pretty_var(unwrapped1100) } else { _dollar_dollar := msg - var _t1762 *pb.Value + var _t1770 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1762 = _dollar_dollar.GetConstant() + _t1770 = _dollar_dollar.GetConstant() } - deconstruct_result1093 := _t1762 - if deconstruct_result1093 != nil { - unwrapped1094 := deconstruct_result1093 - p.pretty_value(unwrapped1094) + deconstruct_result1097 := _t1770 + if deconstruct_result1097 != nil { + unwrapped1098 := deconstruct_result1097 + p.pretty_value(unwrapped1098) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -2015,147 +2024,147 @@ func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { } func (p *PrettyPrinter) pretty_var(msg *pb.Var) interface{} { - flat1100 := p.tryFlat(msg, func() { p.pretty_var(msg) }) - if flat1100 != nil { - p.write(*flat1100) + flat1104 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat1104 != nil { + p.write(*flat1104) return nil } else { _dollar_dollar := msg - fields1098 := _dollar_dollar.GetName() - unwrapped_fields1099 := fields1098 - p.write(unwrapped_fields1099) + fields1102 := _dollar_dollar.GetName() + unwrapped_fields1103 := fields1102 + p.write(unwrapped_fields1103) } return nil } func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { - flat1126 := p.tryFlat(msg, func() { p.pretty_value(msg) }) - if flat1126 != nil { - p.write(*flat1126) + flat1130 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat1130 != nil { + p.write(*flat1130) return nil } else { _dollar_dollar := msg - var _t1763 *pb.DateValue + var _t1771 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1763 = _dollar_dollar.GetDateValue() + _t1771 = _dollar_dollar.GetDateValue() } - deconstruct_result1124 := _t1763 - if deconstruct_result1124 != nil { - unwrapped1125 := deconstruct_result1124 - p.pretty_date(unwrapped1125) + deconstruct_result1128 := _t1771 + if deconstruct_result1128 != nil { + unwrapped1129 := deconstruct_result1128 + p.pretty_date(unwrapped1129) } else { _dollar_dollar := msg - var _t1764 *pb.DateTimeValue + var _t1772 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1764 = _dollar_dollar.GetDatetimeValue() + _t1772 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result1122 := _t1764 - if deconstruct_result1122 != nil { - unwrapped1123 := deconstruct_result1122 - p.pretty_datetime(unwrapped1123) + deconstruct_result1126 := _t1772 + if deconstruct_result1126 != nil { + unwrapped1127 := deconstruct_result1126 + p.pretty_datetime(unwrapped1127) } else { _dollar_dollar := msg - var _t1765 *string + var _t1773 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1765 = ptr(_dollar_dollar.GetStringValue()) + _t1773 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result1120 := _t1765 - if deconstruct_result1120 != nil { - unwrapped1121 := *deconstruct_result1120 - p.write(p.formatStringValue(unwrapped1121)) + deconstruct_result1124 := _t1773 + if deconstruct_result1124 != nil { + unwrapped1125 := *deconstruct_result1124 + p.write(p.formatStringValue(unwrapped1125)) } else { _dollar_dollar := msg - var _t1766 *int32 + var _t1774 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1766 = ptr(_dollar_dollar.GetInt32Value()) + _t1774 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result1118 := _t1766 - if deconstruct_result1118 != nil { - unwrapped1119 := *deconstruct_result1118 - p.write(fmt.Sprintf("%di32", unwrapped1119)) + deconstruct_result1122 := _t1774 + if deconstruct_result1122 != nil { + unwrapped1123 := *deconstruct_result1122 + p.write(fmt.Sprintf("%di32", unwrapped1123)) } else { _dollar_dollar := msg - var _t1767 *int64 + var _t1775 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1767 = ptr(_dollar_dollar.GetIntValue()) + _t1775 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result1116 := _t1767 - if deconstruct_result1116 != nil { - unwrapped1117 := *deconstruct_result1116 - p.write(fmt.Sprintf("%d", unwrapped1117)) + deconstruct_result1120 := _t1775 + if deconstruct_result1120 != nil { + unwrapped1121 := *deconstruct_result1120 + p.write(fmt.Sprintf("%d", unwrapped1121)) } else { _dollar_dollar := msg - var _t1768 *float32 + var _t1776 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1768 = ptr(_dollar_dollar.GetFloat32Value()) + _t1776 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result1114 := _t1768 - if deconstruct_result1114 != nil { - unwrapped1115 := *deconstruct_result1114 - p.write(formatFloat32(unwrapped1115)) + deconstruct_result1118 := _t1776 + if deconstruct_result1118 != nil { + unwrapped1119 := *deconstruct_result1118 + p.write(formatFloat32(unwrapped1119)) } else { _dollar_dollar := msg - var _t1769 *float64 + var _t1777 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1769 = ptr(_dollar_dollar.GetFloatValue()) + _t1777 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result1112 := _t1769 - if deconstruct_result1112 != nil { - unwrapped1113 := *deconstruct_result1112 - p.write(formatFloat64(unwrapped1113)) + deconstruct_result1116 := _t1777 + if deconstruct_result1116 != nil { + unwrapped1117 := *deconstruct_result1116 + p.write(formatFloat64(unwrapped1117)) } else { _dollar_dollar := msg - var _t1770 *uint32 + var _t1778 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1770 = ptr(_dollar_dollar.GetUint32Value()) + _t1778 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result1110 := _t1770 - if deconstruct_result1110 != nil { - unwrapped1111 := *deconstruct_result1110 - p.write(fmt.Sprintf("%du32", unwrapped1111)) + deconstruct_result1114 := _t1778 + if deconstruct_result1114 != nil { + unwrapped1115 := *deconstruct_result1114 + p.write(fmt.Sprintf("%du32", unwrapped1115)) } else { _dollar_dollar := msg - var _t1771 *pb.UInt128Value + var _t1779 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1771 = _dollar_dollar.GetUint128Value() + _t1779 = _dollar_dollar.GetUint128Value() } - deconstruct_result1108 := _t1771 - if deconstruct_result1108 != nil { - unwrapped1109 := deconstruct_result1108 - p.write(p.formatUint128(unwrapped1109)) + deconstruct_result1112 := _t1779 + if deconstruct_result1112 != nil { + unwrapped1113 := deconstruct_result1112 + p.write(p.formatUint128(unwrapped1113)) } else { _dollar_dollar := msg - var _t1772 *pb.Int128Value + var _t1780 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1772 = _dollar_dollar.GetInt128Value() + _t1780 = _dollar_dollar.GetInt128Value() } - deconstruct_result1106 := _t1772 - if deconstruct_result1106 != nil { - unwrapped1107 := deconstruct_result1106 - p.write(p.formatInt128(unwrapped1107)) + deconstruct_result1110 := _t1780 + if deconstruct_result1110 != nil { + unwrapped1111 := deconstruct_result1110 + p.write(p.formatInt128(unwrapped1111)) } else { _dollar_dollar := msg - var _t1773 *pb.DecimalValue + var _t1781 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1773 = _dollar_dollar.GetDecimalValue() + _t1781 = _dollar_dollar.GetDecimalValue() } - deconstruct_result1104 := _t1773 - if deconstruct_result1104 != nil { - unwrapped1105 := deconstruct_result1104 - p.write(p.formatDecimal(unwrapped1105)) + deconstruct_result1108 := _t1781 + if deconstruct_result1108 != nil { + unwrapped1109 := deconstruct_result1108 + p.write(p.formatDecimal(unwrapped1109)) } else { _dollar_dollar := msg - var _t1774 *bool + var _t1782 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1774 = ptr(_dollar_dollar.GetBooleanValue()) + _t1782 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result1102 := _t1774 - if deconstruct_result1102 != nil { - unwrapped1103 := *deconstruct_result1102 - p.pretty_boolean_value(unwrapped1103) + deconstruct_result1106 := _t1782 + if deconstruct_result1106 != nil { + unwrapped1107 := *deconstruct_result1106 + p.pretty_boolean_value(unwrapped1107) } else { - fields1101 := msg - _ = fields1101 + fields1105 := msg + _ = fields1105 p.write("missing") } } @@ -2174,26 +2183,26 @@ func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { - flat1132 := p.tryFlat(msg, func() { p.pretty_date(msg) }) - if flat1132 != nil { - p.write(*flat1132) + flat1136 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat1136 != nil { + p.write(*flat1136) return nil } else { _dollar_dollar := msg - fields1127 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields1128 := fields1127 + fields1131 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields1132 := fields1131 p.write("(") p.write("date") p.indentSexp() p.newline() - field1129 := unwrapped_fields1128[0].(int64) - p.write(fmt.Sprintf("%d", field1129)) + field1133 := unwrapped_fields1132[0].(int64) + p.write(fmt.Sprintf("%d", field1133)) p.newline() - field1130 := unwrapped_fields1128[1].(int64) - p.write(fmt.Sprintf("%d", field1130)) + field1134 := unwrapped_fields1132[1].(int64) + p.write(fmt.Sprintf("%d", field1134)) p.newline() - field1131 := unwrapped_fields1128[2].(int64) - p.write(fmt.Sprintf("%d", field1131)) + field1135 := unwrapped_fields1132[2].(int64) + p.write(fmt.Sprintf("%d", field1135)) p.dedent() p.write(")") } @@ -2201,40 +2210,40 @@ func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { - flat1143 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) - if flat1143 != nil { - p.write(*flat1143) + flat1147 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat1147 != nil { + p.write(*flat1147) return nil } else { _dollar_dollar := msg - fields1133 := []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_fields1134 := fields1133 + fields1137 := []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_fields1138 := fields1137 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field1135 := unwrapped_fields1134[0].(int64) - p.write(fmt.Sprintf("%d", field1135)) + field1139 := unwrapped_fields1138[0].(int64) + p.write(fmt.Sprintf("%d", field1139)) p.newline() - field1136 := unwrapped_fields1134[1].(int64) - p.write(fmt.Sprintf("%d", field1136)) + field1140 := unwrapped_fields1138[1].(int64) + p.write(fmt.Sprintf("%d", field1140)) p.newline() - field1137 := unwrapped_fields1134[2].(int64) - p.write(fmt.Sprintf("%d", field1137)) + field1141 := unwrapped_fields1138[2].(int64) + p.write(fmt.Sprintf("%d", field1141)) p.newline() - field1138 := unwrapped_fields1134[3].(int64) - p.write(fmt.Sprintf("%d", field1138)) + field1142 := unwrapped_fields1138[3].(int64) + p.write(fmt.Sprintf("%d", field1142)) p.newline() - field1139 := unwrapped_fields1134[4].(int64) - p.write(fmt.Sprintf("%d", field1139)) + field1143 := unwrapped_fields1138[4].(int64) + p.write(fmt.Sprintf("%d", field1143)) p.newline() - field1140 := unwrapped_fields1134[5].(int64) - p.write(fmt.Sprintf("%d", field1140)) - field1141 := unwrapped_fields1134[6].(*int64) - if field1141 != nil { + field1144 := unwrapped_fields1138[5].(int64) + p.write(fmt.Sprintf("%d", field1144)) + field1145 := unwrapped_fields1138[6].(*int64) + if field1145 != nil { p.newline() - opt_val1142 := *field1141 - p.write(fmt.Sprintf("%d", opt_val1142)) + opt_val1146 := *field1145 + p.write(fmt.Sprintf("%d", opt_val1146)) } p.dedent() p.write(")") @@ -2243,24 +2252,24 @@ func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { } func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { - flat1148 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) - if flat1148 != nil { - p.write(*flat1148) + flat1152 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat1152 != nil { + p.write(*flat1152) return nil } else { _dollar_dollar := msg - fields1144 := _dollar_dollar.GetArgs() - unwrapped_fields1145 := fields1144 + fields1148 := _dollar_dollar.GetArgs() + unwrapped_fields1149 := fields1148 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields1145) == 0) { + if !(len(unwrapped_fields1149) == 0) { p.newline() - for i1147, elem1146 := range unwrapped_fields1145 { - if (i1147 > 0) { + for i1151, elem1150 := range unwrapped_fields1149 { + if (i1151 > 0) { p.newline() } - p.pretty_formula(elem1146) + p.pretty_formula(elem1150) } } p.dedent() @@ -2270,24 +2279,24 @@ func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { - flat1153 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) - if flat1153 != nil { - p.write(*flat1153) + flat1157 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat1157 != nil { + p.write(*flat1157) return nil } else { _dollar_dollar := msg - fields1149 := _dollar_dollar.GetArgs() - unwrapped_fields1150 := fields1149 + fields1153 := _dollar_dollar.GetArgs() + unwrapped_fields1154 := fields1153 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields1150) == 0) { + if !(len(unwrapped_fields1154) == 0) { p.newline() - for i1152, elem1151 := range unwrapped_fields1150 { - if (i1152 > 0) { + for i1156, elem1155 := range unwrapped_fields1154 { + if (i1156 > 0) { p.newline() } - p.pretty_formula(elem1151) + p.pretty_formula(elem1155) } } p.dedent() @@ -2297,19 +2306,19 @@ func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { - flat1156 := p.tryFlat(msg, func() { p.pretty_not(msg) }) - if flat1156 != nil { - p.write(*flat1156) + flat1160 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat1160 != nil { + p.write(*flat1160) return nil } else { _dollar_dollar := msg - fields1154 := _dollar_dollar.GetArg() - unwrapped_fields1155 := fields1154 + fields1158 := _dollar_dollar.GetArg() + unwrapped_fields1159 := fields1158 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields1155) + p.pretty_formula(unwrapped_fields1159) p.dedent() p.write(")") } @@ -2317,26 +2326,26 @@ func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { } func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { - flat1162 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) - if flat1162 != nil { - p.write(*flat1162) + flat1166 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat1166 != nil { + p.write(*flat1166) return nil } else { _dollar_dollar := msg - fields1157 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} - unwrapped_fields1158 := fields1157 + fields1161 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} + unwrapped_fields1162 := fields1161 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field1159 := unwrapped_fields1158[0].(string) - p.pretty_name(field1159) + field1163 := unwrapped_fields1162[0].(string) + p.pretty_name(field1163) p.newline() - field1160 := unwrapped_fields1158[1].([]*pb.Abstraction) - p.pretty_ffi_args(field1160) + field1164 := unwrapped_fields1162[1].([]*pb.Abstraction) + p.pretty_ffi_args(field1164) p.newline() - field1161 := unwrapped_fields1158[2].([]*pb.Term) - p.pretty_terms(field1161) + field1165 := unwrapped_fields1162[2].([]*pb.Term) + p.pretty_terms(field1165) p.dedent() p.write(")") } @@ -2344,35 +2353,35 @@ func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { } func (p *PrettyPrinter) pretty_name(msg string) interface{} { - flat1164 := p.tryFlat(msg, func() { p.pretty_name(msg) }) - if flat1164 != nil { - p.write(*flat1164) + flat1168 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat1168 != nil { + p.write(*flat1168) return nil } else { - fields1163 := msg + fields1167 := msg p.write(":") - p.write(fields1163) + p.write(fields1167) } return nil } func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { - flat1168 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) - if flat1168 != nil { - p.write(*flat1168) + flat1172 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat1172 != nil { + p.write(*flat1172) return nil } else { - fields1165 := msg + fields1169 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields1165) == 0) { + if !(len(fields1169) == 0) { p.newline() - for i1167, elem1166 := range fields1165 { - if (i1167 > 0) { + for i1171, elem1170 := range fields1169 { + if (i1171 > 0) { p.newline() } - p.pretty_abstraction(elem1166) + p.pretty_abstraction(elem1170) } } p.dedent() @@ -2382,28 +2391,28 @@ func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { - flat1175 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) - if flat1175 != nil { - p.write(*flat1175) + flat1179 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat1179 != nil { + p.write(*flat1179) return nil } else { _dollar_dollar := msg - fields1169 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1170 := fields1169 + fields1173 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1174 := fields1173 p.write("(") p.write("atom") p.indentSexp() p.newline() - field1171 := unwrapped_fields1170[0].(*pb.RelationId) - p.pretty_relation_id(field1171) - field1172 := unwrapped_fields1170[1].([]*pb.Term) - if !(len(field1172) == 0) { + field1175 := unwrapped_fields1174[0].(*pb.RelationId) + p.pretty_relation_id(field1175) + field1176 := unwrapped_fields1174[1].([]*pb.Term) + if !(len(field1176) == 0) { p.newline() - for i1174, elem1173 := range field1172 { - if (i1174 > 0) { + for i1178, elem1177 := range field1176 { + if (i1178 > 0) { p.newline() } - p.pretty_term(elem1173) + p.pretty_term(elem1177) } } p.dedent() @@ -2413,28 +2422,28 @@ func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { } func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { - flat1182 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) - if flat1182 != nil { - p.write(*flat1182) + flat1186 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat1186 != nil { + p.write(*flat1186) return nil } else { _dollar_dollar := msg - fields1176 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1177 := fields1176 + fields1180 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1181 := fields1180 p.write("(") p.write("pragma") p.indentSexp() p.newline() - field1178 := unwrapped_fields1177[0].(string) - p.pretty_name(field1178) - field1179 := unwrapped_fields1177[1].([]*pb.Term) - if !(len(field1179) == 0) { + field1182 := unwrapped_fields1181[0].(string) + p.pretty_name(field1182) + field1183 := unwrapped_fields1181[1].([]*pb.Term) + if !(len(field1183) == 0) { p.newline() - for i1181, elem1180 := range field1179 { - if (i1181 > 0) { + for i1185, elem1184 := range field1183 { + if (i1185 > 0) { p.newline() } - p.pretty_term(elem1180) + p.pretty_term(elem1184) } } p.dedent() @@ -2444,109 +2453,109 @@ func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { } func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { - flat1198 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) - if flat1198 != nil { - p.write(*flat1198) + flat1202 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat1202 != nil { + p.write(*flat1202) return nil } else { _dollar_dollar := msg - var _t1775 []interface{} + var _t1783 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1775 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1783 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1197 := _t1775 - if guard_result1197 != nil { + guard_result1201 := _t1783 + if guard_result1201 != nil { p.pretty_eq(msg) } else { _dollar_dollar := msg - var _t1776 []interface{} + var _t1784 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1776 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1784 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1196 := _t1776 - if guard_result1196 != nil { + guard_result1200 := _t1784 + if guard_result1200 != nil { p.pretty_lt(msg) } else { _dollar_dollar := msg - var _t1777 []interface{} + var _t1785 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1777 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1785 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1195 := _t1777 - if guard_result1195 != nil { + guard_result1199 := _t1785 + if guard_result1199 != nil { p.pretty_lt_eq(msg) } else { _dollar_dollar := msg - var _t1778 []interface{} + var _t1786 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1778 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1786 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1194 := _t1778 - if guard_result1194 != nil { + guard_result1198 := _t1786 + if guard_result1198 != nil { p.pretty_gt(msg) } else { _dollar_dollar := msg - var _t1779 []interface{} + var _t1787 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1779 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1787 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result1193 := _t1779 - if guard_result1193 != nil { + guard_result1197 := _t1787 + if guard_result1197 != nil { p.pretty_gt_eq(msg) } else { _dollar_dollar := msg - var _t1780 []interface{} + var _t1788 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1780 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1788 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1192 := _t1780 - if guard_result1192 != nil { + guard_result1196 := _t1788 + if guard_result1196 != nil { p.pretty_add(msg) } else { _dollar_dollar := msg - var _t1781 []interface{} + var _t1789 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1781 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1789 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1191 := _t1781 - if guard_result1191 != nil { + guard_result1195 := _t1789 + if guard_result1195 != nil { p.pretty_minus(msg) } else { _dollar_dollar := msg - var _t1782 []interface{} + var _t1790 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1782 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1790 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1190 := _t1782 - if guard_result1190 != nil { + guard_result1194 := _t1790 + if guard_result1194 != nil { p.pretty_multiply(msg) } else { _dollar_dollar := msg - var _t1783 []interface{} + var _t1791 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1783 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1791 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result1189 := _t1783 - if guard_result1189 != nil { + guard_result1193 := _t1791 + if guard_result1193 != nil { p.pretty_divide(msg) } else { _dollar_dollar := msg - fields1183 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1184 := fields1183 + fields1187 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1188 := fields1187 p.write("(") p.write("primitive") p.indentSexp() p.newline() - field1185 := unwrapped_fields1184[0].(string) - p.pretty_name(field1185) - field1186 := unwrapped_fields1184[1].([]*pb.RelTerm) - if !(len(field1186) == 0) { + field1189 := unwrapped_fields1188[0].(string) + p.pretty_name(field1189) + field1190 := unwrapped_fields1188[1].([]*pb.RelTerm) + if !(len(field1190) == 0) { p.newline() - for i1188, elem1187 := range field1186 { - if (i1188 > 0) { + for i1192, elem1191 := range field1190 { + if (i1192 > 0) { p.newline() } - p.pretty_rel_term(elem1187) + p.pretty_rel_term(elem1191) } } p.dedent() @@ -2565,27 +2574,27 @@ func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { - flat1203 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) - if flat1203 != nil { - p.write(*flat1203) + flat1207 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat1207 != nil { + p.write(*flat1207) return nil } else { _dollar_dollar := msg - var _t1784 []interface{} + var _t1792 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1784 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1792 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1199 := _t1784 - unwrapped_fields1200 := fields1199 + fields1203 := _t1792 + unwrapped_fields1204 := fields1203 p.write("(") p.write("=") p.indentSexp() p.newline() - field1201 := unwrapped_fields1200[0].(*pb.Term) - p.pretty_term(field1201) + field1205 := unwrapped_fields1204[0].(*pb.Term) + p.pretty_term(field1205) p.newline() - field1202 := unwrapped_fields1200[1].(*pb.Term) - p.pretty_term(field1202) + field1206 := unwrapped_fields1204[1].(*pb.Term) + p.pretty_term(field1206) p.dedent() p.write(")") } @@ -2593,27 +2602,27 @@ func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { - flat1208 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) - if flat1208 != nil { - p.write(*flat1208) + flat1212 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat1212 != nil { + p.write(*flat1212) return nil } else { _dollar_dollar := msg - var _t1785 []interface{} + var _t1793 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1785 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1793 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1204 := _t1785 - unwrapped_fields1205 := fields1204 + fields1208 := _t1793 + unwrapped_fields1209 := fields1208 p.write("(") p.write("<") p.indentSexp() p.newline() - field1206 := unwrapped_fields1205[0].(*pb.Term) - p.pretty_term(field1206) + field1210 := unwrapped_fields1209[0].(*pb.Term) + p.pretty_term(field1210) p.newline() - field1207 := unwrapped_fields1205[1].(*pb.Term) - p.pretty_term(field1207) + field1211 := unwrapped_fields1209[1].(*pb.Term) + p.pretty_term(field1211) p.dedent() p.write(")") } @@ -2621,27 +2630,27 @@ func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { - flat1213 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) - if flat1213 != nil { - p.write(*flat1213) + flat1217 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat1217 != nil { + p.write(*flat1217) return nil } else { _dollar_dollar := msg - var _t1786 []interface{} + var _t1794 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1786 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1794 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1209 := _t1786 - unwrapped_fields1210 := fields1209 + fields1213 := _t1794 + unwrapped_fields1214 := fields1213 p.write("(") p.write("<=") p.indentSexp() p.newline() - field1211 := unwrapped_fields1210[0].(*pb.Term) - p.pretty_term(field1211) + field1215 := unwrapped_fields1214[0].(*pb.Term) + p.pretty_term(field1215) p.newline() - field1212 := unwrapped_fields1210[1].(*pb.Term) - p.pretty_term(field1212) + field1216 := unwrapped_fields1214[1].(*pb.Term) + p.pretty_term(field1216) p.dedent() p.write(")") } @@ -2649,27 +2658,27 @@ func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { - flat1218 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) - if flat1218 != nil { - p.write(*flat1218) + flat1222 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat1222 != nil { + p.write(*flat1222) return nil } else { _dollar_dollar := msg - var _t1787 []interface{} + var _t1795 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1787 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1795 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1214 := _t1787 - unwrapped_fields1215 := fields1214 + fields1218 := _t1795 + unwrapped_fields1219 := fields1218 p.write("(") p.write(">") p.indentSexp() p.newline() - field1216 := unwrapped_fields1215[0].(*pb.Term) - p.pretty_term(field1216) + field1220 := unwrapped_fields1219[0].(*pb.Term) + p.pretty_term(field1220) p.newline() - field1217 := unwrapped_fields1215[1].(*pb.Term) - p.pretty_term(field1217) + field1221 := unwrapped_fields1219[1].(*pb.Term) + p.pretty_term(field1221) p.dedent() p.write(")") } @@ -2677,27 +2686,27 @@ func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { - flat1223 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) - if flat1223 != nil { - p.write(*flat1223) + flat1227 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat1227 != nil { + p.write(*flat1227) return nil } else { _dollar_dollar := msg - var _t1788 []interface{} + var _t1796 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1788 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1796 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields1219 := _t1788 - unwrapped_fields1220 := fields1219 + fields1223 := _t1796 + unwrapped_fields1224 := fields1223 p.write("(") p.write(">=") p.indentSexp() p.newline() - field1221 := unwrapped_fields1220[0].(*pb.Term) - p.pretty_term(field1221) + field1225 := unwrapped_fields1224[0].(*pb.Term) + p.pretty_term(field1225) p.newline() - field1222 := unwrapped_fields1220[1].(*pb.Term) - p.pretty_term(field1222) + field1226 := unwrapped_fields1224[1].(*pb.Term) + p.pretty_term(field1226) p.dedent() p.write(")") } @@ -2705,30 +2714,30 @@ func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { - flat1229 := p.tryFlat(msg, func() { p.pretty_add(msg) }) - if flat1229 != nil { - p.write(*flat1229) + flat1233 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat1233 != nil { + p.write(*flat1233) return nil } else { _dollar_dollar := msg - var _t1789 []interface{} + var _t1797 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1789 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1797 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1224 := _t1789 - unwrapped_fields1225 := fields1224 + fields1228 := _t1797 + unwrapped_fields1229 := fields1228 p.write("(") p.write("+") p.indentSexp() p.newline() - field1226 := unwrapped_fields1225[0].(*pb.Term) - p.pretty_term(field1226) + field1230 := unwrapped_fields1229[0].(*pb.Term) + p.pretty_term(field1230) p.newline() - field1227 := unwrapped_fields1225[1].(*pb.Term) - p.pretty_term(field1227) + field1231 := unwrapped_fields1229[1].(*pb.Term) + p.pretty_term(field1231) p.newline() - field1228 := unwrapped_fields1225[2].(*pb.Term) - p.pretty_term(field1228) + field1232 := unwrapped_fields1229[2].(*pb.Term) + p.pretty_term(field1232) p.dedent() p.write(")") } @@ -2736,30 +2745,30 @@ func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { - flat1235 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) - if flat1235 != nil { - p.write(*flat1235) + flat1239 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat1239 != nil { + p.write(*flat1239) return nil } else { _dollar_dollar := msg - var _t1790 []interface{} + var _t1798 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1790 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1798 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1230 := _t1790 - unwrapped_fields1231 := fields1230 + fields1234 := _t1798 + unwrapped_fields1235 := fields1234 p.write("(") p.write("-") p.indentSexp() p.newline() - field1232 := unwrapped_fields1231[0].(*pb.Term) - p.pretty_term(field1232) + field1236 := unwrapped_fields1235[0].(*pb.Term) + p.pretty_term(field1236) p.newline() - field1233 := unwrapped_fields1231[1].(*pb.Term) - p.pretty_term(field1233) + field1237 := unwrapped_fields1235[1].(*pb.Term) + p.pretty_term(field1237) p.newline() - field1234 := unwrapped_fields1231[2].(*pb.Term) - p.pretty_term(field1234) + field1238 := unwrapped_fields1235[2].(*pb.Term) + p.pretty_term(field1238) p.dedent() p.write(")") } @@ -2767,30 +2776,30 @@ func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { - flat1241 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) - if flat1241 != nil { - p.write(*flat1241) + flat1245 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat1245 != nil { + p.write(*flat1245) return nil } else { _dollar_dollar := msg - var _t1791 []interface{} + var _t1799 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1791 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1799 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1236 := _t1791 - unwrapped_fields1237 := fields1236 + fields1240 := _t1799 + unwrapped_fields1241 := fields1240 p.write("(") p.write("*") p.indentSexp() p.newline() - field1238 := unwrapped_fields1237[0].(*pb.Term) - p.pretty_term(field1238) + field1242 := unwrapped_fields1241[0].(*pb.Term) + p.pretty_term(field1242) p.newline() - field1239 := unwrapped_fields1237[1].(*pb.Term) - p.pretty_term(field1239) + field1243 := unwrapped_fields1241[1].(*pb.Term) + p.pretty_term(field1243) p.newline() - field1240 := unwrapped_fields1237[2].(*pb.Term) - p.pretty_term(field1240) + field1244 := unwrapped_fields1241[2].(*pb.Term) + p.pretty_term(field1244) p.dedent() p.write(")") } @@ -2798,30 +2807,30 @@ func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { - flat1247 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) - if flat1247 != nil { - p.write(*flat1247) + flat1251 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat1251 != nil { + p.write(*flat1251) return nil } else { _dollar_dollar := msg - var _t1792 []interface{} + var _t1800 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1792 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1800 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1242 := _t1792 - unwrapped_fields1243 := fields1242 + fields1246 := _t1800 + unwrapped_fields1247 := fields1246 p.write("(") p.write("/") p.indentSexp() p.newline() - field1244 := unwrapped_fields1243[0].(*pb.Term) - p.pretty_term(field1244) + field1248 := unwrapped_fields1247[0].(*pb.Term) + p.pretty_term(field1248) p.newline() - field1245 := unwrapped_fields1243[1].(*pb.Term) - p.pretty_term(field1245) + field1249 := unwrapped_fields1247[1].(*pb.Term) + p.pretty_term(field1249) p.newline() - field1246 := unwrapped_fields1243[2].(*pb.Term) - p.pretty_term(field1246) + field1250 := unwrapped_fields1247[2].(*pb.Term) + p.pretty_term(field1250) p.dedent() p.write(")") } @@ -2829,30 +2838,30 @@ func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { - flat1252 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) - if flat1252 != nil { - p.write(*flat1252) + flat1256 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat1256 != nil { + p.write(*flat1256) return nil } else { _dollar_dollar := msg - var _t1793 *pb.Value + var _t1801 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1793 = _dollar_dollar.GetSpecializedValue() + _t1801 = _dollar_dollar.GetSpecializedValue() } - deconstruct_result1250 := _t1793 - if deconstruct_result1250 != nil { - unwrapped1251 := deconstruct_result1250 - p.pretty_specialized_value(unwrapped1251) + deconstruct_result1254 := _t1801 + if deconstruct_result1254 != nil { + unwrapped1255 := deconstruct_result1254 + p.pretty_specialized_value(unwrapped1255) } else { _dollar_dollar := msg - var _t1794 *pb.Term + var _t1802 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1794 = _dollar_dollar.GetTerm() + _t1802 = _dollar_dollar.GetTerm() } - deconstruct_result1248 := _t1794 - if deconstruct_result1248 != nil { - unwrapped1249 := deconstruct_result1248 - p.pretty_term(unwrapped1249) + deconstruct_result1252 := _t1802 + if deconstruct_result1252 != nil { + unwrapped1253 := deconstruct_result1252 + p.pretty_term(unwrapped1253) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2862,41 +2871,41 @@ func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { } func (p *PrettyPrinter) pretty_specialized_value(msg *pb.Value) interface{} { - flat1254 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) - if flat1254 != nil { - p.write(*flat1254) + flat1258 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat1258 != nil { + p.write(*flat1258) return nil } else { - fields1253 := msg + fields1257 := msg p.write("#") - p.pretty_raw_value(fields1253) + p.pretty_raw_value(fields1257) } return nil } func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { - flat1261 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) - if flat1261 != nil { - p.write(*flat1261) + flat1265 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat1265 != nil { + p.write(*flat1265) return nil } else { _dollar_dollar := msg - fields1255 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1256 := fields1255 + fields1259 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1260 := fields1259 p.write("(") p.write("relatom") p.indentSexp() p.newline() - field1257 := unwrapped_fields1256[0].(string) - p.pretty_name(field1257) - field1258 := unwrapped_fields1256[1].([]*pb.RelTerm) - if !(len(field1258) == 0) { + field1261 := unwrapped_fields1260[0].(string) + p.pretty_name(field1261) + field1262 := unwrapped_fields1260[1].([]*pb.RelTerm) + if !(len(field1262) == 0) { p.newline() - for i1260, elem1259 := range field1258 { - if (i1260 > 0) { + for i1264, elem1263 := range field1262 { + if (i1264 > 0) { p.newline() } - p.pretty_rel_term(elem1259) + p.pretty_rel_term(elem1263) } } p.dedent() @@ -2906,23 +2915,23 @@ func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { } func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { - flat1266 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) - if flat1266 != nil { - p.write(*flat1266) + flat1270 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1270 != nil { + p.write(*flat1270) return nil } else { _dollar_dollar := msg - fields1262 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} - unwrapped_fields1263 := fields1262 + fields1266 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} + unwrapped_fields1267 := fields1266 p.write("(") p.write("cast") p.indentSexp() p.newline() - field1264 := unwrapped_fields1263[0].(*pb.Term) - p.pretty_term(field1264) + field1268 := unwrapped_fields1267[0].(*pb.Term) + p.pretty_term(field1268) p.newline() - field1265 := unwrapped_fields1263[1].(*pb.Term) - p.pretty_term(field1265) + field1269 := unwrapped_fields1267[1].(*pb.Term) + p.pretty_term(field1269) p.dedent() p.write(")") } @@ -2930,22 +2939,22 @@ func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { } func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { - flat1270 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) - if flat1270 != nil { - p.write(*flat1270) + flat1274 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1274 != nil { + p.write(*flat1274) return nil } else { - fields1267 := msg + fields1271 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields1267) == 0) { + if !(len(fields1271) == 0) { p.newline() - for i1269, elem1268 := range fields1267 { - if (i1269 > 0) { + for i1273, elem1272 := range fields1271 { + if (i1273 > 0) { p.newline() } - p.pretty_attribute(elem1268) + p.pretty_attribute(elem1272) } } p.dedent() @@ -2955,28 +2964,28 @@ func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { - flat1277 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) - if flat1277 != nil { - p.write(*flat1277) + flat1281 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1281 != nil { + p.write(*flat1281) return nil } else { _dollar_dollar := msg - fields1271 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} - unwrapped_fields1272 := fields1271 + fields1275 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} + unwrapped_fields1276 := fields1275 p.write("(") p.write("attribute") p.indentSexp() p.newline() - field1273 := unwrapped_fields1272[0].(string) - p.pretty_name(field1273) - field1274 := unwrapped_fields1272[1].([]*pb.Value) - if !(len(field1274) == 0) { + field1277 := unwrapped_fields1276[0].(string) + p.pretty_name(field1277) + field1278 := unwrapped_fields1276[1].([]*pb.Value) + if !(len(field1278) == 0) { p.newline() - for i1276, elem1275 := range field1274 { - if (i1276 > 0) { + for i1280, elem1279 := range field1278 { + if (i1280 > 0) { p.newline() } - p.pretty_raw_value(elem1275) + p.pretty_raw_value(elem1279) } } p.dedent() @@ -2986,39 +2995,39 @@ func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { - flat1286 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) - if flat1286 != nil { - p.write(*flat1286) + flat1290 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1290 != nil { + p.write(*flat1290) return nil } else { _dollar_dollar := msg - var _t1795 []*pb.Attribute + var _t1803 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1795 = _dollar_dollar.GetAttrs() + _t1803 = _dollar_dollar.GetAttrs() } - fields1278 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1795} - unwrapped_fields1279 := fields1278 + fields1282 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody(), _t1803} + unwrapped_fields1283 := fields1282 p.write("(") p.write("algorithm") p.indentSexp() - field1280 := unwrapped_fields1279[0].([]*pb.RelationId) - if !(len(field1280) == 0) { + field1284 := unwrapped_fields1283[0].([]*pb.RelationId) + if !(len(field1284) == 0) { p.newline() - for i1282, elem1281 := range field1280 { - if (i1282 > 0) { + for i1286, elem1285 := range field1284 { + if (i1286 > 0) { p.newline() } - p.pretty_relation_id(elem1281) + p.pretty_relation_id(elem1285) } } p.newline() - field1283 := unwrapped_fields1279[1].(*pb.Script) - p.pretty_script(field1283) - field1284 := unwrapped_fields1279[2].([]*pb.Attribute) - if field1284 != nil { + field1287 := unwrapped_fields1283[1].(*pb.Script) + p.pretty_script(field1287) + field1288 := unwrapped_fields1283[2].([]*pb.Attribute) + if field1288 != nil { p.newline() - opt_val1285 := field1284 - p.pretty_attrs(opt_val1285) + opt_val1289 := field1288 + p.pretty_attrs(opt_val1289) } p.dedent() p.write(")") @@ -3027,24 +3036,24 @@ func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { } func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { - flat1291 := p.tryFlat(msg, func() { p.pretty_script(msg) }) - if flat1291 != nil { - p.write(*flat1291) + flat1295 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1295 != nil { + p.write(*flat1295) return nil } else { _dollar_dollar := msg - fields1287 := _dollar_dollar.GetConstructs() - unwrapped_fields1288 := fields1287 + fields1291 := _dollar_dollar.GetConstructs() + unwrapped_fields1292 := fields1291 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1288) == 0) { + if !(len(unwrapped_fields1292) == 0) { p.newline() - for i1290, elem1289 := range unwrapped_fields1288 { - if (i1290 > 0) { + for i1294, elem1293 := range unwrapped_fields1292 { + if (i1294 > 0) { p.newline() } - p.pretty_construct(elem1289) + p.pretty_construct(elem1293) } } p.dedent() @@ -3054,30 +3063,30 @@ func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { } func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { - flat1296 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) - if flat1296 != nil { - p.write(*flat1296) + flat1300 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1300 != nil { + p.write(*flat1300) return nil } else { _dollar_dollar := msg - var _t1796 *pb.Loop + var _t1804 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1796 = _dollar_dollar.GetLoop() + _t1804 = _dollar_dollar.GetLoop() } - deconstruct_result1294 := _t1796 - if deconstruct_result1294 != nil { - unwrapped1295 := deconstruct_result1294 - p.pretty_loop(unwrapped1295) + deconstruct_result1298 := _t1804 + if deconstruct_result1298 != nil { + unwrapped1299 := deconstruct_result1298 + p.pretty_loop(unwrapped1299) } else { _dollar_dollar := msg - var _t1797 *pb.Instruction + var _t1805 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1797 = _dollar_dollar.GetInstruction() + _t1805 = _dollar_dollar.GetInstruction() } - deconstruct_result1292 := _t1797 - if deconstruct_result1292 != nil { - unwrapped1293 := deconstruct_result1292 - p.pretty_instruction(unwrapped1293) + deconstruct_result1296 := _t1805 + if deconstruct_result1296 != nil { + unwrapped1297 := deconstruct_result1296 + p.pretty_instruction(unwrapped1297) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -3087,32 +3096,32 @@ func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { } func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { - flat1303 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) - if flat1303 != nil { - p.write(*flat1303) + flat1307 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1307 != nil { + p.write(*flat1307) return nil } else { _dollar_dollar := msg - var _t1798 []*pb.Attribute + var _t1806 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1798 = _dollar_dollar.GetAttrs() + _t1806 = _dollar_dollar.GetAttrs() } - fields1297 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1798} - unwrapped_fields1298 := fields1297 + fields1301 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody(), _t1806} + unwrapped_fields1302 := fields1301 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1299 := unwrapped_fields1298[0].([]*pb.Instruction) - p.pretty_init(field1299) + field1303 := unwrapped_fields1302[0].([]*pb.Instruction) + p.pretty_init(field1303) p.newline() - field1300 := unwrapped_fields1298[1].(*pb.Script) - p.pretty_script(field1300) - field1301 := unwrapped_fields1298[2].([]*pb.Attribute) - if field1301 != nil { + field1304 := unwrapped_fields1302[1].(*pb.Script) + p.pretty_script(field1304) + field1305 := unwrapped_fields1302[2].([]*pb.Attribute) + if field1305 != nil { p.newline() - opt_val1302 := field1301 - p.pretty_attrs(opt_val1302) + opt_val1306 := field1305 + p.pretty_attrs(opt_val1306) } p.dedent() p.write(")") @@ -3121,22 +3130,22 @@ func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { } func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { - flat1307 := p.tryFlat(msg, func() { p.pretty_init(msg) }) - if flat1307 != nil { - p.write(*flat1307) + flat1311 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1311 != nil { + p.write(*flat1311) return nil } else { - fields1304 := msg + fields1308 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1304) == 0) { + if !(len(fields1308) == 0) { p.newline() - for i1306, elem1305 := range fields1304 { - if (i1306 > 0) { + for i1310, elem1309 := range fields1308 { + if (i1310 > 0) { p.newline() } - p.pretty_instruction(elem1305) + p.pretty_instruction(elem1309) } } p.dedent() @@ -3146,60 +3155,60 @@ func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { - flat1318 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) - if flat1318 != nil { - p.write(*flat1318) + flat1322 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1322 != nil { + p.write(*flat1322) return nil } else { _dollar_dollar := msg - var _t1799 *pb.Assign + var _t1807 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1799 = _dollar_dollar.GetAssign() + _t1807 = _dollar_dollar.GetAssign() } - deconstruct_result1316 := _t1799 - if deconstruct_result1316 != nil { - unwrapped1317 := deconstruct_result1316 - p.pretty_assign(unwrapped1317) + deconstruct_result1320 := _t1807 + if deconstruct_result1320 != nil { + unwrapped1321 := deconstruct_result1320 + p.pretty_assign(unwrapped1321) } else { _dollar_dollar := msg - var _t1800 *pb.Upsert + var _t1808 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1800 = _dollar_dollar.GetUpsert() + _t1808 = _dollar_dollar.GetUpsert() } - deconstruct_result1314 := _t1800 - if deconstruct_result1314 != nil { - unwrapped1315 := deconstruct_result1314 - p.pretty_upsert(unwrapped1315) + deconstruct_result1318 := _t1808 + if deconstruct_result1318 != nil { + unwrapped1319 := deconstruct_result1318 + p.pretty_upsert(unwrapped1319) } else { _dollar_dollar := msg - var _t1801 *pb.Break + var _t1809 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1801 = _dollar_dollar.GetBreak() + _t1809 = _dollar_dollar.GetBreak() } - deconstruct_result1312 := _t1801 - if deconstruct_result1312 != nil { - unwrapped1313 := deconstruct_result1312 - p.pretty_break(unwrapped1313) + deconstruct_result1316 := _t1809 + if deconstruct_result1316 != nil { + unwrapped1317 := deconstruct_result1316 + p.pretty_break(unwrapped1317) } else { _dollar_dollar := msg - var _t1802 *pb.MonoidDef + var _t1810 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1802 = _dollar_dollar.GetMonoidDef() + _t1810 = _dollar_dollar.GetMonoidDef() } - deconstruct_result1310 := _t1802 - if deconstruct_result1310 != nil { - unwrapped1311 := deconstruct_result1310 - p.pretty_monoid_def(unwrapped1311) + deconstruct_result1314 := _t1810 + if deconstruct_result1314 != nil { + unwrapped1315 := deconstruct_result1314 + p.pretty_monoid_def(unwrapped1315) } else { _dollar_dollar := msg - var _t1803 *pb.MonusDef + var _t1811 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1803 = _dollar_dollar.GetMonusDef() + _t1811 = _dollar_dollar.GetMonusDef() } - deconstruct_result1308 := _t1803 - if deconstruct_result1308 != nil { - unwrapped1309 := deconstruct_result1308 - p.pretty_monus_def(unwrapped1309) + deconstruct_result1312 := _t1811 + if deconstruct_result1312 != nil { + unwrapped1313 := deconstruct_result1312 + p.pretty_monus_def(unwrapped1313) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -3212,32 +3221,32 @@ func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { - flat1325 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) - if flat1325 != nil { - p.write(*flat1325) + flat1329 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1329 != nil { + p.write(*flat1329) return nil } else { _dollar_dollar := msg - var _t1804 []*pb.Attribute + var _t1812 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1804 = _dollar_dollar.GetAttrs() + _t1812 = _dollar_dollar.GetAttrs() } - fields1319 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1804} - unwrapped_fields1320 := fields1319 + fields1323 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1812} + unwrapped_fields1324 := fields1323 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1321 := unwrapped_fields1320[0].(*pb.RelationId) - p.pretty_relation_id(field1321) + field1325 := unwrapped_fields1324[0].(*pb.RelationId) + p.pretty_relation_id(field1325) p.newline() - field1322 := unwrapped_fields1320[1].(*pb.Abstraction) - p.pretty_abstraction(field1322) - field1323 := unwrapped_fields1320[2].([]*pb.Attribute) - if field1323 != nil { + field1326 := unwrapped_fields1324[1].(*pb.Abstraction) + p.pretty_abstraction(field1326) + field1327 := unwrapped_fields1324[2].([]*pb.Attribute) + if field1327 != nil { p.newline() - opt_val1324 := field1323 - p.pretty_attrs(opt_val1324) + opt_val1328 := field1327 + p.pretty_attrs(opt_val1328) } p.dedent() p.write(")") @@ -3246,32 +3255,32 @@ func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { } func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { - flat1332 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) - if flat1332 != nil { - p.write(*flat1332) + flat1336 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1336 != nil { + p.write(*flat1336) return nil } else { _dollar_dollar := msg - var _t1805 []*pb.Attribute + var _t1813 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1805 = _dollar_dollar.GetAttrs() + _t1813 = _dollar_dollar.GetAttrs() } - fields1326 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1805} - unwrapped_fields1327 := fields1326 + fields1330 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1813} + unwrapped_fields1331 := fields1330 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1328 := unwrapped_fields1327[0].(*pb.RelationId) - p.pretty_relation_id(field1328) + field1332 := unwrapped_fields1331[0].(*pb.RelationId) + p.pretty_relation_id(field1332) p.newline() - field1329 := unwrapped_fields1327[1].([]interface{}) - p.pretty_abstraction_with_arity(field1329) - field1330 := unwrapped_fields1327[2].([]*pb.Attribute) - if field1330 != nil { + field1333 := unwrapped_fields1331[1].([]interface{}) + p.pretty_abstraction_with_arity(field1333) + field1334 := unwrapped_fields1331[2].([]*pb.Attribute) + if field1334 != nil { p.newline() - opt_val1331 := field1330 - p.pretty_attrs(opt_val1331) + opt_val1335 := field1334 + p.pretty_attrs(opt_val1335) } p.dedent() p.write(")") @@ -3280,22 +3289,22 @@ func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { } func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interface{} { - flat1337 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) - if flat1337 != nil { - p.write(*flat1337) + flat1341 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1341 != nil { + p.write(*flat1341) return nil } else { _dollar_dollar := msg - _t1806 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) - fields1333 := []interface{}{_t1806, _dollar_dollar[0].(*pb.Abstraction).GetValue()} - unwrapped_fields1334 := fields1333 + _t1814 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + fields1337 := []interface{}{_t1814, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + unwrapped_fields1338 := fields1337 p.write("(") p.indent() - field1335 := unwrapped_fields1334[0].([]interface{}) - p.pretty_bindings(field1335) + field1339 := unwrapped_fields1338[0].([]interface{}) + p.pretty_bindings(field1339) p.newline() - field1336 := unwrapped_fields1334[1].(*pb.Formula) - p.pretty_formula(field1336) + field1340 := unwrapped_fields1338[1].(*pb.Formula) + p.pretty_formula(field1340) p.dedent() p.write(")") } @@ -3303,32 +3312,32 @@ func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { - flat1344 := p.tryFlat(msg, func() { p.pretty_break(msg) }) - if flat1344 != nil { - p.write(*flat1344) + flat1348 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1348 != nil { + p.write(*flat1348) return nil } else { _dollar_dollar := msg - var _t1807 []*pb.Attribute + var _t1815 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1807 = _dollar_dollar.GetAttrs() + _t1815 = _dollar_dollar.GetAttrs() } - fields1338 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1807} - unwrapped_fields1339 := fields1338 + fields1342 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1815} + unwrapped_fields1343 := fields1342 p.write("(") p.write("break") p.indentSexp() p.newline() - field1340 := unwrapped_fields1339[0].(*pb.RelationId) - p.pretty_relation_id(field1340) + field1344 := unwrapped_fields1343[0].(*pb.RelationId) + p.pretty_relation_id(field1344) p.newline() - field1341 := unwrapped_fields1339[1].(*pb.Abstraction) - p.pretty_abstraction(field1341) - field1342 := unwrapped_fields1339[2].([]*pb.Attribute) - if field1342 != nil { + field1345 := unwrapped_fields1343[1].(*pb.Abstraction) + p.pretty_abstraction(field1345) + field1346 := unwrapped_fields1343[2].([]*pb.Attribute) + if field1346 != nil { p.newline() - opt_val1343 := field1342 - p.pretty_attrs(opt_val1343) + opt_val1347 := field1346 + p.pretty_attrs(opt_val1347) } p.dedent() p.write(")") @@ -3337,35 +3346,35 @@ func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { } func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { - flat1352 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) - if flat1352 != nil { - p.write(*flat1352) + flat1356 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1356 != nil { + p.write(*flat1356) return nil } else { _dollar_dollar := msg - var _t1808 []*pb.Attribute + var _t1816 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1808 = _dollar_dollar.GetAttrs() + _t1816 = _dollar_dollar.GetAttrs() } - fields1345 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1808} - unwrapped_fields1346 := fields1345 + fields1349 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1816} + unwrapped_fields1350 := fields1349 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1347 := unwrapped_fields1346[0].(*pb.Monoid) - p.pretty_monoid(field1347) + field1351 := unwrapped_fields1350[0].(*pb.Monoid) + p.pretty_monoid(field1351) p.newline() - field1348 := unwrapped_fields1346[1].(*pb.RelationId) - p.pretty_relation_id(field1348) + field1352 := unwrapped_fields1350[1].(*pb.RelationId) + p.pretty_relation_id(field1352) p.newline() - field1349 := unwrapped_fields1346[2].([]interface{}) - p.pretty_abstraction_with_arity(field1349) - field1350 := unwrapped_fields1346[3].([]*pb.Attribute) - if field1350 != nil { + field1353 := unwrapped_fields1350[2].([]interface{}) + p.pretty_abstraction_with_arity(field1353) + field1354 := unwrapped_fields1350[3].([]*pb.Attribute) + if field1354 != nil { p.newline() - opt_val1351 := field1350 - p.pretty_attrs(opt_val1351) + opt_val1355 := field1354 + p.pretty_attrs(opt_val1355) } p.dedent() p.write(")") @@ -3374,50 +3383,50 @@ func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { } func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { - flat1361 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) - if flat1361 != nil { - p.write(*flat1361) + flat1365 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1365 != nil { + p.write(*flat1365) return nil } else { _dollar_dollar := msg - var _t1809 *pb.OrMonoid + var _t1817 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1809 = _dollar_dollar.GetOrMonoid() + _t1817 = _dollar_dollar.GetOrMonoid() } - deconstruct_result1359 := _t1809 - if deconstruct_result1359 != nil { - unwrapped1360 := deconstruct_result1359 - p.pretty_or_monoid(unwrapped1360) + deconstruct_result1363 := _t1817 + if deconstruct_result1363 != nil { + unwrapped1364 := deconstruct_result1363 + p.pretty_or_monoid(unwrapped1364) } else { _dollar_dollar := msg - var _t1810 *pb.MinMonoid + var _t1818 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1810 = _dollar_dollar.GetMinMonoid() + _t1818 = _dollar_dollar.GetMinMonoid() } - deconstruct_result1357 := _t1810 - if deconstruct_result1357 != nil { - unwrapped1358 := deconstruct_result1357 - p.pretty_min_monoid(unwrapped1358) + deconstruct_result1361 := _t1818 + if deconstruct_result1361 != nil { + unwrapped1362 := deconstruct_result1361 + p.pretty_min_monoid(unwrapped1362) } else { _dollar_dollar := msg - var _t1811 *pb.MaxMonoid + var _t1819 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1811 = _dollar_dollar.GetMaxMonoid() + _t1819 = _dollar_dollar.GetMaxMonoid() } - deconstruct_result1355 := _t1811 - if deconstruct_result1355 != nil { - unwrapped1356 := deconstruct_result1355 - p.pretty_max_monoid(unwrapped1356) + deconstruct_result1359 := _t1819 + if deconstruct_result1359 != nil { + unwrapped1360 := deconstruct_result1359 + p.pretty_max_monoid(unwrapped1360) } else { _dollar_dollar := msg - var _t1812 *pb.SumMonoid + var _t1820 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1812 = _dollar_dollar.GetSumMonoid() + _t1820 = _dollar_dollar.GetSumMonoid() } - deconstruct_result1353 := _t1812 - if deconstruct_result1353 != nil { - unwrapped1354 := deconstruct_result1353 - p.pretty_sum_monoid(unwrapped1354) + deconstruct_result1357 := _t1820 + if deconstruct_result1357 != nil { + unwrapped1358 := deconstruct_result1357 + p.pretty_sum_monoid(unwrapped1358) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -3429,8 +3438,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1362 := msg - _ = fields1362 + fields1366 := msg + _ = fields1366 p.write("(") p.write("or") p.write(")") @@ -3438,19 +3447,19 @@ func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { } func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { - flat1365 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) - if flat1365 != nil { - p.write(*flat1365) + flat1369 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1369 != nil { + p.write(*flat1369) return nil } else { _dollar_dollar := msg - fields1363 := _dollar_dollar.GetType() - unwrapped_fields1364 := fields1363 + fields1367 := _dollar_dollar.GetType() + unwrapped_fields1368 := fields1367 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1364) + p.pretty_type(unwrapped_fields1368) p.dedent() p.write(")") } @@ -3458,19 +3467,19 @@ func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { } func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { - flat1368 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) - if flat1368 != nil { - p.write(*flat1368) + flat1372 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1372 != nil { + p.write(*flat1372) return nil } else { _dollar_dollar := msg - fields1366 := _dollar_dollar.GetType() - unwrapped_fields1367 := fields1366 + fields1370 := _dollar_dollar.GetType() + unwrapped_fields1371 := fields1370 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1367) + p.pretty_type(unwrapped_fields1371) p.dedent() p.write(")") } @@ -3478,19 +3487,19 @@ func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { } func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { - flat1371 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) - if flat1371 != nil { - p.write(*flat1371) + flat1375 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1375 != nil { + p.write(*flat1375) return nil } else { _dollar_dollar := msg - fields1369 := _dollar_dollar.GetType() - unwrapped_fields1370 := fields1369 + fields1373 := _dollar_dollar.GetType() + unwrapped_fields1374 := fields1373 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1370) + p.pretty_type(unwrapped_fields1374) p.dedent() p.write(")") } @@ -3498,35 +3507,35 @@ func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { } func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { - flat1379 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) - if flat1379 != nil { - p.write(*flat1379) + flat1383 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1383 != nil { + p.write(*flat1383) return nil } else { _dollar_dollar := msg - var _t1813 []*pb.Attribute + var _t1821 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1813 = _dollar_dollar.GetAttrs() + _t1821 = _dollar_dollar.GetAttrs() } - fields1372 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1813} - unwrapped_fields1373 := fields1372 + fields1376 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1821} + unwrapped_fields1377 := fields1376 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1374 := unwrapped_fields1373[0].(*pb.Monoid) - p.pretty_monoid(field1374) + field1378 := unwrapped_fields1377[0].(*pb.Monoid) + p.pretty_monoid(field1378) p.newline() - field1375 := unwrapped_fields1373[1].(*pb.RelationId) - p.pretty_relation_id(field1375) + field1379 := unwrapped_fields1377[1].(*pb.RelationId) + p.pretty_relation_id(field1379) p.newline() - field1376 := unwrapped_fields1373[2].([]interface{}) - p.pretty_abstraction_with_arity(field1376) - field1377 := unwrapped_fields1373[3].([]*pb.Attribute) - if field1377 != nil { + field1380 := unwrapped_fields1377[2].([]interface{}) + p.pretty_abstraction_with_arity(field1380) + field1381 := unwrapped_fields1377[3].([]*pb.Attribute) + if field1381 != nil { p.newline() - opt_val1378 := field1377 - p.pretty_attrs(opt_val1378) + opt_val1382 := field1381 + p.pretty_attrs(opt_val1382) } p.dedent() p.write(")") @@ -3535,29 +3544,29 @@ func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { } func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { - flat1386 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) - if flat1386 != nil { - p.write(*flat1386) + flat1390 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1390 != nil { + p.write(*flat1390) return nil } else { _dollar_dollar := msg - fields1380 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} - unwrapped_fields1381 := fields1380 + fields1384 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} + unwrapped_fields1385 := fields1384 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1382 := unwrapped_fields1381[0].(*pb.RelationId) - p.pretty_relation_id(field1382) + field1386 := unwrapped_fields1385[0].(*pb.RelationId) + p.pretty_relation_id(field1386) p.newline() - field1383 := unwrapped_fields1381[1].(*pb.Abstraction) - p.pretty_abstraction(field1383) + field1387 := unwrapped_fields1385[1].(*pb.Abstraction) + p.pretty_abstraction(field1387) p.newline() - field1384 := unwrapped_fields1381[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1384) + field1388 := unwrapped_fields1385[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1388) p.newline() - field1385 := unwrapped_fields1381[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1385) + field1389 := unwrapped_fields1385[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1389) p.dedent() p.write(")") } @@ -3565,22 +3574,22 @@ func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { } func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interface{} { - flat1390 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) - if flat1390 != nil { - p.write(*flat1390) + flat1394 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1394 != nil { + p.write(*flat1394) return nil } else { - fields1387 := msg + fields1391 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1387) == 0) { + if !(len(fields1391) == 0) { p.newline() - for i1389, elem1388 := range fields1387 { - if (i1389 > 0) { + for i1393, elem1392 := range fields1391 { + if (i1393 > 0) { p.newline() } - p.pretty_var(elem1388) + p.pretty_var(elem1392) } } p.dedent() @@ -3590,22 +3599,22 @@ func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interfa } func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) interface{} { - flat1394 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) - if flat1394 != nil { - p.write(*flat1394) + flat1398 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1398 != nil { + p.write(*flat1398) return nil } else { - fields1391 := msg + fields1395 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1391) == 0) { + if !(len(fields1395) == 0) { p.newline() - for i1393, elem1392 := range fields1391 { - if (i1393 > 0) { + for i1397, elem1396 := range fields1395 { + if (i1397 > 0) { p.newline() } - p.pretty_var(elem1392) + p.pretty_var(elem1396) } } p.dedent() @@ -3615,50 +3624,50 @@ func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) inter } func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { - flat1403 := p.tryFlat(msg, func() { p.pretty_data(msg) }) - if flat1403 != nil { - p.write(*flat1403) + flat1407 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1407 != nil { + p.write(*flat1407) return nil } else { _dollar_dollar := msg - var _t1814 *pb.EDB + var _t1822 *pb.EDB if hasProtoField(_dollar_dollar, "edb") { - _t1814 = _dollar_dollar.GetEdb() + _t1822 = _dollar_dollar.GetEdb() } - deconstruct_result1401 := _t1814 - if deconstruct_result1401 != nil { - unwrapped1402 := deconstruct_result1401 - p.pretty_edb(unwrapped1402) + deconstruct_result1405 := _t1822 + if deconstruct_result1405 != nil { + unwrapped1406 := deconstruct_result1405 + p.pretty_edb(unwrapped1406) } else { _dollar_dollar := msg - var _t1815 *pb.BeTreeRelation + var _t1823 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1815 = _dollar_dollar.GetBetreeRelation() + _t1823 = _dollar_dollar.GetBetreeRelation() } - deconstruct_result1399 := _t1815 - if deconstruct_result1399 != nil { - unwrapped1400 := deconstruct_result1399 - p.pretty_betree_relation(unwrapped1400) + deconstruct_result1403 := _t1823 + if deconstruct_result1403 != nil { + unwrapped1404 := deconstruct_result1403 + p.pretty_betree_relation(unwrapped1404) } else { _dollar_dollar := msg - var _t1816 *pb.CSVData + var _t1824 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1816 = _dollar_dollar.GetCsvData() + _t1824 = _dollar_dollar.GetCsvData() } - deconstruct_result1397 := _t1816 - if deconstruct_result1397 != nil { - unwrapped1398 := deconstruct_result1397 - p.pretty_csv_data(unwrapped1398) + deconstruct_result1401 := _t1824 + if deconstruct_result1401 != nil { + unwrapped1402 := deconstruct_result1401 + p.pretty_csv_data(unwrapped1402) } else { _dollar_dollar := msg - var _t1817 *pb.IcebergData + var _t1825 *pb.IcebergData if hasProtoField(_dollar_dollar, "iceberg_data") { - _t1817 = _dollar_dollar.GetIcebergData() + _t1825 = _dollar_dollar.GetIcebergData() } - deconstruct_result1395 := _t1817 - if deconstruct_result1395 != nil { - unwrapped1396 := deconstruct_result1395 - p.pretty_iceberg_data(unwrapped1396) + deconstruct_result1399 := _t1825 + if deconstruct_result1399 != nil { + unwrapped1400 := deconstruct_result1399 + p.pretty_iceberg_data(unwrapped1400) } else { panic(ParseError{msg: "No matching rule for data"}) } @@ -3670,26 +3679,26 @@ func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { } func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { - flat1409 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) - if flat1409 != nil { - p.write(*flat1409) + flat1413 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) + if flat1413 != nil { + p.write(*flat1413) return nil } else { _dollar_dollar := msg - fields1404 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} - unwrapped_fields1405 := fields1404 + fields1408 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} + unwrapped_fields1409 := fields1408 p.write("(") p.write("edb") p.indentSexp() p.newline() - field1406 := unwrapped_fields1405[0].(*pb.RelationId) - p.pretty_relation_id(field1406) + field1410 := unwrapped_fields1409[0].(*pb.RelationId) + p.pretty_relation_id(field1410) p.newline() - field1407 := unwrapped_fields1405[1].([]string) - p.pretty_edb_path(field1407) + field1411 := unwrapped_fields1409[1].([]string) + p.pretty_edb_path(field1411) p.newline() - field1408 := unwrapped_fields1405[2].([]*pb.Type) - p.pretty_edb_types(field1408) + field1412 := unwrapped_fields1409[2].([]*pb.Type) + p.pretty_edb_types(field1412) p.dedent() p.write(")") } @@ -3697,19 +3706,19 @@ func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { } func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { - flat1413 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) - if flat1413 != nil { - p.write(*flat1413) + flat1417 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) + if flat1417 != nil { + p.write(*flat1417) return nil } else { - fields1410 := msg + fields1414 := msg p.write("[") p.indent() - for i1412, elem1411 := range fields1410 { - if (i1412 > 0) { + for i1416, elem1415 := range fields1414 { + if (i1416 > 0) { p.newline() } - p.write(p.formatStringValue(elem1411)) + p.write(p.formatStringValue(elem1415)) } p.dedent() p.write("]") @@ -3718,19 +3727,19 @@ func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { - flat1417 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) - if flat1417 != nil { - p.write(*flat1417) + flat1421 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) + if flat1421 != nil { + p.write(*flat1421) return nil } else { - fields1414 := msg + fields1418 := msg p.write("[") p.indent() - for i1416, elem1415 := range fields1414 { - if (i1416 > 0) { + for i1420, elem1419 := range fields1418 { + if (i1420 > 0) { p.newline() } - p.pretty_type(elem1415) + p.pretty_type(elem1419) } p.dedent() p.write("]") @@ -3739,23 +3748,23 @@ func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { } func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface{} { - flat1422 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) - if flat1422 != nil { - p.write(*flat1422) + flat1426 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1426 != nil { + p.write(*flat1426) return nil } else { _dollar_dollar := msg - fields1418 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} - unwrapped_fields1419 := fields1418 + fields1422 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} + unwrapped_fields1423 := fields1422 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1420 := unwrapped_fields1419[0].(*pb.RelationId) - p.pretty_relation_id(field1420) + field1424 := unwrapped_fields1423[0].(*pb.RelationId) + p.pretty_relation_id(field1424) p.newline() - field1421 := unwrapped_fields1419[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1421) + field1425 := unwrapped_fields1423[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1425) p.dedent() p.write(")") } @@ -3763,27 +3772,27 @@ func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface } func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { - flat1428 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) - if flat1428 != nil { - p.write(*flat1428) + flat1432 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1432 != nil { + p.write(*flat1432) return nil } else { _dollar_dollar := msg - _t1818 := p.deconstruct_betree_info_config(_dollar_dollar) - fields1423 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1818} - unwrapped_fields1424 := fields1423 + _t1826 := p.deconstruct_betree_info_config(_dollar_dollar) + fields1427 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1826} + unwrapped_fields1428 := fields1427 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1425 := unwrapped_fields1424[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1425) + field1429 := unwrapped_fields1428[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1429) p.newline() - field1426 := unwrapped_fields1424[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1426) + field1430 := unwrapped_fields1428[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1430) p.newline() - field1427 := unwrapped_fields1424[2].([][]interface{}) - p.pretty_config_dict(field1427) + field1431 := unwrapped_fields1428[2].([][]interface{}) + p.pretty_config_dict(field1431) p.dedent() p.write(")") } @@ -3791,22 +3800,22 @@ func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { } func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} { - flat1432 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) - if flat1432 != nil { - p.write(*flat1432) + flat1436 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1436 != nil { + p.write(*flat1436) return nil } else { - fields1429 := msg + fields1433 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1429) == 0) { + if !(len(fields1433) == 0) { p.newline() - for i1431, elem1430 := range fields1429 { - if (i1431 > 0) { + for i1435, elem1434 := range fields1433 { + if (i1435 > 0) { p.newline() } - p.pretty_type(elem1430) + p.pretty_type(elem1434) } } p.dedent() @@ -3816,22 +3825,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{} { - flat1436 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) - if flat1436 != nil { - p.write(*flat1436) + flat1440 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1440 != nil { + p.write(*flat1440) return nil } else { - fields1433 := msg + fields1437 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1433) == 0) { + if !(len(fields1437) == 0) { p.newline() - for i1435, elem1434 := range fields1433 { - if (i1435 > 0) { + for i1439, elem1438 := range fields1437 { + if (i1439 > 0) { p.newline() } - p.pretty_type(elem1434) + p.pretty_type(elem1438) } } p.dedent() @@ -3841,40 +3850,40 @@ func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface } func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { - flat1446 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) - if flat1446 != nil { - p.write(*flat1446) + flat1450 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1450 != nil { + p.write(*flat1450) return nil } else { _dollar_dollar := msg - _t1819 := p.deconstruct_csv_data_columns_optional(_dollar_dollar) - _t1820 := p.deconstruct_csv_data_relations_optional(_dollar_dollar) - fields1437 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _t1819, _t1820, _dollar_dollar.GetAsof()} - unwrapped_fields1438 := fields1437 + _t1827 := p.deconstruct_csv_data_columns_optional(_dollar_dollar) + _t1828 := p.deconstruct_csv_data_relations_optional(_dollar_dollar) + fields1441 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _t1827, _t1828, _dollar_dollar.GetAsof()} + unwrapped_fields1442 := fields1441 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1439 := unwrapped_fields1438[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1439) + field1443 := unwrapped_fields1442[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1443) p.newline() - field1440 := unwrapped_fields1438[1].(*pb.CSVConfig) - p.pretty_csv_config(field1440) - field1441 := unwrapped_fields1438[2].([]*pb.GNFColumn) - if field1441 != nil { + field1444 := unwrapped_fields1442[1].(*pb.CSVConfig) + p.pretty_csv_config(field1444) + field1445 := unwrapped_fields1442[2].([]*pb.GNFColumn) + if field1445 != nil { p.newline() - opt_val1442 := field1441 - p.pretty_gnf_columns(opt_val1442) + opt_val1446 := field1445 + p.pretty_gnf_columns(opt_val1446) } - field1443 := unwrapped_fields1438[3].(*pb.TargetRelations) - if field1443 != nil { + field1447 := unwrapped_fields1442[3].(*pb.TargetRelations) + if field1447 != nil { p.newline() - opt_val1444 := field1443 - p.pretty_target_relations(opt_val1444) + opt_val1448 := field1447 + p.pretty_target_relations(opt_val1448) } p.newline() - field1445 := unwrapped_fields1438[4].(string) - p.pretty_csv_asof(field1445) + field1449 := unwrapped_fields1442[4].(string) + p.pretty_csv_asof(field1449) p.dedent() p.write(")") } @@ -3882,36 +3891,36 @@ func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { } func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { - flat1453 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) - if flat1453 != nil { - p.write(*flat1453) + flat1457 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1457 != nil { + p.write(*flat1457) return nil } else { _dollar_dollar := msg - var _t1821 []string + var _t1829 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1821 = _dollar_dollar.GetPaths() + _t1829 = _dollar_dollar.GetPaths() } - var _t1822 *string + var _t1830 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1822 = ptr(string(_dollar_dollar.GetInlineData())) + _t1830 = ptr(string(_dollar_dollar.GetInlineData())) } - fields1447 := []interface{}{_t1821, _t1822} - unwrapped_fields1448 := fields1447 + fields1451 := []interface{}{_t1829, _t1830} + unwrapped_fields1452 := fields1451 p.write("(") p.write("csv_locator") p.indentSexp() - field1449 := unwrapped_fields1448[0].([]string) - if field1449 != nil { + field1453 := unwrapped_fields1452[0].([]string) + if field1453 != nil { p.newline() - opt_val1450 := field1449 - p.pretty_csv_locator_paths(opt_val1450) + opt_val1454 := field1453 + p.pretty_csv_locator_paths(opt_val1454) } - field1451 := unwrapped_fields1448[1].(*string) - if field1451 != nil { + field1455 := unwrapped_fields1452[1].(*string) + if field1455 != nil { p.newline() - opt_val1452 := *field1451 - p.pretty_csv_locator_inline_data(opt_val1452) + opt_val1456 := *field1455 + p.pretty_csv_locator_inline_data(opt_val1456) } p.dedent() p.write(")") @@ -3920,22 +3929,22 @@ func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { - flat1457 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) - if flat1457 != nil { - p.write(*flat1457) + flat1461 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1461 != nil { + p.write(*flat1461) return nil } else { - fields1454 := msg + fields1458 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1454) == 0) { + if !(len(fields1458) == 0) { p.newline() - for i1456, elem1455 := range fields1454 { - if (i1456 > 0) { + for i1460, elem1459 := range fields1458 { + if (i1460 > 0) { p.newline() } - p.write(p.formatStringValue(elem1455)) + p.write(p.formatStringValue(elem1459)) } } p.dedent() @@ -3945,17 +3954,17 @@ func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { - flat1459 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) - if flat1459 != nil { - p.write(*flat1459) + flat1463 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1463 != nil { + p.write(*flat1463) return nil } else { - fields1458 := msg + fields1462 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1458)) + p.write(p.formatStringValue(fields1462)) p.dedent() p.write(")") } @@ -3963,27 +3972,27 @@ func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { } func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { - flat1465 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) - if flat1465 != nil { - p.write(*flat1465) + flat1469 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1469 != nil { + p.write(*flat1469) return nil } else { _dollar_dollar := msg - _t1823 := p.deconstruct_csv_config(_dollar_dollar) - _t1824 := p.deconstruct_csv_storage_integration_optional(_dollar_dollar) - fields1460 := []interface{}{_t1823, _t1824} - unwrapped_fields1461 := fields1460 + _t1831 := p.deconstruct_csv_config(_dollar_dollar) + _t1832 := p.deconstruct_csv_storage_integration_optional(_dollar_dollar) + fields1464 := []interface{}{_t1831, _t1832} + unwrapped_fields1465 := fields1464 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - field1462 := unwrapped_fields1461[0].([][]interface{}) - p.pretty_config_dict(field1462) - field1463 := unwrapped_fields1461[1].([][]interface{}) - if field1463 != nil { + field1466 := unwrapped_fields1465[0].([][]interface{}) + p.pretty_config_dict(field1466) + field1467 := unwrapped_fields1465[1].([][]interface{}) + if field1467 != nil { p.newline() - opt_val1464 := field1463 - p.pretty__storage_integration(opt_val1464) + opt_val1468 := field1467 + p.pretty__storage_integration(opt_val1468) } p.dedent() p.write(")") @@ -3992,17 +4001,17 @@ func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { } func (p *PrettyPrinter) pretty__storage_integration(msg [][]interface{}) interface{} { - flat1467 := p.tryFlat(msg, func() { p.pretty__storage_integration(msg) }) - if flat1467 != nil { - p.write(*flat1467) + flat1471 := p.tryFlat(msg, func() { p.pretty__storage_integration(msg) }) + if flat1471 != nil { + p.write(*flat1471) return nil } else { - fields1466 := msg + fields1470 := msg p.write("(") p.write("storage_integration") p.indentSexp() p.newline() - p.pretty_config_dict(fields1466) + p.pretty_config_dict(fields1470) p.dedent() p.write(")") } @@ -4010,22 +4019,22 @@ func (p *PrettyPrinter) pretty__storage_integration(msg [][]interface{}) interfa } func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { - flat1471 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) - if flat1471 != nil { - p.write(*flat1471) + flat1475 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) + if flat1475 != nil { + p.write(*flat1475) return nil } else { - fields1468 := msg + fields1472 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1468) == 0) { + if !(len(fields1472) == 0) { p.newline() - for i1470, elem1469 := range fields1468 { - if (i1470 > 0) { + for i1474, elem1473 := range fields1472 { + if (i1474 > 0) { p.newline() } - p.pretty_gnf_column(elem1469) + p.pretty_gnf_column(elem1473) } } p.dedent() @@ -4035,38 +4044,38 @@ func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { - flat1480 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) - if flat1480 != nil { - p.write(*flat1480) + flat1484 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) + if flat1484 != nil { + p.write(*flat1484) return nil } else { _dollar_dollar := msg - var _t1825 *pb.RelationId + var _t1833 *pb.RelationId if hasProtoField(_dollar_dollar, "target_id") { - _t1825 = _dollar_dollar.GetTargetId() + _t1833 = _dollar_dollar.GetTargetId() } - fields1472 := []interface{}{_dollar_dollar.GetColumnPath(), _t1825, _dollar_dollar.GetTypes()} - unwrapped_fields1473 := fields1472 + fields1476 := []interface{}{_dollar_dollar.GetColumnPath(), _t1833, _dollar_dollar.GetTypes()} + unwrapped_fields1477 := fields1476 p.write("(") p.write("column") p.indentSexp() p.newline() - field1474 := unwrapped_fields1473[0].([]string) - p.pretty_gnf_column_path(field1474) - field1475 := unwrapped_fields1473[1].(*pb.RelationId) - if field1475 != nil { + field1478 := unwrapped_fields1477[0].([]string) + p.pretty_gnf_column_path(field1478) + field1479 := unwrapped_fields1477[1].(*pb.RelationId) + if field1479 != nil { p.newline() - opt_val1476 := field1475 - p.pretty_relation_id(opt_val1476) + opt_val1480 := field1479 + p.pretty_relation_id(opt_val1480) } p.newline() p.write("[") - field1477 := unwrapped_fields1473[2].([]*pb.Type) - for i1479, elem1478 := range field1477 { - if (i1479 > 0) { + field1481 := unwrapped_fields1477[2].([]*pb.Type) + for i1483, elem1482 := range field1481 { + if (i1483 > 0) { p.newline() } - p.pretty_type(elem1478) + p.pretty_type(elem1482) } p.write("]") p.dedent() @@ -4076,36 +4085,36 @@ func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { - flat1487 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) - if flat1487 != nil { - p.write(*flat1487) + flat1491 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) + if flat1491 != nil { + p.write(*flat1491) return nil } else { _dollar_dollar := msg - var _t1826 *string + var _t1834 *string if int64(len(_dollar_dollar)) == 1 { - _t1826 = ptr(_dollar_dollar[0]) + _t1834 = ptr(_dollar_dollar[0]) } - deconstruct_result1485 := _t1826 - if deconstruct_result1485 != nil { - unwrapped1486 := *deconstruct_result1485 - p.write(p.formatStringValue(unwrapped1486)) + deconstruct_result1489 := _t1834 + if deconstruct_result1489 != nil { + unwrapped1490 := *deconstruct_result1489 + p.write(p.formatStringValue(unwrapped1490)) } else { _dollar_dollar := msg - var _t1827 []string + var _t1835 []string if int64(len(_dollar_dollar)) != 1 { - _t1827 = _dollar_dollar + _t1835 = _dollar_dollar } - deconstruct_result1481 := _t1827 - if deconstruct_result1481 != nil { - unwrapped1482 := deconstruct_result1481 + deconstruct_result1485 := _t1835 + if deconstruct_result1485 != nil { + unwrapped1486 := deconstruct_result1485 p.write("[") p.indent() - for i1484, elem1483 := range unwrapped1482 { - if (i1484 > 0) { + for i1488, elem1487 := range unwrapped1486 { + if (i1488 > 0) { p.newline() } - p.write(p.formatStringValue(elem1483)) + p.write(p.formatStringValue(elem1487)) } p.dedent() p.write("]") @@ -4118,24 +4127,31 @@ func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_target_relations(msg *pb.TargetRelations) interface{} { - flat1492 := p.tryFlat(msg, func() { p.pretty_target_relations(msg) }) - if flat1492 != nil { - p.write(*flat1492) + flat1498 := p.tryFlat(msg, func() { p.pretty_target_relations(msg) }) + if flat1498 != nil { + p.write(*flat1498) return nil } else { _dollar_dollar := msg - _t1828 := p.deconstruct_relation_keys(_dollar_dollar) - fields1488 := []interface{}{_t1828, _dollar_dollar} - unwrapped_fields1489 := fields1488 + _t1836 := p.deconstruct_relation_keys(_dollar_dollar) + _t1837 := p.deconstruct_load_errors_optional(_dollar_dollar) + fields1492 := []interface{}{_t1836, _dollar_dollar, _t1837} + unwrapped_fields1493 := fields1492 p.write("(") p.write("relations") p.indentSexp() p.newline() - field1490 := unwrapped_fields1489[0].([]interface{}) - p.pretty_relation_keys(field1490) + field1494 := unwrapped_fields1493[0].([]interface{}) + p.pretty_relation_keys(field1494) p.newline() - field1491 := unwrapped_fields1489[1].(*pb.TargetRelations) - p.pretty_relation_body(field1491) + field1495 := unwrapped_fields1493[1].(*pb.TargetRelations) + p.pretty_relation_body(field1495) + field1496 := unwrapped_fields1493[2].(*pb.RelationId) + if field1496 != nil { + p.newline() + opt_val1497 := field1496 + p.pretty_load_errors(opt_val1497) + } p.dedent() p.write(")") } @@ -4143,43 +4159,43 @@ func (p *PrettyPrinter) pretty_target_relations(msg *pb.TargetRelations) interfa } func (p *PrettyPrinter) pretty_relation_keys(msg []interface{}) interface{} { - flat1499 := p.tryFlat(msg, func() { p.pretty_relation_keys(msg) }) - if flat1499 != nil { - p.write(*flat1499) + flat1505 := p.tryFlat(msg, func() { p.pretty_relation_keys(msg) }) + if flat1505 != nil { + p.write(*flat1505) return nil } else { _dollar_dollar := msg - var _t1829 []*pb.NamedColumn + var _t1838 []*pb.NamedColumn if !(_dollar_dollar[1].(bool)) { - _t1829 = _dollar_dollar[0].([]*pb.NamedColumn) + _t1838 = _dollar_dollar[0].([]*pb.NamedColumn) } - deconstruct_result1495 := _t1829 - if deconstruct_result1495 != nil { - unwrapped1496 := deconstruct_result1495 + deconstruct_result1501 := _t1838 + if deconstruct_result1501 != nil { + unwrapped1502 := deconstruct_result1501 p.write("(") p.write("keys") p.indentSexp() - if !(len(unwrapped1496) == 0) { + if !(len(unwrapped1502) == 0) { p.newline() - for i1498, elem1497 := range unwrapped1496 { - if (i1498 > 0) { + for i1504, elem1503 := range unwrapped1502 { + if (i1504 > 0) { p.newline() } - p.pretty_named_column(elem1497) + p.pretty_named_column(elem1503) } } p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1830 []interface{} + var _t1839 []interface{} if _dollar_dollar[1].(bool) { - _t1830 = []interface{}{} + _t1839 = []interface{}{} } - deconstruct_result1493 := _t1830 - if deconstruct_result1493 != nil { - unwrapped1494 := deconstruct_result1493 - _ = unwrapped1494 + deconstruct_result1499 := _t1839 + if deconstruct_result1499 != nil { + unwrapped1500 := deconstruct_result1499 + _ = unwrapped1500 p.write("(") p.write("keys") p.newline() @@ -4194,23 +4210,23 @@ func (p *PrettyPrinter) pretty_relation_keys(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_named_column(msg *pb.NamedColumn) interface{} { - flat1504 := p.tryFlat(msg, func() { p.pretty_named_column(msg) }) - if flat1504 != nil { - p.write(*flat1504) + flat1510 := p.tryFlat(msg, func() { p.pretty_named_column(msg) }) + if flat1510 != nil { + p.write(*flat1510) return nil } else { _dollar_dollar := msg - fields1500 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetType()} - unwrapped_fields1501 := fields1500 + fields1506 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetType()} + unwrapped_fields1507 := fields1506 p.write("(") p.write("column") p.indentSexp() p.newline() - field1502 := unwrapped_fields1501[0].(string) - p.write(p.formatStringValue(field1502)) + field1508 := unwrapped_fields1507[0].(string) + p.write(p.formatStringValue(field1508)) p.newline() - field1503 := unwrapped_fields1501[1].(*pb.Type) - p.pretty_type(field1503) + field1509 := unwrapped_fields1507[1].(*pb.Type) + p.pretty_type(field1509) p.dedent() p.write(")") } @@ -4218,34 +4234,34 @@ func (p *PrettyPrinter) pretty_named_column(msg *pb.NamedColumn) interface{} { } func (p *PrettyPrinter) pretty_relation_body(msg *pb.TargetRelations) interface{} { - flat1511 := p.tryFlat(msg, func() { p.pretty_relation_body(msg) }) - if flat1511 != nil { - p.write(*flat1511) + flat1517 := p.tryFlat(msg, func() { p.pretty_relation_body(msg) }) + if flat1517 != nil { + p.write(*flat1517) return nil } else { _dollar_dollar := msg - var _t1831 []*pb.TargetRelation + var _t1840 []*pb.TargetRelation if hasProtoField(_dollar_dollar, "plain") { - _t1831 = _dollar_dollar.GetPlain().GetTargets() + _t1840 = _dollar_dollar.GetPlain().GetTargets() } - deconstruct_result1509 := _t1831 - if deconstruct_result1509 != nil { - unwrapped1510 := deconstruct_result1509 - p.pretty_non_cdc_relations(unwrapped1510) + deconstruct_result1515 := _t1840 + if deconstruct_result1515 != nil { + unwrapped1516 := deconstruct_result1515 + p.pretty_non_cdc_relations(unwrapped1516) } else { _dollar_dollar := msg - var _t1832 []interface{} + var _t1841 []interface{} if hasProtoField(_dollar_dollar, "cdc") { - _t1832 = []interface{}{_dollar_dollar.GetCdc().GetInserts(), _dollar_dollar.GetCdc().GetDeletes()} + _t1841 = []interface{}{_dollar_dollar.GetCdc().GetInserts(), _dollar_dollar.GetCdc().GetDeletes()} } - deconstruct_result1505 := _t1832 - if deconstruct_result1505 != nil { - unwrapped1506 := deconstruct_result1505 - field1507 := unwrapped1506[0].([]*pb.TargetRelation) - p.pretty_cdc_inserts(field1507) + deconstruct_result1511 := _t1841 + if deconstruct_result1511 != nil { + unwrapped1512 := deconstruct_result1511 + field1513 := unwrapped1512[0].([]*pb.TargetRelation) + p.pretty_cdc_inserts(field1513) p.write(" ") - field1508 := unwrapped1506[1].([]*pb.TargetRelation) - p.pretty_cdc_deletes(field1508) + field1514 := unwrapped1512[1].([]*pb.TargetRelation) + p.pretty_cdc_deletes(field1514) } else { panic(ParseError{msg: "No matching rule for relation_body"}) } @@ -4255,45 +4271,45 @@ func (p *PrettyPrinter) pretty_relation_body(msg *pb.TargetRelations) interface{ } func (p *PrettyPrinter) pretty_non_cdc_relations(msg []*pb.TargetRelation) interface{} { - flat1515 := p.tryFlat(msg, func() { p.pretty_non_cdc_relations(msg) }) - if flat1515 != nil { - p.write(*flat1515) + flat1521 := p.tryFlat(msg, func() { p.pretty_non_cdc_relations(msg) }) + if flat1521 != nil { + p.write(*flat1521) return nil } else { - fields1512 := msg - for i1514, elem1513 := range fields1512 { - if (i1514 > 0) { + fields1518 := msg + for i1520, elem1519 := range fields1518 { + if (i1520 > 0) { p.newline() } - p.pretty_target_relation(elem1513) + p.pretty_target_relation(elem1519) } } return nil } func (p *PrettyPrinter) pretty_target_relation(msg *pb.TargetRelation) interface{} { - flat1522 := p.tryFlat(msg, func() { p.pretty_target_relation(msg) }) - if flat1522 != nil { - p.write(*flat1522) + flat1528 := p.tryFlat(msg, func() { p.pretty_target_relation(msg) }) + if flat1528 != nil { + p.write(*flat1528) return nil } else { _dollar_dollar := msg - fields1516 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetValues()} - unwrapped_fields1517 := fields1516 + fields1522 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetValues()} + unwrapped_fields1523 := fields1522 p.write("(") p.write("relation") p.indentSexp() p.newline() - field1518 := unwrapped_fields1517[0].(*pb.RelationId) - p.pretty_relation_id(field1518) - field1519 := unwrapped_fields1517[1].([]*pb.NamedColumn) - if !(len(field1519) == 0) { + field1524 := unwrapped_fields1523[0].(*pb.RelationId) + p.pretty_relation_id(field1524) + field1525 := unwrapped_fields1523[1].([]*pb.NamedColumn) + if !(len(field1525) == 0) { p.newline() - for i1521, elem1520 := range field1519 { - if (i1521 > 0) { + for i1527, elem1526 := range field1525 { + if (i1527 > 0) { p.newline() } - p.pretty_named_column(elem1520) + p.pretty_named_column(elem1526) } } p.dedent() @@ -4303,22 +4319,22 @@ func (p *PrettyPrinter) pretty_target_relation(msg *pb.TargetRelation) interface } func (p *PrettyPrinter) pretty_cdc_inserts(msg []*pb.TargetRelation) interface{} { - flat1526 := p.tryFlat(msg, func() { p.pretty_cdc_inserts(msg) }) - if flat1526 != nil { - p.write(*flat1526) + flat1532 := p.tryFlat(msg, func() { p.pretty_cdc_inserts(msg) }) + if flat1532 != nil { + p.write(*flat1532) return nil } else { - fields1523 := msg + fields1529 := msg p.write("(") p.write("inserts") p.indentSexp() - if !(len(fields1523) == 0) { + if !(len(fields1529) == 0) { p.newline() - for i1525, elem1524 := range fields1523 { - if (i1525 > 0) { + for i1531, elem1530 := range fields1529 { + if (i1531 > 0) { p.newline() } - p.pretty_target_relation(elem1524) + p.pretty_target_relation(elem1530) } } p.dedent() @@ -4328,22 +4344,22 @@ func (p *PrettyPrinter) pretty_cdc_inserts(msg []*pb.TargetRelation) interface{} } func (p *PrettyPrinter) pretty_cdc_deletes(msg []*pb.TargetRelation) interface{} { - flat1530 := p.tryFlat(msg, func() { p.pretty_cdc_deletes(msg) }) - if flat1530 != nil { - p.write(*flat1530) + flat1536 := p.tryFlat(msg, func() { p.pretty_cdc_deletes(msg) }) + if flat1536 != nil { + p.write(*flat1536) return nil } else { - fields1527 := msg + fields1533 := msg p.write("(") p.write("deletes") p.indentSexp() - if !(len(fields1527) == 0) { + if !(len(fields1533) == 0) { p.newline() - for i1529, elem1528 := range fields1527 { - if (i1529 > 0) { + for i1535, elem1534 := range fields1533 { + if (i1535 > 0) { p.newline() } - p.pretty_target_relation(elem1528) + p.pretty_target_relation(elem1534) } } p.dedent() @@ -4352,18 +4368,36 @@ func (p *PrettyPrinter) pretty_cdc_deletes(msg []*pb.TargetRelation) interface{} return nil } +func (p *PrettyPrinter) pretty_load_errors(msg *pb.RelationId) interface{} { + flat1538 := p.tryFlat(msg, func() { p.pretty_load_errors(msg) }) + if flat1538 != nil { + p.write(*flat1538) + return nil + } else { + fields1537 := msg + p.write("(") + p.write("load_errors") + p.indentSexp() + p.newline() + p.pretty_relation_id(fields1537) + p.dedent() + p.write(")") + } + return nil +} + func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { - flat1532 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) - if flat1532 != nil { - p.write(*flat1532) + flat1540 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1540 != nil { + p.write(*flat1540) return nil } else { - fields1531 := msg + fields1539 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1531)) + p.write(p.formatStringValue(fields1539)) p.dedent() p.write(")") } @@ -4371,43 +4405,43 @@ func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_data(msg *pb.IcebergData) interface{} { - flat1543 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) - if flat1543 != nil { - p.write(*flat1543) + flat1551 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) + if flat1551 != nil { + p.write(*flat1551) return nil } else { _dollar_dollar := msg - _t1833 := p.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) - _t1834 := p.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) - fields1533 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _t1833, _t1834, _dollar_dollar.GetReturnsDelta()} - unwrapped_fields1534 := fields1533 + _t1842 := p.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1843 := p.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1541 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _t1842, _t1843, _dollar_dollar.GetReturnsDelta()} + unwrapped_fields1542 := fields1541 p.write("(") p.write("iceberg_data") p.indentSexp() p.newline() - field1535 := unwrapped_fields1534[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1535) + field1543 := unwrapped_fields1542[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1543) p.newline() - field1536 := unwrapped_fields1534[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1536) + field1544 := unwrapped_fields1542[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1544) p.newline() - field1537 := unwrapped_fields1534[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1537) - field1538 := unwrapped_fields1534[3].(*string) - if field1538 != nil { + field1545 := unwrapped_fields1542[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1545) + field1546 := unwrapped_fields1542[3].(*string) + if field1546 != nil { p.newline() - opt_val1539 := *field1538 - p.pretty_iceberg_from_snapshot(opt_val1539) + opt_val1547 := *field1546 + p.pretty_iceberg_from_snapshot(opt_val1547) } - field1540 := unwrapped_fields1534[4].(*string) - if field1540 != nil { + field1548 := unwrapped_fields1542[4].(*string) + if field1548 != nil { p.newline() - opt_val1541 := *field1540 - p.pretty_iceberg_to_snapshot(opt_val1541) + opt_val1549 := *field1548 + p.pretty_iceberg_to_snapshot(opt_val1549) } p.newline() - field1542 := unwrapped_fields1534[5].(bool) - p.pretty_boolean_value(field1542) + field1550 := unwrapped_fields1542[5].(bool) + p.pretty_boolean_value(field1550) p.dedent() p.write(")") } @@ -4415,26 +4449,26 @@ func (p *PrettyPrinter) pretty_iceberg_data(msg *pb.IcebergData) interface{} { } func (p *PrettyPrinter) pretty_iceberg_locator(msg *pb.IcebergLocator) interface{} { - flat1549 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) - if flat1549 != nil { - p.write(*flat1549) + flat1557 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) + if flat1557 != nil { + p.write(*flat1557) return nil } else { _dollar_dollar := msg - fields1544 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} - unwrapped_fields1545 := fields1544 + fields1552 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} + unwrapped_fields1553 := fields1552 p.write("(") p.write("iceberg_locator") p.indentSexp() p.newline() - field1546 := unwrapped_fields1545[0].(string) - p.pretty_iceberg_locator_table_name(field1546) + field1554 := unwrapped_fields1553[0].(string) + p.pretty_iceberg_locator_table_name(field1554) p.newline() - field1547 := unwrapped_fields1545[1].([]string) - p.pretty_iceberg_locator_namespace(field1547) + field1555 := unwrapped_fields1553[1].([]string) + p.pretty_iceberg_locator_namespace(field1555) p.newline() - field1548 := unwrapped_fields1545[2].(string) - p.pretty_iceberg_locator_warehouse(field1548) + field1556 := unwrapped_fields1553[2].(string) + p.pretty_iceberg_locator_warehouse(field1556) p.dedent() p.write(")") } @@ -4442,17 +4476,17 @@ func (p *PrettyPrinter) pretty_iceberg_locator(msg *pb.IcebergLocator) interface } func (p *PrettyPrinter) pretty_iceberg_locator_table_name(msg string) interface{} { - flat1551 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_table_name(msg) }) - if flat1551 != nil { - p.write(*flat1551) + flat1559 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_table_name(msg) }) + if flat1559 != nil { + p.write(*flat1559) return nil } else { - fields1550 := msg + fields1558 := msg p.write("(") p.write("table_name") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1550)) + p.write(p.formatStringValue(fields1558)) p.dedent() p.write(")") } @@ -4460,22 +4494,22 @@ func (p *PrettyPrinter) pretty_iceberg_locator_table_name(msg string) interface{ } func (p *PrettyPrinter) pretty_iceberg_locator_namespace(msg []string) interface{} { - flat1555 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) - if flat1555 != nil { - p.write(*flat1555) + flat1563 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) + if flat1563 != nil { + p.write(*flat1563) return nil } else { - fields1552 := msg + fields1560 := msg p.write("(") p.write("namespace") p.indentSexp() - if !(len(fields1552) == 0) { + if !(len(fields1560) == 0) { p.newline() - for i1554, elem1553 := range fields1552 { - if (i1554 > 0) { + for i1562, elem1561 := range fields1560 { + if (i1562 > 0) { p.newline() } - p.write(p.formatStringValue(elem1553)) + p.write(p.formatStringValue(elem1561)) } } p.dedent() @@ -4485,17 +4519,17 @@ func (p *PrettyPrinter) pretty_iceberg_locator_namespace(msg []string) interface } func (p *PrettyPrinter) pretty_iceberg_locator_warehouse(msg string) interface{} { - flat1557 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_warehouse(msg) }) - if flat1557 != nil { - p.write(*flat1557) + flat1565 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_warehouse(msg) }) + if flat1565 != nil { + p.write(*flat1565) return nil } else { - fields1556 := msg + fields1564 := msg p.write("(") p.write("warehouse") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1556)) + p.write(p.formatStringValue(fields1564)) p.dedent() p.write(")") } @@ -4503,33 +4537,33 @@ func (p *PrettyPrinter) pretty_iceberg_locator_warehouse(msg string) interface{} } func (p *PrettyPrinter) pretty_iceberg_catalog_config(msg *pb.IcebergCatalogConfig) interface{} { - flat1565 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config(msg) }) - if flat1565 != nil { - p.write(*flat1565) + flat1573 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config(msg) }) + if flat1573 != nil { + p.write(*flat1573) return nil } else { _dollar_dollar := msg - _t1835 := p.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) - fields1558 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1835, dictToPairs(_dollar_dollar.GetProperties()), dictToPairs(_dollar_dollar.GetAuthProperties())} - unwrapped_fields1559 := fields1558 + _t1844 := p.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1566 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1844, dictToPairs(_dollar_dollar.GetProperties()), dictToPairs(_dollar_dollar.GetAuthProperties())} + unwrapped_fields1567 := fields1566 p.write("(") p.write("iceberg_catalog_config") p.indentSexp() p.newline() - field1560 := unwrapped_fields1559[0].(string) - p.pretty_iceberg_catalog_uri(field1560) - field1561 := unwrapped_fields1559[1].(*string) - if field1561 != nil { + field1568 := unwrapped_fields1567[0].(string) + p.pretty_iceberg_catalog_uri(field1568) + field1569 := unwrapped_fields1567[1].(*string) + if field1569 != nil { p.newline() - opt_val1562 := *field1561 - p.pretty_iceberg_catalog_config_scope(opt_val1562) + opt_val1570 := *field1569 + p.pretty_iceberg_catalog_config_scope(opt_val1570) } p.newline() - field1563 := unwrapped_fields1559[2].([][]interface{}) - p.pretty_iceberg_properties(field1563) + field1571 := unwrapped_fields1567[2].([][]interface{}) + p.pretty_iceberg_properties(field1571) p.newline() - field1564 := unwrapped_fields1559[3].([][]interface{}) - p.pretty_iceberg_auth_properties(field1564) + field1572 := unwrapped_fields1567[3].([][]interface{}) + p.pretty_iceberg_auth_properties(field1572) p.dedent() p.write(")") } @@ -4537,17 +4571,17 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_config(msg *pb.IcebergCatalogConf } func (p *PrettyPrinter) pretty_iceberg_catalog_uri(msg string) interface{} { - flat1567 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_uri(msg) }) - if flat1567 != nil { - p.write(*flat1567) + flat1575 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_uri(msg) }) + if flat1575 != nil { + p.write(*flat1575) return nil } else { - fields1566 := msg + fields1574 := msg p.write("(") p.write("catalog_uri") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1566)) + p.write(p.formatStringValue(fields1574)) p.dedent() p.write(")") } @@ -4555,17 +4589,17 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_uri(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_catalog_config_scope(msg string) interface{} { - flat1569 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config_scope(msg) }) - if flat1569 != nil { - p.write(*flat1569) + flat1577 := p.tryFlat(msg, func() { p.pretty_iceberg_catalog_config_scope(msg) }) + if flat1577 != nil { + p.write(*flat1577) return nil } else { - fields1568 := msg + fields1576 := msg p.write("(") p.write("scope") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1568)) + p.write(p.formatStringValue(fields1576)) p.dedent() p.write(")") } @@ -4573,22 +4607,22 @@ func (p *PrettyPrinter) pretty_iceberg_catalog_config_scope(msg string) interfac } func (p *PrettyPrinter) pretty_iceberg_properties(msg [][]interface{}) interface{} { - flat1573 := p.tryFlat(msg, func() { p.pretty_iceberg_properties(msg) }) - if flat1573 != nil { - p.write(*flat1573) + flat1581 := p.tryFlat(msg, func() { p.pretty_iceberg_properties(msg) }) + if flat1581 != nil { + p.write(*flat1581) return nil } else { - fields1570 := msg + fields1578 := msg p.write("(") p.write("properties") p.indentSexp() - if !(len(fields1570) == 0) { + if !(len(fields1578) == 0) { p.newline() - for i1572, elem1571 := range fields1570 { - if (i1572 > 0) { + for i1580, elem1579 := range fields1578 { + if (i1580 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1571) + p.pretty_iceberg_property_entry(elem1579) } } p.dedent() @@ -4598,23 +4632,23 @@ func (p *PrettyPrinter) pretty_iceberg_properties(msg [][]interface{}) interface } func (p *PrettyPrinter) pretty_iceberg_property_entry(msg []interface{}) interface{} { - flat1578 := p.tryFlat(msg, func() { p.pretty_iceberg_property_entry(msg) }) - if flat1578 != nil { - p.write(*flat1578) + flat1586 := p.tryFlat(msg, func() { p.pretty_iceberg_property_entry(msg) }) + if flat1586 != nil { + p.write(*flat1586) return nil } else { _dollar_dollar := msg - fields1574 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} - unwrapped_fields1575 := fields1574 + fields1582 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} + unwrapped_fields1583 := fields1582 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1576 := unwrapped_fields1575[0].(string) - p.write(p.formatStringValue(field1576)) + field1584 := unwrapped_fields1583[0].(string) + p.write(p.formatStringValue(field1584)) p.newline() - field1577 := unwrapped_fields1575[1].(string) - p.write(p.formatStringValue(field1577)) + field1585 := unwrapped_fields1583[1].(string) + p.write(p.formatStringValue(field1585)) p.dedent() p.write(")") } @@ -4622,22 +4656,22 @@ func (p *PrettyPrinter) pretty_iceberg_property_entry(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_iceberg_auth_properties(msg [][]interface{}) interface{} { - flat1582 := p.tryFlat(msg, func() { p.pretty_iceberg_auth_properties(msg) }) - if flat1582 != nil { - p.write(*flat1582) + flat1590 := p.tryFlat(msg, func() { p.pretty_iceberg_auth_properties(msg) }) + if flat1590 != nil { + p.write(*flat1590) return nil } else { - fields1579 := msg + fields1587 := msg p.write("(") p.write("auth_properties") p.indentSexp() - if !(len(fields1579) == 0) { + if !(len(fields1587) == 0) { p.newline() - for i1581, elem1580 := range fields1579 { - if (i1581 > 0) { + for i1589, elem1588 := range fields1587 { + if (i1589 > 0) { p.newline() } - p.pretty_iceberg_masked_property_entry(elem1580) + p.pretty_iceberg_masked_property_entry(elem1588) } } p.dedent() @@ -4647,24 +4681,24 @@ func (p *PrettyPrinter) pretty_iceberg_auth_properties(msg [][]interface{}) inte } func (p *PrettyPrinter) pretty_iceberg_masked_property_entry(msg []interface{}) interface{} { - flat1587 := p.tryFlat(msg, func() { p.pretty_iceberg_masked_property_entry(msg) }) - if flat1587 != nil { - p.write(*flat1587) + flat1595 := p.tryFlat(msg, func() { p.pretty_iceberg_masked_property_entry(msg) }) + if flat1595 != nil { + p.write(*flat1595) return nil } else { _dollar_dollar := msg - _t1836 := p.mask_secret_value(_dollar_dollar) - fields1583 := []interface{}{_dollar_dollar[0].(string), _t1836} - unwrapped_fields1584 := fields1583 + _t1845 := p.mask_secret_value(_dollar_dollar) + fields1591 := []interface{}{_dollar_dollar[0].(string), _t1845} + unwrapped_fields1592 := fields1591 p.write("(") p.write("prop") p.indentSexp() p.newline() - field1585 := unwrapped_fields1584[0].(string) - p.write(p.formatStringValue(field1585)) + field1593 := unwrapped_fields1592[0].(string) + p.write(p.formatStringValue(field1593)) p.newline() - field1586 := unwrapped_fields1584[1].(string) - p.write(p.formatStringValue(field1586)) + field1594 := unwrapped_fields1592[1].(string) + p.write(p.formatStringValue(field1594)) p.dedent() p.write(")") } @@ -4672,17 +4706,17 @@ func (p *PrettyPrinter) pretty_iceberg_masked_property_entry(msg []interface{}) } func (p *PrettyPrinter) pretty_iceberg_from_snapshot(msg string) interface{} { - flat1589 := p.tryFlat(msg, func() { p.pretty_iceberg_from_snapshot(msg) }) - if flat1589 != nil { - p.write(*flat1589) + flat1597 := p.tryFlat(msg, func() { p.pretty_iceberg_from_snapshot(msg) }) + if flat1597 != nil { + p.write(*flat1597) return nil } else { - fields1588 := msg + fields1596 := msg p.write("(") p.write("from_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1588)) + p.write(p.formatStringValue(fields1596)) p.dedent() p.write(")") } @@ -4690,17 +4724,17 @@ func (p *PrettyPrinter) pretty_iceberg_from_snapshot(msg string) interface{} { } func (p *PrettyPrinter) pretty_iceberg_to_snapshot(msg string) interface{} { - flat1591 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) - if flat1591 != nil { - p.write(*flat1591) + flat1599 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) + if flat1599 != nil { + p.write(*flat1599) return nil } else { - fields1590 := msg + fields1598 := msg p.write("(") p.write("to_snapshot") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1590)) + p.write(p.formatStringValue(fields1598)) p.dedent() p.write(")") } @@ -4708,19 +4742,19 @@ func (p *PrettyPrinter) pretty_iceberg_to_snapshot(msg string) interface{} { } func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { - flat1594 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) - if flat1594 != nil { - p.write(*flat1594) + flat1602 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1602 != nil { + p.write(*flat1602) return nil } else { _dollar_dollar := msg - fields1592 := _dollar_dollar.GetFragmentId() - unwrapped_fields1593 := fields1592 + fields1600 := _dollar_dollar.GetFragmentId() + unwrapped_fields1601 := fields1600 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1593) + p.pretty_fragment_id(unwrapped_fields1601) p.dedent() p.write(")") } @@ -4728,24 +4762,24 @@ func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { } func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { - flat1599 := p.tryFlat(msg, func() { p.pretty_context(msg) }) - if flat1599 != nil { - p.write(*flat1599) + flat1607 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1607 != nil { + p.write(*flat1607) return nil } else { _dollar_dollar := msg - fields1595 := _dollar_dollar.GetRelations() - unwrapped_fields1596 := fields1595 + fields1603 := _dollar_dollar.GetRelations() + unwrapped_fields1604 := fields1603 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1596) == 0) { + if !(len(unwrapped_fields1604) == 0) { p.newline() - for i1598, elem1597 := range unwrapped_fields1596 { - if (i1598 > 0) { + for i1606, elem1605 := range unwrapped_fields1604 { + if (i1606 > 0) { p.newline() } - p.pretty_relation_id(elem1597) + p.pretty_relation_id(elem1605) } } p.dedent() @@ -4755,28 +4789,28 @@ func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { } func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { - flat1606 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) - if flat1606 != nil { - p.write(*flat1606) + flat1614 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1614 != nil { + p.write(*flat1614) return nil } else { _dollar_dollar := msg - fields1600 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} - unwrapped_fields1601 := fields1600 + fields1608 := []interface{}{_dollar_dollar.GetPrefix(), _dollar_dollar.GetMappings()} + unwrapped_fields1609 := fields1608 p.write("(") p.write("snapshot") p.indentSexp() p.newline() - field1602 := unwrapped_fields1601[0].([]string) - p.pretty_edb_path(field1602) - field1603 := unwrapped_fields1601[1].([]*pb.SnapshotMapping) - if !(len(field1603) == 0) { + field1610 := unwrapped_fields1609[0].([]string) + p.pretty_edb_path(field1610) + field1611 := unwrapped_fields1609[1].([]*pb.SnapshotMapping) + if !(len(field1611) == 0) { p.newline() - for i1605, elem1604 := range field1603 { - if (i1605 > 0) { + for i1613, elem1612 := range field1611 { + if (i1613 > 0) { p.newline() } - p.pretty_snapshot_mapping(elem1604) + p.pretty_snapshot_mapping(elem1612) } } p.dedent() @@ -4786,40 +4820,40 @@ func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { } func (p *PrettyPrinter) pretty_snapshot_mapping(msg *pb.SnapshotMapping) interface{} { - flat1611 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) - if flat1611 != nil { - p.write(*flat1611) + flat1619 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) + if flat1619 != nil { + p.write(*flat1619) return nil } else { _dollar_dollar := msg - fields1607 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} - unwrapped_fields1608 := fields1607 - field1609 := unwrapped_fields1608[0].([]string) - p.pretty_edb_path(field1609) + fields1615 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} + unwrapped_fields1616 := fields1615 + field1617 := unwrapped_fields1616[0].([]string) + p.pretty_edb_path(field1617) p.write(" ") - field1610 := unwrapped_fields1608[1].(*pb.RelationId) - p.pretty_relation_id(field1610) + field1618 := unwrapped_fields1616[1].(*pb.RelationId) + p.pretty_relation_id(field1618) } return nil } func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { - flat1615 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) - if flat1615 != nil { - p.write(*flat1615) + flat1623 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1623 != nil { + p.write(*flat1623) return nil } else { - fields1612 := msg + fields1620 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1612) == 0) { + if !(len(fields1620) == 0) { p.newline() - for i1614, elem1613 := range fields1612 { - if (i1614 > 0) { + for i1622, elem1621 := range fields1620 { + if (i1622 > 0) { p.newline() } - p.pretty_read(elem1613) + p.pretty_read(elem1621) } } p.dedent() @@ -4829,60 +4863,60 @@ func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { } func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { - flat1626 := p.tryFlat(msg, func() { p.pretty_read(msg) }) - if flat1626 != nil { - p.write(*flat1626) + flat1634 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1634 != nil { + p.write(*flat1634) return nil } else { _dollar_dollar := msg - var _t1837 *pb.Demand + var _t1846 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1837 = _dollar_dollar.GetDemand() + _t1846 = _dollar_dollar.GetDemand() } - deconstruct_result1624 := _t1837 - if deconstruct_result1624 != nil { - unwrapped1625 := deconstruct_result1624 - p.pretty_demand(unwrapped1625) + deconstruct_result1632 := _t1846 + if deconstruct_result1632 != nil { + unwrapped1633 := deconstruct_result1632 + p.pretty_demand(unwrapped1633) } else { _dollar_dollar := msg - var _t1838 *pb.Output + var _t1847 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1838 = _dollar_dollar.GetOutput() + _t1847 = _dollar_dollar.GetOutput() } - deconstruct_result1622 := _t1838 - if deconstruct_result1622 != nil { - unwrapped1623 := deconstruct_result1622 - p.pretty_output(unwrapped1623) + deconstruct_result1630 := _t1847 + if deconstruct_result1630 != nil { + unwrapped1631 := deconstruct_result1630 + p.pretty_output(unwrapped1631) } else { _dollar_dollar := msg - var _t1839 *pb.WhatIf + var _t1848 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1839 = _dollar_dollar.GetWhatIf() + _t1848 = _dollar_dollar.GetWhatIf() } - deconstruct_result1620 := _t1839 - if deconstruct_result1620 != nil { - unwrapped1621 := deconstruct_result1620 - p.pretty_what_if(unwrapped1621) + deconstruct_result1628 := _t1848 + if deconstruct_result1628 != nil { + unwrapped1629 := deconstruct_result1628 + p.pretty_what_if(unwrapped1629) } else { _dollar_dollar := msg - var _t1840 *pb.Abort + var _t1849 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1840 = _dollar_dollar.GetAbort() + _t1849 = _dollar_dollar.GetAbort() } - deconstruct_result1618 := _t1840 - if deconstruct_result1618 != nil { - unwrapped1619 := deconstruct_result1618 - p.pretty_abort(unwrapped1619) + deconstruct_result1626 := _t1849 + if deconstruct_result1626 != nil { + unwrapped1627 := deconstruct_result1626 + p.pretty_abort(unwrapped1627) } else { _dollar_dollar := msg - var _t1841 *pb.Export + var _t1850 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1841 = _dollar_dollar.GetExport() + _t1850 = _dollar_dollar.GetExport() } - deconstruct_result1616 := _t1841 - if deconstruct_result1616 != nil { - unwrapped1617 := deconstruct_result1616 - p.pretty_export(unwrapped1617) + deconstruct_result1624 := _t1850 + if deconstruct_result1624 != nil { + unwrapped1625 := deconstruct_result1624 + p.pretty_export(unwrapped1625) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -4895,19 +4929,19 @@ func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { } func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { - flat1629 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) - if flat1629 != nil { - p.write(*flat1629) + flat1637 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1637 != nil { + p.write(*flat1637) return nil } else { _dollar_dollar := msg - fields1627 := _dollar_dollar.GetRelationId() - unwrapped_fields1628 := fields1627 + fields1635 := _dollar_dollar.GetRelationId() + unwrapped_fields1636 := fields1635 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1628) + p.pretty_relation_id(unwrapped_fields1636) p.dedent() p.write(")") } @@ -4915,23 +4949,23 @@ func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { } func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { - flat1634 := p.tryFlat(msg, func() { p.pretty_output(msg) }) - if flat1634 != nil { - p.write(*flat1634) + flat1642 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1642 != nil { + p.write(*flat1642) return nil } else { _dollar_dollar := msg - fields1630 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} - unwrapped_fields1631 := fields1630 + fields1638 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} + unwrapped_fields1639 := fields1638 p.write("(") p.write("output") p.indentSexp() p.newline() - field1632 := unwrapped_fields1631[0].(string) - p.pretty_name(field1632) + field1640 := unwrapped_fields1639[0].(string) + p.pretty_name(field1640) p.newline() - field1633 := unwrapped_fields1631[1].(*pb.RelationId) - p.pretty_relation_id(field1633) + field1641 := unwrapped_fields1639[1].(*pb.RelationId) + p.pretty_relation_id(field1641) p.dedent() p.write(")") } @@ -4939,23 +4973,23 @@ func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { } func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { - flat1639 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) - if flat1639 != nil { - p.write(*flat1639) + flat1647 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1647 != nil { + p.write(*flat1647) return nil } else { _dollar_dollar := msg - fields1635 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} - unwrapped_fields1636 := fields1635 + fields1643 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} + unwrapped_fields1644 := fields1643 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1637 := unwrapped_fields1636[0].(string) - p.pretty_name(field1637) + field1645 := unwrapped_fields1644[0].(string) + p.pretty_name(field1645) p.newline() - field1638 := unwrapped_fields1636[1].(*pb.Epoch) - p.pretty_epoch(field1638) + field1646 := unwrapped_fields1644[1].(*pb.Epoch) + p.pretty_epoch(field1646) p.dedent() p.write(")") } @@ -4963,30 +4997,30 @@ func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { } func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { - flat1645 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) - if flat1645 != nil { - p.write(*flat1645) + flat1653 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1653 != nil { + p.write(*flat1653) return nil } else { _dollar_dollar := msg - var _t1842 *string + var _t1851 *string if _dollar_dollar.GetName() != "abort" { - _t1842 = ptr(_dollar_dollar.GetName()) + _t1851 = ptr(_dollar_dollar.GetName()) } - fields1640 := []interface{}{_t1842, _dollar_dollar.GetRelationId()} - unwrapped_fields1641 := fields1640 + fields1648 := []interface{}{_t1851, _dollar_dollar.GetRelationId()} + unwrapped_fields1649 := fields1648 p.write("(") p.write("abort") p.indentSexp() - field1642 := unwrapped_fields1641[0].(*string) - if field1642 != nil { + field1650 := unwrapped_fields1649[0].(*string) + if field1650 != nil { p.newline() - opt_val1643 := *field1642 - p.pretty_name(opt_val1643) + opt_val1651 := *field1650 + p.pretty_name(opt_val1651) } p.newline() - field1644 := unwrapped_fields1641[1].(*pb.RelationId) - p.pretty_relation_id(field1644) + field1652 := unwrapped_fields1649[1].(*pb.RelationId) + p.pretty_relation_id(field1652) p.dedent() p.write(")") } @@ -4994,40 +5028,40 @@ func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { } func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { - flat1650 := p.tryFlat(msg, func() { p.pretty_export(msg) }) - if flat1650 != nil { - p.write(*flat1650) + flat1658 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1658 != nil { + p.write(*flat1658) return nil } else { _dollar_dollar := msg - var _t1843 *pb.ExportCSVConfig + var _t1852 *pb.ExportCSVConfig if hasProtoField(_dollar_dollar, "csv_config") { - _t1843 = _dollar_dollar.GetCsvConfig() + _t1852 = _dollar_dollar.GetCsvConfig() } - deconstruct_result1648 := _t1843 - if deconstruct_result1648 != nil { - unwrapped1649 := deconstruct_result1648 + deconstruct_result1656 := _t1852 + if deconstruct_result1656 != nil { + unwrapped1657 := deconstruct_result1656 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped1649) + p.pretty_export_csv_config(unwrapped1657) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1844 *pb.ExportIcebergConfig + var _t1853 *pb.ExportIcebergConfig if hasProtoField(_dollar_dollar, "iceberg_config") { - _t1844 = _dollar_dollar.GetIcebergConfig() + _t1853 = _dollar_dollar.GetIcebergConfig() } - deconstruct_result1646 := _t1844 - if deconstruct_result1646 != nil { - unwrapped1647 := deconstruct_result1646 + deconstruct_result1654 := _t1853 + if deconstruct_result1654 != nil { + unwrapped1655 := deconstruct_result1654 p.write("(") p.write("export_iceberg") p.indentSexp() p.newline() - p.pretty_export_iceberg_config(unwrapped1647) + p.pretty_export_iceberg_config(unwrapped1655) p.dedent() p.write(")") } else { @@ -5039,56 +5073,56 @@ func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { } func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interface{} { - flat1661 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) - if flat1661 != nil { - p.write(*flat1661) + flat1669 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1669 != nil { + p.write(*flat1669) return nil } else { _dollar_dollar := msg - var _t1845 []interface{} + var _t1854 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) == 0 { - _t1846 := p.deconstruct_export_csv_output_location(_dollar_dollar) - _t1845 = []interface{}{_t1846, _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + _t1855 := p.deconstruct_export_csv_output_location(_dollar_dollar) + _t1854 = []interface{}{_t1855, _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} } - deconstruct_result1656 := _t1845 - if deconstruct_result1656 != nil { - unwrapped1657 := deconstruct_result1656 + deconstruct_result1664 := _t1854 + if deconstruct_result1664 != nil { + unwrapped1665 := deconstruct_result1664 p.write("(") p.write("export_csv_config_v2") p.indentSexp() p.newline() - field1658 := unwrapped1657[0].([]interface{}) - p.pretty_export_csv_output_location(field1658) + field1666 := unwrapped1665[0].([]interface{}) + p.pretty_export_csv_output_location(field1666) p.newline() - field1659 := unwrapped1657[1].(*pb.ExportCSVSource) - p.pretty_export_csv_source(field1659) + field1667 := unwrapped1665[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1667) p.newline() - field1660 := unwrapped1657[2].(*pb.CSVConfig) - p.pretty_csv_config(field1660) + field1668 := unwrapped1665[2].(*pb.CSVConfig) + p.pretty_csv_config(field1668) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1847 []interface{} + var _t1856 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) != 0 { - _t1848 := p.deconstruct_export_csv_config(_dollar_dollar) - _t1847 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1848} + _t1857 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1856 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1857} } - deconstruct_result1651 := _t1847 - if deconstruct_result1651 != nil { - unwrapped1652 := deconstruct_result1651 + deconstruct_result1659 := _t1856 + if deconstruct_result1659 != nil { + unwrapped1660 := deconstruct_result1659 p.write("(") p.write("export_csv_config") p.indentSexp() p.newline() - field1653 := unwrapped1652[0].(string) - p.pretty_export_csv_path(field1653) + field1661 := unwrapped1660[0].(string) + p.pretty_export_csv_path(field1661) p.newline() - field1654 := unwrapped1652[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns_list(field1654) + field1662 := unwrapped1660[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1662) p.newline() - field1655 := unwrapped1652[2].([][]interface{}) - p.pretty_config_dict(field1655) + field1663 := unwrapped1660[2].([][]interface{}) + p.pretty_config_dict(field1663) p.dedent() p.write(")") } else { @@ -5100,40 +5134,40 @@ func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interf } func (p *PrettyPrinter) pretty_export_csv_output_location(msg []interface{}) interface{} { - flat1666 := p.tryFlat(msg, func() { p.pretty_export_csv_output_location(msg) }) - if flat1666 != nil { - p.write(*flat1666) + flat1674 := p.tryFlat(msg, func() { p.pretty_export_csv_output_location(msg) }) + if flat1674 != nil { + p.write(*flat1674) return nil } else { _dollar_dollar := msg - var _t1849 *string + var _t1858 *string if _dollar_dollar[0].(string) != "" { - _t1849 = ptr(_dollar_dollar[0].(string)) + _t1858 = ptr(_dollar_dollar[0].(string)) } - deconstruct_result1664 := _t1849 - if deconstruct_result1664 != nil { - unwrapped1665 := *deconstruct_result1664 + deconstruct_result1672 := _t1858 + if deconstruct_result1672 != nil { + unwrapped1673 := *deconstruct_result1672 p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(unwrapped1665)) + p.write(p.formatStringValue(unwrapped1673)) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1850 *string + var _t1859 *string if _dollar_dollar[1].(string) != "" { - _t1850 = ptr(_dollar_dollar[1].(string)) + _t1859 = ptr(_dollar_dollar[1].(string)) } - deconstruct_result1662 := _t1850 - if deconstruct_result1662 != nil { - unwrapped1663 := *deconstruct_result1662 + deconstruct_result1670 := _t1859 + if deconstruct_result1670 != nil { + unwrapped1671 := *deconstruct_result1670 p.write("(") p.write("transaction_output_name") p.indentSexp() p.newline() - p.pretty_name(unwrapped1663) + p.pretty_name(unwrapped1671) p.dedent() p.write(")") } else { @@ -5145,47 +5179,47 @@ func (p *PrettyPrinter) pretty_export_csv_output_location(msg []interface{}) int } func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interface{} { - flat1673 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) - if flat1673 != nil { - p.write(*flat1673) + flat1681 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1681 != nil { + p.write(*flat1681) return nil } else { _dollar_dollar := msg - var _t1851 []*pb.ExportCSVColumn + var _t1860 []*pb.ExportCSVColumn if hasProtoField(_dollar_dollar, "gnf_columns") { - _t1851 = _dollar_dollar.GetGnfColumns().GetColumns() + _t1860 = _dollar_dollar.GetGnfColumns().GetColumns() } - deconstruct_result1669 := _t1851 - if deconstruct_result1669 != nil { - unwrapped1670 := deconstruct_result1669 + deconstruct_result1677 := _t1860 + if deconstruct_result1677 != nil { + unwrapped1678 := deconstruct_result1677 p.write("(") p.write("gnf_columns") p.indentSexp() - if !(len(unwrapped1670) == 0) { + if !(len(unwrapped1678) == 0) { p.newline() - for i1672, elem1671 := range unwrapped1670 { - if (i1672 > 0) { + for i1680, elem1679 := range unwrapped1678 { + if (i1680 > 0) { p.newline() } - p.pretty_export_csv_column(elem1671) + p.pretty_export_csv_column(elem1679) } } p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1852 *pb.RelationId + var _t1861 *pb.RelationId if hasProtoField(_dollar_dollar, "table_def") { - _t1852 = _dollar_dollar.GetTableDef() + _t1861 = _dollar_dollar.GetTableDef() } - deconstruct_result1667 := _t1852 - if deconstruct_result1667 != nil { - unwrapped1668 := deconstruct_result1667 + deconstruct_result1675 := _t1861 + if deconstruct_result1675 != nil { + unwrapped1676 := deconstruct_result1675 p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped1668) + p.pretty_relation_id(unwrapped1676) p.dedent() p.write(")") } else { @@ -5197,23 +5231,23 @@ func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interf } func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interface{} { - flat1678 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) - if flat1678 != nil { - p.write(*flat1678) + flat1686 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1686 != nil { + p.write(*flat1686) return nil } else { _dollar_dollar := msg - fields1674 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} - unwrapped_fields1675 := fields1674 + fields1682 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} + unwrapped_fields1683 := fields1682 p.write("(") p.write("column") p.indentSexp() p.newline() - field1676 := unwrapped_fields1675[0].(string) - p.write(p.formatStringValue(field1676)) + field1684 := unwrapped_fields1683[0].(string) + p.write(p.formatStringValue(field1684)) p.newline() - field1677 := unwrapped_fields1675[1].(*pb.RelationId) - p.pretty_relation_id(field1677) + field1685 := unwrapped_fields1683[1].(*pb.RelationId) + p.pretty_relation_id(field1685) p.dedent() p.write(")") } @@ -5221,17 +5255,17 @@ func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interf } func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { - flat1680 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) - if flat1680 != nil { - p.write(*flat1680) + flat1688 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1688 != nil { + p.write(*flat1688) return nil } else { - fields1679 := msg + fields1687 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1679)) + p.write(p.formatStringValue(fields1687)) p.dedent() p.write(")") } @@ -5239,22 +5273,22 @@ func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { } func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn) interface{} { - flat1684 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) - if flat1684 != nil { - p.write(*flat1684) + flat1692 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1692 != nil { + p.write(*flat1692) return nil } else { - fields1681 := msg + fields1689 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1681) == 0) { + if !(len(fields1689) == 0) { p.newline() - for i1683, elem1682 := range fields1681 { - if (i1683 > 0) { + for i1691, elem1690 := range fields1689 { + if (i1691 > 0) { p.newline() } - p.pretty_export_csv_column(elem1682) + p.pretty_export_csv_column(elem1690) } } p.dedent() @@ -5264,35 +5298,35 @@ func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn } func (p *PrettyPrinter) pretty_export_iceberg_config(msg *pb.ExportIcebergConfig) interface{} { - flat1693 := p.tryFlat(msg, func() { p.pretty_export_iceberg_config(msg) }) - if flat1693 != nil { - p.write(*flat1693) + flat1701 := p.tryFlat(msg, func() { p.pretty_export_iceberg_config(msg) }) + if flat1701 != nil { + p.write(*flat1701) return nil } else { _dollar_dollar := msg - _t1853 := p.deconstruct_export_iceberg_config_optional(_dollar_dollar) - fields1685 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetTableDef(), dictToPairs(_dollar_dollar.GetTableProperties()), _t1853} - unwrapped_fields1686 := fields1685 + _t1862 := p.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1693 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetTableDef(), dictToPairs(_dollar_dollar.GetTableProperties()), _t1862} + unwrapped_fields1694 := fields1693 p.write("(") p.write("export_iceberg_config") p.indentSexp() p.newline() - field1687 := unwrapped_fields1686[0].(*pb.IcebergLocator) - p.pretty_iceberg_locator(field1687) + field1695 := unwrapped_fields1694[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1695) p.newline() - field1688 := unwrapped_fields1686[1].(*pb.IcebergCatalogConfig) - p.pretty_iceberg_catalog_config(field1688) + field1696 := unwrapped_fields1694[1].(*pb.IcebergCatalogConfig) + p.pretty_iceberg_catalog_config(field1696) p.newline() - field1689 := unwrapped_fields1686[2].(*pb.RelationId) - p.pretty_export_iceberg_table_def(field1689) + field1697 := unwrapped_fields1694[2].(*pb.RelationId) + p.pretty_export_iceberg_table_def(field1697) p.newline() - field1690 := unwrapped_fields1686[3].([][]interface{}) - p.pretty_iceberg_table_properties(field1690) - field1691 := unwrapped_fields1686[4].([][]interface{}) - if field1691 != nil { + field1698 := unwrapped_fields1694[3].([][]interface{}) + p.pretty_iceberg_table_properties(field1698) + field1699 := unwrapped_fields1694[4].([][]interface{}) + if field1699 != nil { p.newline() - opt_val1692 := field1691 - p.pretty_config_dict(opt_val1692) + opt_val1700 := field1699 + p.pretty_config_dict(opt_val1700) } p.dedent() p.write(")") @@ -5301,17 +5335,17 @@ func (p *PrettyPrinter) pretty_export_iceberg_config(msg *pb.ExportIcebergConfig } func (p *PrettyPrinter) pretty_export_iceberg_table_def(msg *pb.RelationId) interface{} { - flat1695 := p.tryFlat(msg, func() { p.pretty_export_iceberg_table_def(msg) }) - if flat1695 != nil { - p.write(*flat1695) + flat1703 := p.tryFlat(msg, func() { p.pretty_export_iceberg_table_def(msg) }) + if flat1703 != nil { + p.write(*flat1703) return nil } else { - fields1694 := msg + fields1702 := msg p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(fields1694) + p.pretty_relation_id(fields1702) p.dedent() p.write(")") } @@ -5319,22 +5353,22 @@ func (p *PrettyPrinter) pretty_export_iceberg_table_def(msg *pb.RelationId) inte } func (p *PrettyPrinter) pretty_iceberg_table_properties(msg [][]interface{}) interface{} { - flat1699 := p.tryFlat(msg, func() { p.pretty_iceberg_table_properties(msg) }) - if flat1699 != nil { - p.write(*flat1699) + flat1707 := p.tryFlat(msg, func() { p.pretty_iceberg_table_properties(msg) }) + if flat1707 != nil { + p.write(*flat1707) return nil } else { - fields1696 := msg + fields1704 := msg p.write("(") p.write("table_properties") p.indentSexp() - if !(len(fields1696) == 0) { + if !(len(fields1704) == 0) { p.newline() - for i1698, elem1697 := range fields1696 { - if (i1698 > 0) { + for i1706, elem1705 := range fields1704 { + if (i1706 > 0) { p.newline() } - p.pretty_iceberg_property_entry(elem1697) + p.pretty_iceberg_property_entry(elem1705) } } p.dedent() @@ -5352,8 +5386,8 @@ func (p *PrettyPrinter) pretty_debug_info(msg *pb.DebugInfo) interface{} { for _idx, _rid := range msg.GetIds() { p.newline() p.write("(") - _t1907 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} - p.pprintDispatch(_t1907) + _t1917 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1917) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/equality.jl b/sdks/julia/LogicalQueryProtocol.jl/src/equality.jl index 3eb709a0..63855e2a 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/equality.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/equality.jl @@ -607,9 +607,9 @@ Base.hash(a::CDCTargets, h::UInt) = hash(a.deletes, hash(a.inserts, h)) Base.isequal(a::CDCTargets, b::CDCTargets) = isequal(a.inserts, b.inserts) && isequal(a.deletes, b.deletes) # TargetRelations -Base.:(==)(a::TargetRelations, b::TargetRelations) = a.keys == b.keys && a.synthetic_key == b.synthetic_key && _isequal_oneof(a.body, b.body) -Base.hash(a::TargetRelations, h::UInt) = _hash_oneof(a.body, hash(a.synthetic_key, hash(a.keys, h))) -Base.isequal(a::TargetRelations, b::TargetRelations) = isequal(a.keys, b.keys) && isequal(a.synthetic_key, b.synthetic_key) && _isequal_oneof(a.body, b.body) +Base.:(==)(a::TargetRelations, b::TargetRelations) = a.keys == b.keys && a.synthetic_key == b.synthetic_key && a.load_errors == b.load_errors && _isequal_oneof(a.body, b.body) +Base.hash(a::TargetRelations, h::UInt) = _hash_oneof(a.body, hash(a.load_errors, hash(a.synthetic_key, hash(a.keys, h)))) +Base.isequal(a::TargetRelations, b::TargetRelations) = isequal(a.keys, b.keys) && isequal(a.synthetic_key, b.synthetic_key) && isequal(a.load_errors, b.load_errors) && _isequal_oneof(a.body, b.body) # CSVData Base.:(==)(a::CSVData, b::CSVData) = a.locator == b.locator && a.config == b.config && a.columns == b.columns && a.asof == b.asof && a.relations == b.relations 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 bae7fbb4..3c092dea 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 @@ -2164,18 +2164,20 @@ struct TargetRelations keys::Vector{NamedColumn} body::Union{Nothing,OneOf{<:Union{PlainTargets,CDCTargets}}} synthetic_key::Bool + load_errors::Union{Nothing,RelationId} end -TargetRelations(;keys = Vector{NamedColumn}(), body = nothing, synthetic_key = false) = TargetRelations(keys, body, synthetic_key) +TargetRelations(;keys = Vector{NamedColumn}(), body = nothing, synthetic_key = false, load_errors = nothing) = TargetRelations(keys, body, synthetic_key, load_errors) PB.oneof_field_types(::Type{TargetRelations}) = (; body = (;plain=PlainTargets, cdc=CDCTargets), ) -PB.default_values(::Type{TargetRelations}) = (;keys = Vector{NamedColumn}(), plain = nothing, cdc = nothing, synthetic_key = false) -PB.field_numbers(::Type{TargetRelations}) = (;keys = 1, plain = 2, cdc = 3, synthetic_key = 4) +PB.default_values(::Type{TargetRelations}) = (;keys = Vector{NamedColumn}(), plain = nothing, cdc = nothing, synthetic_key = false, load_errors = nothing) +PB.field_numbers(::Type{TargetRelations}) = (;keys = 1, plain = 2, cdc = 3, synthetic_key = 4, load_errors = 5) function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:TargetRelations}, _endpos::Int=0, _group::Bool=false) keys = PB.BufferedVector{NamedColumn}() body = nothing synthetic_key = false + load_errors = Ref{Union{Nothing,RelationId}}(nothing) while !PB.message_done(d, _endpos, _group) field_number, wire_type = PB.decode_tag(d) if field_number == 1 @@ -2186,11 +2188,13 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:TargetRelations}, _endpo body = OneOf(:cdc, PB.decode(d, Ref{CDCTargets})) elseif field_number == 4 synthetic_key = PB.decode(d, Bool) + elseif field_number == 5 + PB.decode!(d, load_errors) else Base.skip(d, wire_type) end end - return TargetRelations(keys[], body, synthetic_key) + return TargetRelations(keys[], body, synthetic_key, load_errors[]) end function PB.encode(e::PB.AbstractProtoEncoder, x::TargetRelations) @@ -2203,6 +2207,7 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::TargetRelations) PB.encode(e, 3, x.body[]::CDCTargets) end x.synthetic_key != false && PB.encode(e, 4, x.synthetic_key) + !isnothing(x.load_errors) && PB.encode(e, 5, x.load_errors) return position(e.io) - initpos end function PB._encoded_size(x::TargetRelations) @@ -2215,6 +2220,7 @@ function PB._encoded_size(x::TargetRelations) encoded_size += PB._encoded_size(x.body[]::CDCTargets, 3) end x.synthetic_key != false && (encoded_size += PB._encoded_size(x.synthetic_key, 4)) + !isnothing(x.load_errors) && (encoded_size += PB._encoded_size(x.load_errors, 5)) return encoded_size end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl index 0509a245..31e7c602 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl @@ -372,12 +372,12 @@ function _extract_value_int32(parser::ParserState, value::Union{Nothing, Proto.V if isnothing(value) return Int32(default) else - _t2208 = nothing + _t2219 = nothing end if _has_proto_field(value, Symbol("int32_value")) return _get_oneof_field(value, :int32_value) else - _t2209 = nothing + _t2220 = nothing end throw(ParseError("expected an int32 value (e.g. `1i32`) for this config field")) end @@ -386,7 +386,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 - _t2210 = nothing + _t2221 = nothing end return default end @@ -395,7 +395,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 - _t2211 = nothing + _t2222 = nothing end return default end @@ -404,7 +404,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 - _t2212 = nothing + _t2223 = nothing end return default end @@ -413,7 +413,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 - _t2213 = nothing + _t2224 = nothing end return default end @@ -422,7 +422,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 - _t2214 = nothing + _t2225 = nothing end return nothing end @@ -431,7 +431,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 - _t2215 = nothing + _t2226 = nothing end return nothing end @@ -440,7 +440,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 - _t2216 = nothing + _t2227 = nothing end return nothing end @@ -449,118 +449,118 @@ 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 - _t2217 = nothing + _t2228 = nothing end return nothing end function construct_non_cdc_relations(parser::ParserState, targets::Vector{Proto.TargetRelation})::Proto.TargetRelations - _t2218 = Proto.PlainTargets(targets=targets) - _t2219 = Proto.TargetRelations(body=OneOf(:plain, _t2218), keys=Proto.NamedColumn[]) - return _t2219 + _t2229 = Proto.PlainTargets(targets=targets) + _t2230 = Proto.TargetRelations(body=OneOf(:plain, _t2229), keys=Proto.NamedColumn[]) + return _t2230 end function construct_cdc_relations(parser::ParserState, inserts::Vector{Proto.TargetRelation}, deletes::Vector{Proto.TargetRelation})::Proto.TargetRelations - _t2220 = Proto.CDCTargets(inserts=inserts, deletes=deletes) - _t2221 = Proto.TargetRelations(body=OneOf(:cdc, _t2220), keys=Proto.NamedColumn[]) - return _t2221 + _t2231 = Proto.CDCTargets(inserts=inserts, deletes=deletes) + _t2232 = Proto.TargetRelations(body=OneOf(:cdc, _t2231), keys=Proto.NamedColumn[]) + return _t2232 end -function construct_relations(parser::ParserState, keys::Tuple{Vector{Proto.NamedColumn}, Bool}, body::Proto.TargetRelations)::Proto.TargetRelations +function construct_relations(parser::ParserState, keys::Tuple{Vector{Proto.NamedColumn}, Bool}, body::Proto.TargetRelations, load_errors_opt::Union{Nothing, Proto.RelationId})::Proto.TargetRelations if _has_proto_field(body, Symbol("plain")) - _t2223 = Proto.TargetRelations(body=OneOf(:plain, _get_oneof_field(body, :plain)), keys=keys[1], synthetic_key=keys[2]) - return _t2223 + _t2234 = Proto.TargetRelations(body=OneOf(:plain, _get_oneof_field(body, :plain)), keys=keys[1], synthetic_key=keys[2], load_errors=load_errors_opt) + return _t2234 else - _t2222 = nothing + _t2233 = nothing end - _t2224 = Proto.TargetRelations(body=OneOf(:cdc, _get_oneof_field(body, :cdc)), keys=keys[1], synthetic_key=keys[2]) - return _t2224 + _t2235 = Proto.TargetRelations(body=OneOf(:cdc, _get_oneof_field(body, :cdc)), keys=keys[1], synthetic_key=keys[2], load_errors=load_errors_opt) + return _t2235 end function construct_csv_data(parser::ParserState, locator::Proto.CSVLocator, config::Proto.CSVConfig, columns_opt::Union{Nothing, Vector{Proto.GNFColumn}}, relations_opt::Union{Nothing, Proto.TargetRelations}, asof::String)::Proto.CSVData - _t2225 = Proto.CSVData(locator=locator, config=config, columns=(!isnothing(columns_opt) ? columns_opt : Proto.GNFColumn[]), asof=asof, relations=relations_opt) - return _t2225 + _t2236 = Proto.CSVData(locator=locator, config=config, columns=(!isnothing(columns_opt) ? columns_opt : Proto.GNFColumn[]), asof=asof, relations=relations_opt) + return _t2236 end function construct_csv_config(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}}, storage_integration_opt::Union{Nothing, Vector{Tuple{String, Proto.Value}}})::Proto.CSVConfig config = Dict(config_dict) - _t2226 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) - header_row = _t2226 - _t2227 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) - skip = _t2227 - _t2228 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") - new_line = _t2228 - _t2229 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") - delimiter = _t2229 - _t2230 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") - quotechar = _t2230 - _t2231 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") - escapechar = _t2231 - _t2232 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") - comment = _t2232 - _t2233 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) - missing_strings = _t2233 - _t2234 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") - decimal_separator = _t2234 - _t2235 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") - encoding = _t2235 - _t2236 = _extract_value_string(parser, get(config, "csv_compression", nothing), "") - compression = _t2236 - _t2237 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) - partition_size_mb = _t2237 - _t2238 = construct_csv_storage_integration(parser, storage_integration_opt) - storage_integration = _t2238 - _t2239 = 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, storage_integration=storage_integration) - return _t2239 + _t2237 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t2237 + _t2238 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t2238 + _t2239 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t2239 + _t2240 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t2240 + _t2241 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t2241 + _t2242 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t2242 + _t2243 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t2243 + _t2244 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t2244 + _t2245 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t2245 + _t2246 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t2246 + _t2247 = _extract_value_string(parser, get(config, "csv_compression", nothing), "") + compression = _t2247 + _t2248 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t2248 + _t2249 = construct_csv_storage_integration(parser, storage_integration_opt) + storage_integration = _t2249 + _t2250 = 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, storage_integration=storage_integration) + return _t2250 end function construct_csv_storage_integration(parser::ParserState, storage_integration_opt::Union{Nothing, Vector{Tuple{String, Proto.Value}}})::Union{Nothing, Proto.StorageIntegration} if isnothing(storage_integration_opt) return nothing else - _t2240 = nothing + _t2251 = nothing end config = Dict(storage_integration_opt) - _t2241 = _extract_value_string(parser, get(config, "provider", nothing), "") - _t2242 = _extract_value_string(parser, get(config, "azure_sas_token", nothing), "") - _t2243 = _extract_value_string(parser, get(config, "s3_region", nothing), "") - _t2244 = _extract_value_string(parser, get(config, "s3_access_key_id", nothing), "") - _t2245 = _extract_value_string(parser, get(config, "s3_secret_access_key", nothing), "") - _t2246 = Proto.StorageIntegration(provider=_t2241, azure_sas_token=_t2242, s3_region=_t2243, s3_access_key_id=_t2244, s3_secret_access_key=_t2245) - return _t2246 + _t2252 = _extract_value_string(parser, get(config, "provider", nothing), "") + _t2253 = _extract_value_string(parser, get(config, "azure_sas_token", nothing), "") + _t2254 = _extract_value_string(parser, get(config, "s3_region", nothing), "") + _t2255 = _extract_value_string(parser, get(config, "s3_access_key_id", nothing), "") + _t2256 = _extract_value_string(parser, get(config, "s3_secret_access_key", nothing), "") + _t2257 = Proto.StorageIntegration(provider=_t2252, azure_sas_token=_t2253, s3_region=_t2254, s3_access_key_id=_t2255, s3_secret_access_key=_t2256) + return _t2257 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) - _t2247 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) - epsilon = _t2247 - _t2248 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) - max_pivots = _t2248 - _t2249 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) - max_deltas = _t2249 - _t2250 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) - max_leaf = _t2250 - _t2251 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t2251 - _t2252 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) - root_pageid = _t2252 - _t2253 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) - inline_data = _t2253 - _t2254 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) - element_count = _t2254 - _t2255 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) - tree_height = _t2255 - _t2256 = 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 = _t2256 - _t2257 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t2257 + _t2258 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t2258 + _t2259 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t2259 + _t2260 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t2260 + _t2261 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t2261 + _t2262 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2262 + _t2263 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t2263 + _t2264 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t2264 + _t2265 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t2265 + _t2266 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t2266 + _t2267 = 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 = _t2267 + _t2268 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2268 end function default_configure(parser::ParserState)::Proto.Configure - _t2258 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t2258 - _t2259 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) - return _t2259 + _t2269 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2269 + _t2270 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2270 end function construct_configure(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.Configure @@ -582,10 +582,10 @@ function construct_configure(parser::ParserState, config_dict::Vector{Tuple{Stri end end end - _t2260 = Proto.IVMConfig(level=maintenance_level) - ivm_config = _t2260 - _t2261 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) - semantics_version = _t2261 + _t2271 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t2271 + _t2272 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t2272 config_values_pairs = Tuple{String, Proto.Value}[] for pair in config_dict if (pair[1] != "semantics_version" && pair[1] != "ivm.maintenance_level") @@ -593,2825 +593,2809 @@ function construct_configure(parser::ParserState, config_dict::Vector{Tuple{Stri end end configuration_values = Dict(config_values_pairs) - _t2262 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config, configuration_values=configuration_values) - return _t2262 + _t2273 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config, configuration_values=configuration_values) + return _t2273 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) - _t2263 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) - partition_size = _t2263 - _t2264 = _extract_value_string(parser, get(config, "compression", nothing), "") - compression = _t2264 - _t2265 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) - syntax_header_row = _t2265 - _t2266 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") - syntax_missing_string = _t2266 - _t2267 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") - syntax_delim = _t2267 - _t2268 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") - syntax_quotechar = _t2268 - _t2269 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") - syntax_escapechar = _t2269 - _t2270 = 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 _t2270 + _t2274 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t2274 + _t2275 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t2275 + _t2276 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t2276 + _t2277 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t2277 + _t2278 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t2278 + _t2279 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t2279 + _t2280 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t2280 + _t2281 = 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 _t2281 end function construct_export_csv_config_with_location(parser::ParserState, location::Tuple{String, String}, csv_source::Proto.ExportCSVSource, csv_config::Proto.CSVConfig)::Proto.ExportCSVConfig - _t2271 = Proto.ExportCSVConfig(path=location[1], transaction_output_name=location[2], csv_source=csv_source, csv_config=csv_config) - return _t2271 + _t2282 = Proto.ExportCSVConfig(path=location[1], transaction_output_name=location[2], csv_source=csv_source, csv_config=csv_config) + return _t2282 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) - _t2272 = Proto.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope_opt) ? scope_opt : ""), properties=props, auth_properties=auth_props) - return _t2272 + _t2283 = Proto.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope_opt) ? scope_opt : ""), properties=props, auth_properties=auth_props) + return _t2283 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 - _t2273 = 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 _t2273 + _t2284 = 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 _t2284 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}[])) - _t2274 = _extract_value_string(parser, get(cfg, "prefix", nothing), "") - prefix = _t2274 - _t2275 = _extract_value_int64(parser, get(cfg, "target_file_size_bytes", nothing), 0) - target_file_size_bytes = _t2275 - _t2276 = _extract_value_string(parser, get(cfg, "compression", nothing), "") - compression = _t2276 + _t2285 = _extract_value_string(parser, get(cfg, "prefix", nothing), "") + prefix = _t2285 + _t2286 = _extract_value_int64(parser, get(cfg, "target_file_size_bytes", nothing), 0) + target_file_size_bytes = _t2286 + _t2287 = _extract_value_string(parser, get(cfg, "compression", nothing), "") + compression = _t2287 table_props = Dict(table_property_pairs) - _t2277 = 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 _t2277 + _t2288 = 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 _t2288 end # --- Parse functions --- function parse_transaction(parser::ParserState)::Proto.Transaction - span_start714 = span_start(parser) + span_start718 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "transaction") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "configure", 1)) - _t1417 = parse_configure(parser) - _t1416 = _t1417 + _t1425 = parse_configure(parser) + _t1424 = _t1425 else - _t1416 = nothing + _t1424 = nothing end - configure708 = _t1416 + configure712 = _t1424 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t1419 = parse_sync(parser) - _t1418 = _t1419 + _t1427 = parse_sync(parser) + _t1426 = _t1427 else - _t1418 = nothing - end - sync709 = _t1418 - xs710 = Proto.Epoch[] - cond711 = match_lookahead_literal(parser, "(", 0) - while cond711 - _t1420 = parse_epoch(parser) - item712 = _t1420 - push!(xs710, item712) - cond711 = match_lookahead_literal(parser, "(", 0) - end - epochs713 = xs710 + _t1426 = nothing + end + sync713 = _t1426 + xs714 = Proto.Epoch[] + cond715 = match_lookahead_literal(parser, "(", 0) + while cond715 + _t1428 = parse_epoch(parser) + item716 = _t1428 + push!(xs714, item716) + cond715 = match_lookahead_literal(parser, "(", 0) + end + epochs717 = xs714 consume_literal!(parser, ")") - _t1421 = default_configure(parser) - _t1422 = Proto.Transaction(epochs=epochs713, configure=(!isnothing(configure708) ? configure708 : _t1421), sync=sync709) - result715 = _t1422 - record_span!(parser, span_start714, "Transaction") - return result715 + _t1429 = default_configure(parser) + _t1430 = Proto.Transaction(epochs=epochs717, configure=(!isnothing(configure712) ? configure712 : _t1429), sync=sync713) + result719 = _t1430 + record_span!(parser, span_start718, "Transaction") + return result719 end function parse_configure(parser::ParserState)::Proto.Configure - span_start717 = span_start(parser) + span_start721 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t1423 = parse_config_dict(parser) - config_dict716 = _t1423 + _t1431 = parse_config_dict(parser) + config_dict720 = _t1431 consume_literal!(parser, ")") - _t1424 = construct_configure(parser, config_dict716) - result718 = _t1424 - record_span!(parser, span_start717, "Configure") - return result718 + _t1432 = construct_configure(parser, config_dict720) + result722 = _t1432 + record_span!(parser, span_start721, "Configure") + return result722 end function parse_config_dict(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "{") - xs719 = Tuple{String, Proto.Value}[] - cond720 = match_lookahead_literal(parser, ":", 0) - while cond720 - _t1425 = parse_config_key_value(parser) - item721 = _t1425 - push!(xs719, item721) - cond720 = match_lookahead_literal(parser, ":", 0) - end - config_key_values722 = xs719 + xs723 = Tuple{String, Proto.Value}[] + cond724 = match_lookahead_literal(parser, ":", 0) + while cond724 + _t1433 = parse_config_key_value(parser) + item725 = _t1433 + push!(xs723, item725) + cond724 = match_lookahead_literal(parser, ":", 0) + end + config_key_values726 = xs723 consume_literal!(parser, "}") - return config_key_values722 + return config_key_values726 end function parse_config_key_value(parser::ParserState)::Tuple{String, Proto.Value} consume_literal!(parser, ":") - symbol723 = consume_terminal!(parser, "SYMBOL") - _t1426 = parse_raw_value(parser) - raw_value724 = _t1426 - return (symbol723, raw_value724,) + symbol727 = consume_terminal!(parser, "SYMBOL") + _t1434 = parse_raw_value(parser) + raw_value728 = _t1434 + return (symbol727, raw_value728,) end function parse_raw_value(parser::ParserState)::Proto.Value - span_start738 = span_start(parser) + span_start742 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1427 = 12 + _t1435 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1428 = 11 + _t1436 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1429 = 12 + _t1437 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1431 = 1 + _t1439 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1432 = 0 + _t1440 = 0 else - _t1432 = -1 + _t1440 = -1 end - _t1431 = _t1432 + _t1439 = _t1440 end - _t1430 = _t1431 + _t1438 = _t1439 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1433 = 7 + _t1441 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1434 = 8 + _t1442 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1435 = 2 + _t1443 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1436 = 3 + _t1444 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1437 = 9 + _t1445 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1438 = 4 + _t1446 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1439 = 5 + _t1447 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1440 = 6 + _t1448 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1441 = 10 + _t1449 = 10 else - _t1441 = -1 + _t1449 = -1 end - _t1440 = _t1441 + _t1448 = _t1449 end - _t1439 = _t1440 + _t1447 = _t1448 end - _t1438 = _t1439 + _t1446 = _t1447 end - _t1437 = _t1438 + _t1445 = _t1446 end - _t1436 = _t1437 + _t1444 = _t1445 end - _t1435 = _t1436 + _t1443 = _t1444 end - _t1434 = _t1435 + _t1442 = _t1443 end - _t1433 = _t1434 + _t1441 = _t1442 end - _t1430 = _t1433 + _t1438 = _t1441 end - _t1429 = _t1430 + _t1437 = _t1438 end - _t1428 = _t1429 + _t1436 = _t1437 end - _t1427 = _t1428 - end - prediction725 = _t1427 - if prediction725 == 12 - _t1443 = parse_boolean_value(parser) - boolean_value737 = _t1443 - _t1444 = Proto.Value(value=OneOf(:boolean_value, boolean_value737)) - _t1442 = _t1444 + _t1435 = _t1436 + end + prediction729 = _t1435 + if prediction729 == 12 + _t1451 = parse_boolean_value(parser) + boolean_value741 = _t1451 + _t1452 = Proto.Value(value=OneOf(:boolean_value, boolean_value741)) + _t1450 = _t1452 else - if prediction725 == 11 + if prediction729 == 11 consume_literal!(parser, "missing") - _t1446 = Proto.MissingValue() - _t1447 = Proto.Value(value=OneOf(:missing_value, _t1446)) - _t1445 = _t1447 + _t1454 = Proto.MissingValue() + _t1455 = Proto.Value(value=OneOf(:missing_value, _t1454)) + _t1453 = _t1455 else - if prediction725 == 10 - decimal736 = consume_terminal!(parser, "DECIMAL") - _t1449 = Proto.Value(value=OneOf(:decimal_value, decimal736)) - _t1448 = _t1449 + if prediction729 == 10 + decimal740 = consume_terminal!(parser, "DECIMAL") + _t1457 = Proto.Value(value=OneOf(:decimal_value, decimal740)) + _t1456 = _t1457 else - if prediction725 == 9 - int128735 = consume_terminal!(parser, "INT128") - _t1451 = Proto.Value(value=OneOf(:int128_value, int128735)) - _t1450 = _t1451 + if prediction729 == 9 + int128739 = consume_terminal!(parser, "INT128") + _t1459 = Proto.Value(value=OneOf(:int128_value, int128739)) + _t1458 = _t1459 else - if prediction725 == 8 - uint128734 = consume_terminal!(parser, "UINT128") - _t1453 = Proto.Value(value=OneOf(:uint128_value, uint128734)) - _t1452 = _t1453 + if prediction729 == 8 + uint128738 = consume_terminal!(parser, "UINT128") + _t1461 = Proto.Value(value=OneOf(:uint128_value, uint128738)) + _t1460 = _t1461 else - if prediction725 == 7 - uint32733 = consume_terminal!(parser, "UINT32") - _t1455 = Proto.Value(value=OneOf(:uint32_value, uint32733)) - _t1454 = _t1455 + if prediction729 == 7 + uint32737 = consume_terminal!(parser, "UINT32") + _t1463 = Proto.Value(value=OneOf(:uint32_value, uint32737)) + _t1462 = _t1463 else - if prediction725 == 6 - float732 = consume_terminal!(parser, "FLOAT") - _t1457 = Proto.Value(value=OneOf(:float_value, float732)) - _t1456 = _t1457 + if prediction729 == 6 + float736 = consume_terminal!(parser, "FLOAT") + _t1465 = Proto.Value(value=OneOf(:float_value, float736)) + _t1464 = _t1465 else - if prediction725 == 5 - float32731 = consume_terminal!(parser, "FLOAT32") - _t1459 = Proto.Value(value=OneOf(:float32_value, float32731)) - _t1458 = _t1459 + if prediction729 == 5 + float32735 = consume_terminal!(parser, "FLOAT32") + _t1467 = Proto.Value(value=OneOf(:float32_value, float32735)) + _t1466 = _t1467 else - if prediction725 == 4 - int730 = consume_terminal!(parser, "INT") - _t1461 = Proto.Value(value=OneOf(:int_value, int730)) - _t1460 = _t1461 + if prediction729 == 4 + int734 = consume_terminal!(parser, "INT") + _t1469 = Proto.Value(value=OneOf(:int_value, int734)) + _t1468 = _t1469 else - if prediction725 == 3 - int32729 = consume_terminal!(parser, "INT32") - _t1463 = Proto.Value(value=OneOf(:int32_value, int32729)) - _t1462 = _t1463 + if prediction729 == 3 + int32733 = consume_terminal!(parser, "INT32") + _t1471 = Proto.Value(value=OneOf(:int32_value, int32733)) + _t1470 = _t1471 else - if prediction725 == 2 - string728 = consume_terminal!(parser, "STRING") - _t1465 = Proto.Value(value=OneOf(:string_value, string728)) - _t1464 = _t1465 + if prediction729 == 2 + string732 = consume_terminal!(parser, "STRING") + _t1473 = Proto.Value(value=OneOf(:string_value, string732)) + _t1472 = _t1473 else - if prediction725 == 1 - _t1467 = parse_raw_datetime(parser) - raw_datetime727 = _t1467 - _t1468 = Proto.Value(value=OneOf(:datetime_value, raw_datetime727)) - _t1466 = _t1468 + if prediction729 == 1 + _t1475 = parse_raw_datetime(parser) + raw_datetime731 = _t1475 + _t1476 = Proto.Value(value=OneOf(:datetime_value, raw_datetime731)) + _t1474 = _t1476 else - if prediction725 == 0 - _t1470 = parse_raw_date(parser) - raw_date726 = _t1470 - _t1471 = Proto.Value(value=OneOf(:date_value, raw_date726)) - _t1469 = _t1471 + if prediction729 == 0 + _t1478 = parse_raw_date(parser) + raw_date730 = _t1478 + _t1479 = Proto.Value(value=OneOf(:date_value, raw_date730)) + _t1477 = _t1479 else throw(ParseError("Unexpected token in raw_value" * ": " * string(lookahead(parser, 0)))) end - _t1466 = _t1469 + _t1474 = _t1477 end - _t1464 = _t1466 + _t1472 = _t1474 end - _t1462 = _t1464 + _t1470 = _t1472 end - _t1460 = _t1462 + _t1468 = _t1470 end - _t1458 = _t1460 + _t1466 = _t1468 end - _t1456 = _t1458 + _t1464 = _t1466 end - _t1454 = _t1456 + _t1462 = _t1464 end - _t1452 = _t1454 + _t1460 = _t1462 end - _t1450 = _t1452 + _t1458 = _t1460 end - _t1448 = _t1450 + _t1456 = _t1458 end - _t1445 = _t1448 + _t1453 = _t1456 end - _t1442 = _t1445 + _t1450 = _t1453 end - result739 = _t1442 - record_span!(parser, span_start738, "Value") - return result739 + result743 = _t1450 + record_span!(parser, span_start742, "Value") + return result743 end function parse_raw_date(parser::ParserState)::Proto.DateValue - span_start743 = span_start(parser) + span_start747 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "date") - int740 = consume_terminal!(parser, "INT") - int_3741 = consume_terminal!(parser, "INT") - int_4742 = consume_terminal!(parser, "INT") + int744 = consume_terminal!(parser, "INT") + int_3745 = consume_terminal!(parser, "INT") + int_4746 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1472 = Proto.DateValue(year=Int32(int740), month=Int32(int_3741), day=Int32(int_4742)) - result744 = _t1472 - record_span!(parser, span_start743, "DateValue") - return result744 + _t1480 = Proto.DateValue(year=Int32(int744), month=Int32(int_3745), day=Int32(int_4746)) + result748 = _t1480 + record_span!(parser, span_start747, "DateValue") + return result748 end function parse_raw_datetime(parser::ParserState)::Proto.DateTimeValue - span_start752 = span_start(parser) + span_start756 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "datetime") - int745 = consume_terminal!(parser, "INT") - int_3746 = consume_terminal!(parser, "INT") - int_4747 = consume_terminal!(parser, "INT") - int_5748 = consume_terminal!(parser, "INT") - int_6749 = consume_terminal!(parser, "INT") - int_7750 = consume_terminal!(parser, "INT") + int749 = consume_terminal!(parser, "INT") + int_3750 = consume_terminal!(parser, "INT") + int_4751 = consume_terminal!(parser, "INT") + int_5752 = consume_terminal!(parser, "INT") + int_6753 = consume_terminal!(parser, "INT") + int_7754 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1473 = consume_terminal!(parser, "INT") + _t1481 = consume_terminal!(parser, "INT") else - _t1473 = nothing + _t1481 = nothing end - int_8751 = _t1473 + int_8755 = _t1481 consume_literal!(parser, ")") - _t1474 = Proto.DateTimeValue(year=Int32(int745), month=Int32(int_3746), day=Int32(int_4747), hour=Int32(int_5748), minute=Int32(int_6749), second=Int32(int_7750), microsecond=Int32((!isnothing(int_8751) ? int_8751 : 0))) - result753 = _t1474 - record_span!(parser, span_start752, "DateTimeValue") - return result753 + _t1482 = Proto.DateTimeValue(year=Int32(int749), month=Int32(int_3750), day=Int32(int_4751), hour=Int32(int_5752), minute=Int32(int_6753), second=Int32(int_7754), microsecond=Int32((!isnothing(int_8755) ? int_8755 : 0))) + result757 = _t1482 + record_span!(parser, span_start756, "DateTimeValue") + return result757 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t1475 = 0 + _t1483 = 0 else if match_lookahead_literal(parser, "false", 0) - _t1476 = 1 + _t1484 = 1 else - _t1476 = -1 + _t1484 = -1 end - _t1475 = _t1476 + _t1483 = _t1484 end - prediction754 = _t1475 - if prediction754 == 1 + prediction758 = _t1483 + if prediction758 == 1 consume_literal!(parser, "false") - _t1477 = false + _t1485 = false else - if prediction754 == 0 + if prediction758 == 0 consume_literal!(parser, "true") - _t1478 = true + _t1486 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t1477 = _t1478 + _t1485 = _t1486 end - return _t1477 + return _t1485 end function parse_sync(parser::ParserState)::Proto.Sync - span_start759 = span_start(parser) + span_start763 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sync") - xs755 = Proto.FragmentId[] - cond756 = match_lookahead_literal(parser, ":", 0) - while cond756 - _t1479 = parse_fragment_id(parser) - item757 = _t1479 - push!(xs755, item757) - cond756 = match_lookahead_literal(parser, ":", 0) - end - fragment_ids758 = xs755 + xs759 = Proto.FragmentId[] + cond760 = match_lookahead_literal(parser, ":", 0) + while cond760 + _t1487 = parse_fragment_id(parser) + item761 = _t1487 + push!(xs759, item761) + cond760 = match_lookahead_literal(parser, ":", 0) + end + fragment_ids762 = xs759 consume_literal!(parser, ")") - _t1480 = Proto.Sync(fragments=fragment_ids758) - result760 = _t1480 - record_span!(parser, span_start759, "Sync") - return result760 + _t1488 = Proto.Sync(fragments=fragment_ids762) + result764 = _t1488 + record_span!(parser, span_start763, "Sync") + return result764 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId - span_start762 = span_start(parser) + span_start766 = span_start(parser) consume_literal!(parser, ":") - symbol761 = consume_terminal!(parser, "SYMBOL") - result763 = Proto.FragmentId(Vector{UInt8}(symbol761)) - record_span!(parser, span_start762, "FragmentId") - return result763 + symbol765 = consume_terminal!(parser, "SYMBOL") + result767 = Proto.FragmentId(Vector{UInt8}(symbol765)) + record_span!(parser, span_start766, "FragmentId") + return result767 end function parse_epoch(parser::ParserState)::Proto.Epoch - span_start766 = span_start(parser) + span_start770 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "epoch") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "writes", 1)) - _t1482 = parse_epoch_writes(parser) - _t1481 = _t1482 + _t1490 = parse_epoch_writes(parser) + _t1489 = _t1490 else - _t1481 = nothing + _t1489 = nothing end - epoch_writes764 = _t1481 + epoch_writes768 = _t1489 if match_lookahead_literal(parser, "(", 0) - _t1484 = parse_epoch_reads(parser) - _t1483 = _t1484 + _t1492 = parse_epoch_reads(parser) + _t1491 = _t1492 else - _t1483 = nothing + _t1491 = nothing end - epoch_reads765 = _t1483 + epoch_reads769 = _t1491 consume_literal!(parser, ")") - _t1485 = Proto.Epoch(writes=(!isnothing(epoch_writes764) ? epoch_writes764 : Proto.Write[]), reads=(!isnothing(epoch_reads765) ? epoch_reads765 : Proto.Read[])) - result767 = _t1485 - record_span!(parser, span_start766, "Epoch") - return result767 + _t1493 = Proto.Epoch(writes=(!isnothing(epoch_writes768) ? epoch_writes768 : Proto.Write[]), reads=(!isnothing(epoch_reads769) ? epoch_reads769 : Proto.Read[])) + result771 = _t1493 + record_span!(parser, span_start770, "Epoch") + return result771 end function parse_epoch_writes(parser::ParserState)::Vector{Proto.Write} consume_literal!(parser, "(") consume_literal!(parser, "writes") - xs768 = Proto.Write[] - cond769 = match_lookahead_literal(parser, "(", 0) - while cond769 - _t1486 = parse_write(parser) - item770 = _t1486 - push!(xs768, item770) - cond769 = match_lookahead_literal(parser, "(", 0) - end - writes771 = xs768 + xs772 = Proto.Write[] + cond773 = match_lookahead_literal(parser, "(", 0) + while cond773 + _t1494 = parse_write(parser) + item774 = _t1494 + push!(xs772, item774) + cond773 = match_lookahead_literal(parser, "(", 0) + end + writes775 = xs772 consume_literal!(parser, ")") - return writes771 + return writes775 end function parse_write(parser::ParserState)::Proto.Write - span_start777 = span_start(parser) + span_start781 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t1488 = 1 + _t1496 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t1489 = 3 + _t1497 = 3 else if match_lookahead_literal(parser, "define", 1) - _t1490 = 0 + _t1498 = 0 else if match_lookahead_literal(parser, "context", 1) - _t1491 = 2 + _t1499 = 2 else - _t1491 = -1 + _t1499 = -1 end - _t1490 = _t1491 + _t1498 = _t1499 end - _t1489 = _t1490 + _t1497 = _t1498 end - _t1488 = _t1489 + _t1496 = _t1497 end - _t1487 = _t1488 + _t1495 = _t1496 else - _t1487 = -1 - end - prediction772 = _t1487 - if prediction772 == 3 - _t1493 = parse_snapshot(parser) - snapshot776 = _t1493 - _t1494 = Proto.Write(write_type=OneOf(:snapshot, snapshot776)) - _t1492 = _t1494 + _t1495 = -1 + end + prediction776 = _t1495 + if prediction776 == 3 + _t1501 = parse_snapshot(parser) + snapshot780 = _t1501 + _t1502 = Proto.Write(write_type=OneOf(:snapshot, snapshot780)) + _t1500 = _t1502 else - if prediction772 == 2 - _t1496 = parse_context(parser) - context775 = _t1496 - _t1497 = Proto.Write(write_type=OneOf(:context, context775)) - _t1495 = _t1497 + if prediction776 == 2 + _t1504 = parse_context(parser) + context779 = _t1504 + _t1505 = Proto.Write(write_type=OneOf(:context, context779)) + _t1503 = _t1505 else - if prediction772 == 1 - _t1499 = parse_undefine(parser) - undefine774 = _t1499 - _t1500 = Proto.Write(write_type=OneOf(:undefine, undefine774)) - _t1498 = _t1500 + if prediction776 == 1 + _t1507 = parse_undefine(parser) + undefine778 = _t1507 + _t1508 = Proto.Write(write_type=OneOf(:undefine, undefine778)) + _t1506 = _t1508 else - if prediction772 == 0 - _t1502 = parse_define(parser) - define773 = _t1502 - _t1503 = Proto.Write(write_type=OneOf(:define, define773)) - _t1501 = _t1503 + if prediction776 == 0 + _t1510 = parse_define(parser) + define777 = _t1510 + _t1511 = Proto.Write(write_type=OneOf(:define, define777)) + _t1509 = _t1511 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t1498 = _t1501 + _t1506 = _t1509 end - _t1495 = _t1498 + _t1503 = _t1506 end - _t1492 = _t1495 + _t1500 = _t1503 end - result778 = _t1492 - record_span!(parser, span_start777, "Write") - return result778 + result782 = _t1500 + record_span!(parser, span_start781, "Write") + return result782 end function parse_define(parser::ParserState)::Proto.Define - span_start780 = span_start(parser) + span_start784 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "define") - _t1504 = parse_fragment(parser) - fragment779 = _t1504 + _t1512 = parse_fragment(parser) + fragment783 = _t1512 consume_literal!(parser, ")") - _t1505 = Proto.Define(fragment=fragment779) - result781 = _t1505 - record_span!(parser, span_start780, "Define") - return result781 + _t1513 = Proto.Define(fragment=fragment783) + result785 = _t1513 + record_span!(parser, span_start784, "Define") + return result785 end function parse_fragment(parser::ParserState)::Proto.Fragment - span_start787 = span_start(parser) + span_start791 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "fragment") - _t1506 = parse_new_fragment_id(parser) - new_fragment_id782 = _t1506 - xs783 = Proto.Declaration[] - cond784 = match_lookahead_literal(parser, "(", 0) - while cond784 - _t1507 = parse_declaration(parser) - item785 = _t1507 - push!(xs783, item785) - cond784 = match_lookahead_literal(parser, "(", 0) - end - declarations786 = xs783 + _t1514 = parse_new_fragment_id(parser) + new_fragment_id786 = _t1514 + xs787 = Proto.Declaration[] + cond788 = match_lookahead_literal(parser, "(", 0) + while cond788 + _t1515 = parse_declaration(parser) + item789 = _t1515 + push!(xs787, item789) + cond788 = match_lookahead_literal(parser, "(", 0) + end + declarations790 = xs787 consume_literal!(parser, ")") - result788 = construct_fragment(parser, new_fragment_id782, declarations786) - record_span!(parser, span_start787, "Fragment") - return result788 + result792 = construct_fragment(parser, new_fragment_id786, declarations790) + record_span!(parser, span_start791, "Fragment") + return result792 end function parse_new_fragment_id(parser::ParserState)::Proto.FragmentId - span_start790 = span_start(parser) - _t1508 = parse_fragment_id(parser) - fragment_id789 = _t1508 - start_fragment!(parser, fragment_id789) - result791 = fragment_id789 - record_span!(parser, span_start790, "FragmentId") - return result791 + span_start794 = span_start(parser) + _t1516 = parse_fragment_id(parser) + fragment_id793 = _t1516 + start_fragment!(parser, fragment_id793) + result795 = fragment_id793 + record_span!(parser, span_start794, "FragmentId") + return result795 end function parse_declaration(parser::ParserState)::Proto.Declaration - span_start797 = span_start(parser) + span_start801 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t1510 = 3 + _t1518 = 3 else if match_lookahead_literal(parser, "functional_dependency", 1) - _t1511 = 2 + _t1519 = 2 else if match_lookahead_literal(parser, "edb", 1) - _t1512 = 3 + _t1520 = 3 else if match_lookahead_literal(parser, "def", 1) - _t1513 = 0 + _t1521 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1514 = 3 + _t1522 = 3 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1515 = 3 + _t1523 = 3 else if match_lookahead_literal(parser, "algorithm", 1) - _t1516 = 1 + _t1524 = 1 else - _t1516 = -1 + _t1524 = -1 end - _t1515 = _t1516 + _t1523 = _t1524 end - _t1514 = _t1515 + _t1522 = _t1523 end - _t1513 = _t1514 + _t1521 = _t1522 end - _t1512 = _t1513 + _t1520 = _t1521 end - _t1511 = _t1512 + _t1519 = _t1520 end - _t1510 = _t1511 + _t1518 = _t1519 end - _t1509 = _t1510 + _t1517 = _t1518 else - _t1509 = -1 - end - prediction792 = _t1509 - if prediction792 == 3 - _t1518 = parse_data(parser) - data796 = _t1518 - _t1519 = Proto.Declaration(declaration_type=OneOf(:data, data796)) - _t1517 = _t1519 + _t1517 = -1 + end + prediction796 = _t1517 + if prediction796 == 3 + _t1526 = parse_data(parser) + data800 = _t1526 + _t1527 = Proto.Declaration(declaration_type=OneOf(:data, data800)) + _t1525 = _t1527 else - if prediction792 == 2 - _t1521 = parse_constraint(parser) - constraint795 = _t1521 - _t1522 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint795)) - _t1520 = _t1522 + if prediction796 == 2 + _t1529 = parse_constraint(parser) + constraint799 = _t1529 + _t1530 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint799)) + _t1528 = _t1530 else - if prediction792 == 1 - _t1524 = parse_algorithm(parser) - algorithm794 = _t1524 - _t1525 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm794)) - _t1523 = _t1525 + if prediction796 == 1 + _t1532 = parse_algorithm(parser) + algorithm798 = _t1532 + _t1533 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm798)) + _t1531 = _t1533 else - if prediction792 == 0 - _t1527 = parse_def(parser) - def793 = _t1527 - _t1528 = Proto.Declaration(declaration_type=OneOf(:def, def793)) - _t1526 = _t1528 + if prediction796 == 0 + _t1535 = parse_def(parser) + def797 = _t1535 + _t1536 = Proto.Declaration(declaration_type=OneOf(:def, def797)) + _t1534 = _t1536 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t1523 = _t1526 + _t1531 = _t1534 end - _t1520 = _t1523 + _t1528 = _t1531 end - _t1517 = _t1520 + _t1525 = _t1528 end - result798 = _t1517 - record_span!(parser, span_start797, "Declaration") - return result798 + result802 = _t1525 + record_span!(parser, span_start801, "Declaration") + return result802 end function parse_def(parser::ParserState)::Proto.Def - span_start802 = span_start(parser) + span_start806 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "def") - _t1529 = parse_relation_id(parser) - relation_id799 = _t1529 - _t1530 = parse_abstraction(parser) - abstraction800 = _t1530 + _t1537 = parse_relation_id(parser) + relation_id803 = _t1537 + _t1538 = parse_abstraction(parser) + abstraction804 = _t1538 if match_lookahead_literal(parser, "(", 0) - _t1532 = parse_attrs(parser) - _t1531 = _t1532 + _t1540 = parse_attrs(parser) + _t1539 = _t1540 else - _t1531 = nothing + _t1539 = nothing end - attrs801 = _t1531 + attrs805 = _t1539 consume_literal!(parser, ")") - _t1533 = Proto.Def(name=relation_id799, body=abstraction800, attrs=(!isnothing(attrs801) ? attrs801 : Proto.Attribute[])) - result803 = _t1533 - record_span!(parser, span_start802, "Def") - return result803 + _t1541 = Proto.Def(name=relation_id803, body=abstraction804, attrs=(!isnothing(attrs805) ? attrs805 : Proto.Attribute[])) + result807 = _t1541 + record_span!(parser, span_start806, "Def") + return result807 end function parse_relation_id(parser::ParserState)::Proto.RelationId - span_start807 = span_start(parser) + span_start811 = span_start(parser) if match_lookahead_literal(parser, ":", 0) - _t1534 = 0 + _t1542 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1535 = 1 + _t1543 = 1 else - _t1535 = -1 + _t1543 = -1 end - _t1534 = _t1535 + _t1542 = _t1543 end - prediction804 = _t1534 - if prediction804 == 1 - uint128806 = consume_terminal!(parser, "UINT128") - _t1536 = Proto.RelationId(uint128806.low, uint128806.high) + prediction808 = _t1542 + if prediction808 == 1 + uint128810 = consume_terminal!(parser, "UINT128") + _t1544 = Proto.RelationId(uint128810.low, uint128810.high) else - if prediction804 == 0 + if prediction808 == 0 consume_literal!(parser, ":") - symbol805 = consume_terminal!(parser, "SYMBOL") - _t1537 = relation_id_from_string(parser, symbol805) + symbol809 = consume_terminal!(parser, "SYMBOL") + _t1545 = relation_id_from_string(parser, symbol809) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t1536 = _t1537 + _t1544 = _t1545 end - result808 = _t1536 - record_span!(parser, span_start807, "RelationId") - return result808 + result812 = _t1544 + record_span!(parser, span_start811, "RelationId") + return result812 end function parse_abstraction(parser::ParserState)::Proto.Abstraction - span_start811 = span_start(parser) + span_start815 = span_start(parser) consume_literal!(parser, "(") - _t1538 = parse_bindings(parser) - bindings809 = _t1538 - _t1539 = parse_formula(parser) - formula810 = _t1539 + _t1546 = parse_bindings(parser) + bindings813 = _t1546 + _t1547 = parse_formula(parser) + formula814 = _t1547 consume_literal!(parser, ")") - _t1540 = Proto.Abstraction(vars=vcat(bindings809[1], !isnothing(bindings809[2]) ? bindings809[2] : []), value=formula810) - result812 = _t1540 - record_span!(parser, span_start811, "Abstraction") - return result812 + _t1548 = Proto.Abstraction(vars=vcat(bindings813[1], !isnothing(bindings813[2]) ? bindings813[2] : []), value=formula814) + result816 = _t1548 + record_span!(parser, span_start815, "Abstraction") + return result816 end function parse_bindings(parser::ParserState)::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}} consume_literal!(parser, "[") - xs813 = Proto.Binding[] - cond814 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond814 - _t1541 = parse_binding(parser) - item815 = _t1541 - push!(xs813, item815) - cond814 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - bindings816 = xs813 + xs817 = Proto.Binding[] + cond818 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond818 + _t1549 = parse_binding(parser) + item819 = _t1549 + push!(xs817, item819) + cond818 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + bindings820 = xs817 if match_lookahead_literal(parser, "|", 0) - _t1543 = parse_value_bindings(parser) - _t1542 = _t1543 + _t1551 = parse_value_bindings(parser) + _t1550 = _t1551 else - _t1542 = nothing + _t1550 = nothing end - value_bindings817 = _t1542 + value_bindings821 = _t1550 consume_literal!(parser, "]") - return (bindings816, (!isnothing(value_bindings817) ? value_bindings817 : Proto.Binding[]),) + return (bindings820, (!isnothing(value_bindings821) ? value_bindings821 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - span_start820 = span_start(parser) - symbol818 = consume_terminal!(parser, "SYMBOL") + span_start824 = span_start(parser) + symbol822 = consume_terminal!(parser, "SYMBOL") consume_literal!(parser, "::") - _t1544 = parse_type(parser) - type819 = _t1544 - _t1545 = Proto.Var(name=symbol818) - _t1546 = Proto.Binding(var=_t1545, var"#type"=type819) - result821 = _t1546 - record_span!(parser, span_start820, "Binding") - return result821 + _t1552 = parse_type(parser) + type823 = _t1552 + _t1553 = Proto.Var(name=symbol822) + _t1554 = Proto.Binding(var=_t1553, var"#type"=type823) + result825 = _t1554 + record_span!(parser, span_start824, "Binding") + return result825 end function parse_type(parser::ParserState)::Proto.var"#Type" - span_start837 = span_start(parser) + span_start841 = span_start(parser) if match_lookahead_literal(parser, "UNKNOWN", 0) - _t1547 = 0 + _t1555 = 0 else if match_lookahead_literal(parser, "UINT32", 0) - _t1548 = 13 + _t1556 = 13 else if match_lookahead_literal(parser, "UINT128", 0) - _t1549 = 4 + _t1557 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t1550 = 1 + _t1558 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t1551 = 8 + _t1559 = 8 else if match_lookahead_literal(parser, "INT32", 0) - _t1552 = 11 + _t1560 = 11 else if match_lookahead_literal(parser, "INT128", 0) - _t1553 = 5 + _t1561 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t1554 = 2 + _t1562 = 2 else if match_lookahead_literal(parser, "FLOAT32", 0) - _t1555 = 12 + _t1563 = 12 else if match_lookahead_literal(parser, "FLOAT", 0) - _t1556 = 3 + _t1564 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t1557 = 7 + _t1565 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t1558 = 6 + _t1566 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t1559 = 10 + _t1567 = 10 else if match_lookahead_literal(parser, "(", 0) - _t1560 = 9 + _t1568 = 9 else - _t1560 = -1 + _t1568 = -1 end - _t1559 = _t1560 + _t1567 = _t1568 end - _t1558 = _t1559 + _t1566 = _t1567 end - _t1557 = _t1558 + _t1565 = _t1566 end - _t1556 = _t1557 + _t1564 = _t1565 end - _t1555 = _t1556 + _t1563 = _t1564 end - _t1554 = _t1555 + _t1562 = _t1563 end - _t1553 = _t1554 + _t1561 = _t1562 end - _t1552 = _t1553 + _t1560 = _t1561 end - _t1551 = _t1552 + _t1559 = _t1560 end - _t1550 = _t1551 + _t1558 = _t1559 end - _t1549 = _t1550 + _t1557 = _t1558 end - _t1548 = _t1549 + _t1556 = _t1557 end - _t1547 = _t1548 - end - prediction822 = _t1547 - if prediction822 == 13 - _t1562 = parse_uint32_type(parser) - uint32_type836 = _t1562 - _t1563 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type836)) - _t1561 = _t1563 + _t1555 = _t1556 + end + prediction826 = _t1555 + if prediction826 == 13 + _t1570 = parse_uint32_type(parser) + uint32_type840 = _t1570 + _t1571 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type840)) + _t1569 = _t1571 else - if prediction822 == 12 - _t1565 = parse_float32_type(parser) - float32_type835 = _t1565 - _t1566 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type835)) - _t1564 = _t1566 + if prediction826 == 12 + _t1573 = parse_float32_type(parser) + float32_type839 = _t1573 + _t1574 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type839)) + _t1572 = _t1574 else - if prediction822 == 11 - _t1568 = parse_int32_type(parser) - int32_type834 = _t1568 - _t1569 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type834)) - _t1567 = _t1569 + if prediction826 == 11 + _t1576 = parse_int32_type(parser) + int32_type838 = _t1576 + _t1577 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type838)) + _t1575 = _t1577 else - if prediction822 == 10 - _t1571 = parse_boolean_type(parser) - boolean_type833 = _t1571 - _t1572 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type833)) - _t1570 = _t1572 + if prediction826 == 10 + _t1579 = parse_boolean_type(parser) + boolean_type837 = _t1579 + _t1580 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type837)) + _t1578 = _t1580 else - if prediction822 == 9 - _t1574 = parse_decimal_type(parser) - decimal_type832 = _t1574 - _t1575 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type832)) - _t1573 = _t1575 + if prediction826 == 9 + _t1582 = parse_decimal_type(parser) + decimal_type836 = _t1582 + _t1583 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type836)) + _t1581 = _t1583 else - if prediction822 == 8 - _t1577 = parse_missing_type(parser) - missing_type831 = _t1577 - _t1578 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type831)) - _t1576 = _t1578 + if prediction826 == 8 + _t1585 = parse_missing_type(parser) + missing_type835 = _t1585 + _t1586 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type835)) + _t1584 = _t1586 else - if prediction822 == 7 - _t1580 = parse_datetime_type(parser) - datetime_type830 = _t1580 - _t1581 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type830)) - _t1579 = _t1581 + if prediction826 == 7 + _t1588 = parse_datetime_type(parser) + datetime_type834 = _t1588 + _t1589 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type834)) + _t1587 = _t1589 else - if prediction822 == 6 - _t1583 = parse_date_type(parser) - date_type829 = _t1583 - _t1584 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type829)) - _t1582 = _t1584 + if prediction826 == 6 + _t1591 = parse_date_type(parser) + date_type833 = _t1591 + _t1592 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type833)) + _t1590 = _t1592 else - if prediction822 == 5 - _t1586 = parse_int128_type(parser) - int128_type828 = _t1586 - _t1587 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type828)) - _t1585 = _t1587 + if prediction826 == 5 + _t1594 = parse_int128_type(parser) + int128_type832 = _t1594 + _t1595 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type832)) + _t1593 = _t1595 else - if prediction822 == 4 - _t1589 = parse_uint128_type(parser) - uint128_type827 = _t1589 - _t1590 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type827)) - _t1588 = _t1590 + if prediction826 == 4 + _t1597 = parse_uint128_type(parser) + uint128_type831 = _t1597 + _t1598 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type831)) + _t1596 = _t1598 else - if prediction822 == 3 - _t1592 = parse_float_type(parser) - float_type826 = _t1592 - _t1593 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type826)) - _t1591 = _t1593 + if prediction826 == 3 + _t1600 = parse_float_type(parser) + float_type830 = _t1600 + _t1601 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type830)) + _t1599 = _t1601 else - if prediction822 == 2 - _t1595 = parse_int_type(parser) - int_type825 = _t1595 - _t1596 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type825)) - _t1594 = _t1596 + if prediction826 == 2 + _t1603 = parse_int_type(parser) + int_type829 = _t1603 + _t1604 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type829)) + _t1602 = _t1604 else - if prediction822 == 1 - _t1598 = parse_string_type(parser) - string_type824 = _t1598 - _t1599 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type824)) - _t1597 = _t1599 + if prediction826 == 1 + _t1606 = parse_string_type(parser) + string_type828 = _t1606 + _t1607 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type828)) + _t1605 = _t1607 else - if prediction822 == 0 - _t1601 = parse_unspecified_type(parser) - unspecified_type823 = _t1601 - _t1602 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type823)) - _t1600 = _t1602 + if prediction826 == 0 + _t1609 = parse_unspecified_type(parser) + unspecified_type827 = _t1609 + _t1610 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type827)) + _t1608 = _t1610 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t1597 = _t1600 + _t1605 = _t1608 end - _t1594 = _t1597 + _t1602 = _t1605 end - _t1591 = _t1594 + _t1599 = _t1602 end - _t1588 = _t1591 + _t1596 = _t1599 end - _t1585 = _t1588 + _t1593 = _t1596 end - _t1582 = _t1585 + _t1590 = _t1593 end - _t1579 = _t1582 + _t1587 = _t1590 end - _t1576 = _t1579 + _t1584 = _t1587 end - _t1573 = _t1576 + _t1581 = _t1584 end - _t1570 = _t1573 + _t1578 = _t1581 end - _t1567 = _t1570 + _t1575 = _t1578 end - _t1564 = _t1567 + _t1572 = _t1575 end - _t1561 = _t1564 + _t1569 = _t1572 end - result838 = _t1561 - record_span!(parser, span_start837, "Type") - return result838 + result842 = _t1569 + record_span!(parser, span_start841, "Type") + return result842 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType - span_start839 = span_start(parser) + span_start843 = span_start(parser) consume_literal!(parser, "UNKNOWN") - _t1603 = Proto.UnspecifiedType() - result840 = _t1603 - record_span!(parser, span_start839, "UnspecifiedType") - return result840 + _t1611 = Proto.UnspecifiedType() + result844 = _t1611 + record_span!(parser, span_start843, "UnspecifiedType") + return result844 end function parse_string_type(parser::ParserState)::Proto.StringType - span_start841 = span_start(parser) + span_start845 = span_start(parser) consume_literal!(parser, "STRING") - _t1604 = Proto.StringType() - result842 = _t1604 - record_span!(parser, span_start841, "StringType") - return result842 + _t1612 = Proto.StringType() + result846 = _t1612 + record_span!(parser, span_start845, "StringType") + return result846 end function parse_int_type(parser::ParserState)::Proto.IntType - span_start843 = span_start(parser) + span_start847 = span_start(parser) consume_literal!(parser, "INT") - _t1605 = Proto.IntType() - result844 = _t1605 - record_span!(parser, span_start843, "IntType") - return result844 + _t1613 = Proto.IntType() + result848 = _t1613 + record_span!(parser, span_start847, "IntType") + return result848 end function parse_float_type(parser::ParserState)::Proto.FloatType - span_start845 = span_start(parser) + span_start849 = span_start(parser) consume_literal!(parser, "FLOAT") - _t1606 = Proto.FloatType() - result846 = _t1606 - record_span!(parser, span_start845, "FloatType") - return result846 + _t1614 = Proto.FloatType() + result850 = _t1614 + record_span!(parser, span_start849, "FloatType") + return result850 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type - span_start847 = span_start(parser) + span_start851 = span_start(parser) consume_literal!(parser, "UINT128") - _t1607 = Proto.UInt128Type() - result848 = _t1607 - record_span!(parser, span_start847, "UInt128Type") - return result848 + _t1615 = Proto.UInt128Type() + result852 = _t1615 + record_span!(parser, span_start851, "UInt128Type") + return result852 end function parse_int128_type(parser::ParserState)::Proto.Int128Type - span_start849 = span_start(parser) + span_start853 = span_start(parser) consume_literal!(parser, "INT128") - _t1608 = Proto.Int128Type() - result850 = _t1608 - record_span!(parser, span_start849, "Int128Type") - return result850 + _t1616 = Proto.Int128Type() + result854 = _t1616 + record_span!(parser, span_start853, "Int128Type") + return result854 end function parse_date_type(parser::ParserState)::Proto.DateType - span_start851 = span_start(parser) + span_start855 = span_start(parser) consume_literal!(parser, "DATE") - _t1609 = Proto.DateType() - result852 = _t1609 - record_span!(parser, span_start851, "DateType") - return result852 + _t1617 = Proto.DateType() + result856 = _t1617 + record_span!(parser, span_start855, "DateType") + return result856 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType - span_start853 = span_start(parser) + span_start857 = span_start(parser) consume_literal!(parser, "DATETIME") - _t1610 = Proto.DateTimeType() - result854 = _t1610 - record_span!(parser, span_start853, "DateTimeType") - return result854 + _t1618 = Proto.DateTimeType() + result858 = _t1618 + record_span!(parser, span_start857, "DateTimeType") + return result858 end function parse_missing_type(parser::ParserState)::Proto.MissingType - span_start855 = span_start(parser) + span_start859 = span_start(parser) consume_literal!(parser, "MISSING") - _t1611 = Proto.MissingType() - result856 = _t1611 - record_span!(parser, span_start855, "MissingType") - return result856 + _t1619 = Proto.MissingType() + result860 = _t1619 + record_span!(parser, span_start859, "MissingType") + return result860 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType - span_start859 = span_start(parser) + span_start863 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int857 = consume_terminal!(parser, "INT") - int_3858 = consume_terminal!(parser, "INT") + int861 = consume_terminal!(parser, "INT") + int_3862 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1612 = Proto.DecimalType(precision=Int32(int857), scale=Int32(int_3858)) - result860 = _t1612 - record_span!(parser, span_start859, "DecimalType") - return result860 + _t1620 = Proto.DecimalType(precision=Int32(int861), scale=Int32(int_3862)) + result864 = _t1620 + record_span!(parser, span_start863, "DecimalType") + return result864 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType - span_start861 = span_start(parser) + span_start865 = span_start(parser) consume_literal!(parser, "BOOLEAN") - _t1613 = Proto.BooleanType() - result862 = _t1613 - record_span!(parser, span_start861, "BooleanType") - return result862 + _t1621 = Proto.BooleanType() + result866 = _t1621 + record_span!(parser, span_start865, "BooleanType") + return result866 end function parse_int32_type(parser::ParserState)::Proto.Int32Type - span_start863 = span_start(parser) + span_start867 = span_start(parser) consume_literal!(parser, "INT32") - _t1614 = Proto.Int32Type() - result864 = _t1614 - record_span!(parser, span_start863, "Int32Type") - return result864 + _t1622 = Proto.Int32Type() + result868 = _t1622 + record_span!(parser, span_start867, "Int32Type") + return result868 end function parse_float32_type(parser::ParserState)::Proto.Float32Type - span_start865 = span_start(parser) + span_start869 = span_start(parser) consume_literal!(parser, "FLOAT32") - _t1615 = Proto.Float32Type() - result866 = _t1615 - record_span!(parser, span_start865, "Float32Type") - return result866 + _t1623 = Proto.Float32Type() + result870 = _t1623 + record_span!(parser, span_start869, "Float32Type") + return result870 end function parse_uint32_type(parser::ParserState)::Proto.UInt32Type - span_start867 = span_start(parser) + span_start871 = span_start(parser) consume_literal!(parser, "UINT32") - _t1616 = Proto.UInt32Type() - result868 = _t1616 - record_span!(parser, span_start867, "UInt32Type") - return result868 + _t1624 = Proto.UInt32Type() + result872 = _t1624 + record_span!(parser, span_start871, "UInt32Type") + return result872 end function parse_value_bindings(parser::ParserState)::Vector{Proto.Binding} consume_literal!(parser, "|") - xs869 = Proto.Binding[] - cond870 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond870 - _t1617 = parse_binding(parser) - item871 = _t1617 - push!(xs869, item871) - cond870 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs873 = Proto.Binding[] + cond874 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond874 + _t1625 = parse_binding(parser) + item875 = _t1625 + push!(xs873, item875) + cond874 = match_lookahead_terminal(parser, "SYMBOL", 0) end - bindings872 = xs869 - return bindings872 + bindings876 = xs873 + return bindings876 end function parse_formula(parser::ParserState)::Proto.Formula - span_start887 = span_start(parser) + span_start891 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t1619 = 0 + _t1627 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t1620 = 11 + _t1628 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t1621 = 3 + _t1629 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t1622 = 10 + _t1630 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t1623 = 9 + _t1631 = 9 else if match_lookahead_literal(parser, "or", 1) - _t1624 = 5 + _t1632 = 5 else if match_lookahead_literal(parser, "not", 1) - _t1625 = 6 + _t1633 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t1626 = 7 + _t1634 = 7 else if match_lookahead_literal(parser, "false", 1) - _t1627 = 1 + _t1635 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t1628 = 2 + _t1636 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t1629 = 12 + _t1637 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t1630 = 8 + _t1638 = 8 else if match_lookahead_literal(parser, "and", 1) - _t1631 = 4 + _t1639 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t1632 = 10 + _t1640 = 10 else if match_lookahead_literal(parser, ">", 1) - _t1633 = 10 + _t1641 = 10 else if match_lookahead_literal(parser, "=", 1) - _t1634 = 10 + _t1642 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t1635 = 10 + _t1643 = 10 else if match_lookahead_literal(parser, "<", 1) - _t1636 = 10 + _t1644 = 10 else if match_lookahead_literal(parser, "/", 1) - _t1637 = 10 + _t1645 = 10 else if match_lookahead_literal(parser, "-", 1) - _t1638 = 10 + _t1646 = 10 else if match_lookahead_literal(parser, "+", 1) - _t1639 = 10 + _t1647 = 10 else if match_lookahead_literal(parser, "*", 1) - _t1640 = 10 + _t1648 = 10 else - _t1640 = -1 + _t1648 = -1 end - _t1639 = _t1640 + _t1647 = _t1648 end - _t1638 = _t1639 + _t1646 = _t1647 end - _t1637 = _t1638 + _t1645 = _t1646 end - _t1636 = _t1637 + _t1644 = _t1645 end - _t1635 = _t1636 + _t1643 = _t1644 end - _t1634 = _t1635 + _t1642 = _t1643 end - _t1633 = _t1634 + _t1641 = _t1642 end - _t1632 = _t1633 + _t1640 = _t1641 end - _t1631 = _t1632 + _t1639 = _t1640 end - _t1630 = _t1631 + _t1638 = _t1639 end - _t1629 = _t1630 + _t1637 = _t1638 end - _t1628 = _t1629 + _t1636 = _t1637 end - _t1627 = _t1628 + _t1635 = _t1636 end - _t1626 = _t1627 + _t1634 = _t1635 end - _t1625 = _t1626 + _t1633 = _t1634 end - _t1624 = _t1625 + _t1632 = _t1633 end - _t1623 = _t1624 + _t1631 = _t1632 end - _t1622 = _t1623 + _t1630 = _t1631 end - _t1621 = _t1622 + _t1629 = _t1630 end - _t1620 = _t1621 + _t1628 = _t1629 end - _t1619 = _t1620 + _t1627 = _t1628 end - _t1618 = _t1619 + _t1626 = _t1627 else - _t1618 = -1 - end - prediction873 = _t1618 - if prediction873 == 12 - _t1642 = parse_cast(parser) - cast886 = _t1642 - _t1643 = Proto.Formula(formula_type=OneOf(:cast, cast886)) - _t1641 = _t1643 + _t1626 = -1 + end + prediction877 = _t1626 + if prediction877 == 12 + _t1650 = parse_cast(parser) + cast890 = _t1650 + _t1651 = Proto.Formula(formula_type=OneOf(:cast, cast890)) + _t1649 = _t1651 else - if prediction873 == 11 - _t1645 = parse_rel_atom(parser) - rel_atom885 = _t1645 - _t1646 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom885)) - _t1644 = _t1646 + if prediction877 == 11 + _t1653 = parse_rel_atom(parser) + rel_atom889 = _t1653 + _t1654 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom889)) + _t1652 = _t1654 else - if prediction873 == 10 - _t1648 = parse_primitive(parser) - primitive884 = _t1648 - _t1649 = Proto.Formula(formula_type=OneOf(:primitive, primitive884)) - _t1647 = _t1649 + if prediction877 == 10 + _t1656 = parse_primitive(parser) + primitive888 = _t1656 + _t1657 = Proto.Formula(formula_type=OneOf(:primitive, primitive888)) + _t1655 = _t1657 else - if prediction873 == 9 - _t1651 = parse_pragma(parser) - pragma883 = _t1651 - _t1652 = Proto.Formula(formula_type=OneOf(:pragma, pragma883)) - _t1650 = _t1652 + if prediction877 == 9 + _t1659 = parse_pragma(parser) + pragma887 = _t1659 + _t1660 = Proto.Formula(formula_type=OneOf(:pragma, pragma887)) + _t1658 = _t1660 else - if prediction873 == 8 - _t1654 = parse_atom(parser) - atom882 = _t1654 - _t1655 = Proto.Formula(formula_type=OneOf(:atom, atom882)) - _t1653 = _t1655 + if prediction877 == 8 + _t1662 = parse_atom(parser) + atom886 = _t1662 + _t1663 = Proto.Formula(formula_type=OneOf(:atom, atom886)) + _t1661 = _t1663 else - if prediction873 == 7 - _t1657 = parse_ffi(parser) - ffi881 = _t1657 - _t1658 = Proto.Formula(formula_type=OneOf(:ffi, ffi881)) - _t1656 = _t1658 + if prediction877 == 7 + _t1665 = parse_ffi(parser) + ffi885 = _t1665 + _t1666 = Proto.Formula(formula_type=OneOf(:ffi, ffi885)) + _t1664 = _t1666 else - if prediction873 == 6 - _t1660 = parse_not(parser) - not880 = _t1660 - _t1661 = Proto.Formula(formula_type=OneOf(:not, not880)) - _t1659 = _t1661 + if prediction877 == 6 + _t1668 = parse_not(parser) + not884 = _t1668 + _t1669 = Proto.Formula(formula_type=OneOf(:not, not884)) + _t1667 = _t1669 else - if prediction873 == 5 - _t1663 = parse_disjunction(parser) - disjunction879 = _t1663 - _t1664 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction879)) - _t1662 = _t1664 + if prediction877 == 5 + _t1671 = parse_disjunction(parser) + disjunction883 = _t1671 + _t1672 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction883)) + _t1670 = _t1672 else - if prediction873 == 4 - _t1666 = parse_conjunction(parser) - conjunction878 = _t1666 - _t1667 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction878)) - _t1665 = _t1667 + if prediction877 == 4 + _t1674 = parse_conjunction(parser) + conjunction882 = _t1674 + _t1675 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction882)) + _t1673 = _t1675 else - if prediction873 == 3 - _t1669 = parse_reduce(parser) - reduce877 = _t1669 - _t1670 = Proto.Formula(formula_type=OneOf(:reduce, reduce877)) - _t1668 = _t1670 + if prediction877 == 3 + _t1677 = parse_reduce(parser) + reduce881 = _t1677 + _t1678 = Proto.Formula(formula_type=OneOf(:reduce, reduce881)) + _t1676 = _t1678 else - if prediction873 == 2 - _t1672 = parse_exists(parser) - exists876 = _t1672 - _t1673 = Proto.Formula(formula_type=OneOf(:exists, exists876)) - _t1671 = _t1673 + if prediction877 == 2 + _t1680 = parse_exists(parser) + exists880 = _t1680 + _t1681 = Proto.Formula(formula_type=OneOf(:exists, exists880)) + _t1679 = _t1681 else - if prediction873 == 1 - _t1675 = parse_false(parser) - false875 = _t1675 - _t1676 = Proto.Formula(formula_type=OneOf(:disjunction, false875)) - _t1674 = _t1676 + if prediction877 == 1 + _t1683 = parse_false(parser) + false879 = _t1683 + _t1684 = Proto.Formula(formula_type=OneOf(:disjunction, false879)) + _t1682 = _t1684 else - if prediction873 == 0 - _t1678 = parse_true(parser) - true874 = _t1678 - _t1679 = Proto.Formula(formula_type=OneOf(:conjunction, true874)) - _t1677 = _t1679 + if prediction877 == 0 + _t1686 = parse_true(parser) + true878 = _t1686 + _t1687 = Proto.Formula(formula_type=OneOf(:conjunction, true878)) + _t1685 = _t1687 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t1674 = _t1677 + _t1682 = _t1685 end - _t1671 = _t1674 + _t1679 = _t1682 end - _t1668 = _t1671 + _t1676 = _t1679 end - _t1665 = _t1668 + _t1673 = _t1676 end - _t1662 = _t1665 + _t1670 = _t1673 end - _t1659 = _t1662 + _t1667 = _t1670 end - _t1656 = _t1659 + _t1664 = _t1667 end - _t1653 = _t1656 + _t1661 = _t1664 end - _t1650 = _t1653 + _t1658 = _t1661 end - _t1647 = _t1650 + _t1655 = _t1658 end - _t1644 = _t1647 + _t1652 = _t1655 end - _t1641 = _t1644 + _t1649 = _t1652 end - result888 = _t1641 - record_span!(parser, span_start887, "Formula") - return result888 + result892 = _t1649 + record_span!(parser, span_start891, "Formula") + return result892 end function parse_true(parser::ParserState)::Proto.Conjunction - span_start889 = span_start(parser) + span_start893 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "true") consume_literal!(parser, ")") - _t1680 = Proto.Conjunction(args=Proto.Formula[]) - result890 = _t1680 - record_span!(parser, span_start889, "Conjunction") - return result890 + _t1688 = Proto.Conjunction(args=Proto.Formula[]) + result894 = _t1688 + record_span!(parser, span_start893, "Conjunction") + return result894 end function parse_false(parser::ParserState)::Proto.Disjunction - span_start891 = span_start(parser) + span_start895 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "false") consume_literal!(parser, ")") - _t1681 = Proto.Disjunction(args=Proto.Formula[]) - result892 = _t1681 - record_span!(parser, span_start891, "Disjunction") - return result892 + _t1689 = Proto.Disjunction(args=Proto.Formula[]) + result896 = _t1689 + record_span!(parser, span_start895, "Disjunction") + return result896 end function parse_exists(parser::ParserState)::Proto.Exists - span_start895 = span_start(parser) + span_start899 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t1682 = parse_bindings(parser) - bindings893 = _t1682 - _t1683 = parse_formula(parser) - formula894 = _t1683 + _t1690 = parse_bindings(parser) + bindings897 = _t1690 + _t1691 = parse_formula(parser) + formula898 = _t1691 consume_literal!(parser, ")") - _t1684 = Proto.Abstraction(vars=vcat(bindings893[1], !isnothing(bindings893[2]) ? bindings893[2] : []), value=formula894) - _t1685 = Proto.Exists(body=_t1684) - result896 = _t1685 - record_span!(parser, span_start895, "Exists") - return result896 + _t1692 = Proto.Abstraction(vars=vcat(bindings897[1], !isnothing(bindings897[2]) ? bindings897[2] : []), value=formula898) + _t1693 = Proto.Exists(body=_t1692) + result900 = _t1693 + record_span!(parser, span_start899, "Exists") + return result900 end function parse_reduce(parser::ParserState)::Proto.Reduce - span_start900 = span_start(parser) + span_start904 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "reduce") - _t1686 = parse_abstraction(parser) - abstraction897 = _t1686 - _t1687 = parse_abstraction(parser) - abstraction_3898 = _t1687 - _t1688 = parse_terms(parser) - terms899 = _t1688 + _t1694 = parse_abstraction(parser) + abstraction901 = _t1694 + _t1695 = parse_abstraction(parser) + abstraction_3902 = _t1695 + _t1696 = parse_terms(parser) + terms903 = _t1696 consume_literal!(parser, ")") - _t1689 = Proto.Reduce(op=abstraction897, body=abstraction_3898, terms=terms899) - result901 = _t1689 - record_span!(parser, span_start900, "Reduce") - return result901 + _t1697 = Proto.Reduce(op=abstraction901, body=abstraction_3902, terms=terms903) + result905 = _t1697 + record_span!(parser, span_start904, "Reduce") + return result905 end function parse_terms(parser::ParserState)::Vector{Proto.Term} consume_literal!(parser, "(") consume_literal!(parser, "terms") - xs902 = Proto.Term[] - cond903 = (((((((((((((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 cond903 - _t1690 = parse_term(parser) - item904 = _t1690 - push!(xs902, item904) - cond903 = (((((((((((((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 - terms905 = xs902 + xs906 = Proto.Term[] + cond907 = (((((((((((((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 cond907 + _t1698 = parse_term(parser) + item908 = _t1698 + push!(xs906, item908) + cond907 = (((((((((((((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 + terms909 = xs906 consume_literal!(parser, ")") - return terms905 + return terms909 end function parse_term(parser::ParserState)::Proto.Term - span_start909 = span_start(parser) + span_start913 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1691 = 1 + _t1699 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1692 = 1 + _t1700 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1693 = 1 + _t1701 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1694 = 1 + _t1702 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1695 = 0 + _t1703 = 0 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1696 = 1 + _t1704 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1697 = 1 + _t1705 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1698 = 1 + _t1706 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1699 = 1 + _t1707 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1700 = 1 + _t1708 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1701 = 1 + _t1709 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1702 = 1 + _t1710 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1703 = 1 + _t1711 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1704 = 1 + _t1712 = 1 else - _t1704 = -1 + _t1712 = -1 end - _t1703 = _t1704 + _t1711 = _t1712 end - _t1702 = _t1703 + _t1710 = _t1711 end - _t1701 = _t1702 + _t1709 = _t1710 end - _t1700 = _t1701 + _t1708 = _t1709 end - _t1699 = _t1700 + _t1707 = _t1708 end - _t1698 = _t1699 + _t1706 = _t1707 end - _t1697 = _t1698 + _t1705 = _t1706 end - _t1696 = _t1697 + _t1704 = _t1705 end - _t1695 = _t1696 + _t1703 = _t1704 end - _t1694 = _t1695 + _t1702 = _t1703 end - _t1693 = _t1694 + _t1701 = _t1702 end - _t1692 = _t1693 + _t1700 = _t1701 end - _t1691 = _t1692 - end - prediction906 = _t1691 - if prediction906 == 1 - _t1706 = parse_value(parser) - value908 = _t1706 - _t1707 = Proto.Term(term_type=OneOf(:constant, value908)) - _t1705 = _t1707 + _t1699 = _t1700 + end + prediction910 = _t1699 + if prediction910 == 1 + _t1714 = parse_value(parser) + value912 = _t1714 + _t1715 = Proto.Term(term_type=OneOf(:constant, value912)) + _t1713 = _t1715 else - if prediction906 == 0 - _t1709 = parse_var(parser) - var907 = _t1709 - _t1710 = Proto.Term(term_type=OneOf(:var, var907)) - _t1708 = _t1710 + if prediction910 == 0 + _t1717 = parse_var(parser) + var911 = _t1717 + _t1718 = Proto.Term(term_type=OneOf(:var, var911)) + _t1716 = _t1718 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t1705 = _t1708 + _t1713 = _t1716 end - result910 = _t1705 - record_span!(parser, span_start909, "Term") - return result910 + result914 = _t1713 + record_span!(parser, span_start913, "Term") + return result914 end function parse_var(parser::ParserState)::Proto.Var - span_start912 = span_start(parser) - symbol911 = consume_terminal!(parser, "SYMBOL") - _t1711 = Proto.Var(name=symbol911) - result913 = _t1711 - record_span!(parser, span_start912, "Var") - return result913 + span_start916 = span_start(parser) + symbol915 = consume_terminal!(parser, "SYMBOL") + _t1719 = Proto.Var(name=symbol915) + result917 = _t1719 + record_span!(parser, span_start916, "Var") + return result917 end function parse_value(parser::ParserState)::Proto.Value - span_start927 = span_start(parser) + span_start931 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1712 = 12 + _t1720 = 12 else if match_lookahead_literal(parser, "missing", 0) - _t1713 = 11 + _t1721 = 11 else if match_lookahead_literal(parser, "false", 0) - _t1714 = 12 + _t1722 = 12 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1716 = 1 + _t1724 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1717 = 0 + _t1725 = 0 else - _t1717 = -1 + _t1725 = -1 end - _t1716 = _t1717 + _t1724 = _t1725 end - _t1715 = _t1716 + _t1723 = _t1724 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1718 = 7 + _t1726 = 7 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1719 = 8 + _t1727 = 8 else if match_lookahead_terminal(parser, "STRING", 0) - _t1720 = 2 + _t1728 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1721 = 3 + _t1729 = 3 else if match_lookahead_terminal(parser, "INT128", 0) - _t1722 = 9 + _t1730 = 9 else if match_lookahead_terminal(parser, "INT", 0) - _t1723 = 4 + _t1731 = 4 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1724 = 5 + _t1732 = 5 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1725 = 6 + _t1733 = 6 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1726 = 10 + _t1734 = 10 else - _t1726 = -1 + _t1734 = -1 end - _t1725 = _t1726 + _t1733 = _t1734 end - _t1724 = _t1725 + _t1732 = _t1733 end - _t1723 = _t1724 + _t1731 = _t1732 end - _t1722 = _t1723 + _t1730 = _t1731 end - _t1721 = _t1722 + _t1729 = _t1730 end - _t1720 = _t1721 + _t1728 = _t1729 end - _t1719 = _t1720 + _t1727 = _t1728 end - _t1718 = _t1719 + _t1726 = _t1727 end - _t1715 = _t1718 + _t1723 = _t1726 end - _t1714 = _t1715 + _t1722 = _t1723 end - _t1713 = _t1714 + _t1721 = _t1722 end - _t1712 = _t1713 - end - prediction914 = _t1712 - if prediction914 == 12 - _t1728 = parse_boolean_value(parser) - boolean_value926 = _t1728 - _t1729 = Proto.Value(value=OneOf(:boolean_value, boolean_value926)) - _t1727 = _t1729 + _t1720 = _t1721 + end + prediction918 = _t1720 + if prediction918 == 12 + _t1736 = parse_boolean_value(parser) + boolean_value930 = _t1736 + _t1737 = Proto.Value(value=OneOf(:boolean_value, boolean_value930)) + _t1735 = _t1737 else - if prediction914 == 11 + if prediction918 == 11 consume_literal!(parser, "missing") - _t1731 = Proto.MissingValue() - _t1732 = Proto.Value(value=OneOf(:missing_value, _t1731)) - _t1730 = _t1732 + _t1739 = Proto.MissingValue() + _t1740 = Proto.Value(value=OneOf(:missing_value, _t1739)) + _t1738 = _t1740 else - if prediction914 == 10 - formatted_decimal925 = consume_terminal!(parser, "DECIMAL") - _t1734 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal925)) - _t1733 = _t1734 + if prediction918 == 10 + formatted_decimal929 = consume_terminal!(parser, "DECIMAL") + _t1742 = Proto.Value(value=OneOf(:decimal_value, formatted_decimal929)) + _t1741 = _t1742 else - if prediction914 == 9 - formatted_int128924 = consume_terminal!(parser, "INT128") - _t1736 = Proto.Value(value=OneOf(:int128_value, formatted_int128924)) - _t1735 = _t1736 + if prediction918 == 9 + formatted_int128928 = consume_terminal!(parser, "INT128") + _t1744 = Proto.Value(value=OneOf(:int128_value, formatted_int128928)) + _t1743 = _t1744 else - if prediction914 == 8 - formatted_uint128923 = consume_terminal!(parser, "UINT128") - _t1738 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128923)) - _t1737 = _t1738 + if prediction918 == 8 + formatted_uint128927 = consume_terminal!(parser, "UINT128") + _t1746 = Proto.Value(value=OneOf(:uint128_value, formatted_uint128927)) + _t1745 = _t1746 else - if prediction914 == 7 - formatted_uint32922 = consume_terminal!(parser, "UINT32") - _t1740 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32922)) - _t1739 = _t1740 + if prediction918 == 7 + formatted_uint32926 = consume_terminal!(parser, "UINT32") + _t1748 = Proto.Value(value=OneOf(:uint32_value, formatted_uint32926)) + _t1747 = _t1748 else - if prediction914 == 6 - formatted_float921 = consume_terminal!(parser, "FLOAT") - _t1742 = Proto.Value(value=OneOf(:float_value, formatted_float921)) - _t1741 = _t1742 + if prediction918 == 6 + formatted_float925 = consume_terminal!(parser, "FLOAT") + _t1750 = Proto.Value(value=OneOf(:float_value, formatted_float925)) + _t1749 = _t1750 else - if prediction914 == 5 - formatted_float32920 = consume_terminal!(parser, "FLOAT32") - _t1744 = Proto.Value(value=OneOf(:float32_value, formatted_float32920)) - _t1743 = _t1744 + if prediction918 == 5 + formatted_float32924 = consume_terminal!(parser, "FLOAT32") + _t1752 = Proto.Value(value=OneOf(:float32_value, formatted_float32924)) + _t1751 = _t1752 else - if prediction914 == 4 - formatted_int919 = consume_terminal!(parser, "INT") - _t1746 = Proto.Value(value=OneOf(:int_value, formatted_int919)) - _t1745 = _t1746 + if prediction918 == 4 + formatted_int923 = consume_terminal!(parser, "INT") + _t1754 = Proto.Value(value=OneOf(:int_value, formatted_int923)) + _t1753 = _t1754 else - if prediction914 == 3 - formatted_int32918 = consume_terminal!(parser, "INT32") - _t1748 = Proto.Value(value=OneOf(:int32_value, formatted_int32918)) - _t1747 = _t1748 + if prediction918 == 3 + formatted_int32922 = consume_terminal!(parser, "INT32") + _t1756 = Proto.Value(value=OneOf(:int32_value, formatted_int32922)) + _t1755 = _t1756 else - if prediction914 == 2 - formatted_string917 = consume_terminal!(parser, "STRING") - _t1750 = Proto.Value(value=OneOf(:string_value, formatted_string917)) - _t1749 = _t1750 + if prediction918 == 2 + formatted_string921 = consume_terminal!(parser, "STRING") + _t1758 = Proto.Value(value=OneOf(:string_value, formatted_string921)) + _t1757 = _t1758 else - if prediction914 == 1 - _t1752 = parse_datetime(parser) - datetime916 = _t1752 - _t1753 = Proto.Value(value=OneOf(:datetime_value, datetime916)) - _t1751 = _t1753 + if prediction918 == 1 + _t1760 = parse_datetime(parser) + datetime920 = _t1760 + _t1761 = Proto.Value(value=OneOf(:datetime_value, datetime920)) + _t1759 = _t1761 else - if prediction914 == 0 - _t1755 = parse_date(parser) - date915 = _t1755 - _t1756 = Proto.Value(value=OneOf(:date_value, date915)) - _t1754 = _t1756 + if prediction918 == 0 + _t1763 = parse_date(parser) + date919 = _t1763 + _t1764 = Proto.Value(value=OneOf(:date_value, date919)) + _t1762 = _t1764 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t1751 = _t1754 + _t1759 = _t1762 end - _t1749 = _t1751 + _t1757 = _t1759 end - _t1747 = _t1749 + _t1755 = _t1757 end - _t1745 = _t1747 + _t1753 = _t1755 end - _t1743 = _t1745 + _t1751 = _t1753 end - _t1741 = _t1743 + _t1749 = _t1751 end - _t1739 = _t1741 + _t1747 = _t1749 end - _t1737 = _t1739 + _t1745 = _t1747 end - _t1735 = _t1737 + _t1743 = _t1745 end - _t1733 = _t1735 + _t1741 = _t1743 end - _t1730 = _t1733 + _t1738 = _t1741 end - _t1727 = _t1730 + _t1735 = _t1738 end - result928 = _t1727 - record_span!(parser, span_start927, "Value") - return result928 + result932 = _t1735 + record_span!(parser, span_start931, "Value") + return result932 end function parse_date(parser::ParserState)::Proto.DateValue - span_start932 = span_start(parser) + span_start936 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "date") - formatted_int929 = consume_terminal!(parser, "INT") - formatted_int_3930 = consume_terminal!(parser, "INT") - formatted_int_4931 = consume_terminal!(parser, "INT") + formatted_int933 = consume_terminal!(parser, "INT") + formatted_int_3934 = consume_terminal!(parser, "INT") + formatted_int_4935 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1757 = Proto.DateValue(year=Int32(formatted_int929), month=Int32(formatted_int_3930), day=Int32(formatted_int_4931)) - result933 = _t1757 - record_span!(parser, span_start932, "DateValue") - return result933 + _t1765 = Proto.DateValue(year=Int32(formatted_int933), month=Int32(formatted_int_3934), day=Int32(formatted_int_4935)) + result937 = _t1765 + record_span!(parser, span_start936, "DateValue") + return result937 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue - span_start941 = span_start(parser) + span_start945 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "datetime") - formatted_int934 = consume_terminal!(parser, "INT") - formatted_int_3935 = consume_terminal!(parser, "INT") - formatted_int_4936 = consume_terminal!(parser, "INT") - formatted_int_5937 = consume_terminal!(parser, "INT") - formatted_int_6938 = consume_terminal!(parser, "INT") - formatted_int_7939 = consume_terminal!(parser, "INT") + formatted_int938 = consume_terminal!(parser, "INT") + formatted_int_3939 = consume_terminal!(parser, "INT") + formatted_int_4940 = consume_terminal!(parser, "INT") + formatted_int_5941 = consume_terminal!(parser, "INT") + formatted_int_6942 = consume_terminal!(parser, "INT") + formatted_int_7943 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1758 = consume_terminal!(parser, "INT") + _t1766 = consume_terminal!(parser, "INT") else - _t1758 = nothing + _t1766 = nothing end - formatted_int_8940 = _t1758 + formatted_int_8944 = _t1766 consume_literal!(parser, ")") - _t1759 = Proto.DateTimeValue(year=Int32(formatted_int934), month=Int32(formatted_int_3935), day=Int32(formatted_int_4936), hour=Int32(formatted_int_5937), minute=Int32(formatted_int_6938), second=Int32(formatted_int_7939), microsecond=Int32((!isnothing(formatted_int_8940) ? formatted_int_8940 : 0))) - result942 = _t1759 - record_span!(parser, span_start941, "DateTimeValue") - return result942 + _t1767 = Proto.DateTimeValue(year=Int32(formatted_int938), month=Int32(formatted_int_3939), day=Int32(formatted_int_4940), hour=Int32(formatted_int_5941), minute=Int32(formatted_int_6942), second=Int32(formatted_int_7943), microsecond=Int32((!isnothing(formatted_int_8944) ? formatted_int_8944 : 0))) + result946 = _t1767 + record_span!(parser, span_start945, "DateTimeValue") + return result946 end function parse_conjunction(parser::ParserState)::Proto.Conjunction - span_start947 = span_start(parser) + span_start951 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "and") - xs943 = Proto.Formula[] - cond944 = match_lookahead_literal(parser, "(", 0) - while cond944 - _t1760 = parse_formula(parser) - item945 = _t1760 - push!(xs943, item945) - cond944 = match_lookahead_literal(parser, "(", 0) - end - formulas946 = xs943 + xs947 = Proto.Formula[] + cond948 = match_lookahead_literal(parser, "(", 0) + while cond948 + _t1768 = parse_formula(parser) + item949 = _t1768 + push!(xs947, item949) + cond948 = match_lookahead_literal(parser, "(", 0) + end + formulas950 = xs947 consume_literal!(parser, ")") - _t1761 = Proto.Conjunction(args=formulas946) - result948 = _t1761 - record_span!(parser, span_start947, "Conjunction") - return result948 + _t1769 = Proto.Conjunction(args=formulas950) + result952 = _t1769 + record_span!(parser, span_start951, "Conjunction") + return result952 end function parse_disjunction(parser::ParserState)::Proto.Disjunction - span_start953 = span_start(parser) + span_start957 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") - xs949 = Proto.Formula[] - cond950 = match_lookahead_literal(parser, "(", 0) - while cond950 - _t1762 = parse_formula(parser) - item951 = _t1762 - push!(xs949, item951) - cond950 = match_lookahead_literal(parser, "(", 0) - end - formulas952 = xs949 + xs953 = Proto.Formula[] + cond954 = match_lookahead_literal(parser, "(", 0) + while cond954 + _t1770 = parse_formula(parser) + item955 = _t1770 + push!(xs953, item955) + cond954 = match_lookahead_literal(parser, "(", 0) + end + formulas956 = xs953 consume_literal!(parser, ")") - _t1763 = Proto.Disjunction(args=formulas952) - result954 = _t1763 - record_span!(parser, span_start953, "Disjunction") - return result954 + _t1771 = Proto.Disjunction(args=formulas956) + result958 = _t1771 + record_span!(parser, span_start957, "Disjunction") + return result958 end function parse_not(parser::ParserState)::Proto.Not - span_start956 = span_start(parser) + span_start960 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "not") - _t1764 = parse_formula(parser) - formula955 = _t1764 + _t1772 = parse_formula(parser) + formula959 = _t1772 consume_literal!(parser, ")") - _t1765 = Proto.Not(arg=formula955) - result957 = _t1765 - record_span!(parser, span_start956, "Not") - return result957 + _t1773 = Proto.Not(arg=formula959) + result961 = _t1773 + record_span!(parser, span_start960, "Not") + return result961 end function parse_ffi(parser::ParserState)::Proto.FFI - span_start961 = span_start(parser) + span_start965 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "ffi") - _t1766 = parse_name(parser) - name958 = _t1766 - _t1767 = parse_ffi_args(parser) - ffi_args959 = _t1767 - _t1768 = parse_terms(parser) - terms960 = _t1768 + _t1774 = parse_name(parser) + name962 = _t1774 + _t1775 = parse_ffi_args(parser) + ffi_args963 = _t1775 + _t1776 = parse_terms(parser) + terms964 = _t1776 consume_literal!(parser, ")") - _t1769 = Proto.FFI(name=name958, args=ffi_args959, terms=terms960) - result962 = _t1769 - record_span!(parser, span_start961, "FFI") - return result962 + _t1777 = Proto.FFI(name=name962, args=ffi_args963, terms=terms964) + result966 = _t1777 + record_span!(parser, span_start965, "FFI") + return result966 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol963 = consume_terminal!(parser, "SYMBOL") - return symbol963 + symbol967 = consume_terminal!(parser, "SYMBOL") + return symbol967 end function parse_ffi_args(parser::ParserState)::Vector{Proto.Abstraction} consume_literal!(parser, "(") consume_literal!(parser, "args") - xs964 = Proto.Abstraction[] - cond965 = match_lookahead_literal(parser, "(", 0) - while cond965 - _t1770 = parse_abstraction(parser) - item966 = _t1770 - push!(xs964, item966) - cond965 = match_lookahead_literal(parser, "(", 0) - end - abstractions967 = xs964 + xs968 = Proto.Abstraction[] + cond969 = match_lookahead_literal(parser, "(", 0) + while cond969 + _t1778 = parse_abstraction(parser) + item970 = _t1778 + push!(xs968, item970) + cond969 = match_lookahead_literal(parser, "(", 0) + end + abstractions971 = xs968 consume_literal!(parser, ")") - return abstractions967 + return abstractions971 end function parse_atom(parser::ParserState)::Proto.Atom - span_start973 = span_start(parser) + span_start977 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "atom") - _t1771 = parse_relation_id(parser) - relation_id968 = _t1771 - xs969 = Proto.Term[] - cond970 = (((((((((((((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 cond970 - _t1772 = parse_term(parser) - item971 = _t1772 - push!(xs969, item971) - cond970 = (((((((((((((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 - terms972 = xs969 + _t1779 = parse_relation_id(parser) + relation_id972 = _t1779 + xs973 = Proto.Term[] + cond974 = (((((((((((((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 cond974 + _t1780 = parse_term(parser) + item975 = _t1780 + push!(xs973, item975) + cond974 = (((((((((((((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 + terms976 = xs973 consume_literal!(parser, ")") - _t1773 = Proto.Atom(name=relation_id968, terms=terms972) - result974 = _t1773 - record_span!(parser, span_start973, "Atom") - return result974 + _t1781 = Proto.Atom(name=relation_id972, terms=terms976) + result978 = _t1781 + record_span!(parser, span_start977, "Atom") + return result978 end function parse_pragma(parser::ParserState)::Proto.Pragma - span_start980 = span_start(parser) + span_start984 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "pragma") - _t1774 = parse_name(parser) - name975 = _t1774 - xs976 = Proto.Term[] - cond977 = (((((((((((((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 cond977 - _t1775 = parse_term(parser) - item978 = _t1775 - push!(xs976, item978) - cond977 = (((((((((((((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 - terms979 = xs976 + _t1782 = parse_name(parser) + name979 = _t1782 + xs980 = Proto.Term[] + cond981 = (((((((((((((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 cond981 + _t1783 = parse_term(parser) + item982 = _t1783 + push!(xs980, item982) + cond981 = (((((((((((((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 + terms983 = xs980 consume_literal!(parser, ")") - _t1776 = Proto.Pragma(name=name975, terms=terms979) - result981 = _t1776 - record_span!(parser, span_start980, "Pragma") - return result981 + _t1784 = Proto.Pragma(name=name979, terms=terms983) + result985 = _t1784 + record_span!(parser, span_start984, "Pragma") + return result985 end function parse_primitive(parser::ParserState)::Proto.Primitive - span_start997 = span_start(parser) + span_start1001 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t1778 = 9 + _t1786 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1779 = 4 + _t1787 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1780 = 3 + _t1788 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1781 = 0 + _t1789 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1782 = 2 + _t1790 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1783 = 1 + _t1791 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1784 = 8 + _t1792 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1785 = 6 + _t1793 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1786 = 5 + _t1794 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1787 = 7 + _t1795 = 7 else - _t1787 = -1 + _t1795 = -1 end - _t1786 = _t1787 + _t1794 = _t1795 end - _t1785 = _t1786 + _t1793 = _t1794 end - _t1784 = _t1785 + _t1792 = _t1793 end - _t1783 = _t1784 + _t1791 = _t1792 end - _t1782 = _t1783 + _t1790 = _t1791 end - _t1781 = _t1782 + _t1789 = _t1790 end - _t1780 = _t1781 + _t1788 = _t1789 end - _t1779 = _t1780 + _t1787 = _t1788 end - _t1778 = _t1779 + _t1786 = _t1787 end - _t1777 = _t1778 + _t1785 = _t1786 else - _t1777 = -1 + _t1785 = -1 end - prediction982 = _t1777 - if prediction982 == 9 + prediction986 = _t1785 + if prediction986 == 9 consume_literal!(parser, "(") consume_literal!(parser, "primitive") - _t1789 = parse_name(parser) - name992 = _t1789 - xs993 = Proto.RelTerm[] - cond994 = ((((((((((((((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 cond994 - _t1790 = parse_rel_term(parser) - item995 = _t1790 - push!(xs993, item995) - cond994 = ((((((((((((((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)) + _t1797 = parse_name(parser) + name996 = _t1797 + xs997 = Proto.RelTerm[] + cond998 = ((((((((((((((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 cond998 + _t1798 = parse_rel_term(parser) + item999 = _t1798 + push!(xs997, item999) + cond998 = ((((((((((((((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_terms996 = xs993 + rel_terms1000 = xs997 consume_literal!(parser, ")") - _t1791 = Proto.Primitive(name=name992, terms=rel_terms996) - _t1788 = _t1791 + _t1799 = Proto.Primitive(name=name996, terms=rel_terms1000) + _t1796 = _t1799 else - if prediction982 == 8 - _t1793 = parse_divide(parser) - divide991 = _t1793 - _t1792 = divide991 + if prediction986 == 8 + _t1801 = parse_divide(parser) + divide995 = _t1801 + _t1800 = divide995 else - if prediction982 == 7 - _t1795 = parse_multiply(parser) - multiply990 = _t1795 - _t1794 = multiply990 + if prediction986 == 7 + _t1803 = parse_multiply(parser) + multiply994 = _t1803 + _t1802 = multiply994 else - if prediction982 == 6 - _t1797 = parse_minus(parser) - minus989 = _t1797 - _t1796 = minus989 + if prediction986 == 6 + _t1805 = parse_minus(parser) + minus993 = _t1805 + _t1804 = minus993 else - if prediction982 == 5 - _t1799 = parse_add(parser) - add988 = _t1799 - _t1798 = add988 + if prediction986 == 5 + _t1807 = parse_add(parser) + add992 = _t1807 + _t1806 = add992 else - if prediction982 == 4 - _t1801 = parse_gt_eq(parser) - gt_eq987 = _t1801 - _t1800 = gt_eq987 + if prediction986 == 4 + _t1809 = parse_gt_eq(parser) + gt_eq991 = _t1809 + _t1808 = gt_eq991 else - if prediction982 == 3 - _t1803 = parse_gt(parser) - gt986 = _t1803 - _t1802 = gt986 + if prediction986 == 3 + _t1811 = parse_gt(parser) + gt990 = _t1811 + _t1810 = gt990 else - if prediction982 == 2 - _t1805 = parse_lt_eq(parser) - lt_eq985 = _t1805 - _t1804 = lt_eq985 + if prediction986 == 2 + _t1813 = parse_lt_eq(parser) + lt_eq989 = _t1813 + _t1812 = lt_eq989 else - if prediction982 == 1 - _t1807 = parse_lt(parser) - lt984 = _t1807 - _t1806 = lt984 + if prediction986 == 1 + _t1815 = parse_lt(parser) + lt988 = _t1815 + _t1814 = lt988 else - if prediction982 == 0 - _t1809 = parse_eq(parser) - eq983 = _t1809 - _t1808 = eq983 + if prediction986 == 0 + _t1817 = parse_eq(parser) + eq987 = _t1817 + _t1816 = eq987 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1806 = _t1808 + _t1814 = _t1816 end - _t1804 = _t1806 + _t1812 = _t1814 end - _t1802 = _t1804 + _t1810 = _t1812 end - _t1800 = _t1802 + _t1808 = _t1810 end - _t1798 = _t1800 + _t1806 = _t1808 end - _t1796 = _t1798 + _t1804 = _t1806 end - _t1794 = _t1796 + _t1802 = _t1804 end - _t1792 = _t1794 + _t1800 = _t1802 end - _t1788 = _t1792 + _t1796 = _t1800 end - result998 = _t1788 - record_span!(parser, span_start997, "Primitive") - return result998 -end - -function parse_eq(parser::ParserState)::Proto.Primitive - span_start1001 = span_start(parser) - consume_literal!(parser, "(") - consume_literal!(parser, "=") - _t1810 = parse_term(parser) - term999 = _t1810 - _t1811 = parse_term(parser) - term_31000 = _t1811 - consume_literal!(parser, ")") - _t1812 = Proto.RelTerm(rel_term_type=OneOf(:term, term999)) - _t1813 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31000)) - _t1814 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1812, _t1813]) - result1002 = _t1814 + result1002 = _t1796 record_span!(parser, span_start1001, "Primitive") return result1002 end -function parse_lt(parser::ParserState)::Proto.Primitive +function parse_eq(parser::ParserState)::Proto.Primitive span_start1005 = span_start(parser) consume_literal!(parser, "(") - consume_literal!(parser, "<") - _t1815 = parse_term(parser) - term1003 = _t1815 - _t1816 = parse_term(parser) - term_31004 = _t1816 + consume_literal!(parser, "=") + _t1818 = parse_term(parser) + term1003 = _t1818 + _t1819 = parse_term(parser) + term_31004 = _t1819 consume_literal!(parser, ")") - _t1817 = Proto.RelTerm(rel_term_type=OneOf(:term, term1003)) - _t1818 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31004)) - _t1819 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1817, _t1818]) - result1006 = _t1819 + _t1820 = Proto.RelTerm(rel_term_type=OneOf(:term, term1003)) + _t1821 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31004)) + _t1822 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1820, _t1821]) + result1006 = _t1822 record_span!(parser, span_start1005, "Primitive") return result1006 end -function parse_lt_eq(parser::ParserState)::Proto.Primitive +function parse_lt(parser::ParserState)::Proto.Primitive span_start1009 = span_start(parser) consume_literal!(parser, "(") - consume_literal!(parser, "<=") - _t1820 = parse_term(parser) - term1007 = _t1820 - _t1821 = parse_term(parser) - term_31008 = _t1821 + consume_literal!(parser, "<") + _t1823 = parse_term(parser) + term1007 = _t1823 + _t1824 = parse_term(parser) + term_31008 = _t1824 consume_literal!(parser, ")") - _t1822 = Proto.RelTerm(rel_term_type=OneOf(:term, term1007)) - _t1823 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31008)) - _t1824 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1822, _t1823]) - result1010 = _t1824 + _t1825 = Proto.RelTerm(rel_term_type=OneOf(:term, term1007)) + _t1826 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31008)) + _t1827 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1825, _t1826]) + result1010 = _t1827 record_span!(parser, span_start1009, "Primitive") return result1010 end -function parse_gt(parser::ParserState)::Proto.Primitive +function parse_lt_eq(parser::ParserState)::Proto.Primitive span_start1013 = span_start(parser) consume_literal!(parser, "(") - consume_literal!(parser, ">") - _t1825 = parse_term(parser) - term1011 = _t1825 - _t1826 = parse_term(parser) - term_31012 = _t1826 + consume_literal!(parser, "<=") + _t1828 = parse_term(parser) + term1011 = _t1828 + _t1829 = parse_term(parser) + term_31012 = _t1829 consume_literal!(parser, ")") - _t1827 = Proto.RelTerm(rel_term_type=OneOf(:term, term1011)) - _t1828 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31012)) - _t1829 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1827, _t1828]) - result1014 = _t1829 + _t1830 = Proto.RelTerm(rel_term_type=OneOf(:term, term1011)) + _t1831 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31012)) + _t1832 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1830, _t1831]) + result1014 = _t1832 record_span!(parser, span_start1013, "Primitive") return result1014 end -function parse_gt_eq(parser::ParserState)::Proto.Primitive +function parse_gt(parser::ParserState)::Proto.Primitive span_start1017 = span_start(parser) consume_literal!(parser, "(") - consume_literal!(parser, ">=") - _t1830 = parse_term(parser) - term1015 = _t1830 - _t1831 = parse_term(parser) - term_31016 = _t1831 + consume_literal!(parser, ">") + _t1833 = parse_term(parser) + term1015 = _t1833 + _t1834 = parse_term(parser) + term_31016 = _t1834 consume_literal!(parser, ")") - _t1832 = Proto.RelTerm(rel_term_type=OneOf(:term, term1015)) - _t1833 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31016)) - _t1834 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1832, _t1833]) - result1018 = _t1834 + _t1835 = Proto.RelTerm(rel_term_type=OneOf(:term, term1015)) + _t1836 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31016)) + _t1837 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1835, _t1836]) + result1018 = _t1837 record_span!(parser, span_start1017, "Primitive") return result1018 end +function parse_gt_eq(parser::ParserState)::Proto.Primitive + span_start1021 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, ">=") + _t1838 = parse_term(parser) + term1019 = _t1838 + _t1839 = parse_term(parser) + term_31020 = _t1839 + consume_literal!(parser, ")") + _t1840 = Proto.RelTerm(rel_term_type=OneOf(:term, term1019)) + _t1841 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31020)) + _t1842 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1840, _t1841]) + result1022 = _t1842 + record_span!(parser, span_start1021, "Primitive") + return result1022 +end + function parse_add(parser::ParserState)::Proto.Primitive - span_start1022 = span_start(parser) + span_start1026 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "+") - _t1835 = parse_term(parser) - term1019 = _t1835 - _t1836 = parse_term(parser) - term_31020 = _t1836 - _t1837 = parse_term(parser) - term_41021 = _t1837 + _t1843 = parse_term(parser) + term1023 = _t1843 + _t1844 = parse_term(parser) + term_31024 = _t1844 + _t1845 = parse_term(parser) + term_41025 = _t1845 consume_literal!(parser, ")") - _t1838 = Proto.RelTerm(rel_term_type=OneOf(:term, term1019)) - _t1839 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31020)) - _t1840 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41021)) - _t1841 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1838, _t1839, _t1840]) - result1023 = _t1841 - record_span!(parser, span_start1022, "Primitive") - return result1023 + _t1846 = Proto.RelTerm(rel_term_type=OneOf(:term, term1023)) + _t1847 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31024)) + _t1848 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41025)) + _t1849 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1846, _t1847, _t1848]) + result1027 = _t1849 + record_span!(parser, span_start1026, "Primitive") + return result1027 end function parse_minus(parser::ParserState)::Proto.Primitive - span_start1027 = span_start(parser) + span_start1031 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "-") - _t1842 = parse_term(parser) - term1024 = _t1842 - _t1843 = parse_term(parser) - term_31025 = _t1843 - _t1844 = parse_term(parser) - term_41026 = _t1844 + _t1850 = parse_term(parser) + term1028 = _t1850 + _t1851 = parse_term(parser) + term_31029 = _t1851 + _t1852 = parse_term(parser) + term_41030 = _t1852 consume_literal!(parser, ")") - _t1845 = Proto.RelTerm(rel_term_type=OneOf(:term, term1024)) - _t1846 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31025)) - _t1847 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41026)) - _t1848 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1845, _t1846, _t1847]) - result1028 = _t1848 - record_span!(parser, span_start1027, "Primitive") - return result1028 + _t1853 = Proto.RelTerm(rel_term_type=OneOf(:term, term1028)) + _t1854 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31029)) + _t1855 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41030)) + _t1856 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1853, _t1854, _t1855]) + result1032 = _t1856 + record_span!(parser, span_start1031, "Primitive") + return result1032 end function parse_multiply(parser::ParserState)::Proto.Primitive - span_start1032 = span_start(parser) + span_start1036 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "*") - _t1849 = parse_term(parser) - term1029 = _t1849 - _t1850 = parse_term(parser) - term_31030 = _t1850 - _t1851 = parse_term(parser) - term_41031 = _t1851 + _t1857 = parse_term(parser) + term1033 = _t1857 + _t1858 = parse_term(parser) + term_31034 = _t1858 + _t1859 = parse_term(parser) + term_41035 = _t1859 consume_literal!(parser, ")") - _t1852 = Proto.RelTerm(rel_term_type=OneOf(:term, term1029)) - _t1853 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31030)) - _t1854 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41031)) - _t1855 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1852, _t1853, _t1854]) - result1033 = _t1855 - record_span!(parser, span_start1032, "Primitive") - return result1033 + _t1860 = Proto.RelTerm(rel_term_type=OneOf(:term, term1033)) + _t1861 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31034)) + _t1862 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41035)) + _t1863 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1860, _t1861, _t1862]) + result1037 = _t1863 + record_span!(parser, span_start1036, "Primitive") + return result1037 end function parse_divide(parser::ParserState)::Proto.Primitive - span_start1037 = span_start(parser) + span_start1041 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "/") - _t1856 = parse_term(parser) - term1034 = _t1856 - _t1857 = parse_term(parser) - term_31035 = _t1857 - _t1858 = parse_term(parser) - term_41036 = _t1858 + _t1864 = parse_term(parser) + term1038 = _t1864 + _t1865 = parse_term(parser) + term_31039 = _t1865 + _t1866 = parse_term(parser) + term_41040 = _t1866 consume_literal!(parser, ")") - _t1859 = Proto.RelTerm(rel_term_type=OneOf(:term, term1034)) - _t1860 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31035)) - _t1861 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41036)) - _t1862 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1859, _t1860, _t1861]) - result1038 = _t1862 - record_span!(parser, span_start1037, "Primitive") - return result1038 + _t1867 = Proto.RelTerm(rel_term_type=OneOf(:term, term1038)) + _t1868 = Proto.RelTerm(rel_term_type=OneOf(:term, term_31039)) + _t1869 = Proto.RelTerm(rel_term_type=OneOf(:term, term_41040)) + _t1870 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1867, _t1868, _t1869]) + result1042 = _t1870 + record_span!(parser, span_start1041, "Primitive") + return result1042 end function parse_rel_term(parser::ParserState)::Proto.RelTerm - span_start1042 = span_start(parser) + span_start1046 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1863 = 1 + _t1871 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1864 = 1 + _t1872 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1865 = 1 + _t1873 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1866 = 1 + _t1874 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1867 = 0 + _t1875 = 0 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1868 = 1 + _t1876 = 1 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1869 = 1 + _t1877 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1870 = 1 + _t1878 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1871 = 1 + _t1879 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1872 = 1 + _t1880 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1873 = 1 + _t1881 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1874 = 1 + _t1882 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1875 = 1 + _t1883 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1876 = 1 + _t1884 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1877 = 1 + _t1885 = 1 else - _t1877 = -1 + _t1885 = -1 end - _t1876 = _t1877 + _t1884 = _t1885 end - _t1875 = _t1876 + _t1883 = _t1884 end - _t1874 = _t1875 + _t1882 = _t1883 end - _t1873 = _t1874 + _t1881 = _t1882 end - _t1872 = _t1873 + _t1880 = _t1881 end - _t1871 = _t1872 + _t1879 = _t1880 end - _t1870 = _t1871 + _t1878 = _t1879 end - _t1869 = _t1870 + _t1877 = _t1878 end - _t1868 = _t1869 + _t1876 = _t1877 end - _t1867 = _t1868 + _t1875 = _t1876 end - _t1866 = _t1867 + _t1874 = _t1875 end - _t1865 = _t1866 + _t1873 = _t1874 end - _t1864 = _t1865 + _t1872 = _t1873 end - _t1863 = _t1864 - end - prediction1039 = _t1863 - if prediction1039 == 1 - _t1879 = parse_term(parser) - term1041 = _t1879 - _t1880 = Proto.RelTerm(rel_term_type=OneOf(:term, term1041)) - _t1878 = _t1880 + _t1871 = _t1872 + end + prediction1043 = _t1871 + if prediction1043 == 1 + _t1887 = parse_term(parser) + term1045 = _t1887 + _t1888 = Proto.RelTerm(rel_term_type=OneOf(:term, term1045)) + _t1886 = _t1888 else - if prediction1039 == 0 - _t1882 = parse_specialized_value(parser) - specialized_value1040 = _t1882 - _t1883 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value1040)) - _t1881 = _t1883 + if prediction1043 == 0 + _t1890 = parse_specialized_value(parser) + specialized_value1044 = _t1890 + _t1891 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value1044)) + _t1889 = _t1891 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1878 = _t1881 + _t1886 = _t1889 end - result1043 = _t1878 - record_span!(parser, span_start1042, "RelTerm") - return result1043 + result1047 = _t1886 + record_span!(parser, span_start1046, "RelTerm") + return result1047 end function parse_specialized_value(parser::ParserState)::Proto.Value - span_start1045 = span_start(parser) + span_start1049 = span_start(parser) consume_literal!(parser, "#") - _t1884 = parse_raw_value(parser) - raw_value1044 = _t1884 - result1046 = raw_value1044 - record_span!(parser, span_start1045, "Value") - return result1046 + _t1892 = parse_raw_value(parser) + raw_value1048 = _t1892 + result1050 = raw_value1048 + record_span!(parser, span_start1049, "Value") + return result1050 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom - span_start1052 = span_start(parser) + span_start1056 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "relatom") - _t1885 = parse_name(parser) - name1047 = _t1885 - xs1048 = Proto.RelTerm[] - cond1049 = ((((((((((((((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 cond1049 - _t1886 = parse_rel_term(parser) - item1050 = _t1886 - push!(xs1048, item1050) - cond1049 = ((((((((((((((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_terms1051 = xs1048 + _t1893 = parse_name(parser) + name1051 = _t1893 + xs1052 = Proto.RelTerm[] + cond1053 = ((((((((((((((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 cond1053 + _t1894 = parse_rel_term(parser) + item1054 = _t1894 + push!(xs1052, item1054) + cond1053 = ((((((((((((((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_terms1055 = xs1052 consume_literal!(parser, ")") - _t1887 = Proto.RelAtom(name=name1047, terms=rel_terms1051) - result1053 = _t1887 - record_span!(parser, span_start1052, "RelAtom") - return result1053 + _t1895 = Proto.RelAtom(name=name1051, terms=rel_terms1055) + result1057 = _t1895 + record_span!(parser, span_start1056, "RelAtom") + return result1057 end function parse_cast(parser::ParserState)::Proto.Cast - span_start1056 = span_start(parser) + span_start1060 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1888 = parse_term(parser) - term1054 = _t1888 - _t1889 = parse_term(parser) - term_31055 = _t1889 + _t1896 = parse_term(parser) + term1058 = _t1896 + _t1897 = parse_term(parser) + term_31059 = _t1897 consume_literal!(parser, ")") - _t1890 = Proto.Cast(input=term1054, result=term_31055) - result1057 = _t1890 - record_span!(parser, span_start1056, "Cast") - return result1057 + _t1898 = Proto.Cast(input=term1058, result=term_31059) + result1061 = _t1898 + record_span!(parser, span_start1060, "Cast") + return result1061 end function parse_attrs(parser::ParserState)::Vector{Proto.Attribute} consume_literal!(parser, "(") consume_literal!(parser, "attrs") - xs1058 = Proto.Attribute[] - cond1059 = match_lookahead_literal(parser, "(", 0) - while cond1059 - _t1891 = parse_attribute(parser) - item1060 = _t1891 - push!(xs1058, item1060) - cond1059 = match_lookahead_literal(parser, "(", 0) - end - attributes1061 = xs1058 + xs1062 = Proto.Attribute[] + cond1063 = match_lookahead_literal(parser, "(", 0) + while cond1063 + _t1899 = parse_attribute(parser) + item1064 = _t1899 + push!(xs1062, item1064) + cond1063 = match_lookahead_literal(parser, "(", 0) + end + attributes1065 = xs1062 consume_literal!(parser, ")") - return attributes1061 + return attributes1065 end function parse_attribute(parser::ParserState)::Proto.Attribute - span_start1067 = span_start(parser) + span_start1071 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "attribute") - _t1892 = parse_name(parser) - name1062 = _t1892 - xs1063 = Proto.Value[] - cond1064 = ((((((((((((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 cond1064 - _t1893 = parse_raw_value(parser) - item1065 = _t1893 - push!(xs1063, item1065) - cond1064 = ((((((((((((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_values1066 = xs1063 + _t1900 = parse_name(parser) + name1066 = _t1900 + xs1067 = Proto.Value[] + cond1068 = ((((((((((((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 cond1068 + _t1901 = parse_raw_value(parser) + item1069 = _t1901 + push!(xs1067, item1069) + cond1068 = ((((((((((((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_values1070 = xs1067 consume_literal!(parser, ")") - _t1894 = Proto.Attribute(name=name1062, args=raw_values1066) - result1068 = _t1894 - record_span!(parser, span_start1067, "Attribute") - return result1068 + _t1902 = Proto.Attribute(name=name1066, args=raw_values1070) + result1072 = _t1902 + record_span!(parser, span_start1071, "Attribute") + return result1072 end function parse_algorithm(parser::ParserState)::Proto.Algorithm - span_start1075 = span_start(parser) + span_start1079 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "algorithm") - xs1069 = Proto.RelationId[] - cond1070 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond1070 - _t1895 = parse_relation_id(parser) - item1071 = _t1895 - push!(xs1069, item1071) - cond1070 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - end - relation_ids1072 = xs1069 - _t1896 = parse_script(parser) - script1073 = _t1896 + xs1073 = Proto.RelationId[] + cond1074 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1074 + _t1903 = parse_relation_id(parser) + item1075 = _t1903 + push!(xs1073, item1075) + cond1074 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1076 = xs1073 + _t1904 = parse_script(parser) + script1077 = _t1904 if match_lookahead_literal(parser, "(", 0) - _t1898 = parse_attrs(parser) - _t1897 = _t1898 + _t1906 = parse_attrs(parser) + _t1905 = _t1906 else - _t1897 = nothing + _t1905 = nothing end - attrs1074 = _t1897 + attrs1078 = _t1905 consume_literal!(parser, ")") - _t1899 = Proto.Algorithm(var"#global"=relation_ids1072, body=script1073, attrs=(!isnothing(attrs1074) ? attrs1074 : Proto.Attribute[])) - result1076 = _t1899 - record_span!(parser, span_start1075, "Algorithm") - return result1076 + _t1907 = Proto.Algorithm(var"#global"=relation_ids1076, body=script1077, attrs=(!isnothing(attrs1078) ? attrs1078 : Proto.Attribute[])) + result1080 = _t1907 + record_span!(parser, span_start1079, "Algorithm") + return result1080 end function parse_script(parser::ParserState)::Proto.Script - span_start1081 = span_start(parser) + span_start1085 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "script") - xs1077 = Proto.Construct[] - cond1078 = match_lookahead_literal(parser, "(", 0) - while cond1078 - _t1900 = parse_construct(parser) - item1079 = _t1900 - push!(xs1077, item1079) - cond1078 = match_lookahead_literal(parser, "(", 0) - end - constructs1080 = xs1077 + xs1081 = Proto.Construct[] + cond1082 = match_lookahead_literal(parser, "(", 0) + while cond1082 + _t1908 = parse_construct(parser) + item1083 = _t1908 + push!(xs1081, item1083) + cond1082 = match_lookahead_literal(parser, "(", 0) + end + constructs1084 = xs1081 consume_literal!(parser, ")") - _t1901 = Proto.Script(constructs=constructs1080) - result1082 = _t1901 - record_span!(parser, span_start1081, "Script") - return result1082 + _t1909 = Proto.Script(constructs=constructs1084) + result1086 = _t1909 + record_span!(parser, span_start1085, "Script") + return result1086 end function parse_construct(parser::ParserState)::Proto.Construct - span_start1086 = span_start(parser) + span_start1090 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1903 = 1 + _t1911 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1904 = 1 + _t1912 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1905 = 1 + _t1913 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1906 = 0 + _t1914 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1907 = 1 + _t1915 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1908 = 1 + _t1916 = 1 else - _t1908 = -1 + _t1916 = -1 end - _t1907 = _t1908 + _t1915 = _t1916 end - _t1906 = _t1907 + _t1914 = _t1915 end - _t1905 = _t1906 + _t1913 = _t1914 end - _t1904 = _t1905 + _t1912 = _t1913 end - _t1903 = _t1904 + _t1911 = _t1912 end - _t1902 = _t1903 + _t1910 = _t1911 else - _t1902 = -1 - end - prediction1083 = _t1902 - if prediction1083 == 1 - _t1910 = parse_instruction(parser) - instruction1085 = _t1910 - _t1911 = Proto.Construct(construct_type=OneOf(:instruction, instruction1085)) - _t1909 = _t1911 + _t1910 = -1 + end + prediction1087 = _t1910 + if prediction1087 == 1 + _t1918 = parse_instruction(parser) + instruction1089 = _t1918 + _t1919 = Proto.Construct(construct_type=OneOf(:instruction, instruction1089)) + _t1917 = _t1919 else - if prediction1083 == 0 - _t1913 = parse_loop(parser) - loop1084 = _t1913 - _t1914 = Proto.Construct(construct_type=OneOf(:loop, loop1084)) - _t1912 = _t1914 + if prediction1087 == 0 + _t1921 = parse_loop(parser) + loop1088 = _t1921 + _t1922 = Proto.Construct(construct_type=OneOf(:loop, loop1088)) + _t1920 = _t1922 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1909 = _t1912 + _t1917 = _t1920 end - result1087 = _t1909 - record_span!(parser, span_start1086, "Construct") - return result1087 + result1091 = _t1917 + record_span!(parser, span_start1090, "Construct") + return result1091 end function parse_loop(parser::ParserState)::Proto.Loop - span_start1091 = span_start(parser) + span_start1095 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1915 = parse_init(parser) - init1088 = _t1915 - _t1916 = parse_script(parser) - script1089 = _t1916 + _t1923 = parse_init(parser) + init1092 = _t1923 + _t1924 = parse_script(parser) + script1093 = _t1924 if match_lookahead_literal(parser, "(", 0) - _t1918 = parse_attrs(parser) - _t1917 = _t1918 + _t1926 = parse_attrs(parser) + _t1925 = _t1926 else - _t1917 = nothing + _t1925 = nothing end - attrs1090 = _t1917 + attrs1094 = _t1925 consume_literal!(parser, ")") - _t1919 = Proto.Loop(init=init1088, body=script1089, attrs=(!isnothing(attrs1090) ? attrs1090 : Proto.Attribute[])) - result1092 = _t1919 - record_span!(parser, span_start1091, "Loop") - return result1092 + _t1927 = Proto.Loop(init=init1092, body=script1093, attrs=(!isnothing(attrs1094) ? attrs1094 : Proto.Attribute[])) + result1096 = _t1927 + record_span!(parser, span_start1095, "Loop") + return result1096 end function parse_init(parser::ParserState)::Vector{Proto.Instruction} consume_literal!(parser, "(") consume_literal!(parser, "init") - xs1093 = Proto.Instruction[] - cond1094 = match_lookahead_literal(parser, "(", 0) - while cond1094 - _t1920 = parse_instruction(parser) - item1095 = _t1920 - push!(xs1093, item1095) - cond1094 = match_lookahead_literal(parser, "(", 0) - end - instructions1096 = xs1093 + xs1097 = Proto.Instruction[] + cond1098 = match_lookahead_literal(parser, "(", 0) + while cond1098 + _t1928 = parse_instruction(parser) + item1099 = _t1928 + push!(xs1097, item1099) + cond1098 = match_lookahead_literal(parser, "(", 0) + end + instructions1100 = xs1097 consume_literal!(parser, ")") - return instructions1096 + return instructions1100 end function parse_instruction(parser::ParserState)::Proto.Instruction - span_start1103 = span_start(parser) + span_start1107 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1922 = 1 + _t1930 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1923 = 4 + _t1931 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1924 = 3 + _t1932 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1925 = 2 + _t1933 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1926 = 0 + _t1934 = 0 else - _t1926 = -1 + _t1934 = -1 end - _t1925 = _t1926 + _t1933 = _t1934 end - _t1924 = _t1925 + _t1932 = _t1933 end - _t1923 = _t1924 + _t1931 = _t1932 end - _t1922 = _t1923 + _t1930 = _t1931 end - _t1921 = _t1922 + _t1929 = _t1930 else - _t1921 = -1 - end - prediction1097 = _t1921 - if prediction1097 == 4 - _t1928 = parse_monus_def(parser) - monus_def1102 = _t1928 - _t1929 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def1102)) - _t1927 = _t1929 + _t1929 = -1 + end + prediction1101 = _t1929 + if prediction1101 == 4 + _t1936 = parse_monus_def(parser) + monus_def1106 = _t1936 + _t1937 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def1106)) + _t1935 = _t1937 else - if prediction1097 == 3 - _t1931 = parse_monoid_def(parser) - monoid_def1101 = _t1931 - _t1932 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def1101)) - _t1930 = _t1932 + if prediction1101 == 3 + _t1939 = parse_monoid_def(parser) + monoid_def1105 = _t1939 + _t1940 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def1105)) + _t1938 = _t1940 else - if prediction1097 == 2 - _t1934 = parse_break(parser) - break1100 = _t1934 - _t1935 = Proto.Instruction(instr_type=OneOf(:var"#break", break1100)) - _t1933 = _t1935 + if prediction1101 == 2 + _t1942 = parse_break(parser) + break1104 = _t1942 + _t1943 = Proto.Instruction(instr_type=OneOf(:var"#break", break1104)) + _t1941 = _t1943 else - if prediction1097 == 1 - _t1937 = parse_upsert(parser) - upsert1099 = _t1937 - _t1938 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1099)) - _t1936 = _t1938 + if prediction1101 == 1 + _t1945 = parse_upsert(parser) + upsert1103 = _t1945 + _t1946 = Proto.Instruction(instr_type=OneOf(:upsert, upsert1103)) + _t1944 = _t1946 else - if prediction1097 == 0 - _t1940 = parse_assign(parser) - assign1098 = _t1940 - _t1941 = Proto.Instruction(instr_type=OneOf(:assign, assign1098)) - _t1939 = _t1941 + if prediction1101 == 0 + _t1948 = parse_assign(parser) + assign1102 = _t1948 + _t1949 = Proto.Instruction(instr_type=OneOf(:assign, assign1102)) + _t1947 = _t1949 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1936 = _t1939 + _t1944 = _t1947 end - _t1933 = _t1936 + _t1941 = _t1944 end - _t1930 = _t1933 + _t1938 = _t1941 end - _t1927 = _t1930 + _t1935 = _t1938 end - result1104 = _t1927 - record_span!(parser, span_start1103, "Instruction") - return result1104 + result1108 = _t1935 + record_span!(parser, span_start1107, "Instruction") + return result1108 end function parse_assign(parser::ParserState)::Proto.Assign - span_start1108 = span_start(parser) + span_start1112 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1942 = parse_relation_id(parser) - relation_id1105 = _t1942 - _t1943 = parse_abstraction(parser) - abstraction1106 = _t1943 + _t1950 = parse_relation_id(parser) + relation_id1109 = _t1950 + _t1951 = parse_abstraction(parser) + abstraction1110 = _t1951 if match_lookahead_literal(parser, "(", 0) - _t1945 = parse_attrs(parser) - _t1944 = _t1945 + _t1953 = parse_attrs(parser) + _t1952 = _t1953 else - _t1944 = nothing + _t1952 = nothing end - attrs1107 = _t1944 + attrs1111 = _t1952 consume_literal!(parser, ")") - _t1946 = Proto.Assign(name=relation_id1105, body=abstraction1106, attrs=(!isnothing(attrs1107) ? attrs1107 : Proto.Attribute[])) - result1109 = _t1946 - record_span!(parser, span_start1108, "Assign") - return result1109 + _t1954 = Proto.Assign(name=relation_id1109, body=abstraction1110, attrs=(!isnothing(attrs1111) ? attrs1111 : Proto.Attribute[])) + result1113 = _t1954 + record_span!(parser, span_start1112, "Assign") + return result1113 end function parse_upsert(parser::ParserState)::Proto.Upsert - span_start1113 = span_start(parser) + span_start1117 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "upsert") - _t1947 = parse_relation_id(parser) - relation_id1110 = _t1947 - _t1948 = parse_abstraction_with_arity(parser) - abstraction_with_arity1111 = _t1948 + _t1955 = parse_relation_id(parser) + relation_id1114 = _t1955 + _t1956 = parse_abstraction_with_arity(parser) + abstraction_with_arity1115 = _t1956 if match_lookahead_literal(parser, "(", 0) - _t1950 = parse_attrs(parser) - _t1949 = _t1950 + _t1958 = parse_attrs(parser) + _t1957 = _t1958 else - _t1949 = nothing + _t1957 = nothing end - attrs1112 = _t1949 + attrs1116 = _t1957 consume_literal!(parser, ")") - _t1951 = Proto.Upsert(name=relation_id1110, body=abstraction_with_arity1111[1], attrs=(!isnothing(attrs1112) ? attrs1112 : Proto.Attribute[]), value_arity=abstraction_with_arity1111[2]) - result1114 = _t1951 - record_span!(parser, span_start1113, "Upsert") - return result1114 + _t1959 = Proto.Upsert(name=relation_id1114, body=abstraction_with_arity1115[1], attrs=(!isnothing(attrs1116) ? attrs1116 : Proto.Attribute[]), value_arity=abstraction_with_arity1115[2]) + result1118 = _t1959 + record_span!(parser, span_start1117, "Upsert") + return result1118 end function parse_abstraction_with_arity(parser::ParserState)::Tuple{Proto.Abstraction, Int64} consume_literal!(parser, "(") - _t1952 = parse_bindings(parser) - bindings1115 = _t1952 - _t1953 = parse_formula(parser) - formula1116 = _t1953 + _t1960 = parse_bindings(parser) + bindings1119 = _t1960 + _t1961 = parse_formula(parser) + formula1120 = _t1961 consume_literal!(parser, ")") - _t1954 = Proto.Abstraction(vars=vcat(bindings1115[1], !isnothing(bindings1115[2]) ? bindings1115[2] : []), value=formula1116) - return (_t1954, length(bindings1115[2]),) + _t1962 = Proto.Abstraction(vars=vcat(bindings1119[1], !isnothing(bindings1119[2]) ? bindings1119[2] : []), value=formula1120) + return (_t1962, length(bindings1119[2]),) end function parse_break(parser::ParserState)::Proto.Break - span_start1120 = span_start(parser) + span_start1124 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1955 = parse_relation_id(parser) - relation_id1117 = _t1955 - _t1956 = parse_abstraction(parser) - abstraction1118 = _t1956 + _t1963 = parse_relation_id(parser) + relation_id1121 = _t1963 + _t1964 = parse_abstraction(parser) + abstraction1122 = _t1964 if match_lookahead_literal(parser, "(", 0) - _t1958 = parse_attrs(parser) - _t1957 = _t1958 + _t1966 = parse_attrs(parser) + _t1965 = _t1966 else - _t1957 = nothing + _t1965 = nothing end - attrs1119 = _t1957 + attrs1123 = _t1965 consume_literal!(parser, ")") - _t1959 = Proto.Break(name=relation_id1117, body=abstraction1118, attrs=(!isnothing(attrs1119) ? attrs1119 : Proto.Attribute[])) - result1121 = _t1959 - record_span!(parser, span_start1120, "Break") - return result1121 + _t1967 = Proto.Break(name=relation_id1121, body=abstraction1122, attrs=(!isnothing(attrs1123) ? attrs1123 : Proto.Attribute[])) + result1125 = _t1967 + record_span!(parser, span_start1124, "Break") + return result1125 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef - span_start1126 = span_start(parser) + span_start1130 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monoid") - _t1960 = parse_monoid(parser) - monoid1122 = _t1960 - _t1961 = parse_relation_id(parser) - relation_id1123 = _t1961 - _t1962 = parse_abstraction_with_arity(parser) - abstraction_with_arity1124 = _t1962 + _t1968 = parse_monoid(parser) + monoid1126 = _t1968 + _t1969 = parse_relation_id(parser) + relation_id1127 = _t1969 + _t1970 = parse_abstraction_with_arity(parser) + abstraction_with_arity1128 = _t1970 if match_lookahead_literal(parser, "(", 0) - _t1964 = parse_attrs(parser) - _t1963 = _t1964 + _t1972 = parse_attrs(parser) + _t1971 = _t1972 else - _t1963 = nothing + _t1971 = nothing end - attrs1125 = _t1963 + attrs1129 = _t1971 consume_literal!(parser, ")") - _t1965 = Proto.MonoidDef(monoid=monoid1122, name=relation_id1123, body=abstraction_with_arity1124[1], attrs=(!isnothing(attrs1125) ? attrs1125 : Proto.Attribute[]), value_arity=abstraction_with_arity1124[2]) - result1127 = _t1965 - record_span!(parser, span_start1126, "MonoidDef") - return result1127 + _t1973 = Proto.MonoidDef(monoid=monoid1126, name=relation_id1127, body=abstraction_with_arity1128[1], attrs=(!isnothing(attrs1129) ? attrs1129 : Proto.Attribute[]), value_arity=abstraction_with_arity1128[2]) + result1131 = _t1973 + record_span!(parser, span_start1130, "MonoidDef") + return result1131 end function parse_monoid(parser::ParserState)::Proto.Monoid - span_start1133 = span_start(parser) + span_start1137 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1967 = 3 + _t1975 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1968 = 0 + _t1976 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1969 = 1 + _t1977 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1970 = 2 + _t1978 = 2 else - _t1970 = -1 + _t1978 = -1 end - _t1969 = _t1970 + _t1977 = _t1978 end - _t1968 = _t1969 + _t1976 = _t1977 end - _t1967 = _t1968 + _t1975 = _t1976 end - _t1966 = _t1967 + _t1974 = _t1975 else - _t1966 = -1 - end - prediction1128 = _t1966 - if prediction1128 == 3 - _t1972 = parse_sum_monoid(parser) - sum_monoid1132 = _t1972 - _t1973 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1132)) - _t1971 = _t1973 + _t1974 = -1 + end + prediction1132 = _t1974 + if prediction1132 == 3 + _t1980 = parse_sum_monoid(parser) + sum_monoid1136 = _t1980 + _t1981 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1136)) + _t1979 = _t1981 else - if prediction1128 == 2 - _t1975 = parse_max_monoid(parser) - max_monoid1131 = _t1975 - _t1976 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1131)) - _t1974 = _t1976 + if prediction1132 == 2 + _t1983 = parse_max_monoid(parser) + max_monoid1135 = _t1983 + _t1984 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1135)) + _t1982 = _t1984 else - if prediction1128 == 1 - _t1978 = parse_min_monoid(parser) - min_monoid1130 = _t1978 - _t1979 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1130)) - _t1977 = _t1979 + if prediction1132 == 1 + _t1986 = parse_min_monoid(parser) + min_monoid1134 = _t1986 + _t1987 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1134)) + _t1985 = _t1987 else - if prediction1128 == 0 - _t1981 = parse_or_monoid(parser) - or_monoid1129 = _t1981 - _t1982 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1129)) - _t1980 = _t1982 + if prediction1132 == 0 + _t1989 = parse_or_monoid(parser) + or_monoid1133 = _t1989 + _t1990 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1133)) + _t1988 = _t1990 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1977 = _t1980 + _t1985 = _t1988 end - _t1974 = _t1977 + _t1982 = _t1985 end - _t1971 = _t1974 + _t1979 = _t1982 end - result1134 = _t1971 - record_span!(parser, span_start1133, "Monoid") - return result1134 + result1138 = _t1979 + record_span!(parser, span_start1137, "Monoid") + return result1138 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid - span_start1135 = span_start(parser) + span_start1139 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") consume_literal!(parser, ")") - _t1983 = Proto.OrMonoid() - result1136 = _t1983 - record_span!(parser, span_start1135, "OrMonoid") - return result1136 + _t1991 = Proto.OrMonoid() + result1140 = _t1991 + record_span!(parser, span_start1139, "OrMonoid") + return result1140 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid - span_start1138 = span_start(parser) + span_start1142 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1984 = parse_type(parser) - type1137 = _t1984 + _t1992 = parse_type(parser) + type1141 = _t1992 consume_literal!(parser, ")") - _t1985 = Proto.MinMonoid(var"#type"=type1137) - result1139 = _t1985 - record_span!(parser, span_start1138, "MinMonoid") - return result1139 + _t1993 = Proto.MinMonoid(var"#type"=type1141) + result1143 = _t1993 + record_span!(parser, span_start1142, "MinMonoid") + return result1143 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid - span_start1141 = span_start(parser) + span_start1145 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1986 = parse_type(parser) - type1140 = _t1986 + _t1994 = parse_type(parser) + type1144 = _t1994 consume_literal!(parser, ")") - _t1987 = Proto.MaxMonoid(var"#type"=type1140) - result1142 = _t1987 - record_span!(parser, span_start1141, "MaxMonoid") - return result1142 + _t1995 = Proto.MaxMonoid(var"#type"=type1144) + result1146 = _t1995 + record_span!(parser, span_start1145, "MaxMonoid") + return result1146 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid - span_start1144 = span_start(parser) + span_start1148 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1988 = parse_type(parser) - type1143 = _t1988 + _t1996 = parse_type(parser) + type1147 = _t1996 consume_literal!(parser, ")") - _t1989 = Proto.SumMonoid(var"#type"=type1143) - result1145 = _t1989 - record_span!(parser, span_start1144, "SumMonoid") - return result1145 + _t1997 = Proto.SumMonoid(var"#type"=type1147) + result1149 = _t1997 + record_span!(parser, span_start1148, "SumMonoid") + return result1149 end function parse_monus_def(parser::ParserState)::Proto.MonusDef - span_start1150 = span_start(parser) + span_start1154 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monus") - _t1990 = parse_monoid(parser) - monoid1146 = _t1990 - _t1991 = parse_relation_id(parser) - relation_id1147 = _t1991 - _t1992 = parse_abstraction_with_arity(parser) - abstraction_with_arity1148 = _t1992 + _t1998 = parse_monoid(parser) + monoid1150 = _t1998 + _t1999 = parse_relation_id(parser) + relation_id1151 = _t1999 + _t2000 = parse_abstraction_with_arity(parser) + abstraction_with_arity1152 = _t2000 if match_lookahead_literal(parser, "(", 0) - _t1994 = parse_attrs(parser) - _t1993 = _t1994 + _t2002 = parse_attrs(parser) + _t2001 = _t2002 else - _t1993 = nothing + _t2001 = nothing end - attrs1149 = _t1993 + attrs1153 = _t2001 consume_literal!(parser, ")") - _t1995 = Proto.MonusDef(monoid=monoid1146, name=relation_id1147, body=abstraction_with_arity1148[1], attrs=(!isnothing(attrs1149) ? attrs1149 : Proto.Attribute[]), value_arity=abstraction_with_arity1148[2]) - result1151 = _t1995 - record_span!(parser, span_start1150, "MonusDef") - return result1151 + _t2003 = Proto.MonusDef(monoid=monoid1150, name=relation_id1151, body=abstraction_with_arity1152[1], attrs=(!isnothing(attrs1153) ? attrs1153 : Proto.Attribute[]), value_arity=abstraction_with_arity1152[2]) + result1155 = _t2003 + record_span!(parser, span_start1154, "MonusDef") + return result1155 end function parse_constraint(parser::ParserState)::Proto.Constraint - span_start1156 = span_start(parser) + span_start1160 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "functional_dependency") - _t1996 = parse_relation_id(parser) - relation_id1152 = _t1996 - _t1997 = parse_abstraction(parser) - abstraction1153 = _t1997 - _t1998 = parse_functional_dependency_keys(parser) - functional_dependency_keys1154 = _t1998 - _t1999 = parse_functional_dependency_values(parser) - functional_dependency_values1155 = _t1999 + _t2004 = parse_relation_id(parser) + relation_id1156 = _t2004 + _t2005 = parse_abstraction(parser) + abstraction1157 = _t2005 + _t2006 = parse_functional_dependency_keys(parser) + functional_dependency_keys1158 = _t2006 + _t2007 = parse_functional_dependency_values(parser) + functional_dependency_values1159 = _t2007 consume_literal!(parser, ")") - _t2000 = Proto.FunctionalDependency(guard=abstraction1153, keys=functional_dependency_keys1154, values=functional_dependency_values1155) - _t2001 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t2000), name=relation_id1152) - result1157 = _t2001 - record_span!(parser, span_start1156, "Constraint") - return result1157 + _t2008 = Proto.FunctionalDependency(guard=abstraction1157, keys=functional_dependency_keys1158, values=functional_dependency_values1159) + _t2009 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t2008), name=relation_id1156) + result1161 = _t2009 + record_span!(parser, span_start1160, "Constraint") + return result1161 end function parse_functional_dependency_keys(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs1158 = Proto.Var[] - cond1159 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond1159 - _t2002 = parse_var(parser) - item1160 = _t2002 - push!(xs1158, item1160) - cond1159 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - vars1161 = xs1158 - consume_literal!(parser, ")") - return vars1161 -end - -function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} - consume_literal!(parser, "(") - consume_literal!(parser, "values") xs1162 = Proto.Var[] cond1163 = match_lookahead_terminal(parser, "SYMBOL", 0) while cond1163 - _t2003 = parse_var(parser) - item1164 = _t2003 + _t2010 = parse_var(parser) + item1164 = _t2010 push!(xs1162, item1164) cond1163 = match_lookahead_terminal(parser, "SYMBOL", 0) end @@ -3420,173 +3404,173 @@ function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.V return vars1165 end +function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} + consume_literal!(parser, "(") + consume_literal!(parser, "values") + xs1166 = Proto.Var[] + cond1167 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1167 + _t2011 = parse_var(parser) + item1168 = _t2011 + push!(xs1166, item1168) + cond1167 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + vars1169 = xs1166 + consume_literal!(parser, ")") + return vars1169 +end + function parse_data(parser::ParserState)::Proto.Data - span_start1171 = span_start(parser) + span_start1175 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "iceberg_data", 1) - _t2005 = 3 + _t2013 = 3 else if match_lookahead_literal(parser, "edb", 1) - _t2006 = 0 + _t2014 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t2007 = 2 + _t2015 = 2 else if match_lookahead_literal(parser, "betree_relation", 1) - _t2008 = 1 + _t2016 = 1 else - _t2008 = -1 + _t2016 = -1 end - _t2007 = _t2008 + _t2015 = _t2016 end - _t2006 = _t2007 + _t2014 = _t2015 end - _t2005 = _t2006 + _t2013 = _t2014 end - _t2004 = _t2005 + _t2012 = _t2013 else - _t2004 = -1 - end - prediction1166 = _t2004 - if prediction1166 == 3 - _t2010 = parse_iceberg_data(parser) - iceberg_data1170 = _t2010 - _t2011 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1170)) - _t2009 = _t2011 + _t2012 = -1 + end + prediction1170 = _t2012 + if prediction1170 == 3 + _t2018 = parse_iceberg_data(parser) + iceberg_data1174 = _t2018 + _t2019 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1174)) + _t2017 = _t2019 else - if prediction1166 == 2 - _t2013 = parse_csv_data(parser) - csv_data1169 = _t2013 - _t2014 = Proto.Data(data_type=OneOf(:csv_data, csv_data1169)) - _t2012 = _t2014 + if prediction1170 == 2 + _t2021 = parse_csv_data(parser) + csv_data1173 = _t2021 + _t2022 = Proto.Data(data_type=OneOf(:csv_data, csv_data1173)) + _t2020 = _t2022 else - if prediction1166 == 1 - _t2016 = parse_betree_relation(parser) - betree_relation1168 = _t2016 - _t2017 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1168)) - _t2015 = _t2017 + if prediction1170 == 1 + _t2024 = parse_betree_relation(parser) + betree_relation1172 = _t2024 + _t2025 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1172)) + _t2023 = _t2025 else - if prediction1166 == 0 - _t2019 = parse_edb(parser) - edb1167 = _t2019 - _t2020 = Proto.Data(data_type=OneOf(:edb, edb1167)) - _t2018 = _t2020 + if prediction1170 == 0 + _t2027 = parse_edb(parser) + edb1171 = _t2027 + _t2028 = Proto.Data(data_type=OneOf(:edb, edb1171)) + _t2026 = _t2028 else throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) end - _t2015 = _t2018 + _t2023 = _t2026 end - _t2012 = _t2015 + _t2020 = _t2023 end - _t2009 = _t2012 + _t2017 = _t2020 end - result1172 = _t2009 - record_span!(parser, span_start1171, "Data") - return result1172 + result1176 = _t2017 + record_span!(parser, span_start1175, "Data") + return result1176 end function parse_edb(parser::ParserState)::Proto.EDB - span_start1176 = span_start(parser) + span_start1180 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "edb") - _t2021 = parse_relation_id(parser) - relation_id1173 = _t2021 - _t2022 = parse_edb_path(parser) - edb_path1174 = _t2022 - _t2023 = parse_edb_types(parser) - edb_types1175 = _t2023 + _t2029 = parse_relation_id(parser) + relation_id1177 = _t2029 + _t2030 = parse_edb_path(parser) + edb_path1178 = _t2030 + _t2031 = parse_edb_types(parser) + edb_types1179 = _t2031 consume_literal!(parser, ")") - _t2024 = Proto.EDB(target_id=relation_id1173, path=edb_path1174, types=edb_types1175) - result1177 = _t2024 - record_span!(parser, span_start1176, "EDB") - return result1177 + _t2032 = Proto.EDB(target_id=relation_id1177, path=edb_path1178, types=edb_types1179) + result1181 = _t2032 + record_span!(parser, span_start1180, "EDB") + return result1181 end function parse_edb_path(parser::ParserState)::Vector{String} consume_literal!(parser, "[") - xs1178 = String[] - cond1179 = match_lookahead_terminal(parser, "STRING", 0) - while cond1179 - item1180 = consume_terminal!(parser, "STRING") - push!(xs1178, item1180) - cond1179 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1181 = xs1178 + xs1182 = String[] + cond1183 = match_lookahead_terminal(parser, "STRING", 0) + while cond1183 + item1184 = consume_terminal!(parser, "STRING") + push!(xs1182, item1184) + cond1183 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1185 = xs1182 consume_literal!(parser, "]") - return strings1181 + return strings1185 end function parse_edb_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "[") - xs1182 = Proto.var"#Type"[] - cond1183 = (((((((((((((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 cond1183 - _t2025 = parse_type(parser) - item1184 = _t2025 - push!(xs1182, item1184) - cond1183 = (((((((((((((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)) + xs1186 = Proto.var"#Type"[] + cond1187 = (((((((((((((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 cond1187 + _t2033 = parse_type(parser) + item1188 = _t2033 + push!(xs1186, item1188) + cond1187 = (((((((((((((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 - types1185 = xs1182 + types1189 = xs1186 consume_literal!(parser, "]") - return types1185 + return types1189 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation - span_start1188 = span_start(parser) + span_start1192 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_relation") - _t2026 = parse_relation_id(parser) - relation_id1186 = _t2026 - _t2027 = parse_betree_info(parser) - betree_info1187 = _t2027 + _t2034 = parse_relation_id(parser) + relation_id1190 = _t2034 + _t2035 = parse_betree_info(parser) + betree_info1191 = _t2035 consume_literal!(parser, ")") - _t2028 = Proto.BeTreeRelation(name=relation_id1186, relation_info=betree_info1187) - result1189 = _t2028 - record_span!(parser, span_start1188, "BeTreeRelation") - return result1189 + _t2036 = Proto.BeTreeRelation(name=relation_id1190, relation_info=betree_info1191) + result1193 = _t2036 + record_span!(parser, span_start1192, "BeTreeRelation") + return result1193 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo - span_start1193 = span_start(parser) + span_start1197 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_info") - _t2029 = parse_betree_info_key_types(parser) - betree_info_key_types1190 = _t2029 - _t2030 = parse_betree_info_value_types(parser) - betree_info_value_types1191 = _t2030 - _t2031 = parse_config_dict(parser) - config_dict1192 = _t2031 + _t2037 = parse_betree_info_key_types(parser) + betree_info_key_types1194 = _t2037 + _t2038 = parse_betree_info_value_types(parser) + betree_info_value_types1195 = _t2038 + _t2039 = parse_config_dict(parser) + config_dict1196 = _t2039 consume_literal!(parser, ")") - _t2032 = construct_betree_info(parser, betree_info_key_types1190, betree_info_value_types1191, config_dict1192) - result1194 = _t2032 - record_span!(parser, span_start1193, "BeTreeInfo") - return result1194 + _t2040 = construct_betree_info(parser, betree_info_key_types1194, betree_info_value_types1195, config_dict1196) + result1198 = _t2040 + record_span!(parser, span_start1197, "BeTreeInfo") + return result1198 end function parse_betree_info_key_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "key_types") - xs1195 = Proto.var"#Type"[] - cond1196 = (((((((((((((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 cond1196 - _t2033 = parse_type(parser) - item1197 = _t2033 - push!(xs1195, item1197) - cond1196 = (((((((((((((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 - types1198 = xs1195 - consume_literal!(parser, ")") - return types1198 -end - -function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} - consume_literal!(parser, "(") - consume_literal!(parser, "value_types") xs1199 = Proto.var"#Type"[] cond1200 = (((((((((((((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 cond1200 - _t2034 = parse_type(parser) - item1201 = _t2034 + _t2041 = parse_type(parser) + item1201 = _t2041 push!(xs1199, item1201) cond1200 = (((((((((((((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 @@ -3595,1093 +3579,1128 @@ function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#T return types1202 end +function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} + consume_literal!(parser, "(") + consume_literal!(parser, "value_types") + xs1203 = Proto.var"#Type"[] + cond1204 = (((((((((((((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 cond1204 + _t2042 = parse_type(parser) + item1205 = _t2042 + push!(xs1203, item1205) + cond1204 = (((((((((((((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 + types1206 = xs1203 + consume_literal!(parser, ")") + return types1206 +end + function parse_csv_data(parser::ParserState)::Proto.CSVData - span_start1208 = span_start(parser) + span_start1212 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_data") - _t2035 = parse_csvlocator(parser) - csvlocator1203 = _t2035 - _t2036 = parse_csv_config(parser) - csv_config1204 = _t2036 + _t2043 = parse_csvlocator(parser) + csvlocator1207 = _t2043 + _t2044 = parse_csv_config(parser) + csv_config1208 = _t2044 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "columns", 1)) - _t2038 = parse_gnf_columns(parser) - _t2037 = _t2038 + _t2046 = parse_gnf_columns(parser) + _t2045 = _t2046 else - _t2037 = nothing + _t2045 = nothing end - gnf_columns1205 = _t2037 + gnf_columns1209 = _t2045 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "relations", 1)) - _t2040 = parse_target_relations(parser) - _t2039 = _t2040 + _t2048 = parse_target_relations(parser) + _t2047 = _t2048 else - _t2039 = nothing + _t2047 = nothing end - target_relations1206 = _t2039 - _t2041 = parse_csv_asof(parser) - csv_asof1207 = _t2041 + target_relations1210 = _t2047 + _t2049 = parse_csv_asof(parser) + csv_asof1211 = _t2049 consume_literal!(parser, ")") - _t2042 = construct_csv_data(parser, csvlocator1203, csv_config1204, gnf_columns1205, target_relations1206, csv_asof1207) - result1209 = _t2042 - record_span!(parser, span_start1208, "CSVData") - return result1209 + _t2050 = construct_csv_data(parser, csvlocator1207, csv_config1208, gnf_columns1209, target_relations1210, csv_asof1211) + result1213 = _t2050 + record_span!(parser, span_start1212, "CSVData") + return result1213 end function parse_csvlocator(parser::ParserState)::Proto.CSVLocator - span_start1212 = span_start(parser) + span_start1216 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_locator") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "paths", 1)) - _t2044 = parse_csv_locator_paths(parser) - _t2043 = _t2044 + _t2052 = parse_csv_locator_paths(parser) + _t2051 = _t2052 else - _t2043 = nothing + _t2051 = nothing end - csv_locator_paths1210 = _t2043 + csv_locator_paths1214 = _t2051 if match_lookahead_literal(parser, "(", 0) - _t2046 = parse_csv_locator_inline_data(parser) - _t2045 = _t2046 + _t2054 = parse_csv_locator_inline_data(parser) + _t2053 = _t2054 else - _t2045 = nothing + _t2053 = nothing end - csv_locator_inline_data1211 = _t2045 + csv_locator_inline_data1215 = _t2053 consume_literal!(parser, ")") - _t2047 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1210) ? csv_locator_paths1210 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1211) ? csv_locator_inline_data1211 : ""))) - result1213 = _t2047 - record_span!(parser, span_start1212, "CSVLocator") - return result1213 + _t2055 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1214) ? csv_locator_paths1214 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1215) ? csv_locator_inline_data1215 : ""))) + result1217 = _t2055 + record_span!(parser, span_start1216, "CSVLocator") + return result1217 end function parse_csv_locator_paths(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "paths") - xs1214 = String[] - cond1215 = match_lookahead_terminal(parser, "STRING", 0) - while cond1215 - item1216 = consume_terminal!(parser, "STRING") - push!(xs1214, item1216) - cond1215 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1217 = xs1214 + xs1218 = String[] + cond1219 = match_lookahead_terminal(parser, "STRING", 0) + while cond1219 + item1220 = consume_terminal!(parser, "STRING") + push!(xs1218, item1220) + cond1219 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1221 = xs1218 consume_literal!(parser, ")") - return strings1217 + return strings1221 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - formatted_string1218 = consume_terminal!(parser, "STRING") + formatted_string1222 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return formatted_string1218 + return formatted_string1222 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig - span_start1221 = span_start(parser) + span_start1225 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t2048 = parse_config_dict(parser) - config_dict1219 = _t2048 + _t2056 = parse_config_dict(parser) + config_dict1223 = _t2056 if match_lookahead_literal(parser, "(", 0) - _t2050 = parse__storage_integration(parser) - _t2049 = _t2050 + _t2058 = parse__storage_integration(parser) + _t2057 = _t2058 else - _t2049 = nothing + _t2057 = nothing end - _storage_integration1220 = _t2049 + _storage_integration1224 = _t2057 consume_literal!(parser, ")") - _t2051 = construct_csv_config(parser, config_dict1219, _storage_integration1220) - result1222 = _t2051 - record_span!(parser, span_start1221, "CSVConfig") - return result1222 + _t2059 = construct_csv_config(parser, config_dict1223, _storage_integration1224) + result1226 = _t2059 + record_span!(parser, span_start1225, "CSVConfig") + return result1226 end function parse__storage_integration(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "(") consume_literal!(parser, "storage_integration") - _t2052 = parse_config_dict(parser) - config_dict1223 = _t2052 + _t2060 = parse_config_dict(parser) + config_dict1227 = _t2060 consume_literal!(parser, ")") - return config_dict1223 + return config_dict1227 end function parse_gnf_columns(parser::ParserState)::Vector{Proto.GNFColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1224 = Proto.GNFColumn[] - cond1225 = match_lookahead_literal(parser, "(", 0) - while cond1225 - _t2053 = parse_gnf_column(parser) - item1226 = _t2053 - push!(xs1224, item1226) - cond1225 = match_lookahead_literal(parser, "(", 0) - end - gnf_columns1227 = xs1224 + xs1228 = Proto.GNFColumn[] + cond1229 = match_lookahead_literal(parser, "(", 0) + while cond1229 + _t2061 = parse_gnf_column(parser) + item1230 = _t2061 + push!(xs1228, item1230) + cond1229 = match_lookahead_literal(parser, "(", 0) + end + gnf_columns1231 = xs1228 consume_literal!(parser, ")") - return gnf_columns1227 + return gnf_columns1231 end function parse_gnf_column(parser::ParserState)::Proto.GNFColumn - span_start1234 = span_start(parser) + span_start1238 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - _t2054 = parse_gnf_column_path(parser) - gnf_column_path1228 = _t2054 + _t2062 = parse_gnf_column_path(parser) + gnf_column_path1232 = _t2062 if (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - _t2056 = parse_relation_id(parser) - _t2055 = _t2056 + _t2064 = parse_relation_id(parser) + _t2063 = _t2064 else - _t2055 = nothing + _t2063 = nothing end - relation_id1229 = _t2055 + relation_id1233 = _t2063 consume_literal!(parser, "[") - xs1230 = Proto.var"#Type"[] - cond1231 = (((((((((((((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 cond1231 - _t2057 = parse_type(parser) - item1232 = _t2057 - push!(xs1230, item1232) - cond1231 = (((((((((((((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 - types1233 = xs1230 + xs1234 = Proto.var"#Type"[] + cond1235 = (((((((((((((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 cond1235 + _t2065 = parse_type(parser) + item1236 = _t2065 + push!(xs1234, item1236) + cond1235 = (((((((((((((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 + types1237 = xs1234 consume_literal!(parser, "]") consume_literal!(parser, ")") - _t2058 = Proto.GNFColumn(column_path=gnf_column_path1228, target_id=relation_id1229, types=types1233) - result1235 = _t2058 - record_span!(parser, span_start1234, "GNFColumn") - return result1235 + _t2066 = Proto.GNFColumn(column_path=gnf_column_path1232, target_id=relation_id1233, types=types1237) + result1239 = _t2066 + record_span!(parser, span_start1238, "GNFColumn") + return result1239 end function parse_gnf_column_path(parser::ParserState)::Vector{String} if match_lookahead_literal(parser, "[", 0) - _t2059 = 1 + _t2067 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t2060 = 0 + _t2068 = 0 else - _t2060 = -1 + _t2068 = -1 end - _t2059 = _t2060 + _t2067 = _t2068 end - prediction1236 = _t2059 - if prediction1236 == 1 + prediction1240 = _t2067 + if prediction1240 == 1 consume_literal!(parser, "[") - xs1238 = String[] - cond1239 = match_lookahead_terminal(parser, "STRING", 0) - while cond1239 - item1240 = consume_terminal!(parser, "STRING") - push!(xs1238, item1240) - cond1239 = match_lookahead_terminal(parser, "STRING", 0) + xs1242 = String[] + cond1243 = match_lookahead_terminal(parser, "STRING", 0) + while cond1243 + item1244 = consume_terminal!(parser, "STRING") + push!(xs1242, item1244) + cond1243 = match_lookahead_terminal(parser, "STRING", 0) end - strings1241 = xs1238 + strings1245 = xs1242 consume_literal!(parser, "]") - _t2061 = strings1241 + _t2069 = strings1245 else - if prediction1236 == 0 - string1237 = consume_terminal!(parser, "STRING") - _t2062 = String[string1237] + if prediction1240 == 0 + string1241 = consume_terminal!(parser, "STRING") + _t2070 = String[string1241] else throw(ParseError("Unexpected token in gnf_column_path" * ": " * string(lookahead(parser, 0)))) end - _t2061 = _t2062 + _t2069 = _t2070 end - return _t2061 + return _t2069 end function parse_target_relations(parser::ParserState)::Proto.TargetRelations - span_start1244 = span_start(parser) + span_start1249 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "relations") - _t2063 = parse_relation_keys(parser) - relation_keys1242 = _t2063 - _t2064 = parse_relation_body(parser) - relation_body1243 = _t2064 + _t2071 = parse_relation_keys(parser) + relation_keys1246 = _t2071 + _t2072 = parse_relation_body(parser) + relation_body1247 = _t2072 + if match_lookahead_literal(parser, "(", 0) + _t2074 = parse_load_errors(parser) + _t2073 = _t2074 + else + _t2073 = nothing + end + load_errors1248 = _t2073 consume_literal!(parser, ")") - _t2065 = construct_relations(parser, relation_keys1242, relation_body1243) - result1245 = _t2065 - record_span!(parser, span_start1244, "TargetRelations") - return result1245 + _t2075 = construct_relations(parser, relation_keys1246, relation_body1247, load_errors1248) + result1250 = _t2075 + record_span!(parser, span_start1249, "TargetRelations") + return result1250 end function parse_relation_keys(parser::ParserState)::Tuple{Vector{Proto.NamedColumn}, Bool} if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "keys", 1) if match_lookahead_literal(parser, "synthetic", 2) - _t2068 = 1 + _t2078 = 1 else if match_lookahead_literal(parser, ")", 2) - _t2069 = 0 + _t2079 = 0 else if match_lookahead_literal(parser, "(", 2) - _t2070 = 0 + _t2080 = 0 else - _t2070 = -1 + _t2080 = -1 end - _t2069 = _t2070 + _t2079 = _t2080 end - _t2068 = _t2069 + _t2078 = _t2079 end - _t2067 = _t2068 + _t2077 = _t2078 else - _t2067 = -1 + _t2077 = -1 end - _t2066 = _t2067 + _t2076 = _t2077 else - _t2066 = -1 + _t2076 = -1 end - prediction1246 = _t2066 - if prediction1246 == 1 + prediction1251 = _t2076 + if prediction1251 == 1 consume_literal!(parser, "(") consume_literal!(parser, "keys") consume_literal!(parser, "synthetic") consume_literal!(parser, ")") - _t2071 = (Proto.NamedColumn[], true,) + _t2081 = (Proto.NamedColumn[], true,) else - if prediction1246 == 0 + if prediction1251 == 0 consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs1247 = Proto.NamedColumn[] - cond1248 = match_lookahead_literal(parser, "(", 0) - while cond1248 - _t2073 = parse_named_column(parser) - item1249 = _t2073 - push!(xs1247, item1249) - cond1248 = match_lookahead_literal(parser, "(", 0) + xs1252 = Proto.NamedColumn[] + cond1253 = match_lookahead_literal(parser, "(", 0) + while cond1253 + _t2083 = parse_named_column(parser) + item1254 = _t2083 + push!(xs1252, item1254) + cond1253 = match_lookahead_literal(parser, "(", 0) end - named_columns1250 = xs1247 + named_columns1255 = xs1252 consume_literal!(parser, ")") - _t2072 = (named_columns1250, false,) + _t2082 = (named_columns1255, false,) else throw(ParseError("Unexpected token in relation_keys" * ": " * string(lookahead(parser, 0)))) end - _t2071 = _t2072 + _t2081 = _t2082 end - return _t2071 + return _t2081 end function parse_named_column(parser::ParserState)::Proto.NamedColumn - span_start1253 = span_start(parser) + span_start1258 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - string1251 = consume_terminal!(parser, "STRING") - _t2074 = parse_type(parser) - type1252 = _t2074 + string1256 = consume_terminal!(parser, "STRING") + _t2084 = parse_type(parser) + type1257 = _t2084 consume_literal!(parser, ")") - _t2075 = Proto.NamedColumn(name=string1251, var"#type"=type1252) - result1254 = _t2075 - record_span!(parser, span_start1253, "NamedColumn") - return result1254 + _t2085 = Proto.NamedColumn(name=string1256, var"#type"=type1257) + result1259 = _t2085 + record_span!(parser, span_start1258, "NamedColumn") + return result1259 end function parse_relation_body(parser::ParserState)::Proto.TargetRelations - span_start1259 = span_start(parser) + span_start1264 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "relation", 1) - _t2077 = 0 + _t2087 = 0 else if match_lookahead_literal(parser, "inserts", 1) - _t2078 = 1 + _t2088 = 1 else - _t2078 = 0 + _t2088 = 0 end - _t2077 = _t2078 + _t2087 = _t2088 end - _t2076 = _t2077 + _t2086 = _t2087 else - _t2076 = 0 - end - prediction1255 = _t2076 - if prediction1255 == 1 - _t2080 = parse_cdc_inserts(parser) - cdc_inserts1257 = _t2080 - _t2081 = parse_cdc_deletes(parser) - cdc_deletes1258 = _t2081 - _t2082 = construct_cdc_relations(parser, cdc_inserts1257, cdc_deletes1258) - _t2079 = _t2082 + _t2086 = 0 + end + prediction1260 = _t2086 + if prediction1260 == 1 + _t2090 = parse_cdc_inserts(parser) + cdc_inserts1262 = _t2090 + _t2091 = parse_cdc_deletes(parser) + cdc_deletes1263 = _t2091 + _t2092 = construct_cdc_relations(parser, cdc_inserts1262, cdc_deletes1263) + _t2089 = _t2092 else - if prediction1255 == 0 - _t2084 = parse_non_cdc_relations(parser) - non_cdc_relations1256 = _t2084 - _t2085 = construct_non_cdc_relations(parser, non_cdc_relations1256) - _t2083 = _t2085 + if prediction1260 == 0 + _t2094 = parse_non_cdc_relations(parser) + non_cdc_relations1261 = _t2094 + _t2095 = construct_non_cdc_relations(parser, non_cdc_relations1261) + _t2093 = _t2095 else throw(ParseError("Unexpected token in relation_body" * ": " * string(lookahead(parser, 0)))) end - _t2079 = _t2083 + _t2089 = _t2093 end - result1260 = _t2079 - record_span!(parser, span_start1259, "TargetRelations") - return result1260 + result1265 = _t2089 + record_span!(parser, span_start1264, "TargetRelations") + return result1265 end function parse_non_cdc_relations(parser::ParserState)::Vector{Proto.TargetRelation} - xs1261 = Proto.TargetRelation[] - cond1262 = match_lookahead_literal(parser, "(", 0) - while cond1262 - _t2086 = parse_target_relation(parser) - item1263 = _t2086 - push!(xs1261, item1263) - cond1262 = match_lookahead_literal(parser, "(", 0) + xs1266 = Proto.TargetRelation[] + cond1267 = (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "relation", 1)) + while cond1267 + _t2096 = parse_target_relation(parser) + item1268 = _t2096 + push!(xs1266, item1268) + cond1267 = (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "relation", 1)) end - return xs1261 + return xs1266 end function parse_target_relation(parser::ParserState)::Proto.TargetRelation - span_start1269 = span_start(parser) + span_start1274 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "relation") - _t2087 = parse_relation_id(parser) - relation_id1264 = _t2087 - xs1265 = Proto.NamedColumn[] - cond1266 = match_lookahead_literal(parser, "(", 0) - while cond1266 - _t2088 = parse_named_column(parser) - item1267 = _t2088 - push!(xs1265, item1267) - cond1266 = match_lookahead_literal(parser, "(", 0) - end - named_columns1268 = xs1265 + _t2097 = parse_relation_id(parser) + relation_id1269 = _t2097 + xs1270 = Proto.NamedColumn[] + cond1271 = match_lookahead_literal(parser, "(", 0) + while cond1271 + _t2098 = parse_named_column(parser) + item1272 = _t2098 + push!(xs1270, item1272) + cond1271 = match_lookahead_literal(parser, "(", 0) + end + named_columns1273 = xs1270 consume_literal!(parser, ")") - _t2089 = Proto.TargetRelation(target_id=relation_id1264, values=named_columns1268) - result1270 = _t2089 - record_span!(parser, span_start1269, "TargetRelation") - return result1270 + _t2099 = Proto.TargetRelation(target_id=relation_id1269, values=named_columns1273) + result1275 = _t2099 + record_span!(parser, span_start1274, "TargetRelation") + return result1275 end function parse_cdc_inserts(parser::ParserState)::Vector{Proto.TargetRelation} consume_literal!(parser, "(") consume_literal!(parser, "inserts") - xs1271 = Proto.TargetRelation[] - cond1272 = match_lookahead_literal(parser, "(", 0) - while cond1272 - _t2090 = parse_target_relation(parser) - item1273 = _t2090 - push!(xs1271, item1273) - cond1272 = match_lookahead_literal(parser, "(", 0) - end - target_relations1274 = xs1271 + xs1276 = Proto.TargetRelation[] + cond1277 = match_lookahead_literal(parser, "(", 0) + while cond1277 + _t2100 = parse_target_relation(parser) + item1278 = _t2100 + push!(xs1276, item1278) + cond1277 = match_lookahead_literal(parser, "(", 0) + end + target_relations1279 = xs1276 consume_literal!(parser, ")") - return target_relations1274 + return target_relations1279 end function parse_cdc_deletes(parser::ParserState)::Vector{Proto.TargetRelation} consume_literal!(parser, "(") consume_literal!(parser, "deletes") - xs1275 = Proto.TargetRelation[] - cond1276 = match_lookahead_literal(parser, "(", 0) - while cond1276 - _t2091 = parse_target_relation(parser) - item1277 = _t2091 - push!(xs1275, item1277) - cond1276 = match_lookahead_literal(parser, "(", 0) - end - target_relations1278 = xs1275 + xs1280 = Proto.TargetRelation[] + cond1281 = match_lookahead_literal(parser, "(", 0) + while cond1281 + _t2101 = parse_target_relation(parser) + item1282 = _t2101 + push!(xs1280, item1282) + cond1281 = match_lookahead_literal(parser, "(", 0) + end + target_relations1283 = xs1280 consume_literal!(parser, ")") - return target_relations1278 + return target_relations1283 +end + +function parse_load_errors(parser::ParserState)::Proto.RelationId + span_start1285 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "load_errors") + _t2102 = parse_relation_id(parser) + relation_id1284 = _t2102 + consume_literal!(parser, ")") + result1286 = relation_id1284 + record_span!(parser, span_start1285, "RelationId") + return result1286 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string1279 = consume_terminal!(parser, "STRING") + string1287 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1279 + return string1287 end function parse_iceberg_data(parser::ParserState)::Proto.IcebergData - span_start1286 = span_start(parser) + span_start1294 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_data") - _t2092 = parse_iceberg_locator(parser) - iceberg_locator1280 = _t2092 - _t2093 = parse_iceberg_catalog_config(parser) - iceberg_catalog_config1281 = _t2093 - _t2094 = parse_gnf_columns(parser) - gnf_columns1282 = _t2094 + _t2103 = parse_iceberg_locator(parser) + iceberg_locator1288 = _t2103 + _t2104 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1289 = _t2104 + _t2105 = parse_gnf_columns(parser) + gnf_columns1290 = _t2105 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "from_snapshot", 1)) - _t2096 = parse_iceberg_from_snapshot(parser) - _t2095 = _t2096 + _t2107 = parse_iceberg_from_snapshot(parser) + _t2106 = _t2107 else - _t2095 = nothing + _t2106 = nothing end - iceberg_from_snapshot1283 = _t2095 + iceberg_from_snapshot1291 = _t2106 if match_lookahead_literal(parser, "(", 0) - _t2098 = parse_iceberg_to_snapshot(parser) - _t2097 = _t2098 + _t2109 = parse_iceberg_to_snapshot(parser) + _t2108 = _t2109 else - _t2097 = nothing + _t2108 = nothing end - iceberg_to_snapshot1284 = _t2097 - _t2099 = parse_boolean_value(parser) - boolean_value1285 = _t2099 + iceberg_to_snapshot1292 = _t2108 + _t2110 = parse_boolean_value(parser) + boolean_value1293 = _t2110 consume_literal!(parser, ")") - _t2100 = construct_iceberg_data(parser, iceberg_locator1280, iceberg_catalog_config1281, gnf_columns1282, iceberg_from_snapshot1283, iceberg_to_snapshot1284, boolean_value1285) - result1287 = _t2100 - record_span!(parser, span_start1286, "IcebergData") - return result1287 + _t2111 = construct_iceberg_data(parser, iceberg_locator1288, iceberg_catalog_config1289, gnf_columns1290, iceberg_from_snapshot1291, iceberg_to_snapshot1292, boolean_value1293) + result1295 = _t2111 + record_span!(parser, span_start1294, "IcebergData") + return result1295 end function parse_iceberg_locator(parser::ParserState)::Proto.IcebergLocator - span_start1291 = span_start(parser) + span_start1299 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_locator") - _t2101 = parse_iceberg_locator_table_name(parser) - iceberg_locator_table_name1288 = _t2101 - _t2102 = parse_iceberg_locator_namespace(parser) - iceberg_locator_namespace1289 = _t2102 - _t2103 = parse_iceberg_locator_warehouse(parser) - iceberg_locator_warehouse1290 = _t2103 + _t2112 = parse_iceberg_locator_table_name(parser) + iceberg_locator_table_name1296 = _t2112 + _t2113 = parse_iceberg_locator_namespace(parser) + iceberg_locator_namespace1297 = _t2113 + _t2114 = parse_iceberg_locator_warehouse(parser) + iceberg_locator_warehouse1298 = _t2114 consume_literal!(parser, ")") - _t2104 = Proto.IcebergLocator(table_name=iceberg_locator_table_name1288, namespace=iceberg_locator_namespace1289, warehouse=iceberg_locator_warehouse1290) - result1292 = _t2104 - record_span!(parser, span_start1291, "IcebergLocator") - return result1292 + _t2115 = Proto.IcebergLocator(table_name=iceberg_locator_table_name1296, namespace=iceberg_locator_namespace1297, warehouse=iceberg_locator_warehouse1298) + result1300 = _t2115 + record_span!(parser, span_start1299, "IcebergLocator") + return result1300 end function parse_iceberg_locator_table_name(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "table_name") - string1293 = consume_terminal!(parser, "STRING") + string1301 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1293 + return string1301 end function parse_iceberg_locator_namespace(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "namespace") - xs1294 = String[] - cond1295 = match_lookahead_terminal(parser, "STRING", 0) - while cond1295 - item1296 = consume_terminal!(parser, "STRING") - push!(xs1294, item1296) - cond1295 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1297 = xs1294 + xs1302 = String[] + cond1303 = match_lookahead_terminal(parser, "STRING", 0) + while cond1303 + item1304 = consume_terminal!(parser, "STRING") + push!(xs1302, item1304) + cond1303 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1305 = xs1302 consume_literal!(parser, ")") - return strings1297 + return strings1305 end function parse_iceberg_locator_warehouse(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "warehouse") - string1298 = consume_terminal!(parser, "STRING") + string1306 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1298 + return string1306 end function parse_iceberg_catalog_config(parser::ParserState)::Proto.IcebergCatalogConfig - span_start1303 = span_start(parser) + span_start1311 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "iceberg_catalog_config") - _t2105 = parse_iceberg_catalog_uri(parser) - iceberg_catalog_uri1299 = _t2105 + _t2116 = parse_iceberg_catalog_uri(parser) + iceberg_catalog_uri1307 = _t2116 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "scope", 1)) - _t2107 = parse_iceberg_catalog_config_scope(parser) - _t2106 = _t2107 + _t2118 = parse_iceberg_catalog_config_scope(parser) + _t2117 = _t2118 else - _t2106 = nothing + _t2117 = nothing end - iceberg_catalog_config_scope1300 = _t2106 - _t2108 = parse_iceberg_properties(parser) - iceberg_properties1301 = _t2108 - _t2109 = parse_iceberg_auth_properties(parser) - iceberg_auth_properties1302 = _t2109 + iceberg_catalog_config_scope1308 = _t2117 + _t2119 = parse_iceberg_properties(parser) + iceberg_properties1309 = _t2119 + _t2120 = parse_iceberg_auth_properties(parser) + iceberg_auth_properties1310 = _t2120 consume_literal!(parser, ")") - _t2110 = construct_iceberg_catalog_config(parser, iceberg_catalog_uri1299, iceberg_catalog_config_scope1300, iceberg_properties1301, iceberg_auth_properties1302) - result1304 = _t2110 - record_span!(parser, span_start1303, "IcebergCatalogConfig") - return result1304 + _t2121 = construct_iceberg_catalog_config(parser, iceberg_catalog_uri1307, iceberg_catalog_config_scope1308, iceberg_properties1309, iceberg_auth_properties1310) + result1312 = _t2121 + record_span!(parser, span_start1311, "IcebergCatalogConfig") + return result1312 end function parse_iceberg_catalog_uri(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "catalog_uri") - string1305 = consume_terminal!(parser, "STRING") + string1313 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1305 + return string1313 end function parse_iceberg_catalog_config_scope(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "scope") - string1306 = consume_terminal!(parser, "STRING") + string1314 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1306 + return string1314 end function parse_iceberg_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "properties") - xs1307 = Tuple{String, String}[] - cond1308 = match_lookahead_literal(parser, "(", 0) - while cond1308 - _t2111 = parse_iceberg_property_entry(parser) - item1309 = _t2111 - push!(xs1307, item1309) - cond1308 = match_lookahead_literal(parser, "(", 0) - end - iceberg_property_entrys1310 = xs1307 + xs1315 = Tuple{String, String}[] + cond1316 = match_lookahead_literal(parser, "(", 0) + while cond1316 + _t2122 = parse_iceberg_property_entry(parser) + item1317 = _t2122 + push!(xs1315, item1317) + cond1316 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1318 = xs1315 consume_literal!(parser, ")") - return iceberg_property_entrys1310 + return iceberg_property_entrys1318 end function parse_iceberg_property_entry(parser::ParserState)::Tuple{String, String} consume_literal!(parser, "(") consume_literal!(parser, "prop") - string1311 = consume_terminal!(parser, "STRING") - string_31312 = consume_terminal!(parser, "STRING") + string1319 = consume_terminal!(parser, "STRING") + string_31320 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return (string1311, string_31312,) + return (string1319, string_31320,) end function parse_iceberg_auth_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "auth_properties") - xs1313 = Tuple{String, String}[] - cond1314 = match_lookahead_literal(parser, "(", 0) - while cond1314 - _t2112 = parse_iceberg_masked_property_entry(parser) - item1315 = _t2112 - push!(xs1313, item1315) - cond1314 = match_lookahead_literal(parser, "(", 0) - end - iceberg_masked_property_entrys1316 = xs1313 + xs1321 = Tuple{String, String}[] + cond1322 = match_lookahead_literal(parser, "(", 0) + while cond1322 + _t2123 = parse_iceberg_masked_property_entry(parser) + item1323 = _t2123 + push!(xs1321, item1323) + cond1322 = match_lookahead_literal(parser, "(", 0) + end + iceberg_masked_property_entrys1324 = xs1321 consume_literal!(parser, ")") - return iceberg_masked_property_entrys1316 + return iceberg_masked_property_entrys1324 end function parse_iceberg_masked_property_entry(parser::ParserState)::Tuple{String, String} consume_literal!(parser, "(") consume_literal!(parser, "prop") - string1317 = consume_terminal!(parser, "STRING") - string_31318 = consume_terminal!(parser, "STRING") + string1325 = consume_terminal!(parser, "STRING") + string_31326 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return (string1317, string_31318,) + return (string1325, string_31326,) end function parse_iceberg_from_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "from_snapshot") - string1319 = consume_terminal!(parser, "STRING") + string1327 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1319 + return string1327 end function parse_iceberg_to_snapshot(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "to_snapshot") - string1320 = consume_terminal!(parser, "STRING") + string1328 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1320 + return string1328 end function parse_undefine(parser::ParserState)::Proto.Undefine - span_start1322 = span_start(parser) + span_start1330 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t2113 = parse_fragment_id(parser) - fragment_id1321 = _t2113 + _t2124 = parse_fragment_id(parser) + fragment_id1329 = _t2124 consume_literal!(parser, ")") - _t2114 = Proto.Undefine(fragment_id=fragment_id1321) - result1323 = _t2114 - record_span!(parser, span_start1322, "Undefine") - return result1323 + _t2125 = Proto.Undefine(fragment_id=fragment_id1329) + result1331 = _t2125 + record_span!(parser, span_start1330, "Undefine") + return result1331 end function parse_context(parser::ParserState)::Proto.Context - span_start1328 = span_start(parser) + span_start1336 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "context") - xs1324 = Proto.RelationId[] - cond1325 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond1325 - _t2115 = parse_relation_id(parser) - item1326 = _t2115 - push!(xs1324, item1326) - cond1325 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - end - relation_ids1327 = xs1324 + xs1332 = Proto.RelationId[] + cond1333 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1333 + _t2126 = parse_relation_id(parser) + item1334 = _t2126 + push!(xs1332, item1334) + cond1333 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + end + relation_ids1335 = xs1332 consume_literal!(parser, ")") - _t2116 = Proto.Context(relations=relation_ids1327) - result1329 = _t2116 - record_span!(parser, span_start1328, "Context") - return result1329 + _t2127 = Proto.Context(relations=relation_ids1335) + result1337 = _t2127 + record_span!(parser, span_start1336, "Context") + return result1337 end function parse_snapshot(parser::ParserState)::Proto.Snapshot - span_start1335 = span_start(parser) + span_start1343 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "snapshot") - _t2117 = parse_edb_path(parser) - edb_path1330 = _t2117 - xs1331 = Proto.SnapshotMapping[] - cond1332 = match_lookahead_literal(parser, "[", 0) - while cond1332 - _t2118 = parse_snapshot_mapping(parser) - item1333 = _t2118 - push!(xs1331, item1333) - cond1332 = match_lookahead_literal(parser, "[", 0) - end - snapshot_mappings1334 = xs1331 + _t2128 = parse_edb_path(parser) + edb_path1338 = _t2128 + xs1339 = Proto.SnapshotMapping[] + cond1340 = match_lookahead_literal(parser, "[", 0) + while cond1340 + _t2129 = parse_snapshot_mapping(parser) + item1341 = _t2129 + push!(xs1339, item1341) + cond1340 = match_lookahead_literal(parser, "[", 0) + end + snapshot_mappings1342 = xs1339 consume_literal!(parser, ")") - _t2119 = Proto.Snapshot(mappings=snapshot_mappings1334, prefix=edb_path1330) - result1336 = _t2119 - record_span!(parser, span_start1335, "Snapshot") - return result1336 + _t2130 = Proto.Snapshot(mappings=snapshot_mappings1342, prefix=edb_path1338) + result1344 = _t2130 + record_span!(parser, span_start1343, "Snapshot") + return result1344 end function parse_snapshot_mapping(parser::ParserState)::Proto.SnapshotMapping - span_start1339 = span_start(parser) - _t2120 = parse_edb_path(parser) - edb_path1337 = _t2120 - _t2121 = parse_relation_id(parser) - relation_id1338 = _t2121 - _t2122 = Proto.SnapshotMapping(destination_path=edb_path1337, source_relation=relation_id1338) - result1340 = _t2122 - record_span!(parser, span_start1339, "SnapshotMapping") - return result1340 + span_start1347 = span_start(parser) + _t2131 = parse_edb_path(parser) + edb_path1345 = _t2131 + _t2132 = parse_relation_id(parser) + relation_id1346 = _t2132 + _t2133 = Proto.SnapshotMapping(destination_path=edb_path1345, source_relation=relation_id1346) + result1348 = _t2133 + record_span!(parser, span_start1347, "SnapshotMapping") + return result1348 end function parse_epoch_reads(parser::ParserState)::Vector{Proto.Read} consume_literal!(parser, "(") consume_literal!(parser, "reads") - xs1341 = Proto.Read[] - cond1342 = match_lookahead_literal(parser, "(", 0) - while cond1342 - _t2123 = parse_read(parser) - item1343 = _t2123 - push!(xs1341, item1343) - cond1342 = match_lookahead_literal(parser, "(", 0) - end - reads1344 = xs1341 + xs1349 = Proto.Read[] + cond1350 = match_lookahead_literal(parser, "(", 0) + while cond1350 + _t2134 = parse_read(parser) + item1351 = _t2134 + push!(xs1349, item1351) + cond1350 = match_lookahead_literal(parser, "(", 0) + end + reads1352 = xs1349 consume_literal!(parser, ")") - return reads1344 + return reads1352 end function parse_read(parser::ParserState)::Proto.Read - span_start1351 = span_start(parser) + span_start1359 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t2125 = 2 + _t2136 = 2 else if match_lookahead_literal(parser, "output", 1) - _t2126 = 1 + _t2137 = 1 else if match_lookahead_literal(parser, "export_iceberg", 1) - _t2127 = 4 + _t2138 = 4 else if match_lookahead_literal(parser, "export", 1) - _t2128 = 4 + _t2139 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t2129 = 0 + _t2140 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t2130 = 3 + _t2141 = 3 else - _t2130 = -1 + _t2141 = -1 end - _t2129 = _t2130 + _t2140 = _t2141 end - _t2128 = _t2129 + _t2139 = _t2140 end - _t2127 = _t2128 + _t2138 = _t2139 end - _t2126 = _t2127 + _t2137 = _t2138 end - _t2125 = _t2126 + _t2136 = _t2137 end - _t2124 = _t2125 + _t2135 = _t2136 else - _t2124 = -1 - end - prediction1345 = _t2124 - if prediction1345 == 4 - _t2132 = parse_export(parser) - export1350 = _t2132 - _t2133 = Proto.Read(read_type=OneOf(:var"#export", export1350)) - _t2131 = _t2133 + _t2135 = -1 + end + prediction1353 = _t2135 + if prediction1353 == 4 + _t2143 = parse_export(parser) + export1358 = _t2143 + _t2144 = Proto.Read(read_type=OneOf(:var"#export", export1358)) + _t2142 = _t2144 else - if prediction1345 == 3 - _t2135 = parse_abort(parser) - abort1349 = _t2135 - _t2136 = Proto.Read(read_type=OneOf(:abort, abort1349)) - _t2134 = _t2136 + if prediction1353 == 3 + _t2146 = parse_abort(parser) + abort1357 = _t2146 + _t2147 = Proto.Read(read_type=OneOf(:abort, abort1357)) + _t2145 = _t2147 else - if prediction1345 == 2 - _t2138 = parse_what_if(parser) - what_if1348 = _t2138 - _t2139 = Proto.Read(read_type=OneOf(:what_if, what_if1348)) - _t2137 = _t2139 + if prediction1353 == 2 + _t2149 = parse_what_if(parser) + what_if1356 = _t2149 + _t2150 = Proto.Read(read_type=OneOf(:what_if, what_if1356)) + _t2148 = _t2150 else - if prediction1345 == 1 - _t2141 = parse_output(parser) - output1347 = _t2141 - _t2142 = Proto.Read(read_type=OneOf(:output, output1347)) - _t2140 = _t2142 + if prediction1353 == 1 + _t2152 = parse_output(parser) + output1355 = _t2152 + _t2153 = Proto.Read(read_type=OneOf(:output, output1355)) + _t2151 = _t2153 else - if prediction1345 == 0 - _t2144 = parse_demand(parser) - demand1346 = _t2144 - _t2145 = Proto.Read(read_type=OneOf(:demand, demand1346)) - _t2143 = _t2145 + if prediction1353 == 0 + _t2155 = parse_demand(parser) + demand1354 = _t2155 + _t2156 = Proto.Read(read_type=OneOf(:demand, demand1354)) + _t2154 = _t2156 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t2140 = _t2143 + _t2151 = _t2154 end - _t2137 = _t2140 + _t2148 = _t2151 end - _t2134 = _t2137 + _t2145 = _t2148 end - _t2131 = _t2134 + _t2142 = _t2145 end - result1352 = _t2131 - record_span!(parser, span_start1351, "Read") - return result1352 + result1360 = _t2142 + record_span!(parser, span_start1359, "Read") + return result1360 end function parse_demand(parser::ParserState)::Proto.Demand - span_start1354 = span_start(parser) + span_start1362 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t2146 = parse_relation_id(parser) - relation_id1353 = _t2146 + _t2157 = parse_relation_id(parser) + relation_id1361 = _t2157 consume_literal!(parser, ")") - _t2147 = Proto.Demand(relation_id=relation_id1353) - result1355 = _t2147 - record_span!(parser, span_start1354, "Demand") - return result1355 + _t2158 = Proto.Demand(relation_id=relation_id1361) + result1363 = _t2158 + record_span!(parser, span_start1362, "Demand") + return result1363 end function parse_output(parser::ParserState)::Proto.Output - span_start1358 = span_start(parser) + span_start1366 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "output") - _t2148 = parse_name(parser) - name1356 = _t2148 - _t2149 = parse_relation_id(parser) - relation_id1357 = _t2149 + _t2159 = parse_name(parser) + name1364 = _t2159 + _t2160 = parse_relation_id(parser) + relation_id1365 = _t2160 consume_literal!(parser, ")") - _t2150 = Proto.Output(name=name1356, relation_id=relation_id1357) - result1359 = _t2150 - record_span!(parser, span_start1358, "Output") - return result1359 + _t2161 = Proto.Output(name=name1364, relation_id=relation_id1365) + result1367 = _t2161 + record_span!(parser, span_start1366, "Output") + return result1367 end function parse_what_if(parser::ParserState)::Proto.WhatIf - span_start1362 = span_start(parser) + span_start1370 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t2151 = parse_name(parser) - name1360 = _t2151 - _t2152 = parse_epoch(parser) - epoch1361 = _t2152 + _t2162 = parse_name(parser) + name1368 = _t2162 + _t2163 = parse_epoch(parser) + epoch1369 = _t2163 consume_literal!(parser, ")") - _t2153 = Proto.WhatIf(branch=name1360, epoch=epoch1361) - result1363 = _t2153 - record_span!(parser, span_start1362, "WhatIf") - return result1363 + _t2164 = Proto.WhatIf(branch=name1368, epoch=epoch1369) + result1371 = _t2164 + record_span!(parser, span_start1370, "WhatIf") + return result1371 end function parse_abort(parser::ParserState)::Proto.Abort - span_start1366 = span_start(parser) + span_start1374 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "abort") if (match_lookahead_literal(parser, ":", 0) && match_lookahead_terminal(parser, "SYMBOL", 1)) - _t2155 = parse_name(parser) - _t2154 = _t2155 + _t2166 = parse_name(parser) + _t2165 = _t2166 else - _t2154 = nothing + _t2165 = nothing end - name1364 = _t2154 - _t2156 = parse_relation_id(parser) - relation_id1365 = _t2156 + name1372 = _t2165 + _t2167 = parse_relation_id(parser) + relation_id1373 = _t2167 consume_literal!(parser, ")") - _t2157 = Proto.Abort(name=(!isnothing(name1364) ? name1364 : "abort"), relation_id=relation_id1365) - result1367 = _t2157 - record_span!(parser, span_start1366, "Abort") - return result1367 + _t2168 = Proto.Abort(name=(!isnothing(name1372) ? name1372 : "abort"), relation_id=relation_id1373) + result1375 = _t2168 + record_span!(parser, span_start1374, "Abort") + return result1375 end function parse_export(parser::ParserState)::Proto.Export - span_start1371 = span_start(parser) + span_start1379 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_iceberg", 1) - _t2159 = 1 + _t2170 = 1 else if match_lookahead_literal(parser, "export", 1) - _t2160 = 0 + _t2171 = 0 else - _t2160 = -1 + _t2171 = -1 end - _t2159 = _t2160 + _t2170 = _t2171 end - _t2158 = _t2159 + _t2169 = _t2170 else - _t2158 = -1 + _t2169 = -1 end - prediction1368 = _t2158 - if prediction1368 == 1 + prediction1376 = _t2169 + if prediction1376 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_iceberg") - _t2162 = parse_export_iceberg_config(parser) - export_iceberg_config1370 = _t2162 + _t2173 = parse_export_iceberg_config(parser) + export_iceberg_config1378 = _t2173 consume_literal!(parser, ")") - _t2163 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1370)) - _t2161 = _t2163 + _t2174 = Proto.Export(export_config=OneOf(:iceberg_config, export_iceberg_config1378)) + _t2172 = _t2174 else - if prediction1368 == 0 + if prediction1376 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export") - _t2165 = parse_export_csv_config(parser) - export_csv_config1369 = _t2165 + _t2176 = parse_export_csv_config(parser) + export_csv_config1377 = _t2176 consume_literal!(parser, ")") - _t2166 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1369)) - _t2164 = _t2166 + _t2177 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1377)) + _t2175 = _t2177 else throw(ParseError("Unexpected token in export" * ": " * string(lookahead(parser, 0)))) end - _t2161 = _t2164 + _t2172 = _t2175 end - result1372 = _t2161 - record_span!(parser, span_start1371, "Export") - return result1372 + result1380 = _t2172 + record_span!(parser, span_start1379, "Export") + return result1380 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - span_start1380 = span_start(parser) + span_start1388 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_csv_config_v2", 1) - _t2168 = 0 + _t2179 = 0 else if match_lookahead_literal(parser, "export_csv_config", 1) - _t2169 = 1 + _t2180 = 1 else - _t2169 = -1 + _t2180 = -1 end - _t2168 = _t2169 + _t2179 = _t2180 end - _t2167 = _t2168 + _t2178 = _t2179 else - _t2167 = -1 + _t2178 = -1 end - prediction1373 = _t2167 - if prediction1373 == 1 + prediction1381 = _t2178 + if prediction1381 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config") - _t2171 = parse_export_csv_path(parser) - export_csv_path1377 = _t2171 - _t2172 = parse_export_csv_columns_list(parser) - export_csv_columns_list1378 = _t2172 - _t2173 = parse_config_dict(parser) - config_dict1379 = _t2173 + _t2182 = parse_export_csv_path(parser) + export_csv_path1385 = _t2182 + _t2183 = parse_export_csv_columns_list(parser) + export_csv_columns_list1386 = _t2183 + _t2184 = parse_config_dict(parser) + config_dict1387 = _t2184 consume_literal!(parser, ")") - _t2174 = construct_export_csv_config(parser, export_csv_path1377, export_csv_columns_list1378, config_dict1379) - _t2170 = _t2174 + _t2185 = construct_export_csv_config(parser, export_csv_path1385, export_csv_columns_list1386, config_dict1387) + _t2181 = _t2185 else - if prediction1373 == 0 + if prediction1381 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config_v2") - _t2176 = parse_export_csv_output_location(parser) - export_csv_output_location1374 = _t2176 - _t2177 = parse_export_csv_source(parser) - export_csv_source1375 = _t2177 - _t2178 = parse_csv_config(parser) - csv_config1376 = _t2178 + _t2187 = parse_export_csv_output_location(parser) + export_csv_output_location1382 = _t2187 + _t2188 = parse_export_csv_source(parser) + export_csv_source1383 = _t2188 + _t2189 = parse_csv_config(parser) + csv_config1384 = _t2189 consume_literal!(parser, ")") - _t2179 = construct_export_csv_config_with_location(parser, export_csv_output_location1374, export_csv_source1375, csv_config1376) - _t2175 = _t2179 + _t2190 = construct_export_csv_config_with_location(parser, export_csv_output_location1382, export_csv_source1383, csv_config1384) + _t2186 = _t2190 else throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) end - _t2170 = _t2175 + _t2181 = _t2186 end - result1381 = _t2170 - record_span!(parser, span_start1380, "ExportCSVConfig") - return result1381 + result1389 = _t2181 + record_span!(parser, span_start1388, "ExportCSVConfig") + return result1389 end function parse_export_csv_output_location(parser::ParserState)::Tuple{String, String} if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "transaction_output_name", 1) - _t2181 = 1 + _t2192 = 1 else if match_lookahead_literal(parser, "path", 1) - _t2182 = 0 + _t2193 = 0 else - _t2182 = -1 + _t2193 = -1 end - _t2181 = _t2182 + _t2192 = _t2193 end - _t2180 = _t2181 + _t2191 = _t2192 else - _t2180 = -1 + _t2191 = -1 end - prediction1382 = _t2180 - if prediction1382 == 1 + prediction1390 = _t2191 + if prediction1390 == 1 consume_literal!(parser, "(") consume_literal!(parser, "transaction_output_name") - _t2184 = parse_name(parser) - name1384 = _t2184 + _t2195 = parse_name(parser) + name1392 = _t2195 consume_literal!(parser, ")") - _t2183 = ("", name1384,) + _t2194 = ("", name1392,) else - if prediction1382 == 0 + if prediction1390 == 0 consume_literal!(parser, "(") consume_literal!(parser, "path") - string1383 = consume_terminal!(parser, "STRING") + string1391 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - _t2185 = (string1383, "",) + _t2196 = (string1391, "",) else throw(ParseError("Unexpected token in export_csv_output_location" * ": " * string(lookahead(parser, 0)))) end - _t2183 = _t2185 + _t2194 = _t2196 end - return _t2183 + return _t2194 end function parse_export_csv_source(parser::ParserState)::Proto.ExportCSVSource - span_start1391 = span_start(parser) + span_start1399 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "table_def", 1) - _t2187 = 1 + _t2198 = 1 else if match_lookahead_literal(parser, "gnf_columns", 1) - _t2188 = 0 + _t2199 = 0 else - _t2188 = -1 + _t2199 = -1 end - _t2187 = _t2188 + _t2198 = _t2199 end - _t2186 = _t2187 + _t2197 = _t2198 else - _t2186 = -1 + _t2197 = -1 end - prediction1385 = _t2186 - if prediction1385 == 1 + prediction1393 = _t2197 + if prediction1393 == 1 consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2190 = parse_relation_id(parser) - relation_id1390 = _t2190 + _t2201 = parse_relation_id(parser) + relation_id1398 = _t2201 consume_literal!(parser, ")") - _t2191 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1390)) - _t2189 = _t2191 + _t2202 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1398)) + _t2200 = _t2202 else - if prediction1385 == 0 + if prediction1393 == 0 consume_literal!(parser, "(") consume_literal!(parser, "gnf_columns") - xs1386 = Proto.ExportCSVColumn[] - cond1387 = match_lookahead_literal(parser, "(", 0) - while cond1387 - _t2193 = parse_export_csv_column(parser) - item1388 = _t2193 - push!(xs1386, item1388) - cond1387 = match_lookahead_literal(parser, "(", 0) + xs1394 = Proto.ExportCSVColumn[] + cond1395 = match_lookahead_literal(parser, "(", 0) + while cond1395 + _t2204 = parse_export_csv_column(parser) + item1396 = _t2204 + push!(xs1394, item1396) + cond1395 = match_lookahead_literal(parser, "(", 0) end - export_csv_columns1389 = xs1386 + export_csv_columns1397 = xs1394 consume_literal!(parser, ")") - _t2194 = Proto.ExportCSVColumns(columns=export_csv_columns1389) - _t2195 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2194)) - _t2192 = _t2195 + _t2205 = Proto.ExportCSVColumns(columns=export_csv_columns1397) + _t2206 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t2205)) + _t2203 = _t2206 else throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) end - _t2189 = _t2192 + _t2200 = _t2203 end - result1392 = _t2189 - record_span!(parser, span_start1391, "ExportCSVSource") - return result1392 + result1400 = _t2200 + record_span!(parser, span_start1399, "ExportCSVSource") + return result1400 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn - span_start1395 = span_start(parser) + span_start1403 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - string1393 = consume_terminal!(parser, "STRING") - _t2196 = parse_relation_id(parser) - relation_id1394 = _t2196 + string1401 = consume_terminal!(parser, "STRING") + _t2207 = parse_relation_id(parser) + relation_id1402 = _t2207 consume_literal!(parser, ")") - _t2197 = Proto.ExportCSVColumn(column_name=string1393, column_data=relation_id1394) - result1396 = _t2197 - record_span!(parser, span_start1395, "ExportCSVColumn") - return result1396 + _t2208 = Proto.ExportCSVColumn(column_name=string1401, column_data=relation_id1402) + result1404 = _t2208 + record_span!(parser, span_start1403, "ExportCSVColumn") + return result1404 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string1397 = consume_terminal!(parser, "STRING") + string1405 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1397 + return string1405 end function parse_export_csv_columns_list(parser::ParserState)::Vector{Proto.ExportCSVColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1398 = Proto.ExportCSVColumn[] - cond1399 = match_lookahead_literal(parser, "(", 0) - while cond1399 - _t2198 = parse_export_csv_column(parser) - item1400 = _t2198 - push!(xs1398, item1400) - cond1399 = match_lookahead_literal(parser, "(", 0) - end - export_csv_columns1401 = xs1398 + xs1406 = Proto.ExportCSVColumn[] + cond1407 = match_lookahead_literal(parser, "(", 0) + while cond1407 + _t2209 = parse_export_csv_column(parser) + item1408 = _t2209 + push!(xs1406, item1408) + cond1407 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns1409 = xs1406 consume_literal!(parser, ")") - return export_csv_columns1401 + return export_csv_columns1409 end function parse_export_iceberg_config(parser::ParserState)::Proto.ExportIcebergConfig - span_start1407 = span_start(parser) + span_start1415 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "export_iceberg_config") - _t2199 = parse_iceberg_locator(parser) - iceberg_locator1402 = _t2199 - _t2200 = parse_iceberg_catalog_config(parser) - iceberg_catalog_config1403 = _t2200 - _t2201 = parse_export_iceberg_table_def(parser) - export_iceberg_table_def1404 = _t2201 - _t2202 = parse_iceberg_table_properties(parser) - iceberg_table_properties1405 = _t2202 + _t2210 = parse_iceberg_locator(parser) + iceberg_locator1410 = _t2210 + _t2211 = parse_iceberg_catalog_config(parser) + iceberg_catalog_config1411 = _t2211 + _t2212 = parse_export_iceberg_table_def(parser) + export_iceberg_table_def1412 = _t2212 + _t2213 = parse_iceberg_table_properties(parser) + iceberg_table_properties1413 = _t2213 if match_lookahead_literal(parser, "{", 0) - _t2204 = parse_config_dict(parser) - _t2203 = _t2204 + _t2215 = parse_config_dict(parser) + _t2214 = _t2215 else - _t2203 = nothing + _t2214 = nothing end - config_dict1406 = _t2203 + config_dict1414 = _t2214 consume_literal!(parser, ")") - _t2205 = construct_export_iceberg_config_full(parser, iceberg_locator1402, iceberg_catalog_config1403, export_iceberg_table_def1404, iceberg_table_properties1405, config_dict1406) - result1408 = _t2205 - record_span!(parser, span_start1407, "ExportIcebergConfig") - return result1408 + _t2216 = construct_export_iceberg_config_full(parser, iceberg_locator1410, iceberg_catalog_config1411, export_iceberg_table_def1412, iceberg_table_properties1413, config_dict1414) + result1416 = _t2216 + record_span!(parser, span_start1415, "ExportIcebergConfig") + return result1416 end function parse_export_iceberg_table_def(parser::ParserState)::Proto.RelationId - span_start1410 = span_start(parser) + span_start1418 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t2206 = parse_relation_id(parser) - relation_id1409 = _t2206 + _t2217 = parse_relation_id(parser) + relation_id1417 = _t2217 consume_literal!(parser, ")") - result1411 = relation_id1409 - record_span!(parser, span_start1410, "RelationId") - return result1411 + result1419 = relation_id1417 + record_span!(parser, span_start1418, "RelationId") + return result1419 end function parse_iceberg_table_properties(parser::ParserState)::Vector{Tuple{String, String}} consume_literal!(parser, "(") consume_literal!(parser, "table_properties") - xs1412 = Tuple{String, String}[] - cond1413 = match_lookahead_literal(parser, "(", 0) - while cond1413 - _t2207 = parse_iceberg_property_entry(parser) - item1414 = _t2207 - push!(xs1412, item1414) - cond1413 = match_lookahead_literal(parser, "(", 0) - end - iceberg_property_entrys1415 = xs1412 + xs1420 = Tuple{String, String}[] + cond1421 = match_lookahead_literal(parser, "(", 0) + while cond1421 + _t2218 = parse_iceberg_property_entry(parser) + item1422 = _t2218 + push!(xs1420, item1422) + cond1421 = match_lookahead_literal(parser, "(", 0) + end + iceberg_property_entrys1423 = xs1420 consume_literal!(parser, ")") - return iceberg_property_entrys1415 + return iceberg_property_entrys1423 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index 8e32a297..20418ac1 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl @@ -380,11 +380,20 @@ function deconstruct_relation_keys(pp::PrettyPrinter, msg::Proto.TargetRelations return (msg.keys, msg.synthetic_key,) end +function deconstruct_load_errors_optional(pp::PrettyPrinter, msg::Proto.TargetRelations)::Union{Nothing, Proto.RelationId} + if _has_proto_field(msg, Symbol("load_errors")) + return msg.load_errors + else + _t1907 = 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("relations")) return nothing else - _t1898 = nothing + _t1908 = nothing end return msg.columns end @@ -393,7 +402,7 @@ function deconstruct_csv_data_relations_optional(pp::PrettyPrinter, msg::Proto.C if _has_proto_field(msg, Symbol("relations")) return msg.relations else - _t1899 = nothing + _t1909 = nothing end return nothing end @@ -403,53 +412,53 @@ function deconstruct_export_csv_output_location(pp::PrettyPrinter, msg::Proto.Ex end function _make_value_int32(pp::PrettyPrinter, v::Int32)::Proto.Value - _t1900 = Proto.Value(value=OneOf(:int32_value, v)) - return _t1900 + _t1910 = Proto.Value(value=OneOf(:int32_value, v)) + return _t1910 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1901 = Proto.Value(value=OneOf(:int_value, v)) - return _t1901 + _t1911 = Proto.Value(value=OneOf(:int_value, v)) + return _t1911 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1902 = Proto.Value(value=OneOf(:float_value, v)) - return _t1902 + _t1912 = Proto.Value(value=OneOf(:float_value, v)) + return _t1912 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1903 = Proto.Value(value=OneOf(:string_value, v)) - return _t1903 + _t1913 = Proto.Value(value=OneOf(:string_value, v)) + return _t1913 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1904 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1904 + _t1914 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1914 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1905 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1905 + _t1915 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1915 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 - _t1906 = _make_value_string(pp, "auto") - push!(result, ("ivm.maintenance_level", _t1906,)) + _t1916 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1916,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1907 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1907,)) + _t1917 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1917,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1908 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1908,)) + _t1918 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1918,)) end end end - _t1909 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1909,)) + _t1919 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1919,)) for pair in sort([(k, v) for (k, v) in msg.configuration_values]) push!(result, pair) end @@ -458,37 +467,37 @@ end function deconstruct_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1910 = _make_value_int32(pp, msg.header_row) - push!(result, ("csv_header_row", _t1910,)) - _t1911 = _make_value_int64(pp, msg.skip) - push!(result, ("csv_skip", _t1911,)) + _t1920 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1920,)) + _t1921 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1921,)) if msg.new_line != "" - _t1912 = _make_value_string(pp, msg.new_line) - push!(result, ("csv_new_line", _t1912,)) - end - _t1913 = _make_value_string(pp, msg.delimiter) - push!(result, ("csv_delimiter", _t1913,)) - _t1914 = _make_value_string(pp, msg.quotechar) - push!(result, ("csv_quotechar", _t1914,)) - _t1915 = _make_value_string(pp, msg.escapechar) - push!(result, ("csv_escapechar", _t1915,)) + _t1922 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1922,)) + end + _t1923 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1923,)) + _t1924 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1924,)) + _t1925 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1925,)) if msg.comment != "" - _t1916 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1916,)) + _t1926 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1926,)) end for missing_string in msg.missing_strings - _t1917 = _make_value_string(pp, missing_string) - push!(result, ("csv_missing_strings", _t1917,)) - end - _t1918 = _make_value_string(pp, msg.decimal_separator) - push!(result, ("csv_decimal_separator", _t1918,)) - _t1919 = _make_value_string(pp, msg.encoding) - push!(result, ("csv_encoding", _t1919,)) - _t1920 = _make_value_string(pp, msg.compression) - push!(result, ("csv_compression", _t1920,)) + _t1927 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1927,)) + end + _t1928 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1928,)) + _t1929 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1929,)) + _t1930 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1930,)) if msg.partition_size_mb != 0 - _t1921 = _make_value_int64(pp, msg.partition_size_mb) - push!(result, ("csv_partition_size_mb", _t1921,)) + _t1931 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1931,)) end return sort(result) end @@ -497,91 +506,91 @@ function deconstruct_csv_storage_integration_optional(pp::PrettyPrinter, msg::Pr if !_has_proto_field(msg, Symbol("storage_integration")) return nothing else - _t1922 = nothing + _t1932 = nothing end si = msg.storage_integration result = Tuple{String, Proto.Value}[] if si.provider != "" - _t1923 = _make_value_string(pp, si.provider) - push!(result, ("provider", _t1923,)) + _t1933 = _make_value_string(pp, si.provider) + push!(result, ("provider", _t1933,)) end if si.azure_sas_token != "" - _t1924 = _make_value_string(pp, "***") - push!(result, ("azure_sas_token", _t1924,)) + _t1934 = _make_value_string(pp, "***") + push!(result, ("azure_sas_token", _t1934,)) end if si.s3_region != "" - _t1925 = _make_value_string(pp, si.s3_region) - push!(result, ("s3_region", _t1925,)) + _t1935 = _make_value_string(pp, si.s3_region) + push!(result, ("s3_region", _t1935,)) end if si.s3_access_key_id != "" - _t1926 = _make_value_string(pp, "***") - push!(result, ("s3_access_key_id", _t1926,)) + _t1936 = _make_value_string(pp, "***") + push!(result, ("s3_access_key_id", _t1936,)) end if si.s3_secret_access_key != "" - _t1927 = _make_value_string(pp, "***") - push!(result, ("s3_secret_access_key", _t1927,)) + _t1937 = _make_value_string(pp, "***") + push!(result, ("s3_secret_access_key", _t1937,)) 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}[] - _t1928 = _make_value_float64(pp, msg.storage_config.epsilon) - push!(result, ("betree_config_epsilon", _t1928,)) - _t1929 = _make_value_int64(pp, msg.storage_config.max_pivots) - push!(result, ("betree_config_max_pivots", _t1929,)) - _t1930 = _make_value_int64(pp, msg.storage_config.max_deltas) - push!(result, ("betree_config_max_deltas", _t1930,)) - _t1931 = _make_value_int64(pp, msg.storage_config.max_leaf) - push!(result, ("betree_config_max_leaf", _t1931,)) + _t1938 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1938,)) + _t1939 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1939,)) + _t1940 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1940,)) + _t1941 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1941,)) if _has_proto_field(msg.relation_locator, Symbol("root_pageid")) if !isnothing(_get_oneof_field(msg.relation_locator, :root_pageid)) - _t1932 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) - push!(result, ("betree_locator_root_pageid", _t1932,)) + _t1942 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1942,)) end end if _has_proto_field(msg.relation_locator, Symbol("inline_data")) if !isnothing(_get_oneof_field(msg.relation_locator, :inline_data)) - _t1933 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) - push!(result, ("betree_locator_inline_data", _t1933,)) + _t1943 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1943,)) end end - _t1934 = _make_value_int64(pp, msg.relation_locator.element_count) - push!(result, ("betree_locator_element_count", _t1934,)) - _t1935 = _make_value_int64(pp, msg.relation_locator.tree_height) - push!(result, ("betree_locator_tree_height", _t1935,)) + _t1944 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1944,)) + _t1945 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1945,)) 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) - _t1936 = _make_value_int64(pp, msg.partition_size) - push!(result, ("partition_size", _t1936,)) + _t1946 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1946,)) end if !isnothing(msg.compression) - _t1937 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1937,)) + _t1947 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1947,)) end if !isnothing(msg.syntax_header_row) - _t1938 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1938,)) + _t1948 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1948,)) end if !isnothing(msg.syntax_missing_string) - _t1939 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1939,)) + _t1949 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1949,)) end if !isnothing(msg.syntax_delim) - _t1940 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1940,)) + _t1950 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1950,)) end if !isnothing(msg.syntax_quotechar) - _t1941 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1941,)) + _t1951 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1951,)) end if !isnothing(msg.syntax_escapechar) - _t1942 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1942,)) + _t1952 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1952,)) end return sort(result) end @@ -594,7 +603,7 @@ function deconstruct_iceberg_catalog_config_scope_optional(pp::PrettyPrinter, ms if msg.scope != "" return msg.scope else - _t1943 = nothing + _t1953 = nothing end return nothing end @@ -603,7 +612,7 @@ function deconstruct_iceberg_data_from_snapshot_optional(pp::PrettyPrinter, msg: if msg.from_snapshot != "" return msg.from_snapshot else - _t1944 = nothing + _t1954 = nothing end return nothing end @@ -612,7 +621,7 @@ function deconstruct_iceberg_data_to_snapshot_optional(pp::PrettyPrinter, msg::P if msg.to_snapshot != "" return msg.to_snapshot else - _t1945 = nothing + _t1955 = nothing end return nothing end @@ -620,21 +629,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 != "" - _t1946 = _make_value_string(pp, msg.prefix) - push!(result, ("prefix", _t1946,)) + _t1956 = _make_value_string(pp, msg.prefix) + push!(result, ("prefix", _t1956,)) end if msg.target_file_size_bytes != 0 - _t1947 = _make_value_int64(pp, msg.target_file_size_bytes) - push!(result, ("target_file_size_bytes", _t1947,)) + _t1957 = _make_value_int64(pp, msg.target_file_size_bytes) + push!(result, ("target_file_size_bytes", _t1957,)) end if msg.compression != "" - _t1948 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1948,)) + _t1958 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1958,)) end if length(result) == 0 return nothing else - _t1949 = nothing + _t1959 = nothing end return sort(result) end @@ -649,7 +658,7 @@ function deconstruct_relation_id_uint128(pp::PrettyPrinter, msg::Proto.RelationI if isnothing(name) return relation_id_to_uint128(pp, msg) else - _t1950 = nothing + _t1960 = nothing end return nothing end @@ -668,47 +677,47 @@ end # --- Pretty-print functions --- function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) - flat859 = try_flat(pp, msg, pretty_transaction) - if !isnothing(flat859) - write(pp, flat859) + flat863 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat863) + write(pp, flat863) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1700 = _dollar_dollar.configure + _t1708 = _dollar_dollar.configure else - _t1700 = nothing + _t1708 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1701 = _dollar_dollar.sync + _t1709 = _dollar_dollar.sync else - _t1701 = nothing + _t1709 = nothing end - fields850 = (_t1700, _t1701, _dollar_dollar.epochs,) - unwrapped_fields851 = fields850 + fields854 = (_t1708, _t1709, _dollar_dollar.epochs,) + unwrapped_fields855 = fields854 write(pp, "(transaction") indent_sexp!(pp) - field852 = unwrapped_fields851[1] - if !isnothing(field852) + field856 = unwrapped_fields855[1] + if !isnothing(field856) newline(pp) - opt_val853 = field852 - pretty_configure(pp, opt_val853) + opt_val857 = field856 + pretty_configure(pp, opt_val857) end - field854 = unwrapped_fields851[2] - if !isnothing(field854) + field858 = unwrapped_fields855[2] + if !isnothing(field858) newline(pp) - opt_val855 = field854 - pretty_sync(pp, opt_val855) + opt_val859 = field858 + pretty_sync(pp, opt_val859) end - field856 = unwrapped_fields851[3] - if !isempty(field856) + field860 = unwrapped_fields855[3] + if !isempty(field860) newline(pp) - for (i1702, elem857) in enumerate(field856) - i858 = i1702 - 1 - if (i858 > 0) + for (i1710, elem861) in enumerate(field860) + i862 = i1710 - 1 + if (i862 > 0) newline(pp) end - pretty_epoch(pp, elem857) + pretty_epoch(pp, elem861) end end dedent!(pp) @@ -718,19 +727,19 @@ function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) end function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) - flat862 = try_flat(pp, msg, pretty_configure) - if !isnothing(flat862) - write(pp, flat862) + flat866 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat866) + write(pp, flat866) return nothing else _dollar_dollar = msg - _t1703 = deconstruct_configure(pp, _dollar_dollar) - fields860 = _t1703 - unwrapped_fields861 = fields860 + _t1711 = deconstruct_configure(pp, _dollar_dollar) + fields864 = _t1711 + unwrapped_fields865 = fields864 write(pp, "(configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields861) + pretty_config_dict(pp, unwrapped_fields865) dedent!(pp) write(pp, ")") end @@ -738,22 +747,22 @@ function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) end function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat866 = try_flat(pp, msg, pretty_config_dict) - if !isnothing(flat866) - write(pp, flat866) + flat870 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat870) + write(pp, flat870) return nothing else - fields863 = msg + fields867 = msg write(pp, "{") indent!(pp) - if !isempty(fields863) + if !isempty(fields867) newline(pp) - for (i1704, elem864) in enumerate(fields863) - i865 = i1704 - 1 - if (i865 > 0) + for (i1712, elem868) in enumerate(fields867) + i869 = i1712 - 1 + if (i869 > 0) newline(pp) end - pretty_config_key_value(pp, elem864) + pretty_config_key_value(pp, elem868) end end dedent!(pp) @@ -763,163 +772,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}) - flat871 = try_flat(pp, msg, pretty_config_key_value) - if !isnothing(flat871) - write(pp, flat871) + flat875 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat875) + write(pp, flat875) return nothing else _dollar_dollar = msg - fields867 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields868 = fields867 + fields871 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields872 = fields871 write(pp, ":") - field869 = unwrapped_fields868[1] - write(pp, field869) + field873 = unwrapped_fields872[1] + write(pp, field873) write(pp, " ") - field870 = unwrapped_fields868[2] - pretty_raw_value(pp, field870) + field874 = unwrapped_fields872[2] + pretty_raw_value(pp, field874) end return nothing end function pretty_raw_value(pp::PrettyPrinter, msg::Proto.Value) - flat897 = try_flat(pp, msg, pretty_raw_value) - if !isnothing(flat897) - write(pp, flat897) + flat901 = try_flat(pp, msg, pretty_raw_value) + if !isnothing(flat901) + write(pp, flat901) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1705 = _get_oneof_field(_dollar_dollar, :date_value) + _t1713 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1705 = nothing + _t1713 = nothing end - deconstruct_result895 = _t1705 - if !isnothing(deconstruct_result895) - unwrapped896 = deconstruct_result895 - pretty_raw_date(pp, unwrapped896) + deconstruct_result899 = _t1713 + if !isnothing(deconstruct_result899) + unwrapped900 = deconstruct_result899 + pretty_raw_date(pp, unwrapped900) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1706 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1714 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1706 = nothing + _t1714 = nothing end - deconstruct_result893 = _t1706 - if !isnothing(deconstruct_result893) - unwrapped894 = deconstruct_result893 - pretty_raw_datetime(pp, unwrapped894) + deconstruct_result897 = _t1714 + if !isnothing(deconstruct_result897) + unwrapped898 = deconstruct_result897 + pretty_raw_datetime(pp, unwrapped898) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1707 = _get_oneof_field(_dollar_dollar, :string_value) + _t1715 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1707 = nothing + _t1715 = nothing end - deconstruct_result891 = _t1707 - if !isnothing(deconstruct_result891) - unwrapped892 = deconstruct_result891 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped892)) + deconstruct_result895 = _t1715 + if !isnothing(deconstruct_result895) + unwrapped896 = deconstruct_result895 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped896)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1708 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1716 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1708 = nothing + _t1716 = nothing end - deconstruct_result889 = _t1708 - if !isnothing(deconstruct_result889) - unwrapped890 = deconstruct_result889 - write(pp, (string(Int64(unwrapped890)) * "i32")) + deconstruct_result893 = _t1716 + if !isnothing(deconstruct_result893) + unwrapped894 = deconstruct_result893 + write(pp, (string(Int64(unwrapped894)) * "i32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1709 = _get_oneof_field(_dollar_dollar, :int_value) + _t1717 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1709 = nothing + _t1717 = nothing end - deconstruct_result887 = _t1709 - if !isnothing(deconstruct_result887) - unwrapped888 = deconstruct_result887 - write(pp, string(unwrapped888)) + deconstruct_result891 = _t1717 + if !isnothing(deconstruct_result891) + unwrapped892 = deconstruct_result891 + write(pp, string(unwrapped892)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1710 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1718 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1710 = nothing + _t1718 = nothing end - deconstruct_result885 = _t1710 - if !isnothing(deconstruct_result885) - unwrapped886 = deconstruct_result885 - write(pp, format_float32_literal(unwrapped886)) + deconstruct_result889 = _t1718 + if !isnothing(deconstruct_result889) + unwrapped890 = deconstruct_result889 + write(pp, format_float32_literal(unwrapped890)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1711 = _get_oneof_field(_dollar_dollar, :float_value) + _t1719 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1711 = nothing + _t1719 = nothing end - deconstruct_result883 = _t1711 - if !isnothing(deconstruct_result883) - unwrapped884 = deconstruct_result883 - write(pp, lowercase(string(unwrapped884))) + deconstruct_result887 = _t1719 + if !isnothing(deconstruct_result887) + unwrapped888 = deconstruct_result887 + write(pp, lowercase(string(unwrapped888))) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1712 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1720 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1712 = nothing + _t1720 = nothing end - deconstruct_result881 = _t1712 - if !isnothing(deconstruct_result881) - unwrapped882 = deconstruct_result881 - write(pp, (string(Int64(unwrapped882)) * "u32")) + deconstruct_result885 = _t1720 + if !isnothing(deconstruct_result885) + unwrapped886 = deconstruct_result885 + write(pp, (string(Int64(unwrapped886)) * "u32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1713 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1721 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1713 = nothing + _t1721 = nothing end - deconstruct_result879 = _t1713 - if !isnothing(deconstruct_result879) - unwrapped880 = deconstruct_result879 - write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped880)) + deconstruct_result883 = _t1721 + if !isnothing(deconstruct_result883) + unwrapped884 = deconstruct_result883 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped884)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1714 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1722 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1714 = nothing + _t1722 = nothing end - deconstruct_result877 = _t1714 - if !isnothing(deconstruct_result877) - unwrapped878 = deconstruct_result877 - write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped878)) + deconstruct_result881 = _t1722 + if !isnothing(deconstruct_result881) + unwrapped882 = deconstruct_result881 + write(pp, format_int128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped882)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1715 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1723 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1715 = nothing + _t1723 = nothing end - deconstruct_result875 = _t1715 - if !isnothing(deconstruct_result875) - unwrapped876 = deconstruct_result875 - write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped876)) + deconstruct_result879 = _t1723 + if !isnothing(deconstruct_result879) + unwrapped880 = deconstruct_result879 + write(pp, format_decimal(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped880)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1716 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1724 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1716 = nothing + _t1724 = nothing end - deconstruct_result873 = _t1716 - if !isnothing(deconstruct_result873) - unwrapped874 = deconstruct_result873 - pretty_boolean_value(pp, unwrapped874) + deconstruct_result877 = _t1724 + if !isnothing(deconstruct_result877) + unwrapped878 = deconstruct_result877 + pretty_boolean_value(pp, unwrapped878) else - fields872 = msg + fields876 = msg write(pp, "missing") end end @@ -938,25 +947,25 @@ function pretty_raw_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_raw_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat903 = try_flat(pp, msg, pretty_raw_date) - if !isnothing(flat903) - write(pp, flat903) + flat907 = try_flat(pp, msg, pretty_raw_date) + if !isnothing(flat907) + write(pp, flat907) return nothing else _dollar_dollar = msg - fields898 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields899 = fields898 + fields902 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields903 = fields902 write(pp, "(date") indent_sexp!(pp) newline(pp) - field900 = unwrapped_fields899[1] - write(pp, string(field900)) + field904 = unwrapped_fields903[1] + write(pp, string(field904)) newline(pp) - field901 = unwrapped_fields899[2] - write(pp, string(field901)) + field905 = unwrapped_fields903[2] + write(pp, string(field905)) newline(pp) - field902 = unwrapped_fields899[3] - write(pp, string(field902)) + field906 = unwrapped_fields903[3] + write(pp, string(field906)) dedent!(pp) write(pp, ")") end @@ -964,39 +973,39 @@ function pretty_raw_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_raw_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat914 = try_flat(pp, msg, pretty_raw_datetime) - if !isnothing(flat914) - write(pp, flat914) + flat918 = try_flat(pp, msg, pretty_raw_datetime) + if !isnothing(flat918) + write(pp, flat918) return nothing else _dollar_dollar = msg - fields904 = (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_fields905 = fields904 + fields908 = (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_fields909 = fields908 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field906 = unwrapped_fields905[1] - write(pp, string(field906)) + field910 = unwrapped_fields909[1] + write(pp, string(field910)) newline(pp) - field907 = unwrapped_fields905[2] - write(pp, string(field907)) + field911 = unwrapped_fields909[2] + write(pp, string(field911)) newline(pp) - field908 = unwrapped_fields905[3] - write(pp, string(field908)) + field912 = unwrapped_fields909[3] + write(pp, string(field912)) newline(pp) - field909 = unwrapped_fields905[4] - write(pp, string(field909)) + field913 = unwrapped_fields909[4] + write(pp, string(field913)) newline(pp) - field910 = unwrapped_fields905[5] - write(pp, string(field910)) + field914 = unwrapped_fields909[5] + write(pp, string(field914)) newline(pp) - field911 = unwrapped_fields905[6] - write(pp, string(field911)) - field912 = unwrapped_fields905[7] - if !isnothing(field912) + field915 = unwrapped_fields909[6] + write(pp, string(field915)) + field916 = unwrapped_fields909[7] + if !isnothing(field916) newline(pp) - opt_val913 = field912 - write(pp, string(opt_val913)) + opt_val917 = field916 + write(pp, string(opt_val917)) end dedent!(pp) write(pp, ")") @@ -1007,24 +1016,24 @@ end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) _dollar_dollar = msg if _dollar_dollar - _t1717 = () + _t1725 = () else - _t1717 = nothing + _t1725 = nothing end - deconstruct_result917 = _t1717 - if !isnothing(deconstruct_result917) - unwrapped918 = deconstruct_result917 + deconstruct_result921 = _t1725 + if !isnothing(deconstruct_result921) + unwrapped922 = deconstruct_result921 write(pp, "true") else _dollar_dollar = msg if !_dollar_dollar - _t1718 = () + _t1726 = () else - _t1718 = nothing + _t1726 = nothing end - deconstruct_result915 = _t1718 - if !isnothing(deconstruct_result915) - unwrapped916 = deconstruct_result915 + deconstruct_result919 = _t1726 + if !isnothing(deconstruct_result919) + unwrapped920 = deconstruct_result919 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -1034,24 +1043,24 @@ function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) end function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) - flat923 = try_flat(pp, msg, pretty_sync) - if !isnothing(flat923) - write(pp, flat923) + flat927 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat927) + write(pp, flat927) return nothing else _dollar_dollar = msg - fields919 = _dollar_dollar.fragments - unwrapped_fields920 = fields919 + fields923 = _dollar_dollar.fragments + unwrapped_fields924 = fields923 write(pp, "(sync") indent_sexp!(pp) - if !isempty(unwrapped_fields920) + if !isempty(unwrapped_fields924) newline(pp) - for (i1719, elem921) in enumerate(unwrapped_fields920) - i922 = i1719 - 1 - if (i922 > 0) + for (i1727, elem925) in enumerate(unwrapped_fields924) + i926 = i1727 - 1 + if (i926 > 0) newline(pp) end - pretty_fragment_id(pp, elem921) + pretty_fragment_id(pp, elem925) end end dedent!(pp) @@ -1061,52 +1070,52 @@ function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) end function pretty_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat926 = try_flat(pp, msg, pretty_fragment_id) - if !isnothing(flat926) - write(pp, flat926) + flat930 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat930) + write(pp, flat930) return nothing else _dollar_dollar = msg - fields924 = fragment_id_to_string(pp, _dollar_dollar) - unwrapped_fields925 = fields924 + fields928 = fragment_id_to_string(pp, _dollar_dollar) + unwrapped_fields929 = fields928 write(pp, ":") - write(pp, unwrapped_fields925) + write(pp, unwrapped_fields929) end return nothing end function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) - flat933 = try_flat(pp, msg, pretty_epoch) - if !isnothing(flat933) - write(pp, flat933) + flat937 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat937) + write(pp, flat937) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.writes) - _t1720 = _dollar_dollar.writes + _t1728 = _dollar_dollar.writes else - _t1720 = nothing + _t1728 = nothing end if !isempty(_dollar_dollar.reads) - _t1721 = _dollar_dollar.reads + _t1729 = _dollar_dollar.reads else - _t1721 = nothing + _t1729 = nothing end - fields927 = (_t1720, _t1721,) - unwrapped_fields928 = fields927 + fields931 = (_t1728, _t1729,) + unwrapped_fields932 = fields931 write(pp, "(epoch") indent_sexp!(pp) - field929 = unwrapped_fields928[1] - if !isnothing(field929) + field933 = unwrapped_fields932[1] + if !isnothing(field933) newline(pp) - opt_val930 = field929 - pretty_epoch_writes(pp, opt_val930) + opt_val934 = field933 + pretty_epoch_writes(pp, opt_val934) end - field931 = unwrapped_fields928[2] - if !isnothing(field931) + field935 = unwrapped_fields932[2] + if !isnothing(field935) newline(pp) - opt_val932 = field931 - pretty_epoch_reads(pp, opt_val932) + opt_val936 = field935 + pretty_epoch_reads(pp, opt_val936) end dedent!(pp) write(pp, ")") @@ -1115,22 +1124,22 @@ function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) end function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) - flat937 = try_flat(pp, msg, pretty_epoch_writes) - if !isnothing(flat937) - write(pp, flat937) + flat941 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat941) + write(pp, flat941) return nothing else - fields934 = msg + fields938 = msg write(pp, "(writes") indent_sexp!(pp) - if !isempty(fields934) + if !isempty(fields938) newline(pp) - for (i1722, elem935) in enumerate(fields934) - i936 = i1722 - 1 - if (i936 > 0) + for (i1730, elem939) in enumerate(fields938) + i940 = i1730 - 1 + if (i940 > 0) newline(pp) end - pretty_write(pp, elem935) + pretty_write(pp, elem939) end end dedent!(pp) @@ -1140,54 +1149,54 @@ function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) end function pretty_write(pp::PrettyPrinter, msg::Proto.Write) - flat946 = try_flat(pp, msg, pretty_write) - if !isnothing(flat946) - write(pp, flat946) + flat950 = try_flat(pp, msg, pretty_write) + if !isnothing(flat950) + write(pp, flat950) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1723 = _get_oneof_field(_dollar_dollar, :define) + _t1731 = _get_oneof_field(_dollar_dollar, :define) else - _t1723 = nothing + _t1731 = nothing end - deconstruct_result944 = _t1723 - if !isnothing(deconstruct_result944) - unwrapped945 = deconstruct_result944 - pretty_define(pp, unwrapped945) + deconstruct_result948 = _t1731 + if !isnothing(deconstruct_result948) + unwrapped949 = deconstruct_result948 + pretty_define(pp, unwrapped949) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1724 = _get_oneof_field(_dollar_dollar, :undefine) + _t1732 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1724 = nothing + _t1732 = nothing end - deconstruct_result942 = _t1724 - if !isnothing(deconstruct_result942) - unwrapped943 = deconstruct_result942 - pretty_undefine(pp, unwrapped943) + deconstruct_result946 = _t1732 + if !isnothing(deconstruct_result946) + unwrapped947 = deconstruct_result946 + pretty_undefine(pp, unwrapped947) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1725 = _get_oneof_field(_dollar_dollar, :context) + _t1733 = _get_oneof_field(_dollar_dollar, :context) else - _t1725 = nothing + _t1733 = nothing end - deconstruct_result940 = _t1725 - if !isnothing(deconstruct_result940) - unwrapped941 = deconstruct_result940 - pretty_context(pp, unwrapped941) + deconstruct_result944 = _t1733 + if !isnothing(deconstruct_result944) + unwrapped945 = deconstruct_result944 + pretty_context(pp, unwrapped945) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1726 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1734 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1726 = nothing + _t1734 = nothing end - deconstruct_result938 = _t1726 - if !isnothing(deconstruct_result938) - unwrapped939 = deconstruct_result938 - pretty_snapshot(pp, unwrapped939) + deconstruct_result942 = _t1734 + if !isnothing(deconstruct_result942) + unwrapped943 = deconstruct_result942 + pretty_snapshot(pp, unwrapped943) else throw(ParseError("No matching rule for write")) end @@ -1199,18 +1208,18 @@ function pretty_write(pp::PrettyPrinter, msg::Proto.Write) end function pretty_define(pp::PrettyPrinter, msg::Proto.Define) - flat949 = try_flat(pp, msg, pretty_define) - if !isnothing(flat949) - write(pp, flat949) + flat953 = try_flat(pp, msg, pretty_define) + if !isnothing(flat953) + write(pp, flat953) return nothing else _dollar_dollar = msg - fields947 = _dollar_dollar.fragment - unwrapped_fields948 = fields947 + fields951 = _dollar_dollar.fragment + unwrapped_fields952 = fields951 write(pp, "(define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields948) + pretty_fragment(pp, unwrapped_fields952) dedent!(pp) write(pp, ")") end @@ -1218,29 +1227,29 @@ function pretty_define(pp::PrettyPrinter, msg::Proto.Define) end function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) - flat956 = try_flat(pp, msg, pretty_fragment) - if !isnothing(flat956) - write(pp, flat956) + flat960 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat960) + write(pp, flat960) return nothing else _dollar_dollar = msg start_pretty_fragment(pp, _dollar_dollar) - fields950 = (_dollar_dollar.id, _dollar_dollar.declarations,) - unwrapped_fields951 = fields950 + fields954 = (_dollar_dollar.id, _dollar_dollar.declarations,) + unwrapped_fields955 = fields954 write(pp, "(fragment") indent_sexp!(pp) newline(pp) - field952 = unwrapped_fields951[1] - pretty_new_fragment_id(pp, field952) - field953 = unwrapped_fields951[2] - if !isempty(field953) + field956 = unwrapped_fields955[1] + pretty_new_fragment_id(pp, field956) + field957 = unwrapped_fields955[2] + if !isempty(field957) newline(pp) - for (i1727, elem954) in enumerate(field953) - i955 = i1727 - 1 - if (i955 > 0) + for (i1735, elem958) in enumerate(field957) + i959 = i1735 - 1 + if (i959 > 0) newline(pp) end - pretty_declaration(pp, elem954) + pretty_declaration(pp, elem958) end end dedent!(pp) @@ -1250,66 +1259,66 @@ function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) end function pretty_new_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat958 = try_flat(pp, msg, pretty_new_fragment_id) - if !isnothing(flat958) - write(pp, flat958) + flat962 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat962) + write(pp, flat962) return nothing else - fields957 = msg - pretty_fragment_id(pp, fields957) + fields961 = msg + pretty_fragment_id(pp, fields961) end return nothing end function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) - flat967 = try_flat(pp, msg, pretty_declaration) - if !isnothing(flat967) - write(pp, flat967) + flat971 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat971) + write(pp, flat971) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1728 = _get_oneof_field(_dollar_dollar, :def) + _t1736 = _get_oneof_field(_dollar_dollar, :def) else - _t1728 = nothing + _t1736 = nothing end - deconstruct_result965 = _t1728 - if !isnothing(deconstruct_result965) - unwrapped966 = deconstruct_result965 - pretty_def(pp, unwrapped966) + deconstruct_result969 = _t1736 + if !isnothing(deconstruct_result969) + unwrapped970 = deconstruct_result969 + pretty_def(pp, unwrapped970) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1729 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1737 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1729 = nothing + _t1737 = nothing end - deconstruct_result963 = _t1729 - if !isnothing(deconstruct_result963) - unwrapped964 = deconstruct_result963 - pretty_algorithm(pp, unwrapped964) + deconstruct_result967 = _t1737 + if !isnothing(deconstruct_result967) + unwrapped968 = deconstruct_result967 + pretty_algorithm(pp, unwrapped968) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1730 = _get_oneof_field(_dollar_dollar, :constraint) + _t1738 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1730 = nothing + _t1738 = nothing end - deconstruct_result961 = _t1730 - if !isnothing(deconstruct_result961) - unwrapped962 = deconstruct_result961 - pretty_constraint(pp, unwrapped962) + deconstruct_result965 = _t1738 + if !isnothing(deconstruct_result965) + unwrapped966 = deconstruct_result965 + pretty_constraint(pp, unwrapped966) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1731 = _get_oneof_field(_dollar_dollar, :data) + _t1739 = _get_oneof_field(_dollar_dollar, :data) else - _t1731 = nothing + _t1739 = nothing end - deconstruct_result959 = _t1731 - if !isnothing(deconstruct_result959) - unwrapped960 = deconstruct_result959 - pretty_data(pp, unwrapped960) + deconstruct_result963 = _t1739 + if !isnothing(deconstruct_result963) + unwrapped964 = deconstruct_result963 + pretty_data(pp, unwrapped964) else throw(ParseError("No matching rule for declaration")) end @@ -1321,32 +1330,32 @@ function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) end function pretty_def(pp::PrettyPrinter, msg::Proto.Def) - flat974 = try_flat(pp, msg, pretty_def) - if !isnothing(flat974) - write(pp, flat974) + flat978 = try_flat(pp, msg, pretty_def) + if !isnothing(flat978) + write(pp, flat978) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1732 = _dollar_dollar.attrs + _t1740 = _dollar_dollar.attrs else - _t1732 = nothing + _t1740 = nothing end - fields968 = (_dollar_dollar.name, _dollar_dollar.body, _t1732,) - unwrapped_fields969 = fields968 + fields972 = (_dollar_dollar.name, _dollar_dollar.body, _t1740,) + unwrapped_fields973 = fields972 write(pp, "(def") indent_sexp!(pp) newline(pp) - field970 = unwrapped_fields969[1] - pretty_relation_id(pp, field970) + field974 = unwrapped_fields973[1] + pretty_relation_id(pp, field974) newline(pp) - field971 = unwrapped_fields969[2] - pretty_abstraction(pp, field971) - field972 = unwrapped_fields969[3] - if !isnothing(field972) + field975 = unwrapped_fields973[2] + pretty_abstraction(pp, field975) + field976 = unwrapped_fields973[3] + if !isnothing(field976) newline(pp) - opt_val973 = field972 - pretty_attrs(pp, opt_val973) + opt_val977 = field976 + pretty_attrs(pp, opt_val977) end dedent!(pp) write(pp, ")") @@ -1355,30 +1364,30 @@ function pretty_def(pp::PrettyPrinter, msg::Proto.Def) end function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) - flat979 = try_flat(pp, msg, pretty_relation_id) - if !isnothing(flat979) - write(pp, flat979) + flat983 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat983) + write(pp, flat983) return nothing else _dollar_dollar = msg if !isnothing(relation_id_to_string(pp, _dollar_dollar)) - _t1734 = deconstruct_relation_id_string(pp, _dollar_dollar) - _t1733 = _t1734 + _t1742 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1741 = _t1742 else - _t1733 = nothing + _t1741 = nothing end - deconstruct_result977 = _t1733 - if !isnothing(deconstruct_result977) - unwrapped978 = deconstruct_result977 + deconstruct_result981 = _t1741 + if !isnothing(deconstruct_result981) + unwrapped982 = deconstruct_result981 write(pp, ":") - write(pp, unwrapped978) + write(pp, unwrapped982) else _dollar_dollar = msg - _t1735 = deconstruct_relation_id_uint128(pp, _dollar_dollar) - deconstruct_result975 = _t1735 - if !isnothing(deconstruct_result975) - unwrapped976 = deconstruct_result975 - write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped976)) + _t1743 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + deconstruct_result979 = _t1743 + if !isnothing(deconstruct_result979) + unwrapped980 = deconstruct_result979 + write(pp, format_uint128(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped980)) else throw(ParseError("No matching rule for relation_id")) end @@ -1388,22 +1397,22 @@ function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) end function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) - flat984 = try_flat(pp, msg, pretty_abstraction) - if !isnothing(flat984) - write(pp, flat984) + flat988 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat988) + write(pp, flat988) return nothing else _dollar_dollar = msg - _t1736 = deconstruct_bindings(pp, _dollar_dollar) - fields980 = (_t1736, _dollar_dollar.value,) - unwrapped_fields981 = fields980 + _t1744 = deconstruct_bindings(pp, _dollar_dollar) + fields984 = (_t1744, _dollar_dollar.value,) + unwrapped_fields985 = fields984 write(pp, "(") indent!(pp) - field982 = unwrapped_fields981[1] - pretty_bindings(pp, field982) + field986 = unwrapped_fields985[1] + pretty_bindings(pp, field986) newline(pp) - field983 = unwrapped_fields981[2] - pretty_formula(pp, field983) + field987 = unwrapped_fields985[2] + pretty_formula(pp, field987) dedent!(pp) write(pp, ")") end @@ -1411,34 +1420,34 @@ function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) end function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}}) - flat992 = try_flat(pp, msg, pretty_bindings) - if !isnothing(flat992) - write(pp, flat992) + flat996 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat996) + write(pp, flat996) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar[2]) - _t1737 = _dollar_dollar[2] + _t1745 = _dollar_dollar[2] else - _t1737 = nothing + _t1745 = nothing end - fields985 = (_dollar_dollar[1], _t1737,) - unwrapped_fields986 = fields985 + fields989 = (_dollar_dollar[1], _t1745,) + unwrapped_fields990 = fields989 write(pp, "[") indent!(pp) - field987 = unwrapped_fields986[1] - for (i1738, elem988) in enumerate(field987) - i989 = i1738 - 1 - if (i989 > 0) + field991 = unwrapped_fields990[1] + for (i1746, elem992) in enumerate(field991) + i993 = i1746 - 1 + if (i993 > 0) newline(pp) end - pretty_binding(pp, elem988) + pretty_binding(pp, elem992) end - field990 = unwrapped_fields986[2] - if !isnothing(field990) + field994 = unwrapped_fields990[2] + if !isnothing(field994) newline(pp) - opt_val991 = field990 - pretty_value_bindings(pp, opt_val991) + opt_val995 = field994 + pretty_value_bindings(pp, opt_val995) end dedent!(pp) write(pp, "]") @@ -1447,182 +1456,182 @@ function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Ve end function pretty_binding(pp::PrettyPrinter, msg::Proto.Binding) - flat997 = try_flat(pp, msg, pretty_binding) - if !isnothing(flat997) - write(pp, flat997) + flat1001 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat1001) + write(pp, flat1001) return nothing else _dollar_dollar = msg - fields993 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) - unwrapped_fields994 = fields993 - field995 = unwrapped_fields994[1] - write(pp, field995) + fields997 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) + unwrapped_fields998 = fields997 + field999 = unwrapped_fields998[1] + write(pp, field999) write(pp, "::") - field996 = unwrapped_fields994[2] - pretty_type(pp, field996) + field1000 = unwrapped_fields998[2] + pretty_type(pp, field1000) end return nothing end function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") - flat1026 = try_flat(pp, msg, pretty_type) - if !isnothing(flat1026) - write(pp, flat1026) + flat1030 = try_flat(pp, msg, pretty_type) + if !isnothing(flat1030) + write(pp, flat1030) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1739 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1747 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1739 = nothing + _t1747 = nothing end - deconstruct_result1024 = _t1739 - if !isnothing(deconstruct_result1024) - unwrapped1025 = deconstruct_result1024 - pretty_unspecified_type(pp, unwrapped1025) + deconstruct_result1028 = _t1747 + if !isnothing(deconstruct_result1028) + unwrapped1029 = deconstruct_result1028 + pretty_unspecified_type(pp, unwrapped1029) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1740 = _get_oneof_field(_dollar_dollar, :string_type) + _t1748 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1740 = nothing + _t1748 = nothing end - deconstruct_result1022 = _t1740 - if !isnothing(deconstruct_result1022) - unwrapped1023 = deconstruct_result1022 - pretty_string_type(pp, unwrapped1023) + deconstruct_result1026 = _t1748 + if !isnothing(deconstruct_result1026) + unwrapped1027 = deconstruct_result1026 + pretty_string_type(pp, unwrapped1027) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1741 = _get_oneof_field(_dollar_dollar, :int_type) + _t1749 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1741 = nothing + _t1749 = nothing end - deconstruct_result1020 = _t1741 - if !isnothing(deconstruct_result1020) - unwrapped1021 = deconstruct_result1020 - pretty_int_type(pp, unwrapped1021) + deconstruct_result1024 = _t1749 + if !isnothing(deconstruct_result1024) + unwrapped1025 = deconstruct_result1024 + pretty_int_type(pp, unwrapped1025) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1742 = _get_oneof_field(_dollar_dollar, :float_type) + _t1750 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1742 = nothing + _t1750 = nothing end - deconstruct_result1018 = _t1742 - if !isnothing(deconstruct_result1018) - unwrapped1019 = deconstruct_result1018 - pretty_float_type(pp, unwrapped1019) + deconstruct_result1022 = _t1750 + if !isnothing(deconstruct_result1022) + unwrapped1023 = deconstruct_result1022 + pretty_float_type(pp, unwrapped1023) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1743 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1751 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1743 = nothing + _t1751 = nothing end - deconstruct_result1016 = _t1743 - if !isnothing(deconstruct_result1016) - unwrapped1017 = deconstruct_result1016 - pretty_uint128_type(pp, unwrapped1017) + deconstruct_result1020 = _t1751 + if !isnothing(deconstruct_result1020) + unwrapped1021 = deconstruct_result1020 + pretty_uint128_type(pp, unwrapped1021) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1744 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1752 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1744 = nothing + _t1752 = nothing end - deconstruct_result1014 = _t1744 - if !isnothing(deconstruct_result1014) - unwrapped1015 = deconstruct_result1014 - pretty_int128_type(pp, unwrapped1015) + deconstruct_result1018 = _t1752 + if !isnothing(deconstruct_result1018) + unwrapped1019 = deconstruct_result1018 + pretty_int128_type(pp, unwrapped1019) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1745 = _get_oneof_field(_dollar_dollar, :date_type) + _t1753 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1745 = nothing + _t1753 = nothing end - deconstruct_result1012 = _t1745 - if !isnothing(deconstruct_result1012) - unwrapped1013 = deconstruct_result1012 - pretty_date_type(pp, unwrapped1013) + deconstruct_result1016 = _t1753 + if !isnothing(deconstruct_result1016) + unwrapped1017 = deconstruct_result1016 + pretty_date_type(pp, unwrapped1017) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1746 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1754 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1746 = nothing + _t1754 = nothing end - deconstruct_result1010 = _t1746 - if !isnothing(deconstruct_result1010) - unwrapped1011 = deconstruct_result1010 - pretty_datetime_type(pp, unwrapped1011) + deconstruct_result1014 = _t1754 + if !isnothing(deconstruct_result1014) + unwrapped1015 = deconstruct_result1014 + pretty_datetime_type(pp, unwrapped1015) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1747 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1755 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1747 = nothing + _t1755 = nothing end - deconstruct_result1008 = _t1747 - if !isnothing(deconstruct_result1008) - unwrapped1009 = deconstruct_result1008 - pretty_missing_type(pp, unwrapped1009) + deconstruct_result1012 = _t1755 + if !isnothing(deconstruct_result1012) + unwrapped1013 = deconstruct_result1012 + pretty_missing_type(pp, unwrapped1013) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1748 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1756 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1748 = nothing + _t1756 = nothing end - deconstruct_result1006 = _t1748 - if !isnothing(deconstruct_result1006) - unwrapped1007 = deconstruct_result1006 - pretty_decimal_type(pp, unwrapped1007) + deconstruct_result1010 = _t1756 + if !isnothing(deconstruct_result1010) + unwrapped1011 = deconstruct_result1010 + pretty_decimal_type(pp, unwrapped1011) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1749 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1757 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1749 = nothing + _t1757 = nothing end - deconstruct_result1004 = _t1749 - if !isnothing(deconstruct_result1004) - unwrapped1005 = deconstruct_result1004 - pretty_boolean_type(pp, unwrapped1005) + deconstruct_result1008 = _t1757 + if !isnothing(deconstruct_result1008) + unwrapped1009 = deconstruct_result1008 + pretty_boolean_type(pp, unwrapped1009) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_type")) - _t1750 = _get_oneof_field(_dollar_dollar, :int32_type) + _t1758 = _get_oneof_field(_dollar_dollar, :int32_type) else - _t1750 = nothing + _t1758 = nothing end - deconstruct_result1002 = _t1750 - if !isnothing(deconstruct_result1002) - unwrapped1003 = deconstruct_result1002 - pretty_int32_type(pp, unwrapped1003) + deconstruct_result1006 = _t1758 + if !isnothing(deconstruct_result1006) + unwrapped1007 = deconstruct_result1006 + pretty_int32_type(pp, unwrapped1007) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_type")) - _t1751 = _get_oneof_field(_dollar_dollar, :float32_type) + _t1759 = _get_oneof_field(_dollar_dollar, :float32_type) else - _t1751 = nothing + _t1759 = nothing end - deconstruct_result1000 = _t1751 - if !isnothing(deconstruct_result1000) - unwrapped1001 = deconstruct_result1000 - pretty_float32_type(pp, unwrapped1001) + deconstruct_result1004 = _t1759 + if !isnothing(deconstruct_result1004) + unwrapped1005 = deconstruct_result1004 + pretty_float32_type(pp, unwrapped1005) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_type")) - _t1752 = _get_oneof_field(_dollar_dollar, :uint32_type) + _t1760 = _get_oneof_field(_dollar_dollar, :uint32_type) else - _t1752 = nothing + _t1760 = nothing end - deconstruct_result998 = _t1752 - if !isnothing(deconstruct_result998) - unwrapped999 = deconstruct_result998 - pretty_uint32_type(pp, unwrapped999) + deconstruct_result1002 = _t1760 + if !isnothing(deconstruct_result1002) + unwrapped1003 = deconstruct_result1002 + pretty_uint32_type(pp, unwrapped1003) else throw(ParseError("No matching rule for type")) end @@ -1644,76 +1653,76 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields1027 = msg + fields1031 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields1028 = msg + fields1032 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields1029 = msg + fields1033 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields1030 = msg + fields1034 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields1031 = msg + fields1035 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields1032 = msg + fields1036 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields1033 = msg + fields1037 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields1034 = msg + fields1038 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields1035 = msg + fields1039 = msg write(pp, "MISSING") return nothing end function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) - flat1040 = try_flat(pp, msg, pretty_decimal_type) - if !isnothing(flat1040) - write(pp, flat1040) + flat1044 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat1044) + write(pp, flat1044) return nothing else _dollar_dollar = msg - fields1036 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) - unwrapped_fields1037 = fields1036 + fields1040 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) + unwrapped_fields1041 = fields1040 write(pp, "(DECIMAL") indent_sexp!(pp) newline(pp) - field1038 = unwrapped_fields1037[1] - write(pp, string(field1038)) + field1042 = unwrapped_fields1041[1] + write(pp, string(field1042)) newline(pp) - field1039 = unwrapped_fields1037[2] - write(pp, string(field1039)) + field1043 = unwrapped_fields1041[2] + write(pp, string(field1043)) dedent!(pp) write(pp, ")") end @@ -1721,45 +1730,45 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields1041 = msg + fields1045 = msg write(pp, "BOOLEAN") return nothing end function pretty_int32_type(pp::PrettyPrinter, msg::Proto.Int32Type) - fields1042 = msg + fields1046 = msg write(pp, "INT32") return nothing end function pretty_float32_type(pp::PrettyPrinter, msg::Proto.Float32Type) - fields1043 = msg + fields1047 = msg write(pp, "FLOAT32") return nothing end function pretty_uint32_type(pp::PrettyPrinter, msg::Proto.UInt32Type) - fields1044 = msg + fields1048 = msg write(pp, "UINT32") return nothing end function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) - flat1048 = try_flat(pp, msg, pretty_value_bindings) - if !isnothing(flat1048) - write(pp, flat1048) + flat1052 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat1052) + write(pp, flat1052) return nothing else - fields1045 = msg + fields1049 = msg write(pp, "|") - if !isempty(fields1045) + if !isempty(fields1049) write(pp, " ") - for (i1753, elem1046) in enumerate(fields1045) - i1047 = i1753 - 1 - if (i1047 > 0) + for (i1761, elem1050) in enumerate(fields1049) + i1051 = i1761 - 1 + if (i1051 > 0) newline(pp) end - pretty_binding(pp, elem1046) + pretty_binding(pp, elem1050) end end end @@ -1767,153 +1776,153 @@ function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) end function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) - flat1075 = try_flat(pp, msg, pretty_formula) - if !isnothing(flat1075) - write(pp, flat1075) + flat1079 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat1079) + write(pp, flat1079) return nothing else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1754 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1762 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1754 = nothing + _t1762 = nothing end - deconstruct_result1073 = _t1754 - if !isnothing(deconstruct_result1073) - unwrapped1074 = deconstruct_result1073 - pretty_true(pp, unwrapped1074) + deconstruct_result1077 = _t1762 + if !isnothing(deconstruct_result1077) + unwrapped1078 = deconstruct_result1077 + pretty_true(pp, unwrapped1078) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1755 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1763 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1755 = nothing + _t1763 = nothing end - deconstruct_result1071 = _t1755 - if !isnothing(deconstruct_result1071) - unwrapped1072 = deconstruct_result1071 - pretty_false(pp, unwrapped1072) + deconstruct_result1075 = _t1763 + if !isnothing(deconstruct_result1075) + unwrapped1076 = deconstruct_result1075 + pretty_false(pp, unwrapped1076) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1756 = _get_oneof_field(_dollar_dollar, :exists) + _t1764 = _get_oneof_field(_dollar_dollar, :exists) else - _t1756 = nothing + _t1764 = nothing end - deconstruct_result1069 = _t1756 - if !isnothing(deconstruct_result1069) - unwrapped1070 = deconstruct_result1069 - pretty_exists(pp, unwrapped1070) + deconstruct_result1073 = _t1764 + if !isnothing(deconstruct_result1073) + unwrapped1074 = deconstruct_result1073 + pretty_exists(pp, unwrapped1074) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1757 = _get_oneof_field(_dollar_dollar, :reduce) + _t1765 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1757 = nothing + _t1765 = nothing end - deconstruct_result1067 = _t1757 - if !isnothing(deconstruct_result1067) - unwrapped1068 = deconstruct_result1067 - pretty_reduce(pp, unwrapped1068) + deconstruct_result1071 = _t1765 + if !isnothing(deconstruct_result1071) + unwrapped1072 = deconstruct_result1071 + pretty_reduce(pp, unwrapped1072) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1758 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1766 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1758 = nothing + _t1766 = nothing end - deconstruct_result1065 = _t1758 - if !isnothing(deconstruct_result1065) - unwrapped1066 = deconstruct_result1065 - pretty_conjunction(pp, unwrapped1066) + deconstruct_result1069 = _t1766 + if !isnothing(deconstruct_result1069) + unwrapped1070 = deconstruct_result1069 + pretty_conjunction(pp, unwrapped1070) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1759 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1767 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1759 = nothing + _t1767 = nothing end - deconstruct_result1063 = _t1759 - if !isnothing(deconstruct_result1063) - unwrapped1064 = deconstruct_result1063 - pretty_disjunction(pp, unwrapped1064) + deconstruct_result1067 = _t1767 + if !isnothing(deconstruct_result1067) + unwrapped1068 = deconstruct_result1067 + pretty_disjunction(pp, unwrapped1068) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1760 = _get_oneof_field(_dollar_dollar, :not) + _t1768 = _get_oneof_field(_dollar_dollar, :not) else - _t1760 = nothing + _t1768 = nothing end - deconstruct_result1061 = _t1760 - if !isnothing(deconstruct_result1061) - unwrapped1062 = deconstruct_result1061 - pretty_not(pp, unwrapped1062) + deconstruct_result1065 = _t1768 + if !isnothing(deconstruct_result1065) + unwrapped1066 = deconstruct_result1065 + pretty_not(pp, unwrapped1066) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1761 = _get_oneof_field(_dollar_dollar, :ffi) + _t1769 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1761 = nothing + _t1769 = nothing end - deconstruct_result1059 = _t1761 - if !isnothing(deconstruct_result1059) - unwrapped1060 = deconstruct_result1059 - pretty_ffi(pp, unwrapped1060) + deconstruct_result1063 = _t1769 + if !isnothing(deconstruct_result1063) + unwrapped1064 = deconstruct_result1063 + pretty_ffi(pp, unwrapped1064) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1762 = _get_oneof_field(_dollar_dollar, :atom) + _t1770 = _get_oneof_field(_dollar_dollar, :atom) else - _t1762 = nothing + _t1770 = nothing end - deconstruct_result1057 = _t1762 - if !isnothing(deconstruct_result1057) - unwrapped1058 = deconstruct_result1057 - pretty_atom(pp, unwrapped1058) + deconstruct_result1061 = _t1770 + if !isnothing(deconstruct_result1061) + unwrapped1062 = deconstruct_result1061 + pretty_atom(pp, unwrapped1062) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1763 = _get_oneof_field(_dollar_dollar, :pragma) + _t1771 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1763 = nothing + _t1771 = nothing end - deconstruct_result1055 = _t1763 - if !isnothing(deconstruct_result1055) - unwrapped1056 = deconstruct_result1055 - pretty_pragma(pp, unwrapped1056) + deconstruct_result1059 = _t1771 + if !isnothing(deconstruct_result1059) + unwrapped1060 = deconstruct_result1059 + pretty_pragma(pp, unwrapped1060) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1764 = _get_oneof_field(_dollar_dollar, :primitive) + _t1772 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1764 = nothing + _t1772 = nothing end - deconstruct_result1053 = _t1764 - if !isnothing(deconstruct_result1053) - unwrapped1054 = deconstruct_result1053 - pretty_primitive(pp, unwrapped1054) + deconstruct_result1057 = _t1772 + if !isnothing(deconstruct_result1057) + unwrapped1058 = deconstruct_result1057 + pretty_primitive(pp, unwrapped1058) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1765 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1773 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1765 = nothing + _t1773 = nothing end - deconstruct_result1051 = _t1765 - if !isnothing(deconstruct_result1051) - unwrapped1052 = deconstruct_result1051 - pretty_rel_atom(pp, unwrapped1052) + deconstruct_result1055 = _t1773 + if !isnothing(deconstruct_result1055) + unwrapped1056 = deconstruct_result1055 + pretty_rel_atom(pp, unwrapped1056) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1766 = _get_oneof_field(_dollar_dollar, :cast) + _t1774 = _get_oneof_field(_dollar_dollar, :cast) else - _t1766 = nothing + _t1774 = nothing end - deconstruct_result1049 = _t1766 - if !isnothing(deconstruct_result1049) - unwrapped1050 = deconstruct_result1049 - pretty_cast(pp, unwrapped1050) + deconstruct_result1053 = _t1774 + if !isnothing(deconstruct_result1053) + unwrapped1054 = deconstruct_result1053 + pretty_cast(pp, unwrapped1054) else throw(ParseError("No matching rule for formula")) end @@ -1934,35 +1943,35 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields1076 = msg + fields1080 = msg write(pp, "(true)") return nothing end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields1077 = msg + fields1081 = msg write(pp, "(false)") return nothing end function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) - flat1082 = try_flat(pp, msg, pretty_exists) - if !isnothing(flat1082) - write(pp, flat1082) + flat1086 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat1086) + write(pp, flat1086) return nothing else _dollar_dollar = msg - _t1767 = deconstruct_bindings(pp, _dollar_dollar.body) - fields1078 = (_t1767, _dollar_dollar.body.value,) - unwrapped_fields1079 = fields1078 + _t1775 = deconstruct_bindings(pp, _dollar_dollar.body) + fields1082 = (_t1775, _dollar_dollar.body.value,) + unwrapped_fields1083 = fields1082 write(pp, "(exists") indent_sexp!(pp) newline(pp) - field1080 = unwrapped_fields1079[1] - pretty_bindings(pp, field1080) + field1084 = unwrapped_fields1083[1] + pretty_bindings(pp, field1084) newline(pp) - field1081 = unwrapped_fields1079[2] - pretty_formula(pp, field1081) + field1085 = unwrapped_fields1083[2] + pretty_formula(pp, field1085) dedent!(pp) write(pp, ")") end @@ -1970,25 +1979,25 @@ function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) end function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) - flat1088 = try_flat(pp, msg, pretty_reduce) - if !isnothing(flat1088) - write(pp, flat1088) + flat1092 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat1092) + write(pp, flat1092) return nothing else _dollar_dollar = msg - fields1083 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - unwrapped_fields1084 = fields1083 + fields1087 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + unwrapped_fields1088 = fields1087 write(pp, "(reduce") indent_sexp!(pp) newline(pp) - field1085 = unwrapped_fields1084[1] - pretty_abstraction(pp, field1085) + field1089 = unwrapped_fields1088[1] + pretty_abstraction(pp, field1089) newline(pp) - field1086 = unwrapped_fields1084[2] - pretty_abstraction(pp, field1086) + field1090 = unwrapped_fields1088[2] + pretty_abstraction(pp, field1090) newline(pp) - field1087 = unwrapped_fields1084[3] - pretty_terms(pp, field1087) + field1091 = unwrapped_fields1088[3] + pretty_terms(pp, field1091) dedent!(pp) write(pp, ")") end @@ -1996,22 +2005,22 @@ function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) end function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) - flat1092 = try_flat(pp, msg, pretty_terms) - if !isnothing(flat1092) - write(pp, flat1092) + flat1096 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat1096) + write(pp, flat1096) return nothing else - fields1089 = msg + fields1093 = msg write(pp, "(terms") indent_sexp!(pp) - if !isempty(fields1089) + if !isempty(fields1093) newline(pp) - for (i1768, elem1090) in enumerate(fields1089) - i1091 = i1768 - 1 - if (i1091 > 0) + for (i1776, elem1094) in enumerate(fields1093) + i1095 = i1776 - 1 + if (i1095 > 0) newline(pp) end - pretty_term(pp, elem1090) + pretty_term(pp, elem1094) end end dedent!(pp) @@ -2021,32 +2030,32 @@ function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) end function pretty_term(pp::PrettyPrinter, msg::Proto.Term) - flat1097 = try_flat(pp, msg, pretty_term) - if !isnothing(flat1097) - write(pp, flat1097) + flat1101 = try_flat(pp, msg, pretty_term) + if !isnothing(flat1101) + write(pp, flat1101) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1769 = _get_oneof_field(_dollar_dollar, :var) + _t1777 = _get_oneof_field(_dollar_dollar, :var) else - _t1769 = nothing + _t1777 = nothing end - deconstruct_result1095 = _t1769 - if !isnothing(deconstruct_result1095) - unwrapped1096 = deconstruct_result1095 - pretty_var(pp, unwrapped1096) + deconstruct_result1099 = _t1777 + if !isnothing(deconstruct_result1099) + unwrapped1100 = deconstruct_result1099 + pretty_var(pp, unwrapped1100) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1770 = _get_oneof_field(_dollar_dollar, :constant) + _t1778 = _get_oneof_field(_dollar_dollar, :constant) else - _t1770 = nothing + _t1778 = nothing end - deconstruct_result1093 = _t1770 - if !isnothing(deconstruct_result1093) - unwrapped1094 = deconstruct_result1093 - pretty_value(pp, unwrapped1094) + deconstruct_result1097 = _t1778 + if !isnothing(deconstruct_result1097) + unwrapped1098 = deconstruct_result1097 + pretty_value(pp, unwrapped1098) else throw(ParseError("No matching rule for term")) end @@ -2056,158 +2065,158 @@ function pretty_term(pp::PrettyPrinter, msg::Proto.Term) end function pretty_var(pp::PrettyPrinter, msg::Proto.Var) - flat1100 = try_flat(pp, msg, pretty_var) - if !isnothing(flat1100) - write(pp, flat1100) + flat1104 = try_flat(pp, msg, pretty_var) + if !isnothing(flat1104) + write(pp, flat1104) return nothing else _dollar_dollar = msg - fields1098 = _dollar_dollar.name - unwrapped_fields1099 = fields1098 - write(pp, unwrapped_fields1099) + fields1102 = _dollar_dollar.name + unwrapped_fields1103 = fields1102 + write(pp, unwrapped_fields1103) end return nothing end function pretty_value(pp::PrettyPrinter, msg::Proto.Value) - flat1126 = try_flat(pp, msg, pretty_value) - if !isnothing(flat1126) - write(pp, flat1126) + flat1130 = try_flat(pp, msg, pretty_value) + if !isnothing(flat1130) + write(pp, flat1130) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1771 = _get_oneof_field(_dollar_dollar, :date_value) + _t1779 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1771 = nothing + _t1779 = nothing end - deconstruct_result1124 = _t1771 - if !isnothing(deconstruct_result1124) - unwrapped1125 = deconstruct_result1124 - pretty_date(pp, unwrapped1125) + deconstruct_result1128 = _t1779 + if !isnothing(deconstruct_result1128) + unwrapped1129 = deconstruct_result1128 + pretty_date(pp, unwrapped1129) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1772 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1780 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1772 = nothing + _t1780 = nothing end - deconstruct_result1122 = _t1772 - if !isnothing(deconstruct_result1122) - unwrapped1123 = deconstruct_result1122 - pretty_datetime(pp, unwrapped1123) + deconstruct_result1126 = _t1780 + if !isnothing(deconstruct_result1126) + unwrapped1127 = deconstruct_result1126 + pretty_datetime(pp, unwrapped1127) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1773 = _get_oneof_field(_dollar_dollar, :string_value) + _t1781 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1773 = nothing + _t1781 = nothing end - deconstruct_result1120 = _t1773 - if !isnothing(deconstruct_result1120) - unwrapped1121 = deconstruct_result1120 - write(pp, format_string(pp, unwrapped1121)) + deconstruct_result1124 = _t1781 + if !isnothing(deconstruct_result1124) + unwrapped1125 = deconstruct_result1124 + write(pp, format_string(pp, unwrapped1125)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1774 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1782 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1774 = nothing + _t1782 = nothing end - deconstruct_result1118 = _t1774 - if !isnothing(deconstruct_result1118) - unwrapped1119 = deconstruct_result1118 - write(pp, format_int32(pp, unwrapped1119)) + deconstruct_result1122 = _t1782 + if !isnothing(deconstruct_result1122) + unwrapped1123 = deconstruct_result1122 + write(pp, format_int32(pp, unwrapped1123)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1775 = _get_oneof_field(_dollar_dollar, :int_value) + _t1783 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1775 = nothing + _t1783 = nothing end - deconstruct_result1116 = _t1775 - if !isnothing(deconstruct_result1116) - unwrapped1117 = deconstruct_result1116 - write(pp, format_int(pp, unwrapped1117)) + deconstruct_result1120 = _t1783 + if !isnothing(deconstruct_result1120) + unwrapped1121 = deconstruct_result1120 + write(pp, format_int(pp, unwrapped1121)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1776 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1784 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1776 = nothing + _t1784 = nothing end - deconstruct_result1114 = _t1776 - if !isnothing(deconstruct_result1114) - unwrapped1115 = deconstruct_result1114 - write(pp, format_float32(pp, unwrapped1115)) + deconstruct_result1118 = _t1784 + if !isnothing(deconstruct_result1118) + unwrapped1119 = deconstruct_result1118 + write(pp, format_float32(pp, unwrapped1119)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1777 = _get_oneof_field(_dollar_dollar, :float_value) + _t1785 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1777 = nothing + _t1785 = nothing end - deconstruct_result1112 = _t1777 - if !isnothing(deconstruct_result1112) - unwrapped1113 = deconstruct_result1112 - write(pp, format_float(pp, unwrapped1113)) + deconstruct_result1116 = _t1785 + if !isnothing(deconstruct_result1116) + unwrapped1117 = deconstruct_result1116 + write(pp, format_float(pp, unwrapped1117)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1778 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1786 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1778 = nothing + _t1786 = nothing end - deconstruct_result1110 = _t1778 - if !isnothing(deconstruct_result1110) - unwrapped1111 = deconstruct_result1110 - write(pp, format_uint32(pp, unwrapped1111)) + deconstruct_result1114 = _t1786 + if !isnothing(deconstruct_result1114) + unwrapped1115 = deconstruct_result1114 + write(pp, format_uint32(pp, unwrapped1115)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1779 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1787 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1779 = nothing + _t1787 = nothing end - deconstruct_result1108 = _t1779 - if !isnothing(deconstruct_result1108) - unwrapped1109 = deconstruct_result1108 - write(pp, format_uint128(pp, unwrapped1109)) + deconstruct_result1112 = _t1787 + if !isnothing(deconstruct_result1112) + unwrapped1113 = deconstruct_result1112 + write(pp, format_uint128(pp, unwrapped1113)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1780 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1788 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1780 = nothing + _t1788 = nothing end - deconstruct_result1106 = _t1780 - if !isnothing(deconstruct_result1106) - unwrapped1107 = deconstruct_result1106 - write(pp, format_int128(pp, unwrapped1107)) + deconstruct_result1110 = _t1788 + if !isnothing(deconstruct_result1110) + unwrapped1111 = deconstruct_result1110 + write(pp, format_int128(pp, unwrapped1111)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1781 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1789 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1781 = nothing + _t1789 = nothing end - deconstruct_result1104 = _t1781 - if !isnothing(deconstruct_result1104) - unwrapped1105 = deconstruct_result1104 - write(pp, format_decimal(pp, unwrapped1105)) + deconstruct_result1108 = _t1789 + if !isnothing(deconstruct_result1108) + unwrapped1109 = deconstruct_result1108 + write(pp, format_decimal(pp, unwrapped1109)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1782 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1790 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1782 = nothing + _t1790 = nothing end - deconstruct_result1102 = _t1782 - if !isnothing(deconstruct_result1102) - unwrapped1103 = deconstruct_result1102 - pretty_boolean_value(pp, unwrapped1103) + deconstruct_result1106 = _t1790 + if !isnothing(deconstruct_result1106) + unwrapped1107 = deconstruct_result1106 + pretty_boolean_value(pp, unwrapped1107) else - fields1101 = msg + fields1105 = msg write(pp, "missing") end end @@ -2226,25 +2235,25 @@ function pretty_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat1132 = try_flat(pp, msg, pretty_date) - if !isnothing(flat1132) - write(pp, flat1132) + flat1136 = try_flat(pp, msg, pretty_date) + if !isnothing(flat1136) + write(pp, flat1136) return nothing else _dollar_dollar = msg - fields1127 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields1128 = fields1127 + fields1131 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields1132 = fields1131 write(pp, "(date") indent_sexp!(pp) newline(pp) - field1129 = unwrapped_fields1128[1] - write(pp, format_int(pp, field1129)) + field1133 = unwrapped_fields1132[1] + write(pp, format_int(pp, field1133)) newline(pp) - field1130 = unwrapped_fields1128[2] - write(pp, format_int(pp, field1130)) + field1134 = unwrapped_fields1132[2] + write(pp, format_int(pp, field1134)) newline(pp) - field1131 = unwrapped_fields1128[3] - write(pp, format_int(pp, field1131)) + field1135 = unwrapped_fields1132[3] + write(pp, format_int(pp, field1135)) dedent!(pp) write(pp, ")") end @@ -2252,39 +2261,39 @@ function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat1143 = try_flat(pp, msg, pretty_datetime) - if !isnothing(flat1143) - write(pp, flat1143) + flat1147 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat1147) + write(pp, flat1147) return nothing else _dollar_dollar = msg - fields1133 = (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_fields1134 = fields1133 + fields1137 = (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_fields1138 = fields1137 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field1135 = unwrapped_fields1134[1] - write(pp, format_int(pp, field1135)) + field1139 = unwrapped_fields1138[1] + write(pp, format_int(pp, field1139)) newline(pp) - field1136 = unwrapped_fields1134[2] - write(pp, format_int(pp, field1136)) + field1140 = unwrapped_fields1138[2] + write(pp, format_int(pp, field1140)) newline(pp) - field1137 = unwrapped_fields1134[3] - write(pp, format_int(pp, field1137)) + field1141 = unwrapped_fields1138[3] + write(pp, format_int(pp, field1141)) newline(pp) - field1138 = unwrapped_fields1134[4] - write(pp, format_int(pp, field1138)) + field1142 = unwrapped_fields1138[4] + write(pp, format_int(pp, field1142)) newline(pp) - field1139 = unwrapped_fields1134[5] - write(pp, format_int(pp, field1139)) + field1143 = unwrapped_fields1138[5] + write(pp, format_int(pp, field1143)) newline(pp) - field1140 = unwrapped_fields1134[6] - write(pp, format_int(pp, field1140)) - field1141 = unwrapped_fields1134[7] - if !isnothing(field1141) + field1144 = unwrapped_fields1138[6] + write(pp, format_int(pp, field1144)) + field1145 = unwrapped_fields1138[7] + if !isnothing(field1145) newline(pp) - opt_val1142 = field1141 - write(pp, format_int(pp, opt_val1142)) + opt_val1146 = field1145 + write(pp, format_int(pp, opt_val1146)) end dedent!(pp) write(pp, ")") @@ -2293,24 +2302,24 @@ function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) end function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) - flat1148 = try_flat(pp, msg, pretty_conjunction) - if !isnothing(flat1148) - write(pp, flat1148) + flat1152 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat1152) + write(pp, flat1152) return nothing else _dollar_dollar = msg - fields1144 = _dollar_dollar.args - unwrapped_fields1145 = fields1144 + fields1148 = _dollar_dollar.args + unwrapped_fields1149 = fields1148 write(pp, "(and") indent_sexp!(pp) - if !isempty(unwrapped_fields1145) + if !isempty(unwrapped_fields1149) newline(pp) - for (i1783, elem1146) in enumerate(unwrapped_fields1145) - i1147 = i1783 - 1 - if (i1147 > 0) + for (i1791, elem1150) in enumerate(unwrapped_fields1149) + i1151 = i1791 - 1 + if (i1151 > 0) newline(pp) end - pretty_formula(pp, elem1146) + pretty_formula(pp, elem1150) end end dedent!(pp) @@ -2320,24 +2329,24 @@ function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) - flat1153 = try_flat(pp, msg, pretty_disjunction) - if !isnothing(flat1153) - write(pp, flat1153) + flat1157 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat1157) + write(pp, flat1157) return nothing else _dollar_dollar = msg - fields1149 = _dollar_dollar.args - unwrapped_fields1150 = fields1149 + fields1153 = _dollar_dollar.args + unwrapped_fields1154 = fields1153 write(pp, "(or") indent_sexp!(pp) - if !isempty(unwrapped_fields1150) + if !isempty(unwrapped_fields1154) newline(pp) - for (i1784, elem1151) in enumerate(unwrapped_fields1150) - i1152 = i1784 - 1 - if (i1152 > 0) + for (i1792, elem1155) in enumerate(unwrapped_fields1154) + i1156 = i1792 - 1 + if (i1156 > 0) newline(pp) end - pretty_formula(pp, elem1151) + pretty_formula(pp, elem1155) end end dedent!(pp) @@ -2347,18 +2356,18 @@ function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_not(pp::PrettyPrinter, msg::Proto.Not) - flat1156 = try_flat(pp, msg, pretty_not) - if !isnothing(flat1156) - write(pp, flat1156) + flat1160 = try_flat(pp, msg, pretty_not) + if !isnothing(flat1160) + write(pp, flat1160) return nothing else _dollar_dollar = msg - fields1154 = _dollar_dollar.arg - unwrapped_fields1155 = fields1154 + fields1158 = _dollar_dollar.arg + unwrapped_fields1159 = fields1158 write(pp, "(not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields1155) + pretty_formula(pp, unwrapped_fields1159) dedent!(pp) write(pp, ")") end @@ -2366,25 +2375,25 @@ function pretty_not(pp::PrettyPrinter, msg::Proto.Not) end function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) - flat1162 = try_flat(pp, msg, pretty_ffi) - if !isnothing(flat1162) - write(pp, flat1162) + flat1166 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat1166) + write(pp, flat1166) return nothing else _dollar_dollar = msg - fields1157 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - unwrapped_fields1158 = fields1157 + fields1161 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + unwrapped_fields1162 = fields1161 write(pp, "(ffi") indent_sexp!(pp) newline(pp) - field1159 = unwrapped_fields1158[1] - pretty_name(pp, field1159) + field1163 = unwrapped_fields1162[1] + pretty_name(pp, field1163) newline(pp) - field1160 = unwrapped_fields1158[2] - pretty_ffi_args(pp, field1160) + field1164 = unwrapped_fields1162[2] + pretty_ffi_args(pp, field1164) newline(pp) - field1161 = unwrapped_fields1158[3] - pretty_terms(pp, field1161) + field1165 = unwrapped_fields1162[3] + pretty_terms(pp, field1165) dedent!(pp) write(pp, ")") end @@ -2392,35 +2401,35 @@ function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) end function pretty_name(pp::PrettyPrinter, msg::String) - flat1164 = try_flat(pp, msg, pretty_name) - if !isnothing(flat1164) - write(pp, flat1164) + flat1168 = try_flat(pp, msg, pretty_name) + if !isnothing(flat1168) + write(pp, flat1168) return nothing else - fields1163 = msg + fields1167 = msg write(pp, ":") - write(pp, fields1163) + write(pp, fields1167) end return nothing end function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) - flat1168 = try_flat(pp, msg, pretty_ffi_args) - if !isnothing(flat1168) - write(pp, flat1168) + flat1172 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat1172) + write(pp, flat1172) return nothing else - fields1165 = msg + fields1169 = msg write(pp, "(args") indent_sexp!(pp) - if !isempty(fields1165) + if !isempty(fields1169) newline(pp) - for (i1785, elem1166) in enumerate(fields1165) - i1167 = i1785 - 1 - if (i1167 > 0) + for (i1793, elem1170) in enumerate(fields1169) + i1171 = i1793 - 1 + if (i1171 > 0) newline(pp) end - pretty_abstraction(pp, elem1166) + pretty_abstraction(pp, elem1170) end end dedent!(pp) @@ -2430,28 +2439,28 @@ function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) end function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) - flat1175 = try_flat(pp, msg, pretty_atom) - if !isnothing(flat1175) - write(pp, flat1175) + flat1179 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat1179) + write(pp, flat1179) return nothing else _dollar_dollar = msg - fields1169 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1170 = fields1169 + fields1173 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1174 = fields1173 write(pp, "(atom") indent_sexp!(pp) newline(pp) - field1171 = unwrapped_fields1170[1] - pretty_relation_id(pp, field1171) - field1172 = unwrapped_fields1170[2] - if !isempty(field1172) + field1175 = unwrapped_fields1174[1] + pretty_relation_id(pp, field1175) + field1176 = unwrapped_fields1174[2] + if !isempty(field1176) newline(pp) - for (i1786, elem1173) in enumerate(field1172) - i1174 = i1786 - 1 - if (i1174 > 0) + for (i1794, elem1177) in enumerate(field1176) + i1178 = i1794 - 1 + if (i1178 > 0) newline(pp) end - pretty_term(pp, elem1173) + pretty_term(pp, elem1177) end end dedent!(pp) @@ -2461,28 +2470,28 @@ function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) end function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) - flat1182 = try_flat(pp, msg, pretty_pragma) - if !isnothing(flat1182) - write(pp, flat1182) + flat1186 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat1186) + write(pp, flat1186) return nothing else _dollar_dollar = msg - fields1176 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1177 = fields1176 + fields1180 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1181 = fields1180 write(pp, "(pragma") indent_sexp!(pp) newline(pp) - field1178 = unwrapped_fields1177[1] - pretty_name(pp, field1178) - field1179 = unwrapped_fields1177[2] - if !isempty(field1179) + field1182 = unwrapped_fields1181[1] + pretty_name(pp, field1182) + field1183 = unwrapped_fields1181[2] + if !isempty(field1183) newline(pp) - for (i1787, elem1180) in enumerate(field1179) - i1181 = i1787 - 1 - if (i1181 > 0) + for (i1795, elem1184) in enumerate(field1183) + i1185 = i1795 - 1 + if (i1185 > 0) newline(pp) end - pretty_term(pp, elem1180) + pretty_term(pp, elem1184) end end dedent!(pp) @@ -2492,118 +2501,118 @@ function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) end function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) - flat1198 = try_flat(pp, msg, pretty_primitive) - if !isnothing(flat1198) - write(pp, flat1198) + flat1202 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat1202) + write(pp, flat1202) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1788 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1796 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1788 = nothing + _t1796 = nothing end - guard_result1197 = _t1788 - if !isnothing(guard_result1197) + guard_result1201 = _t1796 + if !isnothing(guard_result1201) pretty_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1789 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1797 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1789 = nothing + _t1797 = nothing end - guard_result1196 = _t1789 - if !isnothing(guard_result1196) + guard_result1200 = _t1797 + if !isnothing(guard_result1200) pretty_lt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1790 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1798 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1790 = nothing + _t1798 = nothing end - guard_result1195 = _t1790 - if !isnothing(guard_result1195) + guard_result1199 = _t1798 + if !isnothing(guard_result1199) pretty_lt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1791 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1799 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1791 = nothing + _t1799 = nothing end - guard_result1194 = _t1791 - if !isnothing(guard_result1194) + guard_result1198 = _t1799 + if !isnothing(guard_result1198) pretty_gt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1792 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1800 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1792 = nothing + _t1800 = nothing end - guard_result1193 = _t1792 - if !isnothing(guard_result1193) + guard_result1197 = _t1800 + if !isnothing(guard_result1197) pretty_gt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1793 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1801 = (_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 - _t1793 = nothing + _t1801 = nothing end - guard_result1192 = _t1793 - if !isnothing(guard_result1192) + guard_result1196 = _t1801 + if !isnothing(guard_result1196) pretty_add(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1794 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1802 = (_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 - _t1794 = nothing + _t1802 = nothing end - guard_result1191 = _t1794 - if !isnothing(guard_result1191) + guard_result1195 = _t1802 + if !isnothing(guard_result1195) pretty_minus(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1795 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1803 = (_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 - _t1795 = nothing + _t1803 = nothing end - guard_result1190 = _t1795 - if !isnothing(guard_result1190) + guard_result1194 = _t1803 + if !isnothing(guard_result1194) pretty_multiply(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1796 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1804 = (_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 - _t1796 = nothing + _t1804 = nothing end - guard_result1189 = _t1796 - if !isnothing(guard_result1189) + guard_result1193 = _t1804 + if !isnothing(guard_result1193) pretty_divide(pp, msg) else _dollar_dollar = msg - fields1183 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1184 = fields1183 + fields1187 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1188 = fields1187 write(pp, "(primitive") indent_sexp!(pp) newline(pp) - field1185 = unwrapped_fields1184[1] - pretty_name(pp, field1185) - field1186 = unwrapped_fields1184[2] - if !isempty(field1186) + field1189 = unwrapped_fields1188[1] + pretty_name(pp, field1189) + field1190 = unwrapped_fields1188[2] + if !isempty(field1190) newline(pp) - for (i1797, elem1187) in enumerate(field1186) - i1188 = i1797 - 1 - if (i1188 > 0) + for (i1805, elem1191) in enumerate(field1190) + i1192 = i1805 - 1 + if (i1192 > 0) newline(pp) end - pretty_rel_term(pp, elem1187) + pretty_rel_term(pp, elem1191) end end dedent!(pp) @@ -2622,27 +2631,27 @@ function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1203 = try_flat(pp, msg, pretty_eq) - if !isnothing(flat1203) - write(pp, flat1203) + flat1207 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat1207) + write(pp, flat1207) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1798 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1806 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1798 = nothing + _t1806 = nothing end - fields1199 = _t1798 - unwrapped_fields1200 = fields1199 + fields1203 = _t1806 + unwrapped_fields1204 = fields1203 write(pp, "(=") indent_sexp!(pp) newline(pp) - field1201 = unwrapped_fields1200[1] - pretty_term(pp, field1201) + field1205 = unwrapped_fields1204[1] + pretty_term(pp, field1205) newline(pp) - field1202 = unwrapped_fields1200[2] - pretty_term(pp, field1202) + field1206 = unwrapped_fields1204[2] + pretty_term(pp, field1206) dedent!(pp) write(pp, ")") end @@ -2650,27 +2659,27 @@ function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) - flat1208 = try_flat(pp, msg, pretty_lt) - if !isnothing(flat1208) - write(pp, flat1208) + flat1212 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat1212) + write(pp, flat1212) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1799 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1807 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1799 = nothing + _t1807 = nothing end - fields1204 = _t1799 - unwrapped_fields1205 = fields1204 + fields1208 = _t1807 + unwrapped_fields1209 = fields1208 write(pp, "(<") indent_sexp!(pp) newline(pp) - field1206 = unwrapped_fields1205[1] - pretty_term(pp, field1206) + field1210 = unwrapped_fields1209[1] + pretty_term(pp, field1210) newline(pp) - field1207 = unwrapped_fields1205[2] - pretty_term(pp, field1207) + field1211 = unwrapped_fields1209[2] + pretty_term(pp, field1211) dedent!(pp) write(pp, ")") end @@ -2678,27 +2687,27 @@ function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1213 = try_flat(pp, msg, pretty_lt_eq) - if !isnothing(flat1213) - write(pp, flat1213) + flat1217 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat1217) + write(pp, flat1217) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1800 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1808 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1800 = nothing + _t1808 = nothing end - fields1209 = _t1800 - unwrapped_fields1210 = fields1209 + fields1213 = _t1808 + unwrapped_fields1214 = fields1213 write(pp, "(<=") indent_sexp!(pp) newline(pp) - field1211 = unwrapped_fields1210[1] - pretty_term(pp, field1211) + field1215 = unwrapped_fields1214[1] + pretty_term(pp, field1215) newline(pp) - field1212 = unwrapped_fields1210[2] - pretty_term(pp, field1212) + field1216 = unwrapped_fields1214[2] + pretty_term(pp, field1216) dedent!(pp) write(pp, ")") end @@ -2706,27 +2715,27 @@ function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) - flat1218 = try_flat(pp, msg, pretty_gt) - if !isnothing(flat1218) - write(pp, flat1218) + flat1222 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat1222) + write(pp, flat1222) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1801 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1809 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1801 = nothing + _t1809 = nothing end - fields1214 = _t1801 - unwrapped_fields1215 = fields1214 + fields1218 = _t1809 + unwrapped_fields1219 = fields1218 write(pp, "(>") indent_sexp!(pp) newline(pp) - field1216 = unwrapped_fields1215[1] - pretty_term(pp, field1216) + field1220 = unwrapped_fields1219[1] + pretty_term(pp, field1220) newline(pp) - field1217 = unwrapped_fields1215[2] - pretty_term(pp, field1217) + field1221 = unwrapped_fields1219[2] + pretty_term(pp, field1221) dedent!(pp) write(pp, ")") end @@ -2734,27 +2743,27 @@ function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1223 = try_flat(pp, msg, pretty_gt_eq) - if !isnothing(flat1223) - write(pp, flat1223) + flat1227 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat1227) + write(pp, flat1227) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1802 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1810 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1802 = nothing + _t1810 = nothing end - fields1219 = _t1802 - unwrapped_fields1220 = fields1219 + fields1223 = _t1810 + unwrapped_fields1224 = fields1223 write(pp, "(>=") indent_sexp!(pp) newline(pp) - field1221 = unwrapped_fields1220[1] - pretty_term(pp, field1221) + field1225 = unwrapped_fields1224[1] + pretty_term(pp, field1225) newline(pp) - field1222 = unwrapped_fields1220[2] - pretty_term(pp, field1222) + field1226 = unwrapped_fields1224[2] + pretty_term(pp, field1226) dedent!(pp) write(pp, ")") end @@ -2762,30 +2771,30 @@ function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) - flat1229 = try_flat(pp, msg, pretty_add) - if !isnothing(flat1229) - write(pp, flat1229) + flat1233 = try_flat(pp, msg, pretty_add) + if !isnothing(flat1233) + write(pp, flat1233) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1803 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1811 = (_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 - _t1803 = nothing + _t1811 = nothing end - fields1224 = _t1803 - unwrapped_fields1225 = fields1224 + fields1228 = _t1811 + unwrapped_fields1229 = fields1228 write(pp, "(+") indent_sexp!(pp) newline(pp) - field1226 = unwrapped_fields1225[1] - pretty_term(pp, field1226) + field1230 = unwrapped_fields1229[1] + pretty_term(pp, field1230) newline(pp) - field1227 = unwrapped_fields1225[2] - pretty_term(pp, field1227) + field1231 = unwrapped_fields1229[2] + pretty_term(pp, field1231) newline(pp) - field1228 = unwrapped_fields1225[3] - pretty_term(pp, field1228) + field1232 = unwrapped_fields1229[3] + pretty_term(pp, field1232) dedent!(pp) write(pp, ")") end @@ -2793,30 +2802,30 @@ function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) - flat1235 = try_flat(pp, msg, pretty_minus) - if !isnothing(flat1235) - write(pp, flat1235) + flat1239 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat1239) + write(pp, flat1239) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1804 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1812 = (_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 - _t1804 = nothing + _t1812 = nothing end - fields1230 = _t1804 - unwrapped_fields1231 = fields1230 + fields1234 = _t1812 + unwrapped_fields1235 = fields1234 write(pp, "(-") indent_sexp!(pp) newline(pp) - field1232 = unwrapped_fields1231[1] - pretty_term(pp, field1232) + field1236 = unwrapped_fields1235[1] + pretty_term(pp, field1236) newline(pp) - field1233 = unwrapped_fields1231[2] - pretty_term(pp, field1233) + field1237 = unwrapped_fields1235[2] + pretty_term(pp, field1237) newline(pp) - field1234 = unwrapped_fields1231[3] - pretty_term(pp, field1234) + field1238 = unwrapped_fields1235[3] + pretty_term(pp, field1238) dedent!(pp) write(pp, ")") end @@ -2824,30 +2833,30 @@ function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) - flat1241 = try_flat(pp, msg, pretty_multiply) - if !isnothing(flat1241) - write(pp, flat1241) + flat1245 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat1245) + write(pp, flat1245) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1805 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1813 = (_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 - _t1805 = nothing + _t1813 = nothing end - fields1236 = _t1805 - unwrapped_fields1237 = fields1236 + fields1240 = _t1813 + unwrapped_fields1241 = fields1240 write(pp, "(*") indent_sexp!(pp) newline(pp) - field1238 = unwrapped_fields1237[1] - pretty_term(pp, field1238) + field1242 = unwrapped_fields1241[1] + pretty_term(pp, field1242) newline(pp) - field1239 = unwrapped_fields1237[2] - pretty_term(pp, field1239) + field1243 = unwrapped_fields1241[2] + pretty_term(pp, field1243) newline(pp) - field1240 = unwrapped_fields1237[3] - pretty_term(pp, field1240) + field1244 = unwrapped_fields1241[3] + pretty_term(pp, field1244) dedent!(pp) write(pp, ")") end @@ -2855,30 +2864,30 @@ function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) - flat1247 = try_flat(pp, msg, pretty_divide) - if !isnothing(flat1247) - write(pp, flat1247) + flat1251 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat1251) + write(pp, flat1251) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1806 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1814 = (_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 - _t1806 = nothing + _t1814 = nothing end - fields1242 = _t1806 - unwrapped_fields1243 = fields1242 + fields1246 = _t1814 + unwrapped_fields1247 = fields1246 write(pp, "(/") indent_sexp!(pp) newline(pp) - field1244 = unwrapped_fields1243[1] - pretty_term(pp, field1244) + field1248 = unwrapped_fields1247[1] + pretty_term(pp, field1248) newline(pp) - field1245 = unwrapped_fields1243[2] - pretty_term(pp, field1245) + field1249 = unwrapped_fields1247[2] + pretty_term(pp, field1249) newline(pp) - field1246 = unwrapped_fields1243[3] - pretty_term(pp, field1246) + field1250 = unwrapped_fields1247[3] + pretty_term(pp, field1250) dedent!(pp) write(pp, ")") end @@ -2886,32 +2895,32 @@ function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) - flat1252 = try_flat(pp, msg, pretty_rel_term) - if !isnothing(flat1252) - write(pp, flat1252) + flat1256 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat1256) + write(pp, flat1256) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1807 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1815 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1807 = nothing + _t1815 = nothing end - deconstruct_result1250 = _t1807 - if !isnothing(deconstruct_result1250) - unwrapped1251 = deconstruct_result1250 - pretty_specialized_value(pp, unwrapped1251) + deconstruct_result1254 = _t1815 + if !isnothing(deconstruct_result1254) + unwrapped1255 = deconstruct_result1254 + pretty_specialized_value(pp, unwrapped1255) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1808 = _get_oneof_field(_dollar_dollar, :term) + _t1816 = _get_oneof_field(_dollar_dollar, :term) else - _t1808 = nothing + _t1816 = nothing end - deconstruct_result1248 = _t1808 - if !isnothing(deconstruct_result1248) - unwrapped1249 = deconstruct_result1248 - pretty_term(pp, unwrapped1249) + deconstruct_result1252 = _t1816 + if !isnothing(deconstruct_result1252) + unwrapped1253 = deconstruct_result1252 + pretty_term(pp, unwrapped1253) else throw(ParseError("No matching rule for rel_term")) end @@ -2921,41 +2930,41 @@ function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) end function pretty_specialized_value(pp::PrettyPrinter, msg::Proto.Value) - flat1254 = try_flat(pp, msg, pretty_specialized_value) - if !isnothing(flat1254) - write(pp, flat1254) + flat1258 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat1258) + write(pp, flat1258) return nothing else - fields1253 = msg + fields1257 = msg write(pp, "#") - pretty_raw_value(pp, fields1253) + pretty_raw_value(pp, fields1257) end return nothing end function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) - flat1261 = try_flat(pp, msg, pretty_rel_atom) - if !isnothing(flat1261) - write(pp, flat1261) + flat1265 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat1265) + write(pp, flat1265) return nothing else _dollar_dollar = msg - fields1255 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1256 = fields1255 + fields1259 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1260 = fields1259 write(pp, "(relatom") indent_sexp!(pp) newline(pp) - field1257 = unwrapped_fields1256[1] - pretty_name(pp, field1257) - field1258 = unwrapped_fields1256[2] - if !isempty(field1258) + field1261 = unwrapped_fields1260[1] + pretty_name(pp, field1261) + field1262 = unwrapped_fields1260[2] + if !isempty(field1262) newline(pp) - for (i1809, elem1259) in enumerate(field1258) - i1260 = i1809 - 1 - if (i1260 > 0) + for (i1817, elem1263) in enumerate(field1262) + i1264 = i1817 - 1 + if (i1264 > 0) newline(pp) end - pretty_rel_term(pp, elem1259) + pretty_rel_term(pp, elem1263) end end dedent!(pp) @@ -2965,22 +2974,22 @@ function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) end function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) - flat1266 = try_flat(pp, msg, pretty_cast) - if !isnothing(flat1266) - write(pp, flat1266) + flat1270 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1270) + write(pp, flat1270) return nothing else _dollar_dollar = msg - fields1262 = (_dollar_dollar.input, _dollar_dollar.result,) - unwrapped_fields1263 = fields1262 + fields1266 = (_dollar_dollar.input, _dollar_dollar.result,) + unwrapped_fields1267 = fields1266 write(pp, "(cast") indent_sexp!(pp) newline(pp) - field1264 = unwrapped_fields1263[1] - pretty_term(pp, field1264) + field1268 = unwrapped_fields1267[1] + pretty_term(pp, field1268) newline(pp) - field1265 = unwrapped_fields1263[2] - pretty_term(pp, field1265) + field1269 = unwrapped_fields1267[2] + pretty_term(pp, field1269) dedent!(pp) write(pp, ")") end @@ -2988,22 +2997,22 @@ function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) end function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) - flat1270 = try_flat(pp, msg, pretty_attrs) - if !isnothing(flat1270) - write(pp, flat1270) + flat1274 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1274) + write(pp, flat1274) return nothing else - fields1267 = msg + fields1271 = msg write(pp, "(attrs") indent_sexp!(pp) - if !isempty(fields1267) + if !isempty(fields1271) newline(pp) - for (i1810, elem1268) in enumerate(fields1267) - i1269 = i1810 - 1 - if (i1269 > 0) + for (i1818, elem1272) in enumerate(fields1271) + i1273 = i1818 - 1 + if (i1273 > 0) newline(pp) end - pretty_attribute(pp, elem1268) + pretty_attribute(pp, elem1272) end end dedent!(pp) @@ -3013,28 +3022,28 @@ function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) end function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) - flat1277 = try_flat(pp, msg, pretty_attribute) - if !isnothing(flat1277) - write(pp, flat1277) + flat1281 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1281) + write(pp, flat1281) return nothing else _dollar_dollar = msg - fields1271 = (_dollar_dollar.name, _dollar_dollar.args,) - unwrapped_fields1272 = fields1271 + fields1275 = (_dollar_dollar.name, _dollar_dollar.args,) + unwrapped_fields1276 = fields1275 write(pp, "(attribute") indent_sexp!(pp) newline(pp) - field1273 = unwrapped_fields1272[1] - pretty_name(pp, field1273) - field1274 = unwrapped_fields1272[2] - if !isempty(field1274) + field1277 = unwrapped_fields1276[1] + pretty_name(pp, field1277) + field1278 = unwrapped_fields1276[2] + if !isempty(field1278) newline(pp) - for (i1811, elem1275) in enumerate(field1274) - i1276 = i1811 - 1 - if (i1276 > 0) + for (i1819, elem1279) in enumerate(field1278) + i1280 = i1819 - 1 + if (i1280 > 0) newline(pp) end - pretty_raw_value(pp, elem1275) + pretty_raw_value(pp, elem1279) end end dedent!(pp) @@ -3044,40 +3053,40 @@ function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) end function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) - flat1286 = try_flat(pp, msg, pretty_algorithm) - if !isnothing(flat1286) - write(pp, flat1286) + flat1290 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1290) + write(pp, flat1290) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1812 = _dollar_dollar.attrs + _t1820 = _dollar_dollar.attrs else - _t1812 = nothing + _t1820 = nothing end - fields1278 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1812,) - unwrapped_fields1279 = fields1278 + fields1282 = (_dollar_dollar.var"#global", _dollar_dollar.body, _t1820,) + unwrapped_fields1283 = fields1282 write(pp, "(algorithm") indent_sexp!(pp) - field1280 = unwrapped_fields1279[1] - if !isempty(field1280) + field1284 = unwrapped_fields1283[1] + if !isempty(field1284) newline(pp) - for (i1813, elem1281) in enumerate(field1280) - i1282 = i1813 - 1 - if (i1282 > 0) + for (i1821, elem1285) in enumerate(field1284) + i1286 = i1821 - 1 + if (i1286 > 0) newline(pp) end - pretty_relation_id(pp, elem1281) + pretty_relation_id(pp, elem1285) end end newline(pp) - field1283 = unwrapped_fields1279[2] - pretty_script(pp, field1283) - field1284 = unwrapped_fields1279[3] - if !isnothing(field1284) + field1287 = unwrapped_fields1283[2] + pretty_script(pp, field1287) + field1288 = unwrapped_fields1283[3] + if !isnothing(field1288) newline(pp) - opt_val1285 = field1284 - pretty_attrs(pp, opt_val1285) + opt_val1289 = field1288 + pretty_attrs(pp, opt_val1289) end dedent!(pp) write(pp, ")") @@ -3086,24 +3095,24 @@ function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) end function pretty_script(pp::PrettyPrinter, msg::Proto.Script) - flat1291 = try_flat(pp, msg, pretty_script) - if !isnothing(flat1291) - write(pp, flat1291) + flat1295 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1295) + write(pp, flat1295) return nothing else _dollar_dollar = msg - fields1287 = _dollar_dollar.constructs - unwrapped_fields1288 = fields1287 + fields1291 = _dollar_dollar.constructs + unwrapped_fields1292 = fields1291 write(pp, "(script") indent_sexp!(pp) - if !isempty(unwrapped_fields1288) + if !isempty(unwrapped_fields1292) newline(pp) - for (i1814, elem1289) in enumerate(unwrapped_fields1288) - i1290 = i1814 - 1 - if (i1290 > 0) + for (i1822, elem1293) in enumerate(unwrapped_fields1292) + i1294 = i1822 - 1 + if (i1294 > 0) newline(pp) end - pretty_construct(pp, elem1289) + pretty_construct(pp, elem1293) end end dedent!(pp) @@ -3113,32 +3122,32 @@ function pretty_script(pp::PrettyPrinter, msg::Proto.Script) end function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) - flat1296 = try_flat(pp, msg, pretty_construct) - if !isnothing(flat1296) - write(pp, flat1296) + flat1300 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1300) + write(pp, flat1300) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1815 = _get_oneof_field(_dollar_dollar, :loop) + _t1823 = _get_oneof_field(_dollar_dollar, :loop) else - _t1815 = nothing + _t1823 = nothing end - deconstruct_result1294 = _t1815 - if !isnothing(deconstruct_result1294) - unwrapped1295 = deconstruct_result1294 - pretty_loop(pp, unwrapped1295) + deconstruct_result1298 = _t1823 + if !isnothing(deconstruct_result1298) + unwrapped1299 = deconstruct_result1298 + pretty_loop(pp, unwrapped1299) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1816 = _get_oneof_field(_dollar_dollar, :instruction) + _t1824 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1816 = nothing + _t1824 = nothing end - deconstruct_result1292 = _t1816 - if !isnothing(deconstruct_result1292) - unwrapped1293 = deconstruct_result1292 - pretty_instruction(pp, unwrapped1293) + deconstruct_result1296 = _t1824 + if !isnothing(deconstruct_result1296) + unwrapped1297 = deconstruct_result1296 + pretty_instruction(pp, unwrapped1297) else throw(ParseError("No matching rule for construct")) end @@ -3148,32 +3157,32 @@ function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) end function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) - flat1303 = try_flat(pp, msg, pretty_loop) - if !isnothing(flat1303) - write(pp, flat1303) + flat1307 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1307) + write(pp, flat1307) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1817 = _dollar_dollar.attrs + _t1825 = _dollar_dollar.attrs else - _t1817 = nothing + _t1825 = nothing end - fields1297 = (_dollar_dollar.init, _dollar_dollar.body, _t1817,) - unwrapped_fields1298 = fields1297 + fields1301 = (_dollar_dollar.init, _dollar_dollar.body, _t1825,) + unwrapped_fields1302 = fields1301 write(pp, "(loop") indent_sexp!(pp) newline(pp) - field1299 = unwrapped_fields1298[1] - pretty_init(pp, field1299) + field1303 = unwrapped_fields1302[1] + pretty_init(pp, field1303) newline(pp) - field1300 = unwrapped_fields1298[2] - pretty_script(pp, field1300) - field1301 = unwrapped_fields1298[3] - if !isnothing(field1301) + field1304 = unwrapped_fields1302[2] + pretty_script(pp, field1304) + field1305 = unwrapped_fields1302[3] + if !isnothing(field1305) newline(pp) - opt_val1302 = field1301 - pretty_attrs(pp, opt_val1302) + opt_val1306 = field1305 + pretty_attrs(pp, opt_val1306) end dedent!(pp) write(pp, ")") @@ -3182,22 +3191,22 @@ function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) end function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) - flat1307 = try_flat(pp, msg, pretty_init) - if !isnothing(flat1307) - write(pp, flat1307) + flat1311 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1311) + write(pp, flat1311) return nothing else - fields1304 = msg + fields1308 = msg write(pp, "(init") indent_sexp!(pp) - if !isempty(fields1304) + if !isempty(fields1308) newline(pp) - for (i1818, elem1305) in enumerate(fields1304) - i1306 = i1818 - 1 - if (i1306 > 0) + for (i1826, elem1309) in enumerate(fields1308) + i1310 = i1826 - 1 + if (i1310 > 0) newline(pp) end - pretty_instruction(pp, elem1305) + pretty_instruction(pp, elem1309) end end dedent!(pp) @@ -3207,65 +3216,65 @@ function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) end function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) - flat1318 = try_flat(pp, msg, pretty_instruction) - if !isnothing(flat1318) - write(pp, flat1318) + flat1322 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1322) + write(pp, flat1322) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1819 = _get_oneof_field(_dollar_dollar, :assign) + _t1827 = _get_oneof_field(_dollar_dollar, :assign) else - _t1819 = nothing + _t1827 = nothing end - deconstruct_result1316 = _t1819 - if !isnothing(deconstruct_result1316) - unwrapped1317 = deconstruct_result1316 - pretty_assign(pp, unwrapped1317) + deconstruct_result1320 = _t1827 + if !isnothing(deconstruct_result1320) + unwrapped1321 = deconstruct_result1320 + pretty_assign(pp, unwrapped1321) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1820 = _get_oneof_field(_dollar_dollar, :upsert) + _t1828 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1820 = nothing + _t1828 = nothing end - deconstruct_result1314 = _t1820 - if !isnothing(deconstruct_result1314) - unwrapped1315 = deconstruct_result1314 - pretty_upsert(pp, unwrapped1315) + deconstruct_result1318 = _t1828 + if !isnothing(deconstruct_result1318) + unwrapped1319 = deconstruct_result1318 + pretty_upsert(pp, unwrapped1319) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1821 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1829 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1821 = nothing + _t1829 = nothing end - deconstruct_result1312 = _t1821 - if !isnothing(deconstruct_result1312) - unwrapped1313 = deconstruct_result1312 - pretty_break(pp, unwrapped1313) + deconstruct_result1316 = _t1829 + if !isnothing(deconstruct_result1316) + unwrapped1317 = deconstruct_result1316 + pretty_break(pp, unwrapped1317) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1822 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1830 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1822 = nothing + _t1830 = nothing end - deconstruct_result1310 = _t1822 - if !isnothing(deconstruct_result1310) - unwrapped1311 = deconstruct_result1310 - pretty_monoid_def(pp, unwrapped1311) + deconstruct_result1314 = _t1830 + if !isnothing(deconstruct_result1314) + unwrapped1315 = deconstruct_result1314 + pretty_monoid_def(pp, unwrapped1315) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1823 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1831 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1823 = nothing + _t1831 = nothing end - deconstruct_result1308 = _t1823 - if !isnothing(deconstruct_result1308) - unwrapped1309 = deconstruct_result1308 - pretty_monus_def(pp, unwrapped1309) + deconstruct_result1312 = _t1831 + if !isnothing(deconstruct_result1312) + unwrapped1313 = deconstruct_result1312 + pretty_monus_def(pp, unwrapped1313) else throw(ParseError("No matching rule for instruction")) end @@ -3278,32 +3287,32 @@ function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) end function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) - flat1325 = try_flat(pp, msg, pretty_assign) - if !isnothing(flat1325) - write(pp, flat1325) + flat1329 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1329) + write(pp, flat1329) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1824 = _dollar_dollar.attrs + _t1832 = _dollar_dollar.attrs else - _t1824 = nothing + _t1832 = nothing end - fields1319 = (_dollar_dollar.name, _dollar_dollar.body, _t1824,) - unwrapped_fields1320 = fields1319 + fields1323 = (_dollar_dollar.name, _dollar_dollar.body, _t1832,) + unwrapped_fields1324 = fields1323 write(pp, "(assign") indent_sexp!(pp) newline(pp) - field1321 = unwrapped_fields1320[1] - pretty_relation_id(pp, field1321) + field1325 = unwrapped_fields1324[1] + pretty_relation_id(pp, field1325) newline(pp) - field1322 = unwrapped_fields1320[2] - pretty_abstraction(pp, field1322) - field1323 = unwrapped_fields1320[3] - if !isnothing(field1323) + field1326 = unwrapped_fields1324[2] + pretty_abstraction(pp, field1326) + field1327 = unwrapped_fields1324[3] + if !isnothing(field1327) newline(pp) - opt_val1324 = field1323 - pretty_attrs(pp, opt_val1324) + opt_val1328 = field1327 + pretty_attrs(pp, opt_val1328) end dedent!(pp) write(pp, ")") @@ -3312,32 +3321,32 @@ function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) end function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) - flat1332 = try_flat(pp, msg, pretty_upsert) - if !isnothing(flat1332) - write(pp, flat1332) + flat1336 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1336) + write(pp, flat1336) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1825 = _dollar_dollar.attrs + _t1833 = _dollar_dollar.attrs else - _t1825 = nothing + _t1833 = nothing end - fields1326 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1825,) - unwrapped_fields1327 = fields1326 + fields1330 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1833,) + unwrapped_fields1331 = fields1330 write(pp, "(upsert") indent_sexp!(pp) newline(pp) - field1328 = unwrapped_fields1327[1] - pretty_relation_id(pp, field1328) + field1332 = unwrapped_fields1331[1] + pretty_relation_id(pp, field1332) newline(pp) - field1329 = unwrapped_fields1327[2] - pretty_abstraction_with_arity(pp, field1329) - field1330 = unwrapped_fields1327[3] - if !isnothing(field1330) + field1333 = unwrapped_fields1331[2] + pretty_abstraction_with_arity(pp, field1333) + field1334 = unwrapped_fields1331[3] + if !isnothing(field1334) newline(pp) - opt_val1331 = field1330 - pretty_attrs(pp, opt_val1331) + opt_val1335 = field1334 + pretty_attrs(pp, opt_val1335) end dedent!(pp) write(pp, ")") @@ -3346,22 +3355,22 @@ function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) end function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstraction, Int64}) - flat1337 = try_flat(pp, msg, pretty_abstraction_with_arity) - if !isnothing(flat1337) - write(pp, flat1337) + flat1341 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1341) + write(pp, flat1341) return nothing else _dollar_dollar = msg - _t1826 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) - fields1333 = (_t1826, _dollar_dollar[1].value,) - unwrapped_fields1334 = fields1333 + _t1834 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + fields1337 = (_t1834, _dollar_dollar[1].value,) + unwrapped_fields1338 = fields1337 write(pp, "(") indent!(pp) - field1335 = unwrapped_fields1334[1] - pretty_bindings(pp, field1335) + field1339 = unwrapped_fields1338[1] + pretty_bindings(pp, field1339) newline(pp) - field1336 = unwrapped_fields1334[2] - pretty_formula(pp, field1336) + field1340 = unwrapped_fields1338[2] + pretty_formula(pp, field1340) dedent!(pp) write(pp, ")") end @@ -3369,32 +3378,32 @@ function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstr end function pretty_break(pp::PrettyPrinter, msg::Proto.Break) - flat1344 = try_flat(pp, msg, pretty_break) - if !isnothing(flat1344) - write(pp, flat1344) + flat1348 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1348) + write(pp, flat1348) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1827 = _dollar_dollar.attrs + _t1835 = _dollar_dollar.attrs else - _t1827 = nothing + _t1835 = nothing end - fields1338 = (_dollar_dollar.name, _dollar_dollar.body, _t1827,) - unwrapped_fields1339 = fields1338 + fields1342 = (_dollar_dollar.name, _dollar_dollar.body, _t1835,) + unwrapped_fields1343 = fields1342 write(pp, "(break") indent_sexp!(pp) newline(pp) - field1340 = unwrapped_fields1339[1] - pretty_relation_id(pp, field1340) + field1344 = unwrapped_fields1343[1] + pretty_relation_id(pp, field1344) newline(pp) - field1341 = unwrapped_fields1339[2] - pretty_abstraction(pp, field1341) - field1342 = unwrapped_fields1339[3] - if !isnothing(field1342) + field1345 = unwrapped_fields1343[2] + pretty_abstraction(pp, field1345) + field1346 = unwrapped_fields1343[3] + if !isnothing(field1346) newline(pp) - opt_val1343 = field1342 - pretty_attrs(pp, opt_val1343) + opt_val1347 = field1346 + pretty_attrs(pp, opt_val1347) end dedent!(pp) write(pp, ")") @@ -3403,35 +3412,35 @@ function pretty_break(pp::PrettyPrinter, msg::Proto.Break) end function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) - flat1352 = try_flat(pp, msg, pretty_monoid_def) - if !isnothing(flat1352) - write(pp, flat1352) + flat1356 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1356) + write(pp, flat1356) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1828 = _dollar_dollar.attrs + _t1836 = _dollar_dollar.attrs else - _t1828 = nothing + _t1836 = nothing end - fields1345 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1828,) - unwrapped_fields1346 = fields1345 + fields1349 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1836,) + unwrapped_fields1350 = fields1349 write(pp, "(monoid") indent_sexp!(pp) newline(pp) - field1347 = unwrapped_fields1346[1] - pretty_monoid(pp, field1347) + field1351 = unwrapped_fields1350[1] + pretty_monoid(pp, field1351) newline(pp) - field1348 = unwrapped_fields1346[2] - pretty_relation_id(pp, field1348) + field1352 = unwrapped_fields1350[2] + pretty_relation_id(pp, field1352) newline(pp) - field1349 = unwrapped_fields1346[3] - pretty_abstraction_with_arity(pp, field1349) - field1350 = unwrapped_fields1346[4] - if !isnothing(field1350) + field1353 = unwrapped_fields1350[3] + pretty_abstraction_with_arity(pp, field1353) + field1354 = unwrapped_fields1350[4] + if !isnothing(field1354) newline(pp) - opt_val1351 = field1350 - pretty_attrs(pp, opt_val1351) + opt_val1355 = field1354 + pretty_attrs(pp, opt_val1355) end dedent!(pp) write(pp, ")") @@ -3440,54 +3449,54 @@ function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) end function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) - flat1361 = try_flat(pp, msg, pretty_monoid) - if !isnothing(flat1361) - write(pp, flat1361) + flat1365 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1365) + write(pp, flat1365) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1829 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1837 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1829 = nothing + _t1837 = nothing end - deconstruct_result1359 = _t1829 - if !isnothing(deconstruct_result1359) - unwrapped1360 = deconstruct_result1359 - pretty_or_monoid(pp, unwrapped1360) + deconstruct_result1363 = _t1837 + if !isnothing(deconstruct_result1363) + unwrapped1364 = deconstruct_result1363 + pretty_or_monoid(pp, unwrapped1364) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1830 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1838 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1830 = nothing + _t1838 = nothing end - deconstruct_result1357 = _t1830 - if !isnothing(deconstruct_result1357) - unwrapped1358 = deconstruct_result1357 - pretty_min_monoid(pp, unwrapped1358) + deconstruct_result1361 = _t1838 + if !isnothing(deconstruct_result1361) + unwrapped1362 = deconstruct_result1361 + pretty_min_monoid(pp, unwrapped1362) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1831 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1839 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1831 = nothing + _t1839 = nothing end - deconstruct_result1355 = _t1831 - if !isnothing(deconstruct_result1355) - unwrapped1356 = deconstruct_result1355 - pretty_max_monoid(pp, unwrapped1356) + deconstruct_result1359 = _t1839 + if !isnothing(deconstruct_result1359) + unwrapped1360 = deconstruct_result1359 + pretty_max_monoid(pp, unwrapped1360) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1832 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1840 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1832 = nothing + _t1840 = nothing end - deconstruct_result1353 = _t1832 - if !isnothing(deconstruct_result1353) - unwrapped1354 = deconstruct_result1353 - pretty_sum_monoid(pp, unwrapped1354) + deconstruct_result1357 = _t1840 + if !isnothing(deconstruct_result1357) + unwrapped1358 = deconstruct_result1357 + pretty_sum_monoid(pp, unwrapped1358) else throw(ParseError("No matching rule for monoid")) end @@ -3499,24 +3508,24 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1362 = msg + fields1366 = msg write(pp, "(or)") return nothing end function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) - flat1365 = try_flat(pp, msg, pretty_min_monoid) - if !isnothing(flat1365) - write(pp, flat1365) + flat1369 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1369) + write(pp, flat1369) return nothing else _dollar_dollar = msg - fields1363 = _dollar_dollar.var"#type" - unwrapped_fields1364 = fields1363 + fields1367 = _dollar_dollar.var"#type" + unwrapped_fields1368 = fields1367 write(pp, "(min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1364) + pretty_type(pp, unwrapped_fields1368) dedent!(pp) write(pp, ")") end @@ -3524,18 +3533,18 @@ function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) end function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) - flat1368 = try_flat(pp, msg, pretty_max_monoid) - if !isnothing(flat1368) - write(pp, flat1368) + flat1372 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1372) + write(pp, flat1372) return nothing else _dollar_dollar = msg - fields1366 = _dollar_dollar.var"#type" - unwrapped_fields1367 = fields1366 + fields1370 = _dollar_dollar.var"#type" + unwrapped_fields1371 = fields1370 write(pp, "(max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1367) + pretty_type(pp, unwrapped_fields1371) dedent!(pp) write(pp, ")") end @@ -3543,18 +3552,18 @@ function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) end function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) - flat1371 = try_flat(pp, msg, pretty_sum_monoid) - if !isnothing(flat1371) - write(pp, flat1371) + flat1375 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1375) + write(pp, flat1375) return nothing else _dollar_dollar = msg - fields1369 = _dollar_dollar.var"#type" - unwrapped_fields1370 = fields1369 + fields1373 = _dollar_dollar.var"#type" + unwrapped_fields1374 = fields1373 write(pp, "(sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1370) + pretty_type(pp, unwrapped_fields1374) dedent!(pp) write(pp, ")") end @@ -3562,35 +3571,35 @@ function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) end function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) - flat1379 = try_flat(pp, msg, pretty_monus_def) - if !isnothing(flat1379) - write(pp, flat1379) + flat1383 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1383) + write(pp, flat1383) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1833 = _dollar_dollar.attrs + _t1841 = _dollar_dollar.attrs else - _t1833 = nothing + _t1841 = nothing end - fields1372 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1833,) - unwrapped_fields1373 = fields1372 + fields1376 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1841,) + unwrapped_fields1377 = fields1376 write(pp, "(monus") indent_sexp!(pp) newline(pp) - field1374 = unwrapped_fields1373[1] - pretty_monoid(pp, field1374) + field1378 = unwrapped_fields1377[1] + pretty_monoid(pp, field1378) newline(pp) - field1375 = unwrapped_fields1373[2] - pretty_relation_id(pp, field1375) + field1379 = unwrapped_fields1377[2] + pretty_relation_id(pp, field1379) newline(pp) - field1376 = unwrapped_fields1373[3] - pretty_abstraction_with_arity(pp, field1376) - field1377 = unwrapped_fields1373[4] - if !isnothing(field1377) + field1380 = unwrapped_fields1377[3] + pretty_abstraction_with_arity(pp, field1380) + field1381 = unwrapped_fields1377[4] + if !isnothing(field1381) newline(pp) - opt_val1378 = field1377 - pretty_attrs(pp, opt_val1378) + opt_val1382 = field1381 + pretty_attrs(pp, opt_val1382) end dedent!(pp) write(pp, ")") @@ -3599,28 +3608,28 @@ function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) end function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) - flat1386 = try_flat(pp, msg, pretty_constraint) - if !isnothing(flat1386) - write(pp, flat1386) + flat1390 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1390) + write(pp, flat1390) return nothing else _dollar_dollar = msg - fields1380 = (_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_fields1381 = fields1380 + fields1384 = (_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_fields1385 = fields1384 write(pp, "(functional_dependency") indent_sexp!(pp) newline(pp) - field1382 = unwrapped_fields1381[1] - pretty_relation_id(pp, field1382) + field1386 = unwrapped_fields1385[1] + pretty_relation_id(pp, field1386) newline(pp) - field1383 = unwrapped_fields1381[2] - pretty_abstraction(pp, field1383) + field1387 = unwrapped_fields1385[2] + pretty_abstraction(pp, field1387) newline(pp) - field1384 = unwrapped_fields1381[3] - pretty_functional_dependency_keys(pp, field1384) + field1388 = unwrapped_fields1385[3] + pretty_functional_dependency_keys(pp, field1388) newline(pp) - field1385 = unwrapped_fields1381[4] - pretty_functional_dependency_values(pp, field1385) + field1389 = unwrapped_fields1385[4] + pretty_functional_dependency_values(pp, field1389) dedent!(pp) write(pp, ")") end @@ -3628,22 +3637,22 @@ function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) end function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1390 = try_flat(pp, msg, pretty_functional_dependency_keys) - if !isnothing(flat1390) - write(pp, flat1390) + flat1394 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1394) + write(pp, flat1394) return nothing else - fields1387 = msg + fields1391 = msg write(pp, "(keys") indent_sexp!(pp) - if !isempty(fields1387) + if !isempty(fields1391) newline(pp) - for (i1834, elem1388) in enumerate(fields1387) - i1389 = i1834 - 1 - if (i1389 > 0) + for (i1842, elem1392) in enumerate(fields1391) + i1393 = i1842 - 1 + if (i1393 > 0) newline(pp) end - pretty_var(pp, elem1388) + pretty_var(pp, elem1392) end end dedent!(pp) @@ -3653,22 +3662,22 @@ function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto. end function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1394 = try_flat(pp, msg, pretty_functional_dependency_values) - if !isnothing(flat1394) - write(pp, flat1394) + flat1398 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1398) + write(pp, flat1398) return nothing else - fields1391 = msg + fields1395 = msg write(pp, "(values") indent_sexp!(pp) - if !isempty(fields1391) + if !isempty(fields1395) newline(pp) - for (i1835, elem1392) in enumerate(fields1391) - i1393 = i1835 - 1 - if (i1393 > 0) + for (i1843, elem1396) in enumerate(fields1395) + i1397 = i1843 - 1 + if (i1397 > 0) newline(pp) end - pretty_var(pp, elem1392) + pretty_var(pp, elem1396) end end dedent!(pp) @@ -3678,54 +3687,54 @@ function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Prot end function pretty_data(pp::PrettyPrinter, msg::Proto.Data) - flat1403 = try_flat(pp, msg, pretty_data) - if !isnothing(flat1403) - write(pp, flat1403) + flat1407 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1407) + write(pp, flat1407) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("edb")) - _t1836 = _get_oneof_field(_dollar_dollar, :edb) + _t1844 = _get_oneof_field(_dollar_dollar, :edb) else - _t1836 = nothing + _t1844 = nothing end - deconstruct_result1401 = _t1836 - if !isnothing(deconstruct_result1401) - unwrapped1402 = deconstruct_result1401 - pretty_edb(pp, unwrapped1402) + deconstruct_result1405 = _t1844 + if !isnothing(deconstruct_result1405) + unwrapped1406 = deconstruct_result1405 + pretty_edb(pp, unwrapped1406) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1837 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1845 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1837 = nothing + _t1845 = nothing end - deconstruct_result1399 = _t1837 - if !isnothing(deconstruct_result1399) - unwrapped1400 = deconstruct_result1399 - pretty_betree_relation(pp, unwrapped1400) + deconstruct_result1403 = _t1845 + if !isnothing(deconstruct_result1403) + unwrapped1404 = deconstruct_result1403 + pretty_betree_relation(pp, unwrapped1404) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1838 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1846 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1838 = nothing + _t1846 = nothing end - deconstruct_result1397 = _t1838 - if !isnothing(deconstruct_result1397) - unwrapped1398 = deconstruct_result1397 - pretty_csv_data(pp, unwrapped1398) + deconstruct_result1401 = _t1846 + if !isnothing(deconstruct_result1401) + unwrapped1402 = deconstruct_result1401 + pretty_csv_data(pp, unwrapped1402) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("iceberg_data")) - _t1839 = _get_oneof_field(_dollar_dollar, :iceberg_data) + _t1847 = _get_oneof_field(_dollar_dollar, :iceberg_data) else - _t1839 = nothing + _t1847 = nothing end - deconstruct_result1395 = _t1839 - if !isnothing(deconstruct_result1395) - unwrapped1396 = deconstruct_result1395 - pretty_iceberg_data(pp, unwrapped1396) + deconstruct_result1399 = _t1847 + if !isnothing(deconstruct_result1399) + unwrapped1400 = deconstruct_result1399 + pretty_iceberg_data(pp, unwrapped1400) else throw(ParseError("No matching rule for data")) end @@ -3737,25 +3746,25 @@ function pretty_data(pp::PrettyPrinter, msg::Proto.Data) end function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) - flat1409 = try_flat(pp, msg, pretty_edb) - if !isnothing(flat1409) - write(pp, flat1409) + flat1413 = try_flat(pp, msg, pretty_edb) + if !isnothing(flat1413) + write(pp, flat1413) return nothing else _dollar_dollar = msg - fields1404 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - unwrapped_fields1405 = fields1404 + fields1408 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + unwrapped_fields1409 = fields1408 write(pp, "(edb") indent_sexp!(pp) newline(pp) - field1406 = unwrapped_fields1405[1] - pretty_relation_id(pp, field1406) + field1410 = unwrapped_fields1409[1] + pretty_relation_id(pp, field1410) newline(pp) - field1407 = unwrapped_fields1405[2] - pretty_edb_path(pp, field1407) + field1411 = unwrapped_fields1409[2] + pretty_edb_path(pp, field1411) newline(pp) - field1408 = unwrapped_fields1405[3] - pretty_edb_types(pp, field1408) + field1412 = unwrapped_fields1409[3] + pretty_edb_types(pp, field1412) dedent!(pp) write(pp, ")") end @@ -3763,20 +3772,20 @@ function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) end function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) - flat1413 = try_flat(pp, msg, pretty_edb_path) - if !isnothing(flat1413) - write(pp, flat1413) + flat1417 = try_flat(pp, msg, pretty_edb_path) + if !isnothing(flat1417) + write(pp, flat1417) return nothing else - fields1410 = msg + fields1414 = msg write(pp, "[") indent!(pp) - for (i1840, elem1411) in enumerate(fields1410) - i1412 = i1840 - 1 - if (i1412 > 0) + for (i1848, elem1415) in enumerate(fields1414) + i1416 = i1848 - 1 + if (i1416 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1411)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1415)) end dedent!(pp) write(pp, "]") @@ -3785,20 +3794,20 @@ function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1417 = try_flat(pp, msg, pretty_edb_types) - if !isnothing(flat1417) - write(pp, flat1417) + flat1421 = try_flat(pp, msg, pretty_edb_types) + if !isnothing(flat1421) + write(pp, flat1421) return nothing else - fields1414 = msg + fields1418 = msg write(pp, "[") indent!(pp) - for (i1841, elem1415) in enumerate(fields1414) - i1416 = i1841 - 1 - if (i1416 > 0) + for (i1849, elem1419) in enumerate(fields1418) + i1420 = i1849 - 1 + if (i1420 > 0) newline(pp) end - pretty_type(pp, elem1415) + pretty_type(pp, elem1419) end dedent!(pp) write(pp, "]") @@ -3807,22 +3816,22 @@ function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) end function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) - flat1422 = try_flat(pp, msg, pretty_betree_relation) - if !isnothing(flat1422) - write(pp, flat1422) + flat1426 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1426) + write(pp, flat1426) return nothing else _dollar_dollar = msg - fields1418 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - unwrapped_fields1419 = fields1418 + fields1422 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + unwrapped_fields1423 = fields1422 write(pp, "(betree_relation") indent_sexp!(pp) newline(pp) - field1420 = unwrapped_fields1419[1] - pretty_relation_id(pp, field1420) + field1424 = unwrapped_fields1423[1] + pretty_relation_id(pp, field1424) newline(pp) - field1421 = unwrapped_fields1419[2] - pretty_betree_info(pp, field1421) + field1425 = unwrapped_fields1423[2] + pretty_betree_info(pp, field1425) dedent!(pp) write(pp, ")") end @@ -3830,26 +3839,26 @@ function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) end function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) - flat1428 = try_flat(pp, msg, pretty_betree_info) - if !isnothing(flat1428) - write(pp, flat1428) + flat1432 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1432) + write(pp, flat1432) return nothing else _dollar_dollar = msg - _t1842 = deconstruct_betree_info_config(pp, _dollar_dollar) - fields1423 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1842,) - unwrapped_fields1424 = fields1423 + _t1850 = deconstruct_betree_info_config(pp, _dollar_dollar) + fields1427 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1850,) + unwrapped_fields1428 = fields1427 write(pp, "(betree_info") indent_sexp!(pp) newline(pp) - field1425 = unwrapped_fields1424[1] - pretty_betree_info_key_types(pp, field1425) + field1429 = unwrapped_fields1428[1] + pretty_betree_info_key_types(pp, field1429) newline(pp) - field1426 = unwrapped_fields1424[2] - pretty_betree_info_value_types(pp, field1426) + field1430 = unwrapped_fields1428[2] + pretty_betree_info_value_types(pp, field1430) newline(pp) - field1427 = unwrapped_fields1424[3] - pretty_config_dict(pp, field1427) + field1431 = unwrapped_fields1428[3] + pretty_config_dict(pp, field1431) dedent!(pp) write(pp, ")") end @@ -3857,22 +3866,22 @@ function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) end function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1432 = try_flat(pp, msg, pretty_betree_info_key_types) - if !isnothing(flat1432) - write(pp, flat1432) + flat1436 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1436) + write(pp, flat1436) return nothing else - fields1429 = msg + fields1433 = msg write(pp, "(key_types") indent_sexp!(pp) - if !isempty(fields1429) + if !isempty(fields1433) newline(pp) - for (i1843, elem1430) in enumerate(fields1429) - i1431 = i1843 - 1 - if (i1431 > 0) + for (i1851, elem1434) in enumerate(fields1433) + i1435 = i1851 - 1 + if (i1435 > 0) newline(pp) end - pretty_type(pp, elem1430) + pretty_type(pp, elem1434) end end dedent!(pp) @@ -3882,22 +3891,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"}) - flat1436 = try_flat(pp, msg, pretty_betree_info_value_types) - if !isnothing(flat1436) - write(pp, flat1436) + flat1440 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1440) + write(pp, flat1440) return nothing else - fields1433 = msg + fields1437 = msg write(pp, "(value_types") indent_sexp!(pp) - if !isempty(fields1433) + if !isempty(fields1437) newline(pp) - for (i1844, elem1434) in enumerate(fields1433) - i1435 = i1844 - 1 - if (i1435 > 0) + for (i1852, elem1438) in enumerate(fields1437) + i1439 = i1852 - 1 + if (i1439 > 0) newline(pp) end - pretty_type(pp, elem1434) + pretty_type(pp, elem1438) end end dedent!(pp) @@ -3907,39 +3916,39 @@ function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var end function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) - flat1446 = try_flat(pp, msg, pretty_csv_data) - if !isnothing(flat1446) - write(pp, flat1446) + flat1450 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1450) + write(pp, flat1450) return nothing else _dollar_dollar = msg - _t1845 = deconstruct_csv_data_columns_optional(pp, _dollar_dollar) - _t1846 = deconstruct_csv_data_relations_optional(pp, _dollar_dollar) - fields1437 = (_dollar_dollar.locator, _dollar_dollar.config, _t1845, _t1846, _dollar_dollar.asof,) - unwrapped_fields1438 = fields1437 + _t1853 = deconstruct_csv_data_columns_optional(pp, _dollar_dollar) + _t1854 = deconstruct_csv_data_relations_optional(pp, _dollar_dollar) + fields1441 = (_dollar_dollar.locator, _dollar_dollar.config, _t1853, _t1854, _dollar_dollar.asof,) + unwrapped_fields1442 = fields1441 write(pp, "(csv_data") indent_sexp!(pp) newline(pp) - field1439 = unwrapped_fields1438[1] - pretty_csvlocator(pp, field1439) + field1443 = unwrapped_fields1442[1] + pretty_csvlocator(pp, field1443) newline(pp) - field1440 = unwrapped_fields1438[2] - pretty_csv_config(pp, field1440) - field1441 = unwrapped_fields1438[3] - if !isnothing(field1441) + field1444 = unwrapped_fields1442[2] + pretty_csv_config(pp, field1444) + field1445 = unwrapped_fields1442[3] + if !isnothing(field1445) newline(pp) - opt_val1442 = field1441 - pretty_gnf_columns(pp, opt_val1442) + opt_val1446 = field1445 + pretty_gnf_columns(pp, opt_val1446) end - field1443 = unwrapped_fields1438[4] - if !isnothing(field1443) + field1447 = unwrapped_fields1442[4] + if !isnothing(field1447) newline(pp) - opt_val1444 = field1443 - pretty_target_relations(pp, opt_val1444) + opt_val1448 = field1447 + pretty_target_relations(pp, opt_val1448) end newline(pp) - field1445 = unwrapped_fields1438[5] - pretty_csv_asof(pp, field1445) + field1449 = unwrapped_fields1442[5] + pretty_csv_asof(pp, field1449) dedent!(pp) write(pp, ")") end @@ -3947,37 +3956,37 @@ function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) end function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) - flat1453 = try_flat(pp, msg, pretty_csvlocator) - if !isnothing(flat1453) - write(pp, flat1453) + flat1457 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1457) + write(pp, flat1457) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.paths) - _t1847 = _dollar_dollar.paths + _t1855 = _dollar_dollar.paths else - _t1847 = nothing + _t1855 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1848 = String(copy(_dollar_dollar.inline_data)) + _t1856 = String(copy(_dollar_dollar.inline_data)) else - _t1848 = nothing + _t1856 = nothing end - fields1447 = (_t1847, _t1848,) - unwrapped_fields1448 = fields1447 + fields1451 = (_t1855, _t1856,) + unwrapped_fields1452 = fields1451 write(pp, "(csv_locator") indent_sexp!(pp) - field1449 = unwrapped_fields1448[1] - if !isnothing(field1449) + field1453 = unwrapped_fields1452[1] + if !isnothing(field1453) newline(pp) - opt_val1450 = field1449 - pretty_csv_locator_paths(pp, opt_val1450) + opt_val1454 = field1453 + pretty_csv_locator_paths(pp, opt_val1454) end - field1451 = unwrapped_fields1448[2] - if !isnothing(field1451) + field1455 = unwrapped_fields1452[2] + if !isnothing(field1455) newline(pp) - opt_val1452 = field1451 - pretty_csv_locator_inline_data(pp, opt_val1452) + opt_val1456 = field1455 + pretty_csv_locator_inline_data(pp, opt_val1456) end dedent!(pp) write(pp, ")") @@ -3986,22 +3995,22 @@ function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) end function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) - flat1457 = try_flat(pp, msg, pretty_csv_locator_paths) - if !isnothing(flat1457) - write(pp, flat1457) + flat1461 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1461) + write(pp, flat1461) return nothing else - fields1454 = msg + fields1458 = msg write(pp, "(paths") indent_sexp!(pp) - if !isempty(fields1454) + if !isempty(fields1458) newline(pp) - for (i1849, elem1455) in enumerate(fields1454) - i1456 = i1849 - 1 - if (i1456 > 0) + for (i1857, elem1459) in enumerate(fields1458) + i1460 = i1857 - 1 + if (i1460 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1455)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1459)) end end dedent!(pp) @@ -4011,16 +4020,16 @@ function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) - flat1459 = try_flat(pp, msg, pretty_csv_locator_inline_data) - if !isnothing(flat1459) - write(pp, flat1459) + flat1463 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1463) + write(pp, flat1463) return nothing else - fields1458 = msg + fields1462 = msg write(pp, "(inline_data") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1458)) + write(pp, format_string(pp, fields1462)) dedent!(pp) write(pp, ")") end @@ -4028,26 +4037,26 @@ function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) end function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) - flat1465 = try_flat(pp, msg, pretty_csv_config) - if !isnothing(flat1465) - write(pp, flat1465) + flat1469 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1469) + write(pp, flat1469) return nothing else _dollar_dollar = msg - _t1850 = deconstruct_csv_config(pp, _dollar_dollar) - _t1851 = deconstruct_csv_storage_integration_optional(pp, _dollar_dollar) - fields1460 = (_t1850, _t1851,) - unwrapped_fields1461 = fields1460 + _t1858 = deconstruct_csv_config(pp, _dollar_dollar) + _t1859 = deconstruct_csv_storage_integration_optional(pp, _dollar_dollar) + fields1464 = (_t1858, _t1859,) + unwrapped_fields1465 = fields1464 write(pp, "(csv_config") indent_sexp!(pp) newline(pp) - field1462 = unwrapped_fields1461[1] - pretty_config_dict(pp, field1462) - field1463 = unwrapped_fields1461[2] - if !isnothing(field1463) + field1466 = unwrapped_fields1465[1] + pretty_config_dict(pp, field1466) + field1467 = unwrapped_fields1465[2] + if !isnothing(field1467) newline(pp) - opt_val1464 = field1463 - pretty__storage_integration(pp, opt_val1464) + opt_val1468 = field1467 + pretty__storage_integration(pp, opt_val1468) end dedent!(pp) write(pp, ")") @@ -4056,16 +4065,16 @@ function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) end function pretty__storage_integration(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat1467 = try_flat(pp, msg, pretty__storage_integration) - if !isnothing(flat1467) - write(pp, flat1467) + flat1471 = try_flat(pp, msg, pretty__storage_integration) + if !isnothing(flat1471) + write(pp, flat1471) return nothing else - fields1466 = msg + fields1470 = msg write(pp, "(storage_integration") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, fields1466) + pretty_config_dict(pp, fields1470) dedent!(pp) write(pp, ")") end @@ -4073,22 +4082,22 @@ function pretty__storage_integration(pp::PrettyPrinter, msg::Vector{Tuple{String end function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) - flat1471 = try_flat(pp, msg, pretty_gnf_columns) - if !isnothing(flat1471) - write(pp, flat1471) + flat1475 = try_flat(pp, msg, pretty_gnf_columns) + if !isnothing(flat1475) + write(pp, flat1475) return nothing else - fields1468 = msg + fields1472 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1468) + if !isempty(fields1472) newline(pp) - for (i1852, elem1469) in enumerate(fields1468) - i1470 = i1852 - 1 - if (i1470 > 0) + for (i1860, elem1473) in enumerate(fields1472) + i1474 = i1860 - 1 + if (i1474 > 0) newline(pp) end - pretty_gnf_column(pp, elem1469) + pretty_gnf_column(pp, elem1473) end end dedent!(pp) @@ -4098,39 +4107,39 @@ function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) end function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) - flat1480 = try_flat(pp, msg, pretty_gnf_column) - if !isnothing(flat1480) - write(pp, flat1480) + flat1484 = try_flat(pp, msg, pretty_gnf_column) + if !isnothing(flat1484) + write(pp, flat1484) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("target_id")) - _t1853 = _dollar_dollar.target_id + _t1861 = _dollar_dollar.target_id else - _t1853 = nothing + _t1861 = nothing end - fields1472 = (_dollar_dollar.column_path, _t1853, _dollar_dollar.types,) - unwrapped_fields1473 = fields1472 + fields1476 = (_dollar_dollar.column_path, _t1861, _dollar_dollar.types,) + unwrapped_fields1477 = fields1476 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1474 = unwrapped_fields1473[1] - pretty_gnf_column_path(pp, field1474) - field1475 = unwrapped_fields1473[2] - if !isnothing(field1475) + field1478 = unwrapped_fields1477[1] + pretty_gnf_column_path(pp, field1478) + field1479 = unwrapped_fields1477[2] + if !isnothing(field1479) newline(pp) - opt_val1476 = field1475 - pretty_relation_id(pp, opt_val1476) + opt_val1480 = field1479 + pretty_relation_id(pp, opt_val1480) end newline(pp) write(pp, "[") - field1477 = unwrapped_fields1473[3] - for (i1854, elem1478) in enumerate(field1477) - i1479 = i1854 - 1 - if (i1479 > 0) + field1481 = unwrapped_fields1477[3] + for (i1862, elem1482) in enumerate(field1481) + i1483 = i1862 - 1 + if (i1483 > 0) newline(pp) end - pretty_type(pp, elem1478) + pretty_type(pp, elem1482) end write(pp, "]") dedent!(pp) @@ -4140,39 +4149,39 @@ function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) end function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) - flat1487 = try_flat(pp, msg, pretty_gnf_column_path) - if !isnothing(flat1487) - write(pp, flat1487) + flat1491 = try_flat(pp, msg, pretty_gnf_column_path) + if !isnothing(flat1491) + write(pp, flat1491) return nothing else _dollar_dollar = msg if length(_dollar_dollar) == 1 - _t1855 = _dollar_dollar[1] + _t1863 = _dollar_dollar[1] else - _t1855 = nothing + _t1863 = nothing end - deconstruct_result1485 = _t1855 - if !isnothing(deconstruct_result1485) - unwrapped1486 = deconstruct_result1485 - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1486)) + deconstruct_result1489 = _t1863 + if !isnothing(deconstruct_result1489) + unwrapped1490 = deconstruct_result1489 + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1490)) else _dollar_dollar = msg if length(_dollar_dollar) != 1 - _t1856 = _dollar_dollar + _t1864 = _dollar_dollar else - _t1856 = nothing + _t1864 = nothing end - deconstruct_result1481 = _t1856 - if !isnothing(deconstruct_result1481) - unwrapped1482 = deconstruct_result1481 + deconstruct_result1485 = _t1864 + if !isnothing(deconstruct_result1485) + unwrapped1486 = deconstruct_result1485 write(pp, "[") indent!(pp) - for (i1857, elem1483) in enumerate(unwrapped1482) - i1484 = i1857 - 1 - if (i1484 > 0) + for (i1865, elem1487) in enumerate(unwrapped1486) + i1488 = i1865 - 1 + if (i1488 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1483)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1487)) end dedent!(pp) write(pp, "]") @@ -4185,23 +4194,30 @@ function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_target_relations(pp::PrettyPrinter, msg::Proto.TargetRelations) - flat1492 = try_flat(pp, msg, pretty_target_relations) - if !isnothing(flat1492) - write(pp, flat1492) + flat1498 = try_flat(pp, msg, pretty_target_relations) + if !isnothing(flat1498) + write(pp, flat1498) return nothing else _dollar_dollar = msg - _t1858 = deconstruct_relation_keys(pp, _dollar_dollar) - fields1488 = (_t1858, _dollar_dollar,) - unwrapped_fields1489 = fields1488 + _t1866 = deconstruct_relation_keys(pp, _dollar_dollar) + _t1867 = deconstruct_load_errors_optional(pp, _dollar_dollar) + fields1492 = (_t1866, _dollar_dollar, _t1867,) + unwrapped_fields1493 = fields1492 write(pp, "(relations") indent_sexp!(pp) newline(pp) - field1490 = unwrapped_fields1489[1] - pretty_relation_keys(pp, field1490) + field1494 = unwrapped_fields1493[1] + pretty_relation_keys(pp, field1494) newline(pp) - field1491 = unwrapped_fields1489[2] - pretty_relation_body(pp, field1491) + field1495 = unwrapped_fields1493[2] + pretty_relation_body(pp, field1495) + field1496 = unwrapped_fields1493[3] + if !isnothing(field1496) + newline(pp) + opt_val1497 = field1496 + pretty_load_errors(pp, opt_val1497) + end dedent!(pp) write(pp, ")") end @@ -4209,30 +4225,30 @@ function pretty_target_relations(pp::PrettyPrinter, msg::Proto.TargetRelations) end function pretty_relation_keys(pp::PrettyPrinter, msg::Tuple{Vector{Proto.NamedColumn}, Bool}) - flat1499 = try_flat(pp, msg, pretty_relation_keys) - if !isnothing(flat1499) - write(pp, flat1499) + flat1505 = try_flat(pp, msg, pretty_relation_keys) + if !isnothing(flat1505) + write(pp, flat1505) return nothing else _dollar_dollar = msg if !_dollar_dollar[2] - _t1859 = _dollar_dollar[1] + _t1868 = _dollar_dollar[1] else - _t1859 = nothing + _t1868 = nothing end - deconstruct_result1495 = _t1859 - if !isnothing(deconstruct_result1495) - unwrapped1496 = deconstruct_result1495 + deconstruct_result1501 = _t1868 + if !isnothing(deconstruct_result1501) + unwrapped1502 = deconstruct_result1501 write(pp, "(keys") indent_sexp!(pp) - if !isempty(unwrapped1496) + if !isempty(unwrapped1502) newline(pp) - for (i1860, elem1497) in enumerate(unwrapped1496) - i1498 = i1860 - 1 - if (i1498 > 0) + for (i1869, elem1503) in enumerate(unwrapped1502) + i1504 = i1869 - 1 + if (i1504 > 0) newline(pp) end - pretty_named_column(pp, elem1497) + pretty_named_column(pp, elem1503) end end dedent!(pp) @@ -4240,13 +4256,13 @@ function pretty_relation_keys(pp::PrettyPrinter, msg::Tuple{Vector{Proto.NamedCo else _dollar_dollar = msg if _dollar_dollar[2] - _t1861 = () + _t1870 = () else - _t1861 = nothing + _t1870 = nothing end - deconstruct_result1493 = _t1861 - if !isnothing(deconstruct_result1493) - unwrapped1494 = deconstruct_result1493 + deconstruct_result1499 = _t1870 + if !isnothing(deconstruct_result1499) + unwrapped1500 = deconstruct_result1499 write(pp, "(keys") newline(pp) write(pp, "synthetic)") @@ -4259,22 +4275,22 @@ function pretty_relation_keys(pp::PrettyPrinter, msg::Tuple{Vector{Proto.NamedCo end function pretty_named_column(pp::PrettyPrinter, msg::Proto.NamedColumn) - flat1504 = try_flat(pp, msg, pretty_named_column) - if !isnothing(flat1504) - write(pp, flat1504) + flat1510 = try_flat(pp, msg, pretty_named_column) + if !isnothing(flat1510) + write(pp, flat1510) return nothing else _dollar_dollar = msg - fields1500 = (_dollar_dollar.name, _dollar_dollar.var"#type",) - unwrapped_fields1501 = fields1500 + fields1506 = (_dollar_dollar.name, _dollar_dollar.var"#type",) + unwrapped_fields1507 = fields1506 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1502 = unwrapped_fields1501[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1502)) + field1508 = unwrapped_fields1507[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1508)) newline(pp) - field1503 = unwrapped_fields1501[2] - pretty_type(pp, field1503) + field1509 = unwrapped_fields1507[2] + pretty_type(pp, field1509) dedent!(pp) write(pp, ")") end @@ -4282,36 +4298,36 @@ function pretty_named_column(pp::PrettyPrinter, msg::Proto.NamedColumn) end function pretty_relation_body(pp::PrettyPrinter, msg::Proto.TargetRelations) - flat1511 = try_flat(pp, msg, pretty_relation_body) - if !isnothing(flat1511) - write(pp, flat1511) + flat1517 = try_flat(pp, msg, pretty_relation_body) + if !isnothing(flat1517) + write(pp, flat1517) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("plain")) - _t1862 = _get_oneof_field(_dollar_dollar, :plain).targets + _t1871 = _get_oneof_field(_dollar_dollar, :plain).targets else - _t1862 = nothing + _t1871 = nothing end - deconstruct_result1509 = _t1862 - if !isnothing(deconstruct_result1509) - unwrapped1510 = deconstruct_result1509 - pretty_non_cdc_relations(pp, unwrapped1510) + deconstruct_result1515 = _t1871 + if !isnothing(deconstruct_result1515) + unwrapped1516 = deconstruct_result1515 + pretty_non_cdc_relations(pp, unwrapped1516) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cdc")) - _t1863 = (_get_oneof_field(_dollar_dollar, :cdc).inserts, _get_oneof_field(_dollar_dollar, :cdc).deletes,) + _t1872 = (_get_oneof_field(_dollar_dollar, :cdc).inserts, _get_oneof_field(_dollar_dollar, :cdc).deletes,) else - _t1863 = nothing + _t1872 = nothing end - deconstruct_result1505 = _t1863 - if !isnothing(deconstruct_result1505) - unwrapped1506 = deconstruct_result1505 - field1507 = unwrapped1506[1] - pretty_cdc_inserts(pp, field1507) + deconstruct_result1511 = _t1872 + if !isnothing(deconstruct_result1511) + unwrapped1512 = deconstruct_result1511 + field1513 = unwrapped1512[1] + pretty_cdc_inserts(pp, field1513) write(pp, " ") - field1508 = unwrapped1506[2] - pretty_cdc_deletes(pp, field1508) + field1514 = unwrapped1512[2] + pretty_cdc_deletes(pp, field1514) else throw(ParseError("No matching rule for relation_body")) end @@ -4321,46 +4337,46 @@ function pretty_relation_body(pp::PrettyPrinter, msg::Proto.TargetRelations) end function pretty_non_cdc_relations(pp::PrettyPrinter, msg::Vector{Proto.TargetRelation}) - flat1515 = try_flat(pp, msg, pretty_non_cdc_relations) - if !isnothing(flat1515) - write(pp, flat1515) + flat1521 = try_flat(pp, msg, pretty_non_cdc_relations) + if !isnothing(flat1521) + write(pp, flat1521) return nothing else - fields1512 = msg - for (i1864, elem1513) in enumerate(fields1512) - i1514 = i1864 - 1 - if (i1514 > 0) + fields1518 = msg + for (i1873, elem1519) in enumerate(fields1518) + i1520 = i1873 - 1 + if (i1520 > 0) newline(pp) end - pretty_target_relation(pp, elem1513) + pretty_target_relation(pp, elem1519) end end return nothing end function pretty_target_relation(pp::PrettyPrinter, msg::Proto.TargetRelation) - flat1522 = try_flat(pp, msg, pretty_target_relation) - if !isnothing(flat1522) - write(pp, flat1522) + flat1528 = try_flat(pp, msg, pretty_target_relation) + if !isnothing(flat1528) + write(pp, flat1528) return nothing else _dollar_dollar = msg - fields1516 = (_dollar_dollar.target_id, _dollar_dollar.values,) - unwrapped_fields1517 = fields1516 + fields1522 = (_dollar_dollar.target_id, _dollar_dollar.values,) + unwrapped_fields1523 = fields1522 write(pp, "(relation") indent_sexp!(pp) newline(pp) - field1518 = unwrapped_fields1517[1] - pretty_relation_id(pp, field1518) - field1519 = unwrapped_fields1517[2] - if !isempty(field1519) + field1524 = unwrapped_fields1523[1] + pretty_relation_id(pp, field1524) + field1525 = unwrapped_fields1523[2] + if !isempty(field1525) newline(pp) - for (i1865, elem1520) in enumerate(field1519) - i1521 = i1865 - 1 - if (i1521 > 0) + for (i1874, elem1526) in enumerate(field1525) + i1527 = i1874 - 1 + if (i1527 > 0) newline(pp) end - pretty_named_column(pp, elem1520) + pretty_named_column(pp, elem1526) end end dedent!(pp) @@ -4370,22 +4386,22 @@ function pretty_target_relation(pp::PrettyPrinter, msg::Proto.TargetRelation) end function pretty_cdc_inserts(pp::PrettyPrinter, msg::Vector{Proto.TargetRelation}) - flat1526 = try_flat(pp, msg, pretty_cdc_inserts) - if !isnothing(flat1526) - write(pp, flat1526) + flat1532 = try_flat(pp, msg, pretty_cdc_inserts) + if !isnothing(flat1532) + write(pp, flat1532) return nothing else - fields1523 = msg + fields1529 = msg write(pp, "(inserts") indent_sexp!(pp) - if !isempty(fields1523) + if !isempty(fields1529) newline(pp) - for (i1866, elem1524) in enumerate(fields1523) - i1525 = i1866 - 1 - if (i1525 > 0) + for (i1875, elem1530) in enumerate(fields1529) + i1531 = i1875 - 1 + if (i1531 > 0) newline(pp) end - pretty_target_relation(pp, elem1524) + pretty_target_relation(pp, elem1530) end end dedent!(pp) @@ -4395,22 +4411,22 @@ function pretty_cdc_inserts(pp::PrettyPrinter, msg::Vector{Proto.TargetRelation} end function pretty_cdc_deletes(pp::PrettyPrinter, msg::Vector{Proto.TargetRelation}) - flat1530 = try_flat(pp, msg, pretty_cdc_deletes) - if !isnothing(flat1530) - write(pp, flat1530) + flat1536 = try_flat(pp, msg, pretty_cdc_deletes) + if !isnothing(flat1536) + write(pp, flat1536) return nothing else - fields1527 = msg + fields1533 = msg write(pp, "(deletes") indent_sexp!(pp) - if !isempty(fields1527) + if !isempty(fields1533) newline(pp) - for (i1867, elem1528) in enumerate(fields1527) - i1529 = i1867 - 1 - if (i1529 > 0) + for (i1876, elem1534) in enumerate(fields1533) + i1535 = i1876 - 1 + if (i1535 > 0) newline(pp) end - pretty_target_relation(pp, elem1528) + pretty_target_relation(pp, elem1534) end end dedent!(pp) @@ -4419,17 +4435,34 @@ function pretty_cdc_deletes(pp::PrettyPrinter, msg::Vector{Proto.TargetRelation} return nothing end +function pretty_load_errors(pp::PrettyPrinter, msg::Proto.RelationId) + flat1538 = try_flat(pp, msg, pretty_load_errors) + if !isnothing(flat1538) + write(pp, flat1538) + return nothing + else + fields1537 = msg + write(pp, "(load_errors") + indent_sexp!(pp) + newline(pp) + pretty_relation_id(pp, fields1537) + dedent!(pp) + write(pp, ")") + end + return nothing +end + function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1532 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1532) - write(pp, flat1532) + flat1540 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1540) + write(pp, flat1540) return nothing else - fields1531 = msg + fields1539 = msg write(pp, "(asof") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1531)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1539)) dedent!(pp) write(pp, ")") end @@ -4437,42 +4470,42 @@ function pretty_csv_asof(pp::PrettyPrinter, msg::String) end function pretty_iceberg_data(pp::PrettyPrinter, msg::Proto.IcebergData) - flat1543 = try_flat(pp, msg, pretty_iceberg_data) - if !isnothing(flat1543) - write(pp, flat1543) + flat1551 = try_flat(pp, msg, pretty_iceberg_data) + if !isnothing(flat1551) + write(pp, flat1551) return nothing else _dollar_dollar = msg - _t1868 = deconstruct_iceberg_data_from_snapshot_optional(pp, _dollar_dollar) - _t1869 = deconstruct_iceberg_data_to_snapshot_optional(pp, _dollar_dollar) - fields1533 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1868, _t1869, _dollar_dollar.returns_delta,) - unwrapped_fields1534 = fields1533 + _t1877 = deconstruct_iceberg_data_from_snapshot_optional(pp, _dollar_dollar) + _t1878 = deconstruct_iceberg_data_to_snapshot_optional(pp, _dollar_dollar) + fields1541 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1877, _t1878, _dollar_dollar.returns_delta,) + unwrapped_fields1542 = fields1541 write(pp, "(iceberg_data") indent_sexp!(pp) newline(pp) - field1535 = unwrapped_fields1534[1] - pretty_iceberg_locator(pp, field1535) + field1543 = unwrapped_fields1542[1] + pretty_iceberg_locator(pp, field1543) newline(pp) - field1536 = unwrapped_fields1534[2] - pretty_iceberg_catalog_config(pp, field1536) + field1544 = unwrapped_fields1542[2] + pretty_iceberg_catalog_config(pp, field1544) newline(pp) - field1537 = unwrapped_fields1534[3] - pretty_gnf_columns(pp, field1537) - field1538 = unwrapped_fields1534[4] - if !isnothing(field1538) + field1545 = unwrapped_fields1542[3] + pretty_gnf_columns(pp, field1545) + field1546 = unwrapped_fields1542[4] + if !isnothing(field1546) newline(pp) - opt_val1539 = field1538 - pretty_iceberg_from_snapshot(pp, opt_val1539) + opt_val1547 = field1546 + pretty_iceberg_from_snapshot(pp, opt_val1547) end - field1540 = unwrapped_fields1534[5] - if !isnothing(field1540) + field1548 = unwrapped_fields1542[5] + if !isnothing(field1548) newline(pp) - opt_val1541 = field1540 - pretty_iceberg_to_snapshot(pp, opt_val1541) + opt_val1549 = field1548 + pretty_iceberg_to_snapshot(pp, opt_val1549) end newline(pp) - field1542 = unwrapped_fields1534[6] - pretty_boolean_value(pp, field1542) + field1550 = unwrapped_fields1542[6] + pretty_boolean_value(pp, field1550) dedent!(pp) write(pp, ")") end @@ -4480,25 +4513,25 @@ function pretty_iceberg_data(pp::PrettyPrinter, msg::Proto.IcebergData) end function pretty_iceberg_locator(pp::PrettyPrinter, msg::Proto.IcebergLocator) - flat1549 = try_flat(pp, msg, pretty_iceberg_locator) - if !isnothing(flat1549) - write(pp, flat1549) + flat1557 = try_flat(pp, msg, pretty_iceberg_locator) + if !isnothing(flat1557) + write(pp, flat1557) return nothing else _dollar_dollar = msg - fields1544 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) - unwrapped_fields1545 = fields1544 + fields1552 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + unwrapped_fields1553 = fields1552 write(pp, "(iceberg_locator") indent_sexp!(pp) newline(pp) - field1546 = unwrapped_fields1545[1] - pretty_iceberg_locator_table_name(pp, field1546) + field1554 = unwrapped_fields1553[1] + pretty_iceberg_locator_table_name(pp, field1554) newline(pp) - field1547 = unwrapped_fields1545[2] - pretty_iceberg_locator_namespace(pp, field1547) + field1555 = unwrapped_fields1553[2] + pretty_iceberg_locator_namespace(pp, field1555) newline(pp) - field1548 = unwrapped_fields1545[3] - pretty_iceberg_locator_warehouse(pp, field1548) + field1556 = unwrapped_fields1553[3] + pretty_iceberg_locator_warehouse(pp, field1556) dedent!(pp) write(pp, ")") end @@ -4506,16 +4539,16 @@ function pretty_iceberg_locator(pp::PrettyPrinter, msg::Proto.IcebergLocator) end function pretty_iceberg_locator_table_name(pp::PrettyPrinter, msg::String) - flat1551 = try_flat(pp, msg, pretty_iceberg_locator_table_name) - if !isnothing(flat1551) - write(pp, flat1551) + flat1559 = try_flat(pp, msg, pretty_iceberg_locator_table_name) + if !isnothing(flat1559) + write(pp, flat1559) return nothing else - fields1550 = msg + fields1558 = msg write(pp, "(table_name") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1550)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1558)) dedent!(pp) write(pp, ")") end @@ -4523,22 +4556,22 @@ function pretty_iceberg_locator_table_name(pp::PrettyPrinter, msg::String) end function pretty_iceberg_locator_namespace(pp::PrettyPrinter, msg::Vector{String}) - flat1555 = try_flat(pp, msg, pretty_iceberg_locator_namespace) - if !isnothing(flat1555) - write(pp, flat1555) + flat1563 = try_flat(pp, msg, pretty_iceberg_locator_namespace) + if !isnothing(flat1563) + write(pp, flat1563) return nothing else - fields1552 = msg + fields1560 = msg write(pp, "(namespace") indent_sexp!(pp) - if !isempty(fields1552) + if !isempty(fields1560) newline(pp) - for (i1870, elem1553) in enumerate(fields1552) - i1554 = i1870 - 1 - if (i1554 > 0) + for (i1879, elem1561) in enumerate(fields1560) + i1562 = i1879 - 1 + if (i1562 > 0) newline(pp) end - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1553)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, elem1561)) end end dedent!(pp) @@ -4548,16 +4581,16 @@ function pretty_iceberg_locator_namespace(pp::PrettyPrinter, msg::Vector{String} end function pretty_iceberg_locator_warehouse(pp::PrettyPrinter, msg::String) - flat1557 = try_flat(pp, msg, pretty_iceberg_locator_warehouse) - if !isnothing(flat1557) - write(pp, flat1557) + flat1565 = try_flat(pp, msg, pretty_iceberg_locator_warehouse) + if !isnothing(flat1565) + write(pp, flat1565) return nothing else - fields1556 = msg + fields1564 = msg write(pp, "(warehouse") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1556)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1564)) dedent!(pp) write(pp, ")") end @@ -4565,32 +4598,32 @@ function pretty_iceberg_locator_warehouse(pp::PrettyPrinter, msg::String) end function pretty_iceberg_catalog_config(pp::PrettyPrinter, msg::Proto.IcebergCatalogConfig) - flat1565 = try_flat(pp, msg, pretty_iceberg_catalog_config) - if !isnothing(flat1565) - write(pp, flat1565) + flat1573 = try_flat(pp, msg, pretty_iceberg_catalog_config) + if !isnothing(flat1573) + write(pp, flat1573) return nothing else _dollar_dollar = msg - _t1871 = deconstruct_iceberg_catalog_config_scope_optional(pp, _dollar_dollar) - fields1558 = (_dollar_dollar.catalog_uri, _t1871, sort([(k, v) for (k, v) in _dollar_dollar.properties]), sort([(k, v) for (k, v) in _dollar_dollar.auth_properties]),) - unwrapped_fields1559 = fields1558 + _t1880 = deconstruct_iceberg_catalog_config_scope_optional(pp, _dollar_dollar) + fields1566 = (_dollar_dollar.catalog_uri, _t1880, sort([(k, v) for (k, v) in _dollar_dollar.properties]), sort([(k, v) for (k, v) in _dollar_dollar.auth_properties]),) + unwrapped_fields1567 = fields1566 write(pp, "(iceberg_catalog_config") indent_sexp!(pp) newline(pp) - field1560 = unwrapped_fields1559[1] - pretty_iceberg_catalog_uri(pp, field1560) - field1561 = unwrapped_fields1559[2] - if !isnothing(field1561) + field1568 = unwrapped_fields1567[1] + pretty_iceberg_catalog_uri(pp, field1568) + field1569 = unwrapped_fields1567[2] + if !isnothing(field1569) newline(pp) - opt_val1562 = field1561 - pretty_iceberg_catalog_config_scope(pp, opt_val1562) + opt_val1570 = field1569 + pretty_iceberg_catalog_config_scope(pp, opt_val1570) end newline(pp) - field1563 = unwrapped_fields1559[3] - pretty_iceberg_properties(pp, field1563) + field1571 = unwrapped_fields1567[3] + pretty_iceberg_properties(pp, field1571) newline(pp) - field1564 = unwrapped_fields1559[4] - pretty_iceberg_auth_properties(pp, field1564) + field1572 = unwrapped_fields1567[4] + pretty_iceberg_auth_properties(pp, field1572) dedent!(pp) write(pp, ")") end @@ -4598,16 +4631,16 @@ function pretty_iceberg_catalog_config(pp::PrettyPrinter, msg::Proto.IcebergCata end function pretty_iceberg_catalog_uri(pp::PrettyPrinter, msg::String) - flat1567 = try_flat(pp, msg, pretty_iceberg_catalog_uri) - if !isnothing(flat1567) - write(pp, flat1567) + flat1575 = try_flat(pp, msg, pretty_iceberg_catalog_uri) + if !isnothing(flat1575) + write(pp, flat1575) return nothing else - fields1566 = msg + fields1574 = msg write(pp, "(catalog_uri") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1566)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1574)) dedent!(pp) write(pp, ")") end @@ -4615,16 +4648,16 @@ function pretty_iceberg_catalog_uri(pp::PrettyPrinter, msg::String) end function pretty_iceberg_catalog_config_scope(pp::PrettyPrinter, msg::String) - flat1569 = try_flat(pp, msg, pretty_iceberg_catalog_config_scope) - if !isnothing(flat1569) - write(pp, flat1569) + flat1577 = try_flat(pp, msg, pretty_iceberg_catalog_config_scope) + if !isnothing(flat1577) + write(pp, flat1577) return nothing else - fields1568 = msg + fields1576 = msg write(pp, "(scope") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1568)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1576)) dedent!(pp) write(pp, ")") end @@ -4632,22 +4665,22 @@ function pretty_iceberg_catalog_config_scope(pp::PrettyPrinter, msg::String) end function pretty_iceberg_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) - flat1573 = try_flat(pp, msg, pretty_iceberg_properties) - if !isnothing(flat1573) - write(pp, flat1573) + flat1581 = try_flat(pp, msg, pretty_iceberg_properties) + if !isnothing(flat1581) + write(pp, flat1581) return nothing else - fields1570 = msg + fields1578 = msg write(pp, "(properties") indent_sexp!(pp) - if !isempty(fields1570) + if !isempty(fields1578) newline(pp) - for (i1872, elem1571) in enumerate(fields1570) - i1572 = i1872 - 1 - if (i1572 > 0) + for (i1881, elem1579) in enumerate(fields1578) + i1580 = i1881 - 1 + if (i1580 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1571) + pretty_iceberg_property_entry(pp, elem1579) end end dedent!(pp) @@ -4657,22 +4690,22 @@ function pretty_iceberg_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, end function pretty_iceberg_property_entry(pp::PrettyPrinter, msg::Tuple{String, String}) - flat1578 = try_flat(pp, msg, pretty_iceberg_property_entry) - if !isnothing(flat1578) - write(pp, flat1578) + flat1586 = try_flat(pp, msg, pretty_iceberg_property_entry) + if !isnothing(flat1586) + write(pp, flat1586) return nothing else _dollar_dollar = msg - fields1574 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields1575 = fields1574 + fields1582 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields1583 = fields1582 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1576 = unwrapped_fields1575[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1576)) + field1584 = unwrapped_fields1583[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1584)) newline(pp) - field1577 = unwrapped_fields1575[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1577)) + field1585 = unwrapped_fields1583[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1585)) dedent!(pp) write(pp, ")") end @@ -4680,22 +4713,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}}) - flat1582 = try_flat(pp, msg, pretty_iceberg_auth_properties) - if !isnothing(flat1582) - write(pp, flat1582) + flat1590 = try_flat(pp, msg, pretty_iceberg_auth_properties) + if !isnothing(flat1590) + write(pp, flat1590) return nothing else - fields1579 = msg + fields1587 = msg write(pp, "(auth_properties") indent_sexp!(pp) - if !isempty(fields1579) + if !isempty(fields1587) newline(pp) - for (i1873, elem1580) in enumerate(fields1579) - i1581 = i1873 - 1 - if (i1581 > 0) + for (i1882, elem1588) in enumerate(fields1587) + i1589 = i1882 - 1 + if (i1589 > 0) newline(pp) end - pretty_iceberg_masked_property_entry(pp, elem1580) + pretty_iceberg_masked_property_entry(pp, elem1588) end end dedent!(pp) @@ -4705,23 +4738,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}) - flat1587 = try_flat(pp, msg, pretty_iceberg_masked_property_entry) - if !isnothing(flat1587) - write(pp, flat1587) + flat1595 = try_flat(pp, msg, pretty_iceberg_masked_property_entry) + if !isnothing(flat1595) + write(pp, flat1595) return nothing else _dollar_dollar = msg - _t1874 = mask_secret_value(pp, _dollar_dollar) - fields1583 = (_dollar_dollar[1], _t1874,) - unwrapped_fields1584 = fields1583 + _t1883 = mask_secret_value(pp, _dollar_dollar) + fields1591 = (_dollar_dollar[1], _t1883,) + unwrapped_fields1592 = fields1591 write(pp, "(prop") indent_sexp!(pp) newline(pp) - field1585 = unwrapped_fields1584[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1585)) + field1593 = unwrapped_fields1592[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1593)) newline(pp) - field1586 = unwrapped_fields1584[2] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1586)) + field1594 = unwrapped_fields1592[2] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1594)) dedent!(pp) write(pp, ")") end @@ -4729,16 +4762,16 @@ function pretty_iceberg_masked_property_entry(pp::PrettyPrinter, msg::Tuple{Stri end function pretty_iceberg_from_snapshot(pp::PrettyPrinter, msg::String) - flat1589 = try_flat(pp, msg, pretty_iceberg_from_snapshot) - if !isnothing(flat1589) - write(pp, flat1589) + flat1597 = try_flat(pp, msg, pretty_iceberg_from_snapshot) + if !isnothing(flat1597) + write(pp, flat1597) return nothing else - fields1588 = msg + fields1596 = msg write(pp, "(from_snapshot") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1588)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1596)) dedent!(pp) write(pp, ")") end @@ -4746,16 +4779,16 @@ function pretty_iceberg_from_snapshot(pp::PrettyPrinter, msg::String) end function pretty_iceberg_to_snapshot(pp::PrettyPrinter, msg::String) - flat1591 = try_flat(pp, msg, pretty_iceberg_to_snapshot) - if !isnothing(flat1591) - write(pp, flat1591) + flat1599 = try_flat(pp, msg, pretty_iceberg_to_snapshot) + if !isnothing(flat1599) + write(pp, flat1599) return nothing else - fields1590 = msg + fields1598 = msg write(pp, "(to_snapshot") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1590)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1598)) dedent!(pp) write(pp, ")") end @@ -4763,18 +4796,18 @@ function pretty_iceberg_to_snapshot(pp::PrettyPrinter, msg::String) end function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) - flat1594 = try_flat(pp, msg, pretty_undefine) - if !isnothing(flat1594) - write(pp, flat1594) + flat1602 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1602) + write(pp, flat1602) return nothing else _dollar_dollar = msg - fields1592 = _dollar_dollar.fragment_id - unwrapped_fields1593 = fields1592 + fields1600 = _dollar_dollar.fragment_id + unwrapped_fields1601 = fields1600 write(pp, "(undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1593) + pretty_fragment_id(pp, unwrapped_fields1601) dedent!(pp) write(pp, ")") end @@ -4782,24 +4815,24 @@ function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) end function pretty_context(pp::PrettyPrinter, msg::Proto.Context) - flat1599 = try_flat(pp, msg, pretty_context) - if !isnothing(flat1599) - write(pp, flat1599) + flat1607 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1607) + write(pp, flat1607) return nothing else _dollar_dollar = msg - fields1595 = _dollar_dollar.relations - unwrapped_fields1596 = fields1595 + fields1603 = _dollar_dollar.relations + unwrapped_fields1604 = fields1603 write(pp, "(context") indent_sexp!(pp) - if !isempty(unwrapped_fields1596) + if !isempty(unwrapped_fields1604) newline(pp) - for (i1875, elem1597) in enumerate(unwrapped_fields1596) - i1598 = i1875 - 1 - if (i1598 > 0) + for (i1884, elem1605) in enumerate(unwrapped_fields1604) + i1606 = i1884 - 1 + if (i1606 > 0) newline(pp) end - pretty_relation_id(pp, elem1597) + pretty_relation_id(pp, elem1605) end end dedent!(pp) @@ -4809,28 +4842,28 @@ function pretty_context(pp::PrettyPrinter, msg::Proto.Context) end function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) - flat1606 = try_flat(pp, msg, pretty_snapshot) - if !isnothing(flat1606) - write(pp, flat1606) + flat1614 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1614) + write(pp, flat1614) return nothing else _dollar_dollar = msg - fields1600 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - unwrapped_fields1601 = fields1600 + fields1608 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + unwrapped_fields1609 = fields1608 write(pp, "(snapshot") indent_sexp!(pp) newline(pp) - field1602 = unwrapped_fields1601[1] - pretty_edb_path(pp, field1602) - field1603 = unwrapped_fields1601[2] - if !isempty(field1603) + field1610 = unwrapped_fields1609[1] + pretty_edb_path(pp, field1610) + field1611 = unwrapped_fields1609[2] + if !isempty(field1611) newline(pp) - for (i1876, elem1604) in enumerate(field1603) - i1605 = i1876 - 1 - if (i1605 > 0) + for (i1885, elem1612) in enumerate(field1611) + i1613 = i1885 - 1 + if (i1613 > 0) newline(pp) end - pretty_snapshot_mapping(pp, elem1604) + pretty_snapshot_mapping(pp, elem1612) end end dedent!(pp) @@ -4840,40 +4873,40 @@ function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) end function pretty_snapshot_mapping(pp::PrettyPrinter, msg::Proto.SnapshotMapping) - flat1611 = try_flat(pp, msg, pretty_snapshot_mapping) - if !isnothing(flat1611) - write(pp, flat1611) + flat1619 = try_flat(pp, msg, pretty_snapshot_mapping) + if !isnothing(flat1619) + write(pp, flat1619) return nothing else _dollar_dollar = msg - fields1607 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - unwrapped_fields1608 = fields1607 - field1609 = unwrapped_fields1608[1] - pretty_edb_path(pp, field1609) + fields1615 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + unwrapped_fields1616 = fields1615 + field1617 = unwrapped_fields1616[1] + pretty_edb_path(pp, field1617) write(pp, " ") - field1610 = unwrapped_fields1608[2] - pretty_relation_id(pp, field1610) + field1618 = unwrapped_fields1616[2] + pretty_relation_id(pp, field1618) end return nothing end function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) - flat1615 = try_flat(pp, msg, pretty_epoch_reads) - if !isnothing(flat1615) - write(pp, flat1615) + flat1623 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1623) + write(pp, flat1623) return nothing else - fields1612 = msg + fields1620 = msg write(pp, "(reads") indent_sexp!(pp) - if !isempty(fields1612) + if !isempty(fields1620) newline(pp) - for (i1877, elem1613) in enumerate(fields1612) - i1614 = i1877 - 1 - if (i1614 > 0) + for (i1886, elem1621) in enumerate(fields1620) + i1622 = i1886 - 1 + if (i1622 > 0) newline(pp) end - pretty_read(pp, elem1613) + pretty_read(pp, elem1621) end end dedent!(pp) @@ -4883,65 +4916,65 @@ function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) end function pretty_read(pp::PrettyPrinter, msg::Proto.Read) - flat1626 = try_flat(pp, msg, pretty_read) - if !isnothing(flat1626) - write(pp, flat1626) + flat1634 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1634) + write(pp, flat1634) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1878 = _get_oneof_field(_dollar_dollar, :demand) + _t1887 = _get_oneof_field(_dollar_dollar, :demand) else - _t1878 = nothing + _t1887 = nothing end - deconstruct_result1624 = _t1878 - if !isnothing(deconstruct_result1624) - unwrapped1625 = deconstruct_result1624 - pretty_demand(pp, unwrapped1625) + deconstruct_result1632 = _t1887 + if !isnothing(deconstruct_result1632) + unwrapped1633 = deconstruct_result1632 + pretty_demand(pp, unwrapped1633) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1879 = _get_oneof_field(_dollar_dollar, :output) + _t1888 = _get_oneof_field(_dollar_dollar, :output) else - _t1879 = nothing + _t1888 = nothing end - deconstruct_result1622 = _t1879 - if !isnothing(deconstruct_result1622) - unwrapped1623 = deconstruct_result1622 - pretty_output(pp, unwrapped1623) + deconstruct_result1630 = _t1888 + if !isnothing(deconstruct_result1630) + unwrapped1631 = deconstruct_result1630 + pretty_output(pp, unwrapped1631) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1880 = _get_oneof_field(_dollar_dollar, :what_if) + _t1889 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1880 = nothing + _t1889 = nothing end - deconstruct_result1620 = _t1880 - if !isnothing(deconstruct_result1620) - unwrapped1621 = deconstruct_result1620 - pretty_what_if(pp, unwrapped1621) + deconstruct_result1628 = _t1889 + if !isnothing(deconstruct_result1628) + unwrapped1629 = deconstruct_result1628 + pretty_what_if(pp, unwrapped1629) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1881 = _get_oneof_field(_dollar_dollar, :abort) + _t1890 = _get_oneof_field(_dollar_dollar, :abort) else - _t1881 = nothing + _t1890 = nothing end - deconstruct_result1618 = _t1881 - if !isnothing(deconstruct_result1618) - unwrapped1619 = deconstruct_result1618 - pretty_abort(pp, unwrapped1619) + deconstruct_result1626 = _t1890 + if !isnothing(deconstruct_result1626) + unwrapped1627 = deconstruct_result1626 + pretty_abort(pp, unwrapped1627) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1882 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1891 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1882 = nothing + _t1891 = nothing end - deconstruct_result1616 = _t1882 - if !isnothing(deconstruct_result1616) - unwrapped1617 = deconstruct_result1616 - pretty_export(pp, unwrapped1617) + deconstruct_result1624 = _t1891 + if !isnothing(deconstruct_result1624) + unwrapped1625 = deconstruct_result1624 + pretty_export(pp, unwrapped1625) else throw(ParseError("No matching rule for read")) end @@ -4954,18 +4987,18 @@ function pretty_read(pp::PrettyPrinter, msg::Proto.Read) end function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) - flat1629 = try_flat(pp, msg, pretty_demand) - if !isnothing(flat1629) - write(pp, flat1629) + flat1637 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1637) + write(pp, flat1637) return nothing else _dollar_dollar = msg - fields1627 = _dollar_dollar.relation_id - unwrapped_fields1628 = fields1627 + fields1635 = _dollar_dollar.relation_id + unwrapped_fields1636 = fields1635 write(pp, "(demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1628) + pretty_relation_id(pp, unwrapped_fields1636) dedent!(pp) write(pp, ")") end @@ -4973,22 +5006,22 @@ function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) end function pretty_output(pp::PrettyPrinter, msg::Proto.Output) - flat1634 = try_flat(pp, msg, pretty_output) - if !isnothing(flat1634) - write(pp, flat1634) + flat1642 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1642) + write(pp, flat1642) return nothing else _dollar_dollar = msg - fields1630 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - unwrapped_fields1631 = fields1630 + fields1638 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + unwrapped_fields1639 = fields1638 write(pp, "(output") indent_sexp!(pp) newline(pp) - field1632 = unwrapped_fields1631[1] - pretty_name(pp, field1632) + field1640 = unwrapped_fields1639[1] + pretty_name(pp, field1640) newline(pp) - field1633 = unwrapped_fields1631[2] - pretty_relation_id(pp, field1633) + field1641 = unwrapped_fields1639[2] + pretty_relation_id(pp, field1641) dedent!(pp) write(pp, ")") end @@ -4996,22 +5029,22 @@ function pretty_output(pp::PrettyPrinter, msg::Proto.Output) end function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) - flat1639 = try_flat(pp, msg, pretty_what_if) - if !isnothing(flat1639) - write(pp, flat1639) + flat1647 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1647) + write(pp, flat1647) return nothing else _dollar_dollar = msg - fields1635 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - unwrapped_fields1636 = fields1635 + fields1643 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + unwrapped_fields1644 = fields1643 write(pp, "(what_if") indent_sexp!(pp) newline(pp) - field1637 = unwrapped_fields1636[1] - pretty_name(pp, field1637) + field1645 = unwrapped_fields1644[1] + pretty_name(pp, field1645) newline(pp) - field1638 = unwrapped_fields1636[2] - pretty_epoch(pp, field1638) + field1646 = unwrapped_fields1644[2] + pretty_epoch(pp, field1646) dedent!(pp) write(pp, ")") end @@ -5019,30 +5052,30 @@ function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) end function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) - flat1645 = try_flat(pp, msg, pretty_abort) - if !isnothing(flat1645) - write(pp, flat1645) + flat1653 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1653) + write(pp, flat1653) return nothing else _dollar_dollar = msg if _dollar_dollar.name != "abort" - _t1883 = _dollar_dollar.name + _t1892 = _dollar_dollar.name else - _t1883 = nothing + _t1892 = nothing end - fields1640 = (_t1883, _dollar_dollar.relation_id,) - unwrapped_fields1641 = fields1640 + fields1648 = (_t1892, _dollar_dollar.relation_id,) + unwrapped_fields1649 = fields1648 write(pp, "(abort") indent_sexp!(pp) - field1642 = unwrapped_fields1641[1] - if !isnothing(field1642) + field1650 = unwrapped_fields1649[1] + if !isnothing(field1650) newline(pp) - opt_val1643 = field1642 - pretty_name(pp, opt_val1643) + opt_val1651 = field1650 + pretty_name(pp, opt_val1651) end newline(pp) - field1644 = unwrapped_fields1641[2] - pretty_relation_id(pp, field1644) + field1652 = unwrapped_fields1649[2] + pretty_relation_id(pp, field1652) dedent!(pp) write(pp, ")") end @@ -5050,40 +5083,40 @@ function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) end function pretty_export(pp::PrettyPrinter, msg::Proto.Export) - flat1650 = try_flat(pp, msg, pretty_export) - if !isnothing(flat1650) - write(pp, flat1650) + flat1658 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1658) + write(pp, flat1658) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_config")) - _t1884 = _get_oneof_field(_dollar_dollar, :csv_config) + _t1893 = _get_oneof_field(_dollar_dollar, :csv_config) else - _t1884 = nothing + _t1893 = nothing end - deconstruct_result1648 = _t1884 - if !isnothing(deconstruct_result1648) - unwrapped1649 = deconstruct_result1648 + deconstruct_result1656 = _t1893 + if !isnothing(deconstruct_result1656) + unwrapped1657 = deconstruct_result1656 write(pp, "(export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped1649) + pretty_export_csv_config(pp, unwrapped1657) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("iceberg_config")) - _t1885 = _get_oneof_field(_dollar_dollar, :iceberg_config) + _t1894 = _get_oneof_field(_dollar_dollar, :iceberg_config) else - _t1885 = nothing + _t1894 = nothing end - deconstruct_result1646 = _t1885 - if !isnothing(deconstruct_result1646) - unwrapped1647 = deconstruct_result1646 + deconstruct_result1654 = _t1894 + if !isnothing(deconstruct_result1654) + unwrapped1655 = deconstruct_result1654 write(pp, "(export_iceberg") indent_sexp!(pp) newline(pp) - pretty_export_iceberg_config(pp, unwrapped1647) + pretty_export_iceberg_config(pp, unwrapped1655) dedent!(pp) write(pp, ")") else @@ -5095,56 +5128,56 @@ function pretty_export(pp::PrettyPrinter, msg::Proto.Export) end function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) - flat1661 = try_flat(pp, msg, pretty_export_csv_config) - if !isnothing(flat1661) - write(pp, flat1661) + flat1669 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1669) + write(pp, flat1669) return nothing else _dollar_dollar = msg if length(_dollar_dollar.data_columns) == 0 - _t1887 = deconstruct_export_csv_output_location(pp, _dollar_dollar) - _t1886 = (_t1887, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1896 = deconstruct_export_csv_output_location(pp, _dollar_dollar) + _t1895 = (_t1896, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else - _t1886 = nothing + _t1895 = nothing end - deconstruct_result1656 = _t1886 - if !isnothing(deconstruct_result1656) - unwrapped1657 = deconstruct_result1656 + deconstruct_result1664 = _t1895 + if !isnothing(deconstruct_result1664) + unwrapped1665 = deconstruct_result1664 write(pp, "(export_csv_config_v2") indent_sexp!(pp) newline(pp) - field1658 = unwrapped1657[1] - pretty_export_csv_output_location(pp, field1658) + field1666 = unwrapped1665[1] + pretty_export_csv_output_location(pp, field1666) newline(pp) - field1659 = unwrapped1657[2] - pretty_export_csv_source(pp, field1659) + field1667 = unwrapped1665[2] + pretty_export_csv_source(pp, field1667) newline(pp) - field1660 = unwrapped1657[3] - pretty_csv_config(pp, field1660) + field1668 = unwrapped1665[3] + pretty_csv_config(pp, field1668) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if length(_dollar_dollar.data_columns) != 0 - _t1889 = deconstruct_export_csv_config(pp, _dollar_dollar) - _t1888 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1889,) + _t1898 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1897 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1898,) else - _t1888 = nothing + _t1897 = nothing end - deconstruct_result1651 = _t1888 - if !isnothing(deconstruct_result1651) - unwrapped1652 = deconstruct_result1651 + deconstruct_result1659 = _t1897 + if !isnothing(deconstruct_result1659) + unwrapped1660 = deconstruct_result1659 write(pp, "(export_csv_config") indent_sexp!(pp) newline(pp) - field1653 = unwrapped1652[1] - pretty_export_csv_path(pp, field1653) + field1661 = unwrapped1660[1] + pretty_export_csv_path(pp, field1661) newline(pp) - field1654 = unwrapped1652[2] - pretty_export_csv_columns_list(pp, field1654) + field1662 = unwrapped1660[2] + pretty_export_csv_columns_list(pp, field1662) newline(pp) - field1655 = unwrapped1652[3] - pretty_config_dict(pp, field1655) + field1663 = unwrapped1660[3] + pretty_config_dict(pp, field1663) dedent!(pp) write(pp, ")") else @@ -5156,40 +5189,40 @@ function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) end function pretty_export_csv_output_location(pp::PrettyPrinter, msg::Tuple{String, String}) - flat1666 = try_flat(pp, msg, pretty_export_csv_output_location) - if !isnothing(flat1666) - write(pp, flat1666) + flat1674 = try_flat(pp, msg, pretty_export_csv_output_location) + if !isnothing(flat1674) + write(pp, flat1674) return nothing else _dollar_dollar = msg if _dollar_dollar[1] != "" - _t1890 = _dollar_dollar[1] + _t1899 = _dollar_dollar[1] else - _t1890 = nothing + _t1899 = nothing end - deconstruct_result1664 = _t1890 - if !isnothing(deconstruct_result1664) - unwrapped1665 = deconstruct_result1664 + deconstruct_result1672 = _t1899 + if !isnothing(deconstruct_result1672) + unwrapped1673 = deconstruct_result1672 write(pp, "(path") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1665)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, unwrapped1673)) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if _dollar_dollar[2] != "" - _t1891 = _dollar_dollar[2] + _t1900 = _dollar_dollar[2] else - _t1891 = nothing + _t1900 = nothing end - deconstruct_result1662 = _t1891 - if !isnothing(deconstruct_result1662) - unwrapped1663 = deconstruct_result1662 + deconstruct_result1670 = _t1900 + if !isnothing(deconstruct_result1670) + unwrapped1671 = deconstruct_result1670 write(pp, "(transaction_output_name") indent_sexp!(pp) newline(pp) - pretty_name(pp, unwrapped1663) + pretty_name(pp, unwrapped1671) dedent!(pp) write(pp, ")") else @@ -5201,30 +5234,30 @@ function pretty_export_csv_output_location(pp::PrettyPrinter, msg::Tuple{String, end function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) - flat1673 = try_flat(pp, msg, pretty_export_csv_source) - if !isnothing(flat1673) - write(pp, flat1673) + flat1681 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1681) + write(pp, flat1681) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) - _t1892 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + _t1901 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns else - _t1892 = nothing + _t1901 = nothing end - deconstruct_result1669 = _t1892 - if !isnothing(deconstruct_result1669) - unwrapped1670 = deconstruct_result1669 + deconstruct_result1677 = _t1901 + if !isnothing(deconstruct_result1677) + unwrapped1678 = deconstruct_result1677 write(pp, "(gnf_columns") indent_sexp!(pp) - if !isempty(unwrapped1670) + if !isempty(unwrapped1678) newline(pp) - for (i1893, elem1671) in enumerate(unwrapped1670) - i1672 = i1893 - 1 - if (i1672 > 0) + for (i1902, elem1679) in enumerate(unwrapped1678) + i1680 = i1902 - 1 + if (i1680 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1671) + pretty_export_csv_column(pp, elem1679) end end dedent!(pp) @@ -5232,17 +5265,17 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("table_def")) - _t1894 = _get_oneof_field(_dollar_dollar, :table_def) + _t1903 = _get_oneof_field(_dollar_dollar, :table_def) else - _t1894 = nothing + _t1903 = nothing end - deconstruct_result1667 = _t1894 - if !isnothing(deconstruct_result1667) - unwrapped1668 = deconstruct_result1667 + deconstruct_result1675 = _t1903 + if !isnothing(deconstruct_result1675) + unwrapped1676 = deconstruct_result1675 write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped1668) + pretty_relation_id(pp, unwrapped1676) dedent!(pp) write(pp, ")") else @@ -5254,22 +5287,22 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) end function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) - flat1678 = try_flat(pp, msg, pretty_export_csv_column) - if !isnothing(flat1678) - write(pp, flat1678) + flat1686 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1686) + write(pp, flat1686) return nothing else _dollar_dollar = msg - fields1674 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - unwrapped_fields1675 = fields1674 + fields1682 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + unwrapped_fields1683 = fields1682 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1676 = unwrapped_fields1675[1] - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1676)) + field1684 = unwrapped_fields1683[1] + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, field1684)) newline(pp) - field1677 = unwrapped_fields1675[2] - pretty_relation_id(pp, field1677) + field1685 = unwrapped_fields1683[2] + pretty_relation_id(pp, field1685) dedent!(pp) write(pp, ")") end @@ -5277,16 +5310,16 @@ function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) end function pretty_export_csv_path(pp::PrettyPrinter, msg::String) - flat1680 = try_flat(pp, msg, pretty_export_csv_path) - if !isnothing(flat1680) - write(pp, flat1680) + flat1688 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1688) + write(pp, flat1688) return nothing else - fields1679 = msg + fields1687 = msg write(pp, "(path") indent_sexp!(pp) newline(pp) - write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1679)) + write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, fields1687)) dedent!(pp) write(pp, ")") end @@ -5294,22 +5327,22 @@ function pretty_export_csv_path(pp::PrettyPrinter, msg::String) end function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) - flat1684 = try_flat(pp, msg, pretty_export_csv_columns_list) - if !isnothing(flat1684) - write(pp, flat1684) + flat1692 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1692) + write(pp, flat1692) return nothing else - fields1681 = msg + fields1689 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1681) + if !isempty(fields1689) newline(pp) - for (i1895, elem1682) in enumerate(fields1681) - i1683 = i1895 - 1 - if (i1683 > 0) + for (i1904, elem1690) in enumerate(fields1689) + i1691 = i1904 - 1 + if (i1691 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1682) + pretty_export_csv_column(pp, elem1690) end end dedent!(pp) @@ -5319,34 +5352,34 @@ function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.Exp end function pretty_export_iceberg_config(pp::PrettyPrinter, msg::Proto.ExportIcebergConfig) - flat1693 = try_flat(pp, msg, pretty_export_iceberg_config) - if !isnothing(flat1693) - write(pp, flat1693) + flat1701 = try_flat(pp, msg, pretty_export_iceberg_config) + if !isnothing(flat1701) + write(pp, flat1701) return nothing else _dollar_dollar = msg - _t1896 = deconstruct_export_iceberg_config_optional(pp, _dollar_dollar) - fields1685 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sort([(k, v) for (k, v) in _dollar_dollar.table_properties]), _t1896,) - unwrapped_fields1686 = fields1685 + _t1905 = deconstruct_export_iceberg_config_optional(pp, _dollar_dollar) + fields1693 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sort([(k, v) for (k, v) in _dollar_dollar.table_properties]), _t1905,) + unwrapped_fields1694 = fields1693 write(pp, "(export_iceberg_config") indent_sexp!(pp) newline(pp) - field1687 = unwrapped_fields1686[1] - pretty_iceberg_locator(pp, field1687) + field1695 = unwrapped_fields1694[1] + pretty_iceberg_locator(pp, field1695) newline(pp) - field1688 = unwrapped_fields1686[2] - pretty_iceberg_catalog_config(pp, field1688) + field1696 = unwrapped_fields1694[2] + pretty_iceberg_catalog_config(pp, field1696) newline(pp) - field1689 = unwrapped_fields1686[3] - pretty_export_iceberg_table_def(pp, field1689) + field1697 = unwrapped_fields1694[3] + pretty_export_iceberg_table_def(pp, field1697) newline(pp) - field1690 = unwrapped_fields1686[4] - pretty_iceberg_table_properties(pp, field1690) - field1691 = unwrapped_fields1686[5] - if !isnothing(field1691) + field1698 = unwrapped_fields1694[4] + pretty_iceberg_table_properties(pp, field1698) + field1699 = unwrapped_fields1694[5] + if !isnothing(field1699) newline(pp) - opt_val1692 = field1691 - pretty_config_dict(pp, opt_val1692) + opt_val1700 = field1699 + pretty_config_dict(pp, opt_val1700) end dedent!(pp) write(pp, ")") @@ -5355,16 +5388,16 @@ function pretty_export_iceberg_config(pp::PrettyPrinter, msg::Proto.ExportIceber end function pretty_export_iceberg_table_def(pp::PrettyPrinter, msg::Proto.RelationId) - flat1695 = try_flat(pp, msg, pretty_export_iceberg_table_def) - if !isnothing(flat1695) - write(pp, flat1695) + flat1703 = try_flat(pp, msg, pretty_export_iceberg_table_def) + if !isnothing(flat1703) + write(pp, flat1703) return nothing else - fields1694 = msg + fields1702 = msg write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, fields1694) + pretty_relation_id(pp, fields1702) dedent!(pp) write(pp, ")") end @@ -5372,22 +5405,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}}) - flat1699 = try_flat(pp, msg, pretty_iceberg_table_properties) - if !isnothing(flat1699) - write(pp, flat1699) + flat1707 = try_flat(pp, msg, pretty_iceberg_table_properties) + if !isnothing(flat1707) + write(pp, flat1707) return nothing else - fields1696 = msg + fields1704 = msg write(pp, "(table_properties") indent_sexp!(pp) - if !isempty(fields1696) + if !isempty(fields1704) newline(pp) - for (i1897, elem1697) in enumerate(fields1696) - i1698 = i1897 - 1 - if (i1698 > 0) + for (i1906, elem1705) in enumerate(fields1704) + i1706 = i1906 - 1 + if (i1706 > 0) newline(pp) end - pretty_iceberg_property_entry(pp, elem1697) + pretty_iceberg_property_entry(pp, elem1705) end end dedent!(pp) @@ -5402,12 +5435,12 @@ end function pretty_debug_info(pp::PrettyPrinter, msg::Proto.DebugInfo) write(pp, "(debug_info") indent_sexp!(pp) - for (i1951, _rid) in enumerate(msg.ids) - _idx = i1951 - 1 + for (i1961, _rid) in enumerate(msg.ids) + _idx = i1961 - 1 newline(pp) write(pp, "(") - _t1952 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1952) + _t1962 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1962) write(pp, " ") write(pp, format_string(DEFAULT_CONSTANT_FORMATTER, pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -5471,8 +5504,8 @@ function pretty_cdc_targets(pp::PrettyPrinter, msg::Proto.CDCTargets) indent_sexp!(pp) newline(pp) write(pp, ":inserts (") - for (i1953, _elem) in enumerate(msg.inserts) - _idx = i1953 - 1 + for (i1963, _elem) in enumerate(msg.inserts) + _idx = i1963 - 1 if (_idx > 0) write(pp, " ") end @@ -5481,8 +5514,8 @@ function pretty_cdc_targets(pp::PrettyPrinter, msg::Proto.CDCTargets) write(pp, ")") newline(pp) write(pp, ":deletes (") - for (i1954, _elem) in enumerate(msg.deletes) - _idx = i1954 - 1 + for (i1964, _elem) in enumerate(msg.deletes) + _idx = i1964 - 1 if (_idx > 0) write(pp, " ") end @@ -5506,8 +5539,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe _pprint_dispatch(pp, msg.guard) newline(pp) write(pp, ":keys (") - for (i1955, _elem) in enumerate(msg.keys) - _idx = i1955 - 1 + for (i1965, _elem) in enumerate(msg.keys) + _idx = i1965 - 1 if (_idx > 0) write(pp, " ") end @@ -5516,8 +5549,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe write(pp, ")") newline(pp) write(pp, ":values (") - for (i1956, _elem) in enumerate(msg.values) - _idx = i1956 - 1 + for (i1966, _elem) in enumerate(msg.values) + _idx = i1966 - 1 if (_idx > 0) write(pp, " ") end @@ -5543,8 +5576,8 @@ function pretty_plain_targets(pp::PrettyPrinter, msg::Proto.PlainTargets) indent_sexp!(pp) newline(pp) write(pp, ":targets (") - for (i1957, _elem) in enumerate(msg.targets) - _idx = i1957 - 1 + for (i1967, _elem) in enumerate(msg.targets) + _idx = i1967 - 1 if (_idx > 0) write(pp, " ") end @@ -5588,8 +5621,8 @@ function pretty_export_csv_columns(pp::PrettyPrinter, msg::Proto.ExportCSVColumn indent_sexp!(pp) newline(pp) write(pp, ":columns (") - for (i1958, _elem) in enumerate(msg.columns) - _idx = i1958 - 1 + for (i1968, _elem) in enumerate(msg.columns) + _idx = i1968 - 1 if (_idx > 0) write(pp, " ") end diff --git a/sdks/julia/LogicalQueryProtocol.jl/test/equality_tests.jl b/sdks/julia/LogicalQueryProtocol.jl/test/equality_tests.jl index 98f0b542..59269651 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/test/equality_tests.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/test/equality_tests.jl @@ -2340,13 +2340,22 @@ end # Different oneof arms are unequal even when they share a relation. @test g1 != cdc1 - # `synthetic_key` participates in equality and hashing. + # `synthetic_key` and `load_errors` participate in equality and hashing. s1 = TargetRelations(keys=[], body=plain([rel1]), synthetic_key=true) s2 = TargetRelations(keys=[], body=plain([rel1]), synthetic_key=true) @test s1 == s2 @test hash(s1) == hash(s2) @test isequal(s1, s2) @test s1 != g3 # same keys and body, differs only in synthetic_key + + e1 = TargetRelations(keys=[key], body=plain([rel1]), load_errors=r1) + e2 = TargetRelations(keys=[key], body=plain([rel1]), load_errors=r1) + e3 = TargetRelations(keys=[key], body=plain([rel1]), load_errors=r2) + @test e1 == e2 + @test hash(e1) == hash(e2) + @test isequal(e1, e2) + @test e1 != e3 # different load_errors target + @test e1 != g1 # load_errors set vs unset end @testitem "Equality for CSVData" tags=[:ring1, :unit] begin diff --git a/sdks/python/src/lqp/gen/parser.py b/sdks/python/src/lqp/gen/parser.py index a3fde630..c1608791 100644 --- a/sdks/python/src/lqp/gen/parser.py +++ b/sdks/python/src/lqp/gen/parser.py @@ -425,218 +425,218 @@ def _extract_value_int32(self, value: logic_pb2.Value | None, default: int) -> i if value is None: return int(default) else: - _t2208 = None + _t2219 = None assert value is not None if value.HasField("int32_value"): assert value is not None return value.int32_value else: - _t2209 = None + _t2220 = None raise ParseError("expected an int32 value (e.g. `1i32`) for this config field") def _extract_value_int64(self, value: logic_pb2.Value | None, default: int) -> int: if value is not None: assert value is not None - _t2210 = value.HasField("int_value") + _t2221 = value.HasField("int_value") else: - _t2210 = False - if _t2210: + _t2221 = False + if _t2221: assert value is not None return value.int_value else: - _t2211 = None + _t2222 = 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 - _t2212 = value.HasField("string_value") + _t2223 = value.HasField("string_value") else: - _t2212 = False - if _t2212: + _t2223 = False + if _t2223: assert value is not None return value.string_value else: - _t2213 = None + _t2224 = 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 - _t2214 = value.HasField("boolean_value") + _t2225 = value.HasField("boolean_value") else: - _t2214 = False - if _t2214: + _t2225 = False + if _t2225: assert value is not None return value.boolean_value else: - _t2215 = None + _t2226 = 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 - _t2216 = value.HasField("string_value") + _t2227 = value.HasField("string_value") else: - _t2216 = False - if _t2216: + _t2227 = False + if _t2227: assert value is not None return [value.string_value] else: - _t2217 = None + _t2228 = 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 - _t2218 = value.HasField("int_value") + _t2229 = value.HasField("int_value") else: - _t2218 = False - if _t2218: + _t2229 = False + if _t2229: assert value is not None return value.int_value else: - _t2219 = None + _t2230 = 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 - _t2220 = value.HasField("float_value") + _t2231 = value.HasField("float_value") else: - _t2220 = False - if _t2220: + _t2231 = False + if _t2231: assert value is not None return value.float_value else: - _t2221 = None + _t2232 = 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 - _t2222 = value.HasField("string_value") + _t2233 = value.HasField("string_value") else: - _t2222 = False - if _t2222: + _t2233 = False + if _t2233: assert value is not None return value.string_value.encode() else: - _t2223 = None + _t2234 = 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 - _t2224 = value.HasField("uint128_value") + _t2235 = value.HasField("uint128_value") else: - _t2224 = False - if _t2224: + _t2235 = False + if _t2235: assert value is not None return value.uint128_value else: - _t2225 = None + _t2236 = None return None def construct_non_cdc_relations(self, targets: Sequence[logic_pb2.TargetRelation]) -> logic_pb2.TargetRelations: - _t2226 = logic_pb2.PlainTargets(targets=targets) - _t2227 = logic_pb2.TargetRelations(keys=[], plain=_t2226) - return _t2227 + _t2237 = logic_pb2.PlainTargets(targets=targets) + _t2238 = logic_pb2.TargetRelations(keys=[], plain=_t2237) + return _t2238 def construct_cdc_relations(self, inserts: Sequence[logic_pb2.TargetRelation], deletes: Sequence[logic_pb2.TargetRelation]) -> logic_pb2.TargetRelations: - _t2228 = logic_pb2.CDCTargets(inserts=inserts, deletes=deletes) - _t2229 = logic_pb2.TargetRelations(keys=[], cdc=_t2228) - return _t2229 + _t2239 = logic_pb2.CDCTargets(inserts=inserts, deletes=deletes) + _t2240 = logic_pb2.TargetRelations(keys=[], cdc=_t2239) + return _t2240 - def construct_relations(self, keys: tuple[Sequence[logic_pb2.NamedColumn], bool], body: logic_pb2.TargetRelations) -> logic_pb2.TargetRelations: + def construct_relations(self, keys: tuple[Sequence[logic_pb2.NamedColumn], bool], body: logic_pb2.TargetRelations, load_errors_opt: logic_pb2.RelationId | None) -> logic_pb2.TargetRelations: if body.HasField("plain"): - _t2231 = logic_pb2.TargetRelations(keys=keys[0], synthetic_key=keys[1], plain=body.plain) - return _t2231 + _t2242 = logic_pb2.TargetRelations(keys=keys[0], synthetic_key=keys[1], plain=body.plain, load_errors=load_errors_opt) + return _t2242 else: - _t2230 = None - _t2232 = logic_pb2.TargetRelations(keys=keys[0], synthetic_key=keys[1], cdc=body.cdc) - return _t2232 + _t2241 = None + _t2243 = logic_pb2.TargetRelations(keys=keys[0], synthetic_key=keys[1], cdc=body.cdc, load_errors=load_errors_opt) + return _t2243 def construct_csv_data(self, locator: logic_pb2.CSVLocator, config: logic_pb2.CSVConfig, columns_opt: Sequence[logic_pb2.GNFColumn] | None, relations_opt: logic_pb2.TargetRelations | None, asof: str) -> logic_pb2.CSVData: - _t2233 = logic_pb2.CSVData(locator=locator, config=config, columns=(columns_opt if columns_opt is not None else []), asof=asof, relations=relations_opt) - return _t2233 + _t2244 = logic_pb2.CSVData(locator=locator, config=config, columns=(columns_opt if columns_opt is not None else []), asof=asof, relations=relations_opt) + return _t2244 def construct_csv_config(self, config_dict: Sequence[tuple[str, logic_pb2.Value]], storage_integration_opt: Sequence[tuple[str, logic_pb2.Value]] | None) -> logic_pb2.CSVConfig: config = dict(config_dict) - _t2234 = self._extract_value_int32(config.get("csv_header_row"), 1) - header_row = _t2234 - _t2235 = self._extract_value_int64(config.get("csv_skip"), 0) - skip = _t2235 - _t2236 = self._extract_value_string(config.get("csv_new_line"), "") - new_line = _t2236 - _t2237 = self._extract_value_string(config.get("csv_delimiter"), ",") - delimiter = _t2237 - _t2238 = self._extract_value_string(config.get("csv_quotechar"), '"') - quotechar = _t2238 - _t2239 = self._extract_value_string(config.get("csv_escapechar"), '"') - escapechar = _t2239 - _t2240 = self._extract_value_string(config.get("csv_comment"), "") - comment = _t2240 - _t2241 = self._extract_value_string_list(config.get("csv_missing_strings"), []) - missing_strings = _t2241 - _t2242 = self._extract_value_string(config.get("csv_decimal_separator"), ".") - decimal_separator = _t2242 - _t2243 = self._extract_value_string(config.get("csv_encoding"), "utf-8") - encoding = _t2243 - _t2244 = self._extract_value_string(config.get("csv_compression"), "") - compression = _t2244 - _t2245 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) - partition_size_mb = _t2245 - _t2246 = self.construct_csv_storage_integration(storage_integration_opt) - storage_integration = _t2246 - _t2247 = 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, storage_integration=storage_integration) - return _t2247 + _t2245 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t2245 + _t2246 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t2246 + _t2247 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t2247 + _t2248 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t2248 + _t2249 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t2249 + _t2250 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t2250 + _t2251 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t2251 + _t2252 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t2252 + _t2253 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t2253 + _t2254 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t2254 + _t2255 = self._extract_value_string(config.get("csv_compression"), "") + compression = _t2255 + _t2256 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t2256 + _t2257 = self.construct_csv_storage_integration(storage_integration_opt) + storage_integration = _t2257 + _t2258 = 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, storage_integration=storage_integration) + return _t2258 def construct_csv_storage_integration(self, storage_integration_opt: Sequence[tuple[str, logic_pb2.Value]] | None) -> logic_pb2.StorageIntegration | None: if storage_integration_opt is None: return None else: - _t2248 = None + _t2259 = None assert storage_integration_opt is not None config = dict(storage_integration_opt) - _t2249 = self._extract_value_string(config.get("provider"), "") - _t2250 = self._extract_value_string(config.get("azure_sas_token"), "") - _t2251 = self._extract_value_string(config.get("s3_region"), "") - _t2252 = self._extract_value_string(config.get("s3_access_key_id"), "") - _t2253 = self._extract_value_string(config.get("s3_secret_access_key"), "") - _t2254 = logic_pb2.StorageIntegration(provider=_t2249, azure_sas_token=_t2250, s3_region=_t2251, s3_access_key_id=_t2252, s3_secret_access_key=_t2253) - return _t2254 + _t2260 = self._extract_value_string(config.get("provider"), "") + _t2261 = self._extract_value_string(config.get("azure_sas_token"), "") + _t2262 = self._extract_value_string(config.get("s3_region"), "") + _t2263 = self._extract_value_string(config.get("s3_access_key_id"), "") + _t2264 = self._extract_value_string(config.get("s3_secret_access_key"), "") + _t2265 = logic_pb2.StorageIntegration(provider=_t2260, azure_sas_token=_t2261, s3_region=_t2262, s3_access_key_id=_t2263, s3_secret_access_key=_t2264) + return _t2265 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) - _t2255 = self._try_extract_value_float64(config.get("betree_config_epsilon")) - epsilon = _t2255 - _t2256 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) - max_pivots = _t2256 - _t2257 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) - max_deltas = _t2257 - _t2258 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) - max_leaf = _t2258 - _t2259 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t2259 - _t2260 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) - root_pageid = _t2260 - _t2261 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) - inline_data = _t2261 - _t2262 = self._try_extract_value_int64(config.get("betree_locator_element_count")) - element_count = _t2262 - _t2263 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) - tree_height = _t2263 - _t2264 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) - relation_locator = _t2264 - _t2265 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t2265 + _t2266 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t2266 + _t2267 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t2267 + _t2268 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t2268 + _t2269 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t2269 + _t2270 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t2270 + _t2271 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t2271 + _t2272 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t2272 + _t2273 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t2273 + _t2274 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t2274 + _t2275 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t2275 + _t2276 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t2276 def default_configure(self) -> transactions_pb2.Configure: - _t2266 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t2266 - _t2267 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) - return _t2267 + _t2277 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t2277 + _t2278 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t2278 def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.Configure: config = dict(config_dict) @@ -653,3591 +653,3608 @@ 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 - _t2268 = transactions_pb2.IVMConfig(level=maintenance_level) - ivm_config = _t2268 - _t2269 = self._extract_value_int64(config.get("semantics_version"), 0) - semantics_version = _t2269 + _t2279 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t2279 + _t2280 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t2280 config_values_pairs = [] for pair in config_dict: if (pair[0] != "semantics_version" and pair[0] != "ivm.maintenance_level"): config_values_pairs.append(pair) configuration_values = dict(config_values_pairs) - _t2270 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config, configuration_values=configuration_values) - return _t2270 + _t2281 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config, configuration_values=configuration_values) + return _t2281 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) - _t2271 = self._extract_value_int64(config.get("partition_size"), 0) - partition_size = _t2271 - _t2272 = self._extract_value_string(config.get("compression"), "") - compression = _t2272 - _t2273 = self._extract_value_boolean(config.get("syntax_header_row"), True) - syntax_header_row = _t2273 - _t2274 = self._extract_value_string(config.get("syntax_missing_string"), "") - syntax_missing_string = _t2274 - _t2275 = self._extract_value_string(config.get("syntax_delim"), ",") - syntax_delim = _t2275 - _t2276 = self._extract_value_string(config.get("syntax_quotechar"), '"') - syntax_quotechar = _t2276 - _t2277 = self._extract_value_string(config.get("syntax_escapechar"), "\\") - syntax_escapechar = _t2277 - _t2278 = 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 _t2278 + _t2282 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t2282 + _t2283 = self._extract_value_string(config.get("compression"), "") + compression = _t2283 + _t2284 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t2284 + _t2285 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t2285 + _t2286 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t2286 + _t2287 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t2287 + _t2288 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t2288 + _t2289 = 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 _t2289 def construct_export_csv_config_with_location(self, location: tuple[str, str], csv_source: transactions_pb2.ExportCSVSource, csv_config: logic_pb2.CSVConfig) -> transactions_pb2.ExportCSVConfig: - _t2279 = transactions_pb2.ExportCSVConfig(path=location[0], transaction_output_name=location[1], csv_source=csv_source, csv_config=csv_config) - return _t2279 + _t2290 = transactions_pb2.ExportCSVConfig(path=location[0], transaction_output_name=location[1], csv_source=csv_source, csv_config=csv_config) + return _t2290 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) - _t2280 = logic_pb2.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(scope_opt if scope_opt is not None else ""), properties=props, auth_properties=auth_props) - return _t2280 + _t2291 = logic_pb2.IcebergCatalogConfig(catalog_uri=catalog_uri, scope=(scope_opt if scope_opt is not None else ""), properties=props, auth_properties=auth_props) + return _t2291 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: - _t2281 = 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 _t2281 + _t2292 = 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 _t2292 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 [])) - _t2282 = self._extract_value_string(cfg.get("prefix"), "") - prefix = _t2282 - _t2283 = self._extract_value_int64(cfg.get("target_file_size_bytes"), 0) - target_file_size_bytes = _t2283 - _t2284 = self._extract_value_string(cfg.get("compression"), "") - compression = _t2284 + _t2293 = self._extract_value_string(cfg.get("prefix"), "") + prefix = _t2293 + _t2294 = self._extract_value_int64(cfg.get("target_file_size_bytes"), 0) + target_file_size_bytes = _t2294 + _t2295 = self._extract_value_string(cfg.get("compression"), "") + compression = _t2295 table_props = dict(table_property_pairs) - _t2285 = 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 _t2285 + _t2296 = 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 _t2296 # --- Parse methods --- def parse_transaction(self) -> transactions_pb2.Transaction: - span_start714 = self.span_start() + span_start718 = self.span_start() self.consume_literal("(") self.consume_literal("transaction") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("configure", 1)): - _t1417 = self.parse_configure() - _t1416 = _t1417 + _t1425 = self.parse_configure() + _t1424 = _t1425 else: - _t1416 = None - configure708 = _t1416 + _t1424 = None + configure712 = _t1424 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("sync", 1)): - _t1419 = self.parse_sync() - _t1418 = _t1419 + _t1427 = self.parse_sync() + _t1426 = _t1427 else: - _t1418 = None - sync709 = _t1418 - xs710 = [] - cond711 = self.match_lookahead_literal("(", 0) - while cond711: - _t1420 = self.parse_epoch() - item712 = _t1420 - xs710.append(item712) - cond711 = self.match_lookahead_literal("(", 0) - epochs713 = xs710 + _t1426 = None + sync713 = _t1426 + xs714 = [] + cond715 = self.match_lookahead_literal("(", 0) + while cond715: + _t1428 = self.parse_epoch() + item716 = _t1428 + xs714.append(item716) + cond715 = self.match_lookahead_literal("(", 0) + epochs717 = xs714 self.consume_literal(")") - _t1421 = self.default_configure() - _t1422 = transactions_pb2.Transaction(epochs=epochs713, configure=(configure708 if configure708 is not None else _t1421), sync=sync709) - result715 = _t1422 - self.record_span(span_start714, "Transaction") - return result715 + _t1429 = self.default_configure() + _t1430 = transactions_pb2.Transaction(epochs=epochs717, configure=(configure712 if configure712 is not None else _t1429), sync=sync713) + result719 = _t1430 + self.record_span(span_start718, "Transaction") + return result719 def parse_configure(self) -> transactions_pb2.Configure: - span_start717 = self.span_start() + span_start721 = self.span_start() self.consume_literal("(") self.consume_literal("configure") - _t1423 = self.parse_config_dict() - config_dict716 = _t1423 + _t1431 = self.parse_config_dict() + config_dict720 = _t1431 self.consume_literal(")") - _t1424 = self.construct_configure(config_dict716) - result718 = _t1424 - self.record_span(span_start717, "Configure") - return result718 + _t1432 = self.construct_configure(config_dict720) + result722 = _t1432 + self.record_span(span_start721, "Configure") + return result722 def parse_config_dict(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("{") - xs719 = [] - cond720 = self.match_lookahead_literal(":", 0) - while cond720: - _t1425 = self.parse_config_key_value() - item721 = _t1425 - xs719.append(item721) - cond720 = self.match_lookahead_literal(":", 0) - config_key_values722 = xs719 + xs723 = [] + cond724 = self.match_lookahead_literal(":", 0) + while cond724: + _t1433 = self.parse_config_key_value() + item725 = _t1433 + xs723.append(item725) + cond724 = self.match_lookahead_literal(":", 0) + config_key_values726 = xs723 self.consume_literal("}") - return config_key_values722 + return config_key_values726 def parse_config_key_value(self) -> tuple[str, logic_pb2.Value]: self.consume_literal(":") - symbol723 = self.consume_terminal("SYMBOL") - _t1426 = self.parse_raw_value() - raw_value724 = _t1426 - return (symbol723, raw_value724,) + symbol727 = self.consume_terminal("SYMBOL") + _t1434 = self.parse_raw_value() + raw_value728 = _t1434 + return (symbol727, raw_value728,) def parse_raw_value(self) -> logic_pb2.Value: - span_start738 = self.span_start() + span_start742 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1427 = 12 + _t1435 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1428 = 11 + _t1436 = 11 else: if self.match_lookahead_literal("false", 0): - _t1429 = 12 + _t1437 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1431 = 1 + _t1439 = 1 else: if self.match_lookahead_literal("date", 1): - _t1432 = 0 + _t1440 = 0 else: - _t1432 = -1 - _t1431 = _t1432 - _t1430 = _t1431 + _t1440 = -1 + _t1439 = _t1440 + _t1438 = _t1439 else: if self.match_lookahead_terminal("UINT32", 0): - _t1433 = 7 + _t1441 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1434 = 8 + _t1442 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1435 = 2 + _t1443 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1436 = 3 + _t1444 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1437 = 9 + _t1445 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1438 = 4 + _t1446 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1439 = 5 + _t1447 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1440 = 6 + _t1448 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1441 = 10 + _t1449 = 10 else: - _t1441 = -1 - _t1440 = _t1441 - _t1439 = _t1440 - _t1438 = _t1439 - _t1437 = _t1438 - _t1436 = _t1437 - _t1435 = _t1436 - _t1434 = _t1435 - _t1433 = _t1434 - _t1430 = _t1433 - _t1429 = _t1430 - _t1428 = _t1429 - _t1427 = _t1428 - prediction725 = _t1427 - if prediction725 == 12: - _t1443 = self.parse_boolean_value() - boolean_value737 = _t1443 - _t1444 = logic_pb2.Value(boolean_value=boolean_value737) - _t1442 = _t1444 + _t1449 = -1 + _t1448 = _t1449 + _t1447 = _t1448 + _t1446 = _t1447 + _t1445 = _t1446 + _t1444 = _t1445 + _t1443 = _t1444 + _t1442 = _t1443 + _t1441 = _t1442 + _t1438 = _t1441 + _t1437 = _t1438 + _t1436 = _t1437 + _t1435 = _t1436 + prediction729 = _t1435 + if prediction729 == 12: + _t1451 = self.parse_boolean_value() + boolean_value741 = _t1451 + _t1452 = logic_pb2.Value(boolean_value=boolean_value741) + _t1450 = _t1452 else: - if prediction725 == 11: + if prediction729 == 11: self.consume_literal("missing") - _t1446 = logic_pb2.MissingValue() - _t1447 = logic_pb2.Value(missing_value=_t1446) - _t1445 = _t1447 + _t1454 = logic_pb2.MissingValue() + _t1455 = logic_pb2.Value(missing_value=_t1454) + _t1453 = _t1455 else: - if prediction725 == 10: - decimal736 = self.consume_terminal("DECIMAL") - _t1449 = logic_pb2.Value(decimal_value=decimal736) - _t1448 = _t1449 + if prediction729 == 10: + decimal740 = self.consume_terminal("DECIMAL") + _t1457 = logic_pb2.Value(decimal_value=decimal740) + _t1456 = _t1457 else: - if prediction725 == 9: - int128735 = self.consume_terminal("INT128") - _t1451 = logic_pb2.Value(int128_value=int128735) - _t1450 = _t1451 + if prediction729 == 9: + int128739 = self.consume_terminal("INT128") + _t1459 = logic_pb2.Value(int128_value=int128739) + _t1458 = _t1459 else: - if prediction725 == 8: - uint128734 = self.consume_terminal("UINT128") - _t1453 = logic_pb2.Value(uint128_value=uint128734) - _t1452 = _t1453 + if prediction729 == 8: + uint128738 = self.consume_terminal("UINT128") + _t1461 = logic_pb2.Value(uint128_value=uint128738) + _t1460 = _t1461 else: - if prediction725 == 7: - uint32733 = self.consume_terminal("UINT32") - _t1455 = logic_pb2.Value(uint32_value=uint32733) - _t1454 = _t1455 + if prediction729 == 7: + uint32737 = self.consume_terminal("UINT32") + _t1463 = logic_pb2.Value(uint32_value=uint32737) + _t1462 = _t1463 else: - if prediction725 == 6: - float732 = self.consume_terminal("FLOAT") - _t1457 = logic_pb2.Value(float_value=float732) - _t1456 = _t1457 + if prediction729 == 6: + float736 = self.consume_terminal("FLOAT") + _t1465 = logic_pb2.Value(float_value=float736) + _t1464 = _t1465 else: - if prediction725 == 5: - float32731 = self.consume_terminal("FLOAT32") - _t1459 = logic_pb2.Value(float32_value=float32731) - _t1458 = _t1459 + if prediction729 == 5: + float32735 = self.consume_terminal("FLOAT32") + _t1467 = logic_pb2.Value(float32_value=float32735) + _t1466 = _t1467 else: - if prediction725 == 4: - int730 = self.consume_terminal("INT") - _t1461 = logic_pb2.Value(int_value=int730) - _t1460 = _t1461 + if prediction729 == 4: + int734 = self.consume_terminal("INT") + _t1469 = logic_pb2.Value(int_value=int734) + _t1468 = _t1469 else: - if prediction725 == 3: - int32729 = self.consume_terminal("INT32") - _t1463 = logic_pb2.Value(int32_value=int32729) - _t1462 = _t1463 + if prediction729 == 3: + int32733 = self.consume_terminal("INT32") + _t1471 = logic_pb2.Value(int32_value=int32733) + _t1470 = _t1471 else: - if prediction725 == 2: - string728 = self.consume_terminal("STRING") - _t1465 = logic_pb2.Value(string_value=string728) - _t1464 = _t1465 + if prediction729 == 2: + string732 = self.consume_terminal("STRING") + _t1473 = logic_pb2.Value(string_value=string732) + _t1472 = _t1473 else: - if prediction725 == 1: - _t1467 = self.parse_raw_datetime() - raw_datetime727 = _t1467 - _t1468 = logic_pb2.Value(datetime_value=raw_datetime727) - _t1466 = _t1468 + if prediction729 == 1: + _t1475 = self.parse_raw_datetime() + raw_datetime731 = _t1475 + _t1476 = logic_pb2.Value(datetime_value=raw_datetime731) + _t1474 = _t1476 else: - if prediction725 == 0: - _t1470 = self.parse_raw_date() - raw_date726 = _t1470 - _t1471 = logic_pb2.Value(date_value=raw_date726) - _t1469 = _t1471 + if prediction729 == 0: + _t1478 = self.parse_raw_date() + raw_date730 = _t1478 + _t1479 = logic_pb2.Value(date_value=raw_date730) + _t1477 = _t1479 else: raise ParseError("Unexpected token in raw_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1466 = _t1469 - _t1464 = _t1466 - _t1462 = _t1464 - _t1460 = _t1462 - _t1458 = _t1460 - _t1456 = _t1458 - _t1454 = _t1456 - _t1452 = _t1454 - _t1450 = _t1452 - _t1448 = _t1450 - _t1445 = _t1448 - _t1442 = _t1445 - result739 = _t1442 - self.record_span(span_start738, "Value") - return result739 + _t1474 = _t1477 + _t1472 = _t1474 + _t1470 = _t1472 + _t1468 = _t1470 + _t1466 = _t1468 + _t1464 = _t1466 + _t1462 = _t1464 + _t1460 = _t1462 + _t1458 = _t1460 + _t1456 = _t1458 + _t1453 = _t1456 + _t1450 = _t1453 + result743 = _t1450 + self.record_span(span_start742, "Value") + return result743 def parse_raw_date(self) -> logic_pb2.DateValue: - span_start743 = self.span_start() + span_start747 = self.span_start() self.consume_literal("(") self.consume_literal("date") - int740 = self.consume_terminal("INT") - int_3741 = self.consume_terminal("INT") - int_4742 = self.consume_terminal("INT") + int744 = self.consume_terminal("INT") + int_3745 = self.consume_terminal("INT") + int_4746 = self.consume_terminal("INT") self.consume_literal(")") - _t1472 = logic_pb2.DateValue(year=int(int740), month=int(int_3741), day=int(int_4742)) - result744 = _t1472 - self.record_span(span_start743, "DateValue") - return result744 + _t1480 = logic_pb2.DateValue(year=int(int744), month=int(int_3745), day=int(int_4746)) + result748 = _t1480 + self.record_span(span_start747, "DateValue") + return result748 def parse_raw_datetime(self) -> logic_pb2.DateTimeValue: - span_start752 = self.span_start() + span_start756 = self.span_start() self.consume_literal("(") self.consume_literal("datetime") - int745 = self.consume_terminal("INT") - int_3746 = self.consume_terminal("INT") - int_4747 = self.consume_terminal("INT") - int_5748 = self.consume_terminal("INT") - int_6749 = self.consume_terminal("INT") - int_7750 = self.consume_terminal("INT") + int749 = self.consume_terminal("INT") + int_3750 = self.consume_terminal("INT") + int_4751 = self.consume_terminal("INT") + int_5752 = self.consume_terminal("INT") + int_6753 = self.consume_terminal("INT") + int_7754 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1473 = self.consume_terminal("INT") + _t1481 = self.consume_terminal("INT") else: - _t1473 = None - int_8751 = _t1473 + _t1481 = None + int_8755 = _t1481 self.consume_literal(")") - _t1474 = logic_pb2.DateTimeValue(year=int(int745), month=int(int_3746), day=int(int_4747), hour=int(int_5748), minute=int(int_6749), second=int(int_7750), microsecond=int((int_8751 if int_8751 is not None else 0))) - result753 = _t1474 - self.record_span(span_start752, "DateTimeValue") - return result753 + _t1482 = logic_pb2.DateTimeValue(year=int(int749), month=int(int_3750), day=int(int_4751), hour=int(int_5752), minute=int(int_6753), second=int(int_7754), microsecond=int((int_8755 if int_8755 is not None else 0))) + result757 = _t1482 + self.record_span(span_start756, "DateTimeValue") + return result757 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t1475 = 0 + _t1483 = 0 else: if self.match_lookahead_literal("false", 0): - _t1476 = 1 + _t1484 = 1 else: - _t1476 = -1 - _t1475 = _t1476 - prediction754 = _t1475 - if prediction754 == 1: + _t1484 = -1 + _t1483 = _t1484 + prediction758 = _t1483 + if prediction758 == 1: self.consume_literal("false") - _t1477 = False + _t1485 = False else: - if prediction754 == 0: + if prediction758 == 0: self.consume_literal("true") - _t1478 = True + _t1486 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1477 = _t1478 - return _t1477 + _t1485 = _t1486 + return _t1485 def parse_sync(self) -> transactions_pb2.Sync: - span_start759 = self.span_start() + span_start763 = self.span_start() self.consume_literal("(") self.consume_literal("sync") - xs755 = [] - cond756 = self.match_lookahead_literal(":", 0) - while cond756: - _t1479 = self.parse_fragment_id() - item757 = _t1479 - xs755.append(item757) - cond756 = self.match_lookahead_literal(":", 0) - fragment_ids758 = xs755 + xs759 = [] + cond760 = self.match_lookahead_literal(":", 0) + while cond760: + _t1487 = self.parse_fragment_id() + item761 = _t1487 + xs759.append(item761) + cond760 = self.match_lookahead_literal(":", 0) + fragment_ids762 = xs759 self.consume_literal(")") - _t1480 = transactions_pb2.Sync(fragments=fragment_ids758) - result760 = _t1480 - self.record_span(span_start759, "Sync") - return result760 + _t1488 = transactions_pb2.Sync(fragments=fragment_ids762) + result764 = _t1488 + self.record_span(span_start763, "Sync") + return result764 def parse_fragment_id(self) -> fragments_pb2.FragmentId: - span_start762 = self.span_start() + span_start766 = self.span_start() self.consume_literal(":") - symbol761 = self.consume_terminal("SYMBOL") - result763 = fragments_pb2.FragmentId(id=symbol761.encode()) - self.record_span(span_start762, "FragmentId") - return result763 + symbol765 = self.consume_terminal("SYMBOL") + result767 = fragments_pb2.FragmentId(id=symbol765.encode()) + self.record_span(span_start766, "FragmentId") + return result767 def parse_epoch(self) -> transactions_pb2.Epoch: - span_start766 = self.span_start() + span_start770 = self.span_start() self.consume_literal("(") self.consume_literal("epoch") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("writes", 1)): - _t1482 = self.parse_epoch_writes() - _t1481 = _t1482 + _t1490 = self.parse_epoch_writes() + _t1489 = _t1490 else: - _t1481 = None - epoch_writes764 = _t1481 + _t1489 = None + epoch_writes768 = _t1489 if self.match_lookahead_literal("(", 0): - _t1484 = self.parse_epoch_reads() - _t1483 = _t1484 + _t1492 = self.parse_epoch_reads() + _t1491 = _t1492 else: - _t1483 = None - epoch_reads765 = _t1483 + _t1491 = None + epoch_reads769 = _t1491 self.consume_literal(")") - _t1485 = transactions_pb2.Epoch(writes=(epoch_writes764 if epoch_writes764 is not None else []), reads=(epoch_reads765 if epoch_reads765 is not None else [])) - result767 = _t1485 - self.record_span(span_start766, "Epoch") - return result767 + _t1493 = transactions_pb2.Epoch(writes=(epoch_writes768 if epoch_writes768 is not None else []), reads=(epoch_reads769 if epoch_reads769 is not None else [])) + result771 = _t1493 + self.record_span(span_start770, "Epoch") + return result771 def parse_epoch_writes(self) -> Sequence[transactions_pb2.Write]: self.consume_literal("(") self.consume_literal("writes") - xs768 = [] - cond769 = self.match_lookahead_literal("(", 0) - while cond769: - _t1486 = self.parse_write() - item770 = _t1486 - xs768.append(item770) - cond769 = self.match_lookahead_literal("(", 0) - writes771 = xs768 + xs772 = [] + cond773 = self.match_lookahead_literal("(", 0) + while cond773: + _t1494 = self.parse_write() + item774 = _t1494 + xs772.append(item774) + cond773 = self.match_lookahead_literal("(", 0) + writes775 = xs772 self.consume_literal(")") - return writes771 + return writes775 def parse_write(self) -> transactions_pb2.Write: - span_start777 = self.span_start() + span_start781 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t1488 = 1 + _t1496 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t1489 = 3 + _t1497 = 3 else: if self.match_lookahead_literal("define", 1): - _t1490 = 0 + _t1498 = 0 else: if self.match_lookahead_literal("context", 1): - _t1491 = 2 + _t1499 = 2 else: - _t1491 = -1 - _t1490 = _t1491 - _t1489 = _t1490 - _t1488 = _t1489 - _t1487 = _t1488 + _t1499 = -1 + _t1498 = _t1499 + _t1497 = _t1498 + _t1496 = _t1497 + _t1495 = _t1496 else: - _t1487 = -1 - prediction772 = _t1487 - if prediction772 == 3: - _t1493 = self.parse_snapshot() - snapshot776 = _t1493 - _t1494 = transactions_pb2.Write(snapshot=snapshot776) - _t1492 = _t1494 + _t1495 = -1 + prediction776 = _t1495 + if prediction776 == 3: + _t1501 = self.parse_snapshot() + snapshot780 = _t1501 + _t1502 = transactions_pb2.Write(snapshot=snapshot780) + _t1500 = _t1502 else: - if prediction772 == 2: - _t1496 = self.parse_context() - context775 = _t1496 - _t1497 = transactions_pb2.Write(context=context775) - _t1495 = _t1497 + if prediction776 == 2: + _t1504 = self.parse_context() + context779 = _t1504 + _t1505 = transactions_pb2.Write(context=context779) + _t1503 = _t1505 else: - if prediction772 == 1: - _t1499 = self.parse_undefine() - undefine774 = _t1499 - _t1500 = transactions_pb2.Write(undefine=undefine774) - _t1498 = _t1500 + if prediction776 == 1: + _t1507 = self.parse_undefine() + undefine778 = _t1507 + _t1508 = transactions_pb2.Write(undefine=undefine778) + _t1506 = _t1508 else: - if prediction772 == 0: - _t1502 = self.parse_define() - define773 = _t1502 - _t1503 = transactions_pb2.Write(define=define773) - _t1501 = _t1503 + if prediction776 == 0: + _t1510 = self.parse_define() + define777 = _t1510 + _t1511 = transactions_pb2.Write(define=define777) + _t1509 = _t1511 else: raise ParseError("Unexpected token in write" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1498 = _t1501 - _t1495 = _t1498 - _t1492 = _t1495 - result778 = _t1492 - self.record_span(span_start777, "Write") - return result778 + _t1506 = _t1509 + _t1503 = _t1506 + _t1500 = _t1503 + result782 = _t1500 + self.record_span(span_start781, "Write") + return result782 def parse_define(self) -> transactions_pb2.Define: - span_start780 = self.span_start() + span_start784 = self.span_start() self.consume_literal("(") self.consume_literal("define") - _t1504 = self.parse_fragment() - fragment779 = _t1504 + _t1512 = self.parse_fragment() + fragment783 = _t1512 self.consume_literal(")") - _t1505 = transactions_pb2.Define(fragment=fragment779) - result781 = _t1505 - self.record_span(span_start780, "Define") - return result781 + _t1513 = transactions_pb2.Define(fragment=fragment783) + result785 = _t1513 + self.record_span(span_start784, "Define") + return result785 def parse_fragment(self) -> fragments_pb2.Fragment: - span_start787 = self.span_start() + span_start791 = self.span_start() self.consume_literal("(") self.consume_literal("fragment") - _t1506 = self.parse_new_fragment_id() - new_fragment_id782 = _t1506 - xs783 = [] - cond784 = self.match_lookahead_literal("(", 0) - while cond784: - _t1507 = self.parse_declaration() - item785 = _t1507 - xs783.append(item785) - cond784 = self.match_lookahead_literal("(", 0) - declarations786 = xs783 + _t1514 = self.parse_new_fragment_id() + new_fragment_id786 = _t1514 + xs787 = [] + cond788 = self.match_lookahead_literal("(", 0) + while cond788: + _t1515 = self.parse_declaration() + item789 = _t1515 + xs787.append(item789) + cond788 = self.match_lookahead_literal("(", 0) + declarations790 = xs787 self.consume_literal(")") - result788 = self.construct_fragment(new_fragment_id782, declarations786) - self.record_span(span_start787, "Fragment") - return result788 + result792 = self.construct_fragment(new_fragment_id786, declarations790) + self.record_span(span_start791, "Fragment") + return result792 def parse_new_fragment_id(self) -> fragments_pb2.FragmentId: - span_start790 = self.span_start() - _t1508 = self.parse_fragment_id() - fragment_id789 = _t1508 - self.start_fragment(fragment_id789) - result791 = fragment_id789 - self.record_span(span_start790, "FragmentId") - return result791 + span_start794 = self.span_start() + _t1516 = self.parse_fragment_id() + fragment_id793 = _t1516 + self.start_fragment(fragment_id793) + result795 = fragment_id793 + self.record_span(span_start794, "FragmentId") + return result795 def parse_declaration(self) -> logic_pb2.Declaration: - span_start797 = self.span_start() + span_start801 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t1510 = 3 + _t1518 = 3 else: if self.match_lookahead_literal("functional_dependency", 1): - _t1511 = 2 + _t1519 = 2 else: if self.match_lookahead_literal("edb", 1): - _t1512 = 3 + _t1520 = 3 else: if self.match_lookahead_literal("def", 1): - _t1513 = 0 + _t1521 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1514 = 3 + _t1522 = 3 else: if self.match_lookahead_literal("betree_relation", 1): - _t1515 = 3 + _t1523 = 3 else: if self.match_lookahead_literal("algorithm", 1): - _t1516 = 1 + _t1524 = 1 else: - _t1516 = -1 - _t1515 = _t1516 - _t1514 = _t1515 - _t1513 = _t1514 - _t1512 = _t1513 - _t1511 = _t1512 - _t1510 = _t1511 - _t1509 = _t1510 + _t1524 = -1 + _t1523 = _t1524 + _t1522 = _t1523 + _t1521 = _t1522 + _t1520 = _t1521 + _t1519 = _t1520 + _t1518 = _t1519 + _t1517 = _t1518 else: - _t1509 = -1 - prediction792 = _t1509 - if prediction792 == 3: - _t1518 = self.parse_data() - data796 = _t1518 - _t1519 = logic_pb2.Declaration(data=data796) - _t1517 = _t1519 + _t1517 = -1 + prediction796 = _t1517 + if prediction796 == 3: + _t1526 = self.parse_data() + data800 = _t1526 + _t1527 = logic_pb2.Declaration(data=data800) + _t1525 = _t1527 else: - if prediction792 == 2: - _t1521 = self.parse_constraint() - constraint795 = _t1521 - _t1522 = logic_pb2.Declaration(constraint=constraint795) - _t1520 = _t1522 + if prediction796 == 2: + _t1529 = self.parse_constraint() + constraint799 = _t1529 + _t1530 = logic_pb2.Declaration(constraint=constraint799) + _t1528 = _t1530 else: - if prediction792 == 1: - _t1524 = self.parse_algorithm() - algorithm794 = _t1524 - _t1525 = logic_pb2.Declaration(algorithm=algorithm794) - _t1523 = _t1525 + if prediction796 == 1: + _t1532 = self.parse_algorithm() + algorithm798 = _t1532 + _t1533 = logic_pb2.Declaration(algorithm=algorithm798) + _t1531 = _t1533 else: - if prediction792 == 0: - _t1527 = self.parse_def() - def793 = _t1527 - _t1528 = logic_pb2.Declaration() - getattr(_t1528, 'def').CopyFrom(def793) - _t1526 = _t1528 + if prediction796 == 0: + _t1535 = self.parse_def() + def797 = _t1535 + _t1536 = logic_pb2.Declaration() + getattr(_t1536, 'def').CopyFrom(def797) + _t1534 = _t1536 else: raise ParseError("Unexpected token in declaration" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1523 = _t1526 - _t1520 = _t1523 - _t1517 = _t1520 - result798 = _t1517 - self.record_span(span_start797, "Declaration") - return result798 + _t1531 = _t1534 + _t1528 = _t1531 + _t1525 = _t1528 + result802 = _t1525 + self.record_span(span_start801, "Declaration") + return result802 def parse_def(self) -> logic_pb2.Def: - span_start802 = self.span_start() + span_start806 = self.span_start() self.consume_literal("(") self.consume_literal("def") - _t1529 = self.parse_relation_id() - relation_id799 = _t1529 - _t1530 = self.parse_abstraction() - abstraction800 = _t1530 + _t1537 = self.parse_relation_id() + relation_id803 = _t1537 + _t1538 = self.parse_abstraction() + abstraction804 = _t1538 if self.match_lookahead_literal("(", 0): - _t1532 = self.parse_attrs() - _t1531 = _t1532 + _t1540 = self.parse_attrs() + _t1539 = _t1540 else: - _t1531 = None - attrs801 = _t1531 + _t1539 = None + attrs805 = _t1539 self.consume_literal(")") - _t1533 = logic_pb2.Def(name=relation_id799, body=abstraction800, attrs=(attrs801 if attrs801 is not None else [])) - result803 = _t1533 - self.record_span(span_start802, "Def") - return result803 + _t1541 = logic_pb2.Def(name=relation_id803, body=abstraction804, attrs=(attrs805 if attrs805 is not None else [])) + result807 = _t1541 + self.record_span(span_start806, "Def") + return result807 def parse_relation_id(self) -> logic_pb2.RelationId: - span_start807 = self.span_start() + span_start811 = self.span_start() if self.match_lookahead_literal(":", 0): - _t1534 = 0 + _t1542 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1535 = 1 + _t1543 = 1 else: - _t1535 = -1 - _t1534 = _t1535 - prediction804 = _t1534 - if prediction804 == 1: - uint128806 = self.consume_terminal("UINT128") - _t1536 = logic_pb2.RelationId(id_low=uint128806.low, id_high=uint128806.high) + _t1543 = -1 + _t1542 = _t1543 + prediction808 = _t1542 + if prediction808 == 1: + uint128810 = self.consume_terminal("UINT128") + _t1544 = logic_pb2.RelationId(id_low=uint128810.low, id_high=uint128810.high) else: - if prediction804 == 0: + if prediction808 == 0: self.consume_literal(":") - symbol805 = self.consume_terminal("SYMBOL") - _t1537 = self.relation_id_from_string(symbol805) + symbol809 = self.consume_terminal("SYMBOL") + _t1545 = self.relation_id_from_string(symbol809) else: raise ParseError("Unexpected token in relation_id" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1536 = _t1537 - result808 = _t1536 - self.record_span(span_start807, "RelationId") - return result808 + _t1544 = _t1545 + result812 = _t1544 + self.record_span(span_start811, "RelationId") + return result812 def parse_abstraction(self) -> logic_pb2.Abstraction: - span_start811 = self.span_start() + span_start815 = self.span_start() self.consume_literal("(") - _t1538 = self.parse_bindings() - bindings809 = _t1538 - _t1539 = self.parse_formula() - formula810 = _t1539 + _t1546 = self.parse_bindings() + bindings813 = _t1546 + _t1547 = self.parse_formula() + formula814 = _t1547 self.consume_literal(")") - _t1540 = logic_pb2.Abstraction(vars=(list(bindings809[0]) + list(bindings809[1] if bindings809[1] is not None else [])), value=formula810) - result812 = _t1540 - self.record_span(span_start811, "Abstraction") - return result812 + _t1548 = logic_pb2.Abstraction(vars=(list(bindings813[0]) + list(bindings813[1] if bindings813[1] is not None else [])), value=formula814) + result816 = _t1548 + self.record_span(span_start815, "Abstraction") + return result816 def parse_bindings(self) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: self.consume_literal("[") - xs813 = [] - cond814 = self.match_lookahead_terminal("SYMBOL", 0) - while cond814: - _t1541 = self.parse_binding() - item815 = _t1541 - xs813.append(item815) - cond814 = self.match_lookahead_terminal("SYMBOL", 0) - bindings816 = xs813 + xs817 = [] + cond818 = self.match_lookahead_terminal("SYMBOL", 0) + while cond818: + _t1549 = self.parse_binding() + item819 = _t1549 + xs817.append(item819) + cond818 = self.match_lookahead_terminal("SYMBOL", 0) + bindings820 = xs817 if self.match_lookahead_literal("|", 0): - _t1543 = self.parse_value_bindings() - _t1542 = _t1543 + _t1551 = self.parse_value_bindings() + _t1550 = _t1551 else: - _t1542 = None - value_bindings817 = _t1542 + _t1550 = None + value_bindings821 = _t1550 self.consume_literal("]") - return (bindings816, (value_bindings817 if value_bindings817 is not None else []),) + return (bindings820, (value_bindings821 if value_bindings821 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - span_start820 = self.span_start() - symbol818 = self.consume_terminal("SYMBOL") + span_start824 = self.span_start() + symbol822 = self.consume_terminal("SYMBOL") self.consume_literal("::") - _t1544 = self.parse_type() - type819 = _t1544 - _t1545 = logic_pb2.Var(name=symbol818) - _t1546 = logic_pb2.Binding(var=_t1545, type=type819) - result821 = _t1546 - self.record_span(span_start820, "Binding") - return result821 + _t1552 = self.parse_type() + type823 = _t1552 + _t1553 = logic_pb2.Var(name=symbol822) + _t1554 = logic_pb2.Binding(var=_t1553, type=type823) + result825 = _t1554 + self.record_span(span_start824, "Binding") + return result825 def parse_type(self) -> logic_pb2.Type: - span_start837 = self.span_start() + span_start841 = self.span_start() if self.match_lookahead_literal("UNKNOWN", 0): - _t1547 = 0 + _t1555 = 0 else: if self.match_lookahead_literal("UINT32", 0): - _t1548 = 13 + _t1556 = 13 else: if self.match_lookahead_literal("UINT128", 0): - _t1549 = 4 + _t1557 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t1550 = 1 + _t1558 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t1551 = 8 + _t1559 = 8 else: if self.match_lookahead_literal("INT32", 0): - _t1552 = 11 + _t1560 = 11 else: if self.match_lookahead_literal("INT128", 0): - _t1553 = 5 + _t1561 = 5 else: if self.match_lookahead_literal("INT", 0): - _t1554 = 2 + _t1562 = 2 else: if self.match_lookahead_literal("FLOAT32", 0): - _t1555 = 12 + _t1563 = 12 else: if self.match_lookahead_literal("FLOAT", 0): - _t1556 = 3 + _t1564 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t1557 = 7 + _t1565 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t1558 = 6 + _t1566 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t1559 = 10 + _t1567 = 10 else: if self.match_lookahead_literal("(", 0): - _t1560 = 9 + _t1568 = 9 else: - _t1560 = -1 - _t1559 = _t1560 - _t1558 = _t1559 - _t1557 = _t1558 - _t1556 = _t1557 - _t1555 = _t1556 - _t1554 = _t1555 - _t1553 = _t1554 - _t1552 = _t1553 - _t1551 = _t1552 - _t1550 = _t1551 - _t1549 = _t1550 - _t1548 = _t1549 - _t1547 = _t1548 - prediction822 = _t1547 - if prediction822 == 13: - _t1562 = self.parse_uint32_type() - uint32_type836 = _t1562 - _t1563 = logic_pb2.Type(uint32_type=uint32_type836) - _t1561 = _t1563 + _t1568 = -1 + _t1567 = _t1568 + _t1566 = _t1567 + _t1565 = _t1566 + _t1564 = _t1565 + _t1563 = _t1564 + _t1562 = _t1563 + _t1561 = _t1562 + _t1560 = _t1561 + _t1559 = _t1560 + _t1558 = _t1559 + _t1557 = _t1558 + _t1556 = _t1557 + _t1555 = _t1556 + prediction826 = _t1555 + if prediction826 == 13: + _t1570 = self.parse_uint32_type() + uint32_type840 = _t1570 + _t1571 = logic_pb2.Type(uint32_type=uint32_type840) + _t1569 = _t1571 else: - if prediction822 == 12: - _t1565 = self.parse_float32_type() - float32_type835 = _t1565 - _t1566 = logic_pb2.Type(float32_type=float32_type835) - _t1564 = _t1566 + if prediction826 == 12: + _t1573 = self.parse_float32_type() + float32_type839 = _t1573 + _t1574 = logic_pb2.Type(float32_type=float32_type839) + _t1572 = _t1574 else: - if prediction822 == 11: - _t1568 = self.parse_int32_type() - int32_type834 = _t1568 - _t1569 = logic_pb2.Type(int32_type=int32_type834) - _t1567 = _t1569 + if prediction826 == 11: + _t1576 = self.parse_int32_type() + int32_type838 = _t1576 + _t1577 = logic_pb2.Type(int32_type=int32_type838) + _t1575 = _t1577 else: - if prediction822 == 10: - _t1571 = self.parse_boolean_type() - boolean_type833 = _t1571 - _t1572 = logic_pb2.Type(boolean_type=boolean_type833) - _t1570 = _t1572 + if prediction826 == 10: + _t1579 = self.parse_boolean_type() + boolean_type837 = _t1579 + _t1580 = logic_pb2.Type(boolean_type=boolean_type837) + _t1578 = _t1580 else: - if prediction822 == 9: - _t1574 = self.parse_decimal_type() - decimal_type832 = _t1574 - _t1575 = logic_pb2.Type(decimal_type=decimal_type832) - _t1573 = _t1575 + if prediction826 == 9: + _t1582 = self.parse_decimal_type() + decimal_type836 = _t1582 + _t1583 = logic_pb2.Type(decimal_type=decimal_type836) + _t1581 = _t1583 else: - if prediction822 == 8: - _t1577 = self.parse_missing_type() - missing_type831 = _t1577 - _t1578 = logic_pb2.Type(missing_type=missing_type831) - _t1576 = _t1578 + if prediction826 == 8: + _t1585 = self.parse_missing_type() + missing_type835 = _t1585 + _t1586 = logic_pb2.Type(missing_type=missing_type835) + _t1584 = _t1586 else: - if prediction822 == 7: - _t1580 = self.parse_datetime_type() - datetime_type830 = _t1580 - _t1581 = logic_pb2.Type(datetime_type=datetime_type830) - _t1579 = _t1581 + if prediction826 == 7: + _t1588 = self.parse_datetime_type() + datetime_type834 = _t1588 + _t1589 = logic_pb2.Type(datetime_type=datetime_type834) + _t1587 = _t1589 else: - if prediction822 == 6: - _t1583 = self.parse_date_type() - date_type829 = _t1583 - _t1584 = logic_pb2.Type(date_type=date_type829) - _t1582 = _t1584 + if prediction826 == 6: + _t1591 = self.parse_date_type() + date_type833 = _t1591 + _t1592 = logic_pb2.Type(date_type=date_type833) + _t1590 = _t1592 else: - if prediction822 == 5: - _t1586 = self.parse_int128_type() - int128_type828 = _t1586 - _t1587 = logic_pb2.Type(int128_type=int128_type828) - _t1585 = _t1587 + if prediction826 == 5: + _t1594 = self.parse_int128_type() + int128_type832 = _t1594 + _t1595 = logic_pb2.Type(int128_type=int128_type832) + _t1593 = _t1595 else: - if prediction822 == 4: - _t1589 = self.parse_uint128_type() - uint128_type827 = _t1589 - _t1590 = logic_pb2.Type(uint128_type=uint128_type827) - _t1588 = _t1590 + if prediction826 == 4: + _t1597 = self.parse_uint128_type() + uint128_type831 = _t1597 + _t1598 = logic_pb2.Type(uint128_type=uint128_type831) + _t1596 = _t1598 else: - if prediction822 == 3: - _t1592 = self.parse_float_type() - float_type826 = _t1592 - _t1593 = logic_pb2.Type(float_type=float_type826) - _t1591 = _t1593 + if prediction826 == 3: + _t1600 = self.parse_float_type() + float_type830 = _t1600 + _t1601 = logic_pb2.Type(float_type=float_type830) + _t1599 = _t1601 else: - if prediction822 == 2: - _t1595 = self.parse_int_type() - int_type825 = _t1595 - _t1596 = logic_pb2.Type(int_type=int_type825) - _t1594 = _t1596 + if prediction826 == 2: + _t1603 = self.parse_int_type() + int_type829 = _t1603 + _t1604 = logic_pb2.Type(int_type=int_type829) + _t1602 = _t1604 else: - if prediction822 == 1: - _t1598 = self.parse_string_type() - string_type824 = _t1598 - _t1599 = logic_pb2.Type(string_type=string_type824) - _t1597 = _t1599 + if prediction826 == 1: + _t1606 = self.parse_string_type() + string_type828 = _t1606 + _t1607 = logic_pb2.Type(string_type=string_type828) + _t1605 = _t1607 else: - if prediction822 == 0: - _t1601 = self.parse_unspecified_type() - unspecified_type823 = _t1601 - _t1602 = logic_pb2.Type(unspecified_type=unspecified_type823) - _t1600 = _t1602 + if prediction826 == 0: + _t1609 = self.parse_unspecified_type() + unspecified_type827 = _t1609 + _t1610 = logic_pb2.Type(unspecified_type=unspecified_type827) + _t1608 = _t1610 else: raise ParseError("Unexpected token in type" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1597 = _t1600 - _t1594 = _t1597 - _t1591 = _t1594 - _t1588 = _t1591 - _t1585 = _t1588 - _t1582 = _t1585 - _t1579 = _t1582 - _t1576 = _t1579 - _t1573 = _t1576 - _t1570 = _t1573 - _t1567 = _t1570 - _t1564 = _t1567 - _t1561 = _t1564 - result838 = _t1561 - self.record_span(span_start837, "Type") - return result838 + _t1605 = _t1608 + _t1602 = _t1605 + _t1599 = _t1602 + _t1596 = _t1599 + _t1593 = _t1596 + _t1590 = _t1593 + _t1587 = _t1590 + _t1584 = _t1587 + _t1581 = _t1584 + _t1578 = _t1581 + _t1575 = _t1578 + _t1572 = _t1575 + _t1569 = _t1572 + result842 = _t1569 + self.record_span(span_start841, "Type") + return result842 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: - span_start839 = self.span_start() + span_start843 = self.span_start() self.consume_literal("UNKNOWN") - _t1603 = logic_pb2.UnspecifiedType() - result840 = _t1603 - self.record_span(span_start839, "UnspecifiedType") - return result840 + _t1611 = logic_pb2.UnspecifiedType() + result844 = _t1611 + self.record_span(span_start843, "UnspecifiedType") + return result844 def parse_string_type(self) -> logic_pb2.StringType: - span_start841 = self.span_start() + span_start845 = self.span_start() self.consume_literal("STRING") - _t1604 = logic_pb2.StringType() - result842 = _t1604 - self.record_span(span_start841, "StringType") - return result842 + _t1612 = logic_pb2.StringType() + result846 = _t1612 + self.record_span(span_start845, "StringType") + return result846 def parse_int_type(self) -> logic_pb2.IntType: - span_start843 = self.span_start() + span_start847 = self.span_start() self.consume_literal("INT") - _t1605 = logic_pb2.IntType() - result844 = _t1605 - self.record_span(span_start843, "IntType") - return result844 + _t1613 = logic_pb2.IntType() + result848 = _t1613 + self.record_span(span_start847, "IntType") + return result848 def parse_float_type(self) -> logic_pb2.FloatType: - span_start845 = self.span_start() + span_start849 = self.span_start() self.consume_literal("FLOAT") - _t1606 = logic_pb2.FloatType() - result846 = _t1606 - self.record_span(span_start845, "FloatType") - return result846 + _t1614 = logic_pb2.FloatType() + result850 = _t1614 + self.record_span(span_start849, "FloatType") + return result850 def parse_uint128_type(self) -> logic_pb2.UInt128Type: - span_start847 = self.span_start() + span_start851 = self.span_start() self.consume_literal("UINT128") - _t1607 = logic_pb2.UInt128Type() - result848 = _t1607 - self.record_span(span_start847, "UInt128Type") - return result848 + _t1615 = logic_pb2.UInt128Type() + result852 = _t1615 + self.record_span(span_start851, "UInt128Type") + return result852 def parse_int128_type(self) -> logic_pb2.Int128Type: - span_start849 = self.span_start() + span_start853 = self.span_start() self.consume_literal("INT128") - _t1608 = logic_pb2.Int128Type() - result850 = _t1608 - self.record_span(span_start849, "Int128Type") - return result850 + _t1616 = logic_pb2.Int128Type() + result854 = _t1616 + self.record_span(span_start853, "Int128Type") + return result854 def parse_date_type(self) -> logic_pb2.DateType: - span_start851 = self.span_start() + span_start855 = self.span_start() self.consume_literal("DATE") - _t1609 = logic_pb2.DateType() - result852 = _t1609 - self.record_span(span_start851, "DateType") - return result852 + _t1617 = logic_pb2.DateType() + result856 = _t1617 + self.record_span(span_start855, "DateType") + return result856 def parse_datetime_type(self) -> logic_pb2.DateTimeType: - span_start853 = self.span_start() + span_start857 = self.span_start() self.consume_literal("DATETIME") - _t1610 = logic_pb2.DateTimeType() - result854 = _t1610 - self.record_span(span_start853, "DateTimeType") - return result854 + _t1618 = logic_pb2.DateTimeType() + result858 = _t1618 + self.record_span(span_start857, "DateTimeType") + return result858 def parse_missing_type(self) -> logic_pb2.MissingType: - span_start855 = self.span_start() + span_start859 = self.span_start() self.consume_literal("MISSING") - _t1611 = logic_pb2.MissingType() - result856 = _t1611 - self.record_span(span_start855, "MissingType") - return result856 + _t1619 = logic_pb2.MissingType() + result860 = _t1619 + self.record_span(span_start859, "MissingType") + return result860 def parse_decimal_type(self) -> logic_pb2.DecimalType: - span_start859 = self.span_start() + span_start863 = self.span_start() self.consume_literal("(") self.consume_literal("DECIMAL") - int857 = self.consume_terminal("INT") - int_3858 = self.consume_terminal("INT") + int861 = self.consume_terminal("INT") + int_3862 = self.consume_terminal("INT") self.consume_literal(")") - _t1612 = logic_pb2.DecimalType(precision=int(int857), scale=int(int_3858)) - result860 = _t1612 - self.record_span(span_start859, "DecimalType") - return result860 + _t1620 = logic_pb2.DecimalType(precision=int(int861), scale=int(int_3862)) + result864 = _t1620 + self.record_span(span_start863, "DecimalType") + return result864 def parse_boolean_type(self) -> logic_pb2.BooleanType: - span_start861 = self.span_start() + span_start865 = self.span_start() self.consume_literal("BOOLEAN") - _t1613 = logic_pb2.BooleanType() - result862 = _t1613 - self.record_span(span_start861, "BooleanType") - return result862 + _t1621 = logic_pb2.BooleanType() + result866 = _t1621 + self.record_span(span_start865, "BooleanType") + return result866 def parse_int32_type(self) -> logic_pb2.Int32Type: - span_start863 = self.span_start() + span_start867 = self.span_start() self.consume_literal("INT32") - _t1614 = logic_pb2.Int32Type() - result864 = _t1614 - self.record_span(span_start863, "Int32Type") - return result864 + _t1622 = logic_pb2.Int32Type() + result868 = _t1622 + self.record_span(span_start867, "Int32Type") + return result868 def parse_float32_type(self) -> logic_pb2.Float32Type: - span_start865 = self.span_start() + span_start869 = self.span_start() self.consume_literal("FLOAT32") - _t1615 = logic_pb2.Float32Type() - result866 = _t1615 - self.record_span(span_start865, "Float32Type") - return result866 + _t1623 = logic_pb2.Float32Type() + result870 = _t1623 + self.record_span(span_start869, "Float32Type") + return result870 def parse_uint32_type(self) -> logic_pb2.UInt32Type: - span_start867 = self.span_start() + span_start871 = self.span_start() self.consume_literal("UINT32") - _t1616 = logic_pb2.UInt32Type() - result868 = _t1616 - self.record_span(span_start867, "UInt32Type") - return result868 + _t1624 = logic_pb2.UInt32Type() + result872 = _t1624 + self.record_span(span_start871, "UInt32Type") + return result872 def parse_value_bindings(self) -> Sequence[logic_pb2.Binding]: self.consume_literal("|") - xs869 = [] - cond870 = self.match_lookahead_terminal("SYMBOL", 0) - while cond870: - _t1617 = self.parse_binding() - item871 = _t1617 - xs869.append(item871) - cond870 = self.match_lookahead_terminal("SYMBOL", 0) - bindings872 = xs869 - return bindings872 + xs873 = [] + cond874 = self.match_lookahead_terminal("SYMBOL", 0) + while cond874: + _t1625 = self.parse_binding() + item875 = _t1625 + xs873.append(item875) + cond874 = self.match_lookahead_terminal("SYMBOL", 0) + bindings876 = xs873 + return bindings876 def parse_formula(self) -> logic_pb2.Formula: - span_start887 = self.span_start() + span_start891 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t1619 = 0 + _t1627 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t1620 = 11 + _t1628 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t1621 = 3 + _t1629 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t1622 = 10 + _t1630 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t1623 = 9 + _t1631 = 9 else: if self.match_lookahead_literal("or", 1): - _t1624 = 5 + _t1632 = 5 else: if self.match_lookahead_literal("not", 1): - _t1625 = 6 + _t1633 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t1626 = 7 + _t1634 = 7 else: if self.match_lookahead_literal("false", 1): - _t1627 = 1 + _t1635 = 1 else: if self.match_lookahead_literal("exists", 1): - _t1628 = 2 + _t1636 = 2 else: if self.match_lookahead_literal("cast", 1): - _t1629 = 12 + _t1637 = 12 else: if self.match_lookahead_literal("atom", 1): - _t1630 = 8 + _t1638 = 8 else: if self.match_lookahead_literal("and", 1): - _t1631 = 4 + _t1639 = 4 else: if self.match_lookahead_literal(">=", 1): - _t1632 = 10 + _t1640 = 10 else: if self.match_lookahead_literal(">", 1): - _t1633 = 10 + _t1641 = 10 else: if self.match_lookahead_literal("=", 1): - _t1634 = 10 + _t1642 = 10 else: if self.match_lookahead_literal("<=", 1): - _t1635 = 10 + _t1643 = 10 else: if self.match_lookahead_literal("<", 1): - _t1636 = 10 + _t1644 = 10 else: if self.match_lookahead_literal("/", 1): - _t1637 = 10 + _t1645 = 10 else: if self.match_lookahead_literal("-", 1): - _t1638 = 10 + _t1646 = 10 else: if self.match_lookahead_literal("+", 1): - _t1639 = 10 + _t1647 = 10 else: if self.match_lookahead_literal("*", 1): - _t1640 = 10 + _t1648 = 10 else: - _t1640 = -1 - _t1639 = _t1640 - _t1638 = _t1639 - _t1637 = _t1638 - _t1636 = _t1637 - _t1635 = _t1636 - _t1634 = _t1635 - _t1633 = _t1634 - _t1632 = _t1633 - _t1631 = _t1632 - _t1630 = _t1631 - _t1629 = _t1630 - _t1628 = _t1629 - _t1627 = _t1628 - _t1626 = _t1627 - _t1625 = _t1626 - _t1624 = _t1625 - _t1623 = _t1624 - _t1622 = _t1623 - _t1621 = _t1622 - _t1620 = _t1621 - _t1619 = _t1620 - _t1618 = _t1619 + _t1648 = -1 + _t1647 = _t1648 + _t1646 = _t1647 + _t1645 = _t1646 + _t1644 = _t1645 + _t1643 = _t1644 + _t1642 = _t1643 + _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 + _t1628 = _t1629 + _t1627 = _t1628 + _t1626 = _t1627 else: - _t1618 = -1 - prediction873 = _t1618 - if prediction873 == 12: - _t1642 = self.parse_cast() - cast886 = _t1642 - _t1643 = logic_pb2.Formula(cast=cast886) - _t1641 = _t1643 + _t1626 = -1 + prediction877 = _t1626 + if prediction877 == 12: + _t1650 = self.parse_cast() + cast890 = _t1650 + _t1651 = logic_pb2.Formula(cast=cast890) + _t1649 = _t1651 else: - if prediction873 == 11: - _t1645 = self.parse_rel_atom() - rel_atom885 = _t1645 - _t1646 = logic_pb2.Formula(rel_atom=rel_atom885) - _t1644 = _t1646 + if prediction877 == 11: + _t1653 = self.parse_rel_atom() + rel_atom889 = _t1653 + _t1654 = logic_pb2.Formula(rel_atom=rel_atom889) + _t1652 = _t1654 else: - if prediction873 == 10: - _t1648 = self.parse_primitive() - primitive884 = _t1648 - _t1649 = logic_pb2.Formula(primitive=primitive884) - _t1647 = _t1649 + if prediction877 == 10: + _t1656 = self.parse_primitive() + primitive888 = _t1656 + _t1657 = logic_pb2.Formula(primitive=primitive888) + _t1655 = _t1657 else: - if prediction873 == 9: - _t1651 = self.parse_pragma() - pragma883 = _t1651 - _t1652 = logic_pb2.Formula(pragma=pragma883) - _t1650 = _t1652 + if prediction877 == 9: + _t1659 = self.parse_pragma() + pragma887 = _t1659 + _t1660 = logic_pb2.Formula(pragma=pragma887) + _t1658 = _t1660 else: - if prediction873 == 8: - _t1654 = self.parse_atom() - atom882 = _t1654 - _t1655 = logic_pb2.Formula(atom=atom882) - _t1653 = _t1655 + if prediction877 == 8: + _t1662 = self.parse_atom() + atom886 = _t1662 + _t1663 = logic_pb2.Formula(atom=atom886) + _t1661 = _t1663 else: - if prediction873 == 7: - _t1657 = self.parse_ffi() - ffi881 = _t1657 - _t1658 = logic_pb2.Formula(ffi=ffi881) - _t1656 = _t1658 + if prediction877 == 7: + _t1665 = self.parse_ffi() + ffi885 = _t1665 + _t1666 = logic_pb2.Formula(ffi=ffi885) + _t1664 = _t1666 else: - if prediction873 == 6: - _t1660 = self.parse_not() - not880 = _t1660 - _t1661 = logic_pb2.Formula() - getattr(_t1661, 'not').CopyFrom(not880) - _t1659 = _t1661 + if prediction877 == 6: + _t1668 = self.parse_not() + not884 = _t1668 + _t1669 = logic_pb2.Formula() + getattr(_t1669, 'not').CopyFrom(not884) + _t1667 = _t1669 else: - if prediction873 == 5: - _t1663 = self.parse_disjunction() - disjunction879 = _t1663 - _t1664 = logic_pb2.Formula(disjunction=disjunction879) - _t1662 = _t1664 + if prediction877 == 5: + _t1671 = self.parse_disjunction() + disjunction883 = _t1671 + _t1672 = logic_pb2.Formula(disjunction=disjunction883) + _t1670 = _t1672 else: - if prediction873 == 4: - _t1666 = self.parse_conjunction() - conjunction878 = _t1666 - _t1667 = logic_pb2.Formula(conjunction=conjunction878) - _t1665 = _t1667 + if prediction877 == 4: + _t1674 = self.parse_conjunction() + conjunction882 = _t1674 + _t1675 = logic_pb2.Formula(conjunction=conjunction882) + _t1673 = _t1675 else: - if prediction873 == 3: - _t1669 = self.parse_reduce() - reduce877 = _t1669 - _t1670 = logic_pb2.Formula(reduce=reduce877) - _t1668 = _t1670 + if prediction877 == 3: + _t1677 = self.parse_reduce() + reduce881 = _t1677 + _t1678 = logic_pb2.Formula(reduce=reduce881) + _t1676 = _t1678 else: - if prediction873 == 2: - _t1672 = self.parse_exists() - exists876 = _t1672 - _t1673 = logic_pb2.Formula(exists=exists876) - _t1671 = _t1673 + if prediction877 == 2: + _t1680 = self.parse_exists() + exists880 = _t1680 + _t1681 = logic_pb2.Formula(exists=exists880) + _t1679 = _t1681 else: - if prediction873 == 1: - _t1675 = self.parse_false() - false875 = _t1675 - _t1676 = logic_pb2.Formula(disjunction=false875) - _t1674 = _t1676 + if prediction877 == 1: + _t1683 = self.parse_false() + false879 = _t1683 + _t1684 = logic_pb2.Formula(disjunction=false879) + _t1682 = _t1684 else: - if prediction873 == 0: - _t1678 = self.parse_true() - true874 = _t1678 - _t1679 = logic_pb2.Formula(conjunction=true874) - _t1677 = _t1679 + if prediction877 == 0: + _t1686 = self.parse_true() + true878 = _t1686 + _t1687 = logic_pb2.Formula(conjunction=true878) + _t1685 = _t1687 else: raise ParseError("Unexpected token in formula" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1674 = _t1677 - _t1671 = _t1674 - _t1668 = _t1671 - _t1665 = _t1668 - _t1662 = _t1665 - _t1659 = _t1662 - _t1656 = _t1659 - _t1653 = _t1656 - _t1650 = _t1653 - _t1647 = _t1650 - _t1644 = _t1647 - _t1641 = _t1644 - result888 = _t1641 - self.record_span(span_start887, "Formula") - return result888 + _t1682 = _t1685 + _t1679 = _t1682 + _t1676 = _t1679 + _t1673 = _t1676 + _t1670 = _t1673 + _t1667 = _t1670 + _t1664 = _t1667 + _t1661 = _t1664 + _t1658 = _t1661 + _t1655 = _t1658 + _t1652 = _t1655 + _t1649 = _t1652 + result892 = _t1649 + self.record_span(span_start891, "Formula") + return result892 def parse_true(self) -> logic_pb2.Conjunction: - span_start889 = self.span_start() + span_start893 = self.span_start() self.consume_literal("(") self.consume_literal("true") self.consume_literal(")") - _t1680 = logic_pb2.Conjunction(args=[]) - result890 = _t1680 - self.record_span(span_start889, "Conjunction") - return result890 + _t1688 = logic_pb2.Conjunction(args=[]) + result894 = _t1688 + self.record_span(span_start893, "Conjunction") + return result894 def parse_false(self) -> logic_pb2.Disjunction: - span_start891 = self.span_start() + span_start895 = self.span_start() self.consume_literal("(") self.consume_literal("false") self.consume_literal(")") - _t1681 = logic_pb2.Disjunction(args=[]) - result892 = _t1681 - self.record_span(span_start891, "Disjunction") - return result892 + _t1689 = logic_pb2.Disjunction(args=[]) + result896 = _t1689 + self.record_span(span_start895, "Disjunction") + return result896 def parse_exists(self) -> logic_pb2.Exists: - span_start895 = self.span_start() + span_start899 = self.span_start() self.consume_literal("(") self.consume_literal("exists") - _t1682 = self.parse_bindings() - bindings893 = _t1682 - _t1683 = self.parse_formula() - formula894 = _t1683 + _t1690 = self.parse_bindings() + bindings897 = _t1690 + _t1691 = self.parse_formula() + formula898 = _t1691 self.consume_literal(")") - _t1684 = logic_pb2.Abstraction(vars=(list(bindings893[0]) + list(bindings893[1] if bindings893[1] is not None else [])), value=formula894) - _t1685 = logic_pb2.Exists(body=_t1684) - result896 = _t1685 - self.record_span(span_start895, "Exists") - return result896 + _t1692 = logic_pb2.Abstraction(vars=(list(bindings897[0]) + list(bindings897[1] if bindings897[1] is not None else [])), value=formula898) + _t1693 = logic_pb2.Exists(body=_t1692) + result900 = _t1693 + self.record_span(span_start899, "Exists") + return result900 def parse_reduce(self) -> logic_pb2.Reduce: - span_start900 = self.span_start() + span_start904 = self.span_start() self.consume_literal("(") self.consume_literal("reduce") - _t1686 = self.parse_abstraction() - abstraction897 = _t1686 - _t1687 = self.parse_abstraction() - abstraction_3898 = _t1687 - _t1688 = self.parse_terms() - terms899 = _t1688 + _t1694 = self.parse_abstraction() + abstraction901 = _t1694 + _t1695 = self.parse_abstraction() + abstraction_3902 = _t1695 + _t1696 = self.parse_terms() + terms903 = _t1696 self.consume_literal(")") - _t1689 = logic_pb2.Reduce(op=abstraction897, body=abstraction_3898, terms=terms899) - result901 = _t1689 - self.record_span(span_start900, "Reduce") - return result901 + _t1697 = logic_pb2.Reduce(op=abstraction901, body=abstraction_3902, terms=terms903) + result905 = _t1697 + self.record_span(span_start904, "Reduce") + return result905 def parse_terms(self) -> Sequence[logic_pb2.Term]: self.consume_literal("(") self.consume_literal("terms") - xs902 = [] - cond903 = (((((((((((((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 cond903: - _t1690 = self.parse_term() - item904 = _t1690 - xs902.append(item904) - cond903 = (((((((((((((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)) - terms905 = xs902 + xs906 = [] + cond907 = (((((((((((((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 cond907: + _t1698 = self.parse_term() + item908 = _t1698 + xs906.append(item908) + cond907 = (((((((((((((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)) + terms909 = xs906 self.consume_literal(")") - return terms905 + return terms909 def parse_term(self) -> logic_pb2.Term: - span_start909 = self.span_start() + span_start913 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1691 = 1 + _t1699 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1692 = 1 + _t1700 = 1 else: if self.match_lookahead_literal("false", 0): - _t1693 = 1 + _t1701 = 1 else: if self.match_lookahead_literal("(", 0): - _t1694 = 1 + _t1702 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1695 = 0 + _t1703 = 0 else: if self.match_lookahead_terminal("UINT32", 0): - _t1696 = 1 + _t1704 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1697 = 1 + _t1705 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1698 = 1 + _t1706 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1699 = 1 + _t1707 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1700 = 1 + _t1708 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1701 = 1 + _t1709 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1702 = 1 + _t1710 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1703 = 1 + _t1711 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1704 = 1 + _t1712 = 1 else: - _t1704 = -1 - _t1703 = _t1704 - _t1702 = _t1703 - _t1701 = _t1702 - _t1700 = _t1701 - _t1699 = _t1700 - _t1698 = _t1699 - _t1697 = _t1698 - _t1696 = _t1697 - _t1695 = _t1696 - _t1694 = _t1695 - _t1693 = _t1694 - _t1692 = _t1693 - _t1691 = _t1692 - prediction906 = _t1691 - if prediction906 == 1: - _t1706 = self.parse_value() - value908 = _t1706 - _t1707 = logic_pb2.Term(constant=value908) - _t1705 = _t1707 + _t1712 = -1 + _t1711 = _t1712 + _t1710 = _t1711 + _t1709 = _t1710 + _t1708 = _t1709 + _t1707 = _t1708 + _t1706 = _t1707 + _t1705 = _t1706 + _t1704 = _t1705 + _t1703 = _t1704 + _t1702 = _t1703 + _t1701 = _t1702 + _t1700 = _t1701 + _t1699 = _t1700 + prediction910 = _t1699 + if prediction910 == 1: + _t1714 = self.parse_value() + value912 = _t1714 + _t1715 = logic_pb2.Term(constant=value912) + _t1713 = _t1715 else: - if prediction906 == 0: - _t1709 = self.parse_var() - var907 = _t1709 - _t1710 = logic_pb2.Term(var=var907) - _t1708 = _t1710 + if prediction910 == 0: + _t1717 = self.parse_var() + var911 = _t1717 + _t1718 = logic_pb2.Term(var=var911) + _t1716 = _t1718 else: raise ParseError("Unexpected token in term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1705 = _t1708 - result910 = _t1705 - self.record_span(span_start909, "Term") - return result910 + _t1713 = _t1716 + result914 = _t1713 + self.record_span(span_start913, "Term") + return result914 def parse_var(self) -> logic_pb2.Var: - span_start912 = self.span_start() - symbol911 = self.consume_terminal("SYMBOL") - _t1711 = logic_pb2.Var(name=symbol911) - result913 = _t1711 - self.record_span(span_start912, "Var") - return result913 + span_start916 = self.span_start() + symbol915 = self.consume_terminal("SYMBOL") + _t1719 = logic_pb2.Var(name=symbol915) + result917 = _t1719 + self.record_span(span_start916, "Var") + return result917 def parse_value(self) -> logic_pb2.Value: - span_start927 = self.span_start() + span_start931 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1712 = 12 + _t1720 = 12 else: if self.match_lookahead_literal("missing", 0): - _t1713 = 11 + _t1721 = 11 else: if self.match_lookahead_literal("false", 0): - _t1714 = 12 + _t1722 = 12 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1716 = 1 + _t1724 = 1 else: if self.match_lookahead_literal("date", 1): - _t1717 = 0 + _t1725 = 0 else: - _t1717 = -1 - _t1716 = _t1717 - _t1715 = _t1716 + _t1725 = -1 + _t1724 = _t1725 + _t1723 = _t1724 else: if self.match_lookahead_terminal("UINT32", 0): - _t1718 = 7 + _t1726 = 7 else: if self.match_lookahead_terminal("UINT128", 0): - _t1719 = 8 + _t1727 = 8 else: if self.match_lookahead_terminal("STRING", 0): - _t1720 = 2 + _t1728 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1721 = 3 + _t1729 = 3 else: if self.match_lookahead_terminal("INT128", 0): - _t1722 = 9 + _t1730 = 9 else: if self.match_lookahead_terminal("INT", 0): - _t1723 = 4 + _t1731 = 4 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1724 = 5 + _t1732 = 5 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1725 = 6 + _t1733 = 6 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1726 = 10 + _t1734 = 10 else: - _t1726 = -1 - _t1725 = _t1726 - _t1724 = _t1725 - _t1723 = _t1724 - _t1722 = _t1723 - _t1721 = _t1722 - _t1720 = _t1721 - _t1719 = _t1720 - _t1718 = _t1719 - _t1715 = _t1718 - _t1714 = _t1715 - _t1713 = _t1714 - _t1712 = _t1713 - prediction914 = _t1712 - if prediction914 == 12: - _t1728 = self.parse_boolean_value() - boolean_value926 = _t1728 - _t1729 = logic_pb2.Value(boolean_value=boolean_value926) - _t1727 = _t1729 + _t1734 = -1 + _t1733 = _t1734 + _t1732 = _t1733 + _t1731 = _t1732 + _t1730 = _t1731 + _t1729 = _t1730 + _t1728 = _t1729 + _t1727 = _t1728 + _t1726 = _t1727 + _t1723 = _t1726 + _t1722 = _t1723 + _t1721 = _t1722 + _t1720 = _t1721 + prediction918 = _t1720 + if prediction918 == 12: + _t1736 = self.parse_boolean_value() + boolean_value930 = _t1736 + _t1737 = logic_pb2.Value(boolean_value=boolean_value930) + _t1735 = _t1737 else: - if prediction914 == 11: + if prediction918 == 11: self.consume_literal("missing") - _t1731 = logic_pb2.MissingValue() - _t1732 = logic_pb2.Value(missing_value=_t1731) - _t1730 = _t1732 + _t1739 = logic_pb2.MissingValue() + _t1740 = logic_pb2.Value(missing_value=_t1739) + _t1738 = _t1740 else: - if prediction914 == 10: - formatted_decimal925 = self.consume_terminal("DECIMAL") - _t1734 = logic_pb2.Value(decimal_value=formatted_decimal925) - _t1733 = _t1734 + if prediction918 == 10: + formatted_decimal929 = self.consume_terminal("DECIMAL") + _t1742 = logic_pb2.Value(decimal_value=formatted_decimal929) + _t1741 = _t1742 else: - if prediction914 == 9: - formatted_int128924 = self.consume_terminal("INT128") - _t1736 = logic_pb2.Value(int128_value=formatted_int128924) - _t1735 = _t1736 + if prediction918 == 9: + formatted_int128928 = self.consume_terminal("INT128") + _t1744 = logic_pb2.Value(int128_value=formatted_int128928) + _t1743 = _t1744 else: - if prediction914 == 8: - formatted_uint128923 = self.consume_terminal("UINT128") - _t1738 = logic_pb2.Value(uint128_value=formatted_uint128923) - _t1737 = _t1738 + if prediction918 == 8: + formatted_uint128927 = self.consume_terminal("UINT128") + _t1746 = logic_pb2.Value(uint128_value=formatted_uint128927) + _t1745 = _t1746 else: - if prediction914 == 7: - formatted_uint32922 = self.consume_terminal("UINT32") - _t1740 = logic_pb2.Value(uint32_value=formatted_uint32922) - _t1739 = _t1740 + if prediction918 == 7: + formatted_uint32926 = self.consume_terminal("UINT32") + _t1748 = logic_pb2.Value(uint32_value=formatted_uint32926) + _t1747 = _t1748 else: - if prediction914 == 6: - formatted_float921 = self.consume_terminal("FLOAT") - _t1742 = logic_pb2.Value(float_value=formatted_float921) - _t1741 = _t1742 + if prediction918 == 6: + formatted_float925 = self.consume_terminal("FLOAT") + _t1750 = logic_pb2.Value(float_value=formatted_float925) + _t1749 = _t1750 else: - if prediction914 == 5: - formatted_float32920 = self.consume_terminal("FLOAT32") - _t1744 = logic_pb2.Value(float32_value=formatted_float32920) - _t1743 = _t1744 + if prediction918 == 5: + formatted_float32924 = self.consume_terminal("FLOAT32") + _t1752 = logic_pb2.Value(float32_value=formatted_float32924) + _t1751 = _t1752 else: - if prediction914 == 4: - formatted_int919 = self.consume_terminal("INT") - _t1746 = logic_pb2.Value(int_value=formatted_int919) - _t1745 = _t1746 + if prediction918 == 4: + formatted_int923 = self.consume_terminal("INT") + _t1754 = logic_pb2.Value(int_value=formatted_int923) + _t1753 = _t1754 else: - if prediction914 == 3: - formatted_int32918 = self.consume_terminal("INT32") - _t1748 = logic_pb2.Value(int32_value=formatted_int32918) - _t1747 = _t1748 + if prediction918 == 3: + formatted_int32922 = self.consume_terminal("INT32") + _t1756 = logic_pb2.Value(int32_value=formatted_int32922) + _t1755 = _t1756 else: - if prediction914 == 2: - formatted_string917 = self.consume_terminal("STRING") - _t1750 = logic_pb2.Value(string_value=formatted_string917) - _t1749 = _t1750 + if prediction918 == 2: + formatted_string921 = self.consume_terminal("STRING") + _t1758 = logic_pb2.Value(string_value=formatted_string921) + _t1757 = _t1758 else: - if prediction914 == 1: - _t1752 = self.parse_datetime() - datetime916 = _t1752 - _t1753 = logic_pb2.Value(datetime_value=datetime916) - _t1751 = _t1753 + if prediction918 == 1: + _t1760 = self.parse_datetime() + datetime920 = _t1760 + _t1761 = logic_pb2.Value(datetime_value=datetime920) + _t1759 = _t1761 else: - if prediction914 == 0: - _t1755 = self.parse_date() - date915 = _t1755 - _t1756 = logic_pb2.Value(date_value=date915) - _t1754 = _t1756 + if prediction918 == 0: + _t1763 = self.parse_date() + date919 = _t1763 + _t1764 = logic_pb2.Value(date_value=date919) + _t1762 = _t1764 else: raise ParseError("Unexpected token in value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1751 = _t1754 - _t1749 = _t1751 - _t1747 = _t1749 - _t1745 = _t1747 - _t1743 = _t1745 - _t1741 = _t1743 - _t1739 = _t1741 - _t1737 = _t1739 - _t1735 = _t1737 - _t1733 = _t1735 - _t1730 = _t1733 - _t1727 = _t1730 - result928 = _t1727 - self.record_span(span_start927, "Value") - return result928 + _t1759 = _t1762 + _t1757 = _t1759 + _t1755 = _t1757 + _t1753 = _t1755 + _t1751 = _t1753 + _t1749 = _t1751 + _t1747 = _t1749 + _t1745 = _t1747 + _t1743 = _t1745 + _t1741 = _t1743 + _t1738 = _t1741 + _t1735 = _t1738 + result932 = _t1735 + self.record_span(span_start931, "Value") + return result932 def parse_date(self) -> logic_pb2.DateValue: - span_start932 = self.span_start() + span_start936 = self.span_start() self.consume_literal("(") self.consume_literal("date") - formatted_int929 = self.consume_terminal("INT") - formatted_int_3930 = self.consume_terminal("INT") - formatted_int_4931 = self.consume_terminal("INT") + formatted_int933 = self.consume_terminal("INT") + formatted_int_3934 = self.consume_terminal("INT") + formatted_int_4935 = self.consume_terminal("INT") self.consume_literal(")") - _t1757 = logic_pb2.DateValue(year=int(formatted_int929), month=int(formatted_int_3930), day=int(formatted_int_4931)) - result933 = _t1757 - self.record_span(span_start932, "DateValue") - return result933 + _t1765 = logic_pb2.DateValue(year=int(formatted_int933), month=int(formatted_int_3934), day=int(formatted_int_4935)) + result937 = _t1765 + self.record_span(span_start936, "DateValue") + return result937 def parse_datetime(self) -> logic_pb2.DateTimeValue: - span_start941 = self.span_start() + span_start945 = self.span_start() self.consume_literal("(") self.consume_literal("datetime") - formatted_int934 = self.consume_terminal("INT") - formatted_int_3935 = self.consume_terminal("INT") - formatted_int_4936 = self.consume_terminal("INT") - formatted_int_5937 = self.consume_terminal("INT") - formatted_int_6938 = self.consume_terminal("INT") - formatted_int_7939 = self.consume_terminal("INT") + formatted_int938 = self.consume_terminal("INT") + formatted_int_3939 = self.consume_terminal("INT") + formatted_int_4940 = self.consume_terminal("INT") + formatted_int_5941 = self.consume_terminal("INT") + formatted_int_6942 = self.consume_terminal("INT") + formatted_int_7943 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1758 = self.consume_terminal("INT") + _t1766 = self.consume_terminal("INT") else: - _t1758 = None - formatted_int_8940 = _t1758 + _t1766 = None + formatted_int_8944 = _t1766 self.consume_literal(")") - _t1759 = logic_pb2.DateTimeValue(year=int(formatted_int934), month=int(formatted_int_3935), day=int(formatted_int_4936), hour=int(formatted_int_5937), minute=int(formatted_int_6938), second=int(formatted_int_7939), microsecond=int((formatted_int_8940 if formatted_int_8940 is not None else 0))) - result942 = _t1759 - self.record_span(span_start941, "DateTimeValue") - return result942 + _t1767 = logic_pb2.DateTimeValue(year=int(formatted_int938), month=int(formatted_int_3939), day=int(formatted_int_4940), hour=int(formatted_int_5941), minute=int(formatted_int_6942), second=int(formatted_int_7943), microsecond=int((formatted_int_8944 if formatted_int_8944 is not None else 0))) + result946 = _t1767 + self.record_span(span_start945, "DateTimeValue") + return result946 def parse_conjunction(self) -> logic_pb2.Conjunction: - span_start947 = self.span_start() + span_start951 = self.span_start() self.consume_literal("(") self.consume_literal("and") - xs943 = [] - cond944 = self.match_lookahead_literal("(", 0) - while cond944: - _t1760 = self.parse_formula() - item945 = _t1760 - xs943.append(item945) - cond944 = self.match_lookahead_literal("(", 0) - formulas946 = xs943 + xs947 = [] + cond948 = self.match_lookahead_literal("(", 0) + while cond948: + _t1768 = self.parse_formula() + item949 = _t1768 + xs947.append(item949) + cond948 = self.match_lookahead_literal("(", 0) + formulas950 = xs947 self.consume_literal(")") - _t1761 = logic_pb2.Conjunction(args=formulas946) - result948 = _t1761 - self.record_span(span_start947, "Conjunction") - return result948 + _t1769 = logic_pb2.Conjunction(args=formulas950) + result952 = _t1769 + self.record_span(span_start951, "Conjunction") + return result952 def parse_disjunction(self) -> logic_pb2.Disjunction: - span_start953 = self.span_start() + span_start957 = self.span_start() self.consume_literal("(") self.consume_literal("or") - xs949 = [] - cond950 = self.match_lookahead_literal("(", 0) - while cond950: - _t1762 = self.parse_formula() - item951 = _t1762 - xs949.append(item951) - cond950 = self.match_lookahead_literal("(", 0) - formulas952 = xs949 + xs953 = [] + cond954 = self.match_lookahead_literal("(", 0) + while cond954: + _t1770 = self.parse_formula() + item955 = _t1770 + xs953.append(item955) + cond954 = self.match_lookahead_literal("(", 0) + formulas956 = xs953 self.consume_literal(")") - _t1763 = logic_pb2.Disjunction(args=formulas952) - result954 = _t1763 - self.record_span(span_start953, "Disjunction") - return result954 + _t1771 = logic_pb2.Disjunction(args=formulas956) + result958 = _t1771 + self.record_span(span_start957, "Disjunction") + return result958 def parse_not(self) -> logic_pb2.Not: - span_start956 = self.span_start() + span_start960 = self.span_start() self.consume_literal("(") self.consume_literal("not") - _t1764 = self.parse_formula() - formula955 = _t1764 + _t1772 = self.parse_formula() + formula959 = _t1772 self.consume_literal(")") - _t1765 = logic_pb2.Not(arg=formula955) - result957 = _t1765 - self.record_span(span_start956, "Not") - return result957 + _t1773 = logic_pb2.Not(arg=formula959) + result961 = _t1773 + self.record_span(span_start960, "Not") + return result961 def parse_ffi(self) -> logic_pb2.FFI: - span_start961 = self.span_start() + span_start965 = self.span_start() self.consume_literal("(") self.consume_literal("ffi") - _t1766 = self.parse_name() - name958 = _t1766 - _t1767 = self.parse_ffi_args() - ffi_args959 = _t1767 - _t1768 = self.parse_terms() - terms960 = _t1768 + _t1774 = self.parse_name() + name962 = _t1774 + _t1775 = self.parse_ffi_args() + ffi_args963 = _t1775 + _t1776 = self.parse_terms() + terms964 = _t1776 self.consume_literal(")") - _t1769 = logic_pb2.FFI(name=name958, args=ffi_args959, terms=terms960) - result962 = _t1769 - self.record_span(span_start961, "FFI") - return result962 + _t1777 = logic_pb2.FFI(name=name962, args=ffi_args963, terms=terms964) + result966 = _t1777 + self.record_span(span_start965, "FFI") + return result966 def parse_name(self) -> str: self.consume_literal(":") - symbol963 = self.consume_terminal("SYMBOL") - return symbol963 + symbol967 = self.consume_terminal("SYMBOL") + return symbol967 def parse_ffi_args(self) -> Sequence[logic_pb2.Abstraction]: self.consume_literal("(") self.consume_literal("args") - xs964 = [] - cond965 = self.match_lookahead_literal("(", 0) - while cond965: - _t1770 = self.parse_abstraction() - item966 = _t1770 - xs964.append(item966) - cond965 = self.match_lookahead_literal("(", 0) - abstractions967 = xs964 + xs968 = [] + cond969 = self.match_lookahead_literal("(", 0) + while cond969: + _t1778 = self.parse_abstraction() + item970 = _t1778 + xs968.append(item970) + cond969 = self.match_lookahead_literal("(", 0) + abstractions971 = xs968 self.consume_literal(")") - return abstractions967 + return abstractions971 def parse_atom(self) -> logic_pb2.Atom: - span_start973 = self.span_start() + span_start977 = self.span_start() self.consume_literal("(") self.consume_literal("atom") - _t1771 = self.parse_relation_id() - relation_id968 = _t1771 - xs969 = [] - cond970 = (((((((((((((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 cond970: - _t1772 = self.parse_term() - item971 = _t1772 - xs969.append(item971) - cond970 = (((((((((((((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)) - terms972 = xs969 + _t1779 = self.parse_relation_id() + relation_id972 = _t1779 + xs973 = [] + cond974 = (((((((((((((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 cond974: + _t1780 = self.parse_term() + item975 = _t1780 + xs973.append(item975) + cond974 = (((((((((((((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)) + terms976 = xs973 self.consume_literal(")") - _t1773 = logic_pb2.Atom(name=relation_id968, terms=terms972) - result974 = _t1773 - self.record_span(span_start973, "Atom") - return result974 + _t1781 = logic_pb2.Atom(name=relation_id972, terms=terms976) + result978 = _t1781 + self.record_span(span_start977, "Atom") + return result978 def parse_pragma(self) -> logic_pb2.Pragma: - span_start980 = self.span_start() + span_start984 = self.span_start() self.consume_literal("(") self.consume_literal("pragma") - _t1774 = self.parse_name() - name975 = _t1774 - xs976 = [] - cond977 = (((((((((((((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 cond977: - _t1775 = self.parse_term() - item978 = _t1775 - xs976.append(item978) - cond977 = (((((((((((((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)) - terms979 = xs976 + _t1782 = self.parse_name() + name979 = _t1782 + xs980 = [] + cond981 = (((((((((((((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 cond981: + _t1783 = self.parse_term() + item982 = _t1783 + xs980.append(item982) + cond981 = (((((((((((((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)) + terms983 = xs980 self.consume_literal(")") - _t1776 = logic_pb2.Pragma(name=name975, terms=terms979) - result981 = _t1776 - self.record_span(span_start980, "Pragma") - return result981 + _t1784 = logic_pb2.Pragma(name=name979, terms=terms983) + result985 = _t1784 + self.record_span(span_start984, "Pragma") + return result985 def parse_primitive(self) -> logic_pb2.Primitive: - span_start997 = self.span_start() + span_start1001 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t1778 = 9 + _t1786 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1779 = 4 + _t1787 = 4 else: if self.match_lookahead_literal(">", 1): - _t1780 = 3 + _t1788 = 3 else: if self.match_lookahead_literal("=", 1): - _t1781 = 0 + _t1789 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1782 = 2 + _t1790 = 2 else: if self.match_lookahead_literal("<", 1): - _t1783 = 1 + _t1791 = 1 else: if self.match_lookahead_literal("/", 1): - _t1784 = 8 + _t1792 = 8 else: if self.match_lookahead_literal("-", 1): - _t1785 = 6 + _t1793 = 6 else: if self.match_lookahead_literal("+", 1): - _t1786 = 5 + _t1794 = 5 else: if self.match_lookahead_literal("*", 1): - _t1787 = 7 + _t1795 = 7 else: - _t1787 = -1 - _t1786 = _t1787 - _t1785 = _t1786 - _t1784 = _t1785 - _t1783 = _t1784 - _t1782 = _t1783 - _t1781 = _t1782 - _t1780 = _t1781 - _t1779 = _t1780 - _t1778 = _t1779 - _t1777 = _t1778 + _t1795 = -1 + _t1794 = _t1795 + _t1793 = _t1794 + _t1792 = _t1793 + _t1791 = _t1792 + _t1790 = _t1791 + _t1789 = _t1790 + _t1788 = _t1789 + _t1787 = _t1788 + _t1786 = _t1787 + _t1785 = _t1786 else: - _t1777 = -1 - prediction982 = _t1777 - if prediction982 == 9: + _t1785 = -1 + prediction986 = _t1785 + if prediction986 == 9: self.consume_literal("(") self.consume_literal("primitive") - _t1789 = self.parse_name() - name992 = _t1789 - xs993 = [] - cond994 = ((((((((((((((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 cond994: - _t1790 = self.parse_rel_term() - item995 = _t1790 - xs993.append(item995) - cond994 = ((((((((((((((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_terms996 = xs993 + _t1797 = self.parse_name() + name996 = _t1797 + xs997 = [] + cond998 = ((((((((((((((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 cond998: + _t1798 = self.parse_rel_term() + item999 = _t1798 + xs997.append(item999) + cond998 = ((((((((((((((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_terms1000 = xs997 self.consume_literal(")") - _t1791 = logic_pb2.Primitive(name=name992, terms=rel_terms996) - _t1788 = _t1791 + _t1799 = logic_pb2.Primitive(name=name996, terms=rel_terms1000) + _t1796 = _t1799 else: - if prediction982 == 8: - _t1793 = self.parse_divide() - divide991 = _t1793 - _t1792 = divide991 + if prediction986 == 8: + _t1801 = self.parse_divide() + divide995 = _t1801 + _t1800 = divide995 else: - if prediction982 == 7: - _t1795 = self.parse_multiply() - multiply990 = _t1795 - _t1794 = multiply990 + if prediction986 == 7: + _t1803 = self.parse_multiply() + multiply994 = _t1803 + _t1802 = multiply994 else: - if prediction982 == 6: - _t1797 = self.parse_minus() - minus989 = _t1797 - _t1796 = minus989 + if prediction986 == 6: + _t1805 = self.parse_minus() + minus993 = _t1805 + _t1804 = minus993 else: - if prediction982 == 5: - _t1799 = self.parse_add() - add988 = _t1799 - _t1798 = add988 + if prediction986 == 5: + _t1807 = self.parse_add() + add992 = _t1807 + _t1806 = add992 else: - if prediction982 == 4: - _t1801 = self.parse_gt_eq() - gt_eq987 = _t1801 - _t1800 = gt_eq987 + if prediction986 == 4: + _t1809 = self.parse_gt_eq() + gt_eq991 = _t1809 + _t1808 = gt_eq991 else: - if prediction982 == 3: - _t1803 = self.parse_gt() - gt986 = _t1803 - _t1802 = gt986 + if prediction986 == 3: + _t1811 = self.parse_gt() + gt990 = _t1811 + _t1810 = gt990 else: - if prediction982 == 2: - _t1805 = self.parse_lt_eq() - lt_eq985 = _t1805 - _t1804 = lt_eq985 + if prediction986 == 2: + _t1813 = self.parse_lt_eq() + lt_eq989 = _t1813 + _t1812 = lt_eq989 else: - if prediction982 == 1: - _t1807 = self.parse_lt() - lt984 = _t1807 - _t1806 = lt984 + if prediction986 == 1: + _t1815 = self.parse_lt() + lt988 = _t1815 + _t1814 = lt988 else: - if prediction982 == 0: - _t1809 = self.parse_eq() - eq983 = _t1809 - _t1808 = eq983 + if prediction986 == 0: + _t1817 = self.parse_eq() + eq987 = _t1817 + _t1816 = eq987 else: raise ParseError("Unexpected token in primitive" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1806 = _t1808 - _t1804 = _t1806 - _t1802 = _t1804 - _t1800 = _t1802 - _t1798 = _t1800 - _t1796 = _t1798 - _t1794 = _t1796 - _t1792 = _t1794 - _t1788 = _t1792 - result998 = _t1788 - self.record_span(span_start997, "Primitive") - return result998 - - def parse_eq(self) -> logic_pb2.Primitive: - span_start1001 = self.span_start() - self.consume_literal("(") - self.consume_literal("=") - _t1810 = self.parse_term() - term999 = _t1810 - _t1811 = self.parse_term() - term_31000 = _t1811 - self.consume_literal(")") - _t1812 = logic_pb2.RelTerm(term=term999) - _t1813 = logic_pb2.RelTerm(term=term_31000) - _t1814 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1812, _t1813]) - result1002 = _t1814 + _t1814 = _t1816 + _t1812 = _t1814 + _t1810 = _t1812 + _t1808 = _t1810 + _t1806 = _t1808 + _t1804 = _t1806 + _t1802 = _t1804 + _t1800 = _t1802 + _t1796 = _t1800 + result1002 = _t1796 self.record_span(span_start1001, "Primitive") return result1002 - def parse_lt(self) -> logic_pb2.Primitive: + def parse_eq(self) -> logic_pb2.Primitive: span_start1005 = self.span_start() self.consume_literal("(") - self.consume_literal("<") - _t1815 = self.parse_term() - term1003 = _t1815 - _t1816 = self.parse_term() - term_31004 = _t1816 + self.consume_literal("=") + _t1818 = self.parse_term() + term1003 = _t1818 + _t1819 = self.parse_term() + term_31004 = _t1819 self.consume_literal(")") - _t1817 = logic_pb2.RelTerm(term=term1003) - _t1818 = logic_pb2.RelTerm(term=term_31004) - _t1819 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1817, _t1818]) - result1006 = _t1819 + _t1820 = logic_pb2.RelTerm(term=term1003) + _t1821 = logic_pb2.RelTerm(term=term_31004) + _t1822 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1820, _t1821]) + result1006 = _t1822 self.record_span(span_start1005, "Primitive") return result1006 - def parse_lt_eq(self) -> logic_pb2.Primitive: + def parse_lt(self) -> logic_pb2.Primitive: span_start1009 = self.span_start() self.consume_literal("(") - self.consume_literal("<=") - _t1820 = self.parse_term() - term1007 = _t1820 - _t1821 = self.parse_term() - term_31008 = _t1821 + self.consume_literal("<") + _t1823 = self.parse_term() + term1007 = _t1823 + _t1824 = self.parse_term() + term_31008 = _t1824 self.consume_literal(")") - _t1822 = logic_pb2.RelTerm(term=term1007) - _t1823 = logic_pb2.RelTerm(term=term_31008) - _t1824 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1822, _t1823]) - result1010 = _t1824 + _t1825 = logic_pb2.RelTerm(term=term1007) + _t1826 = logic_pb2.RelTerm(term=term_31008) + _t1827 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1825, _t1826]) + result1010 = _t1827 self.record_span(span_start1009, "Primitive") return result1010 - def parse_gt(self) -> logic_pb2.Primitive: + def parse_lt_eq(self) -> logic_pb2.Primitive: span_start1013 = self.span_start() self.consume_literal("(") - self.consume_literal(">") - _t1825 = self.parse_term() - term1011 = _t1825 - _t1826 = self.parse_term() - term_31012 = _t1826 + self.consume_literal("<=") + _t1828 = self.parse_term() + term1011 = _t1828 + _t1829 = self.parse_term() + term_31012 = _t1829 self.consume_literal(")") - _t1827 = logic_pb2.RelTerm(term=term1011) - _t1828 = logic_pb2.RelTerm(term=term_31012) - _t1829 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1827, _t1828]) - result1014 = _t1829 + _t1830 = logic_pb2.RelTerm(term=term1011) + _t1831 = logic_pb2.RelTerm(term=term_31012) + _t1832 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1830, _t1831]) + result1014 = _t1832 self.record_span(span_start1013, "Primitive") return result1014 - def parse_gt_eq(self) -> logic_pb2.Primitive: + def parse_gt(self) -> logic_pb2.Primitive: span_start1017 = self.span_start() self.consume_literal("(") - self.consume_literal(">=") - _t1830 = self.parse_term() - term1015 = _t1830 - _t1831 = self.parse_term() - term_31016 = _t1831 + self.consume_literal(">") + _t1833 = self.parse_term() + term1015 = _t1833 + _t1834 = self.parse_term() + term_31016 = _t1834 self.consume_literal(")") - _t1832 = logic_pb2.RelTerm(term=term1015) - _t1833 = logic_pb2.RelTerm(term=term_31016) - _t1834 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1832, _t1833]) - result1018 = _t1834 + _t1835 = logic_pb2.RelTerm(term=term1015) + _t1836 = logic_pb2.RelTerm(term=term_31016) + _t1837 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1835, _t1836]) + result1018 = _t1837 self.record_span(span_start1017, "Primitive") return result1018 + def parse_gt_eq(self) -> logic_pb2.Primitive: + span_start1021 = self.span_start() + self.consume_literal("(") + self.consume_literal(">=") + _t1838 = self.parse_term() + term1019 = _t1838 + _t1839 = self.parse_term() + term_31020 = _t1839 + self.consume_literal(")") + _t1840 = logic_pb2.RelTerm(term=term1019) + _t1841 = logic_pb2.RelTerm(term=term_31020) + _t1842 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1840, _t1841]) + result1022 = _t1842 + self.record_span(span_start1021, "Primitive") + return result1022 + def parse_add(self) -> logic_pb2.Primitive: - span_start1022 = self.span_start() + span_start1026 = self.span_start() self.consume_literal("(") self.consume_literal("+") - _t1835 = self.parse_term() - term1019 = _t1835 - _t1836 = self.parse_term() - term_31020 = _t1836 - _t1837 = self.parse_term() - term_41021 = _t1837 + _t1843 = self.parse_term() + term1023 = _t1843 + _t1844 = self.parse_term() + term_31024 = _t1844 + _t1845 = self.parse_term() + term_41025 = _t1845 self.consume_literal(")") - _t1838 = logic_pb2.RelTerm(term=term1019) - _t1839 = logic_pb2.RelTerm(term=term_31020) - _t1840 = logic_pb2.RelTerm(term=term_41021) - _t1841 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1838, _t1839, _t1840]) - result1023 = _t1841 - self.record_span(span_start1022, "Primitive") - return result1023 + _t1846 = logic_pb2.RelTerm(term=term1023) + _t1847 = logic_pb2.RelTerm(term=term_31024) + _t1848 = logic_pb2.RelTerm(term=term_41025) + _t1849 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1846, _t1847, _t1848]) + result1027 = _t1849 + self.record_span(span_start1026, "Primitive") + return result1027 def parse_minus(self) -> logic_pb2.Primitive: - span_start1027 = self.span_start() + span_start1031 = self.span_start() self.consume_literal("(") self.consume_literal("-") - _t1842 = self.parse_term() - term1024 = _t1842 - _t1843 = self.parse_term() - term_31025 = _t1843 - _t1844 = self.parse_term() - term_41026 = _t1844 + _t1850 = self.parse_term() + term1028 = _t1850 + _t1851 = self.parse_term() + term_31029 = _t1851 + _t1852 = self.parse_term() + term_41030 = _t1852 self.consume_literal(")") - _t1845 = logic_pb2.RelTerm(term=term1024) - _t1846 = logic_pb2.RelTerm(term=term_31025) - _t1847 = logic_pb2.RelTerm(term=term_41026) - _t1848 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1845, _t1846, _t1847]) - result1028 = _t1848 - self.record_span(span_start1027, "Primitive") - return result1028 + _t1853 = logic_pb2.RelTerm(term=term1028) + _t1854 = logic_pb2.RelTerm(term=term_31029) + _t1855 = logic_pb2.RelTerm(term=term_41030) + _t1856 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1853, _t1854, _t1855]) + result1032 = _t1856 + self.record_span(span_start1031, "Primitive") + return result1032 def parse_multiply(self) -> logic_pb2.Primitive: - span_start1032 = self.span_start() + span_start1036 = self.span_start() self.consume_literal("(") self.consume_literal("*") - _t1849 = self.parse_term() - term1029 = _t1849 - _t1850 = self.parse_term() - term_31030 = _t1850 - _t1851 = self.parse_term() - term_41031 = _t1851 + _t1857 = self.parse_term() + term1033 = _t1857 + _t1858 = self.parse_term() + term_31034 = _t1858 + _t1859 = self.parse_term() + term_41035 = _t1859 self.consume_literal(")") - _t1852 = logic_pb2.RelTerm(term=term1029) - _t1853 = logic_pb2.RelTerm(term=term_31030) - _t1854 = logic_pb2.RelTerm(term=term_41031) - _t1855 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1852, _t1853, _t1854]) - result1033 = _t1855 - self.record_span(span_start1032, "Primitive") - return result1033 + _t1860 = logic_pb2.RelTerm(term=term1033) + _t1861 = logic_pb2.RelTerm(term=term_31034) + _t1862 = logic_pb2.RelTerm(term=term_41035) + _t1863 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1860, _t1861, _t1862]) + result1037 = _t1863 + self.record_span(span_start1036, "Primitive") + return result1037 def parse_divide(self) -> logic_pb2.Primitive: - span_start1037 = self.span_start() + span_start1041 = self.span_start() self.consume_literal("(") self.consume_literal("/") - _t1856 = self.parse_term() - term1034 = _t1856 - _t1857 = self.parse_term() - term_31035 = _t1857 - _t1858 = self.parse_term() - term_41036 = _t1858 + _t1864 = self.parse_term() + term1038 = _t1864 + _t1865 = self.parse_term() + term_31039 = _t1865 + _t1866 = self.parse_term() + term_41040 = _t1866 self.consume_literal(")") - _t1859 = logic_pb2.RelTerm(term=term1034) - _t1860 = logic_pb2.RelTerm(term=term_31035) - _t1861 = logic_pb2.RelTerm(term=term_41036) - _t1862 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1859, _t1860, _t1861]) - result1038 = _t1862 - self.record_span(span_start1037, "Primitive") - return result1038 + _t1867 = logic_pb2.RelTerm(term=term1038) + _t1868 = logic_pb2.RelTerm(term=term_31039) + _t1869 = logic_pb2.RelTerm(term=term_41040) + _t1870 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1867, _t1868, _t1869]) + result1042 = _t1870 + self.record_span(span_start1041, "Primitive") + return result1042 def parse_rel_term(self) -> logic_pb2.RelTerm: - span_start1042 = self.span_start() + span_start1046 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1863 = 1 + _t1871 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1864 = 1 + _t1872 = 1 else: if self.match_lookahead_literal("false", 0): - _t1865 = 1 + _t1873 = 1 else: if self.match_lookahead_literal("(", 0): - _t1866 = 1 + _t1874 = 1 else: if self.match_lookahead_literal("#", 0): - _t1867 = 0 + _t1875 = 0 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1868 = 1 + _t1876 = 1 else: if self.match_lookahead_terminal("UINT32", 0): - _t1869 = 1 + _t1877 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1870 = 1 + _t1878 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1871 = 1 + _t1879 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1872 = 1 + _t1880 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1873 = 1 + _t1881 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1874 = 1 + _t1882 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1875 = 1 + _t1883 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1876 = 1 + _t1884 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1877 = 1 + _t1885 = 1 else: - _t1877 = -1 - _t1876 = _t1877 - _t1875 = _t1876 - _t1874 = _t1875 - _t1873 = _t1874 - _t1872 = _t1873 - _t1871 = _t1872 - _t1870 = _t1871 - _t1869 = _t1870 - _t1868 = _t1869 - _t1867 = _t1868 - _t1866 = _t1867 - _t1865 = _t1866 - _t1864 = _t1865 - _t1863 = _t1864 - prediction1039 = _t1863 - if prediction1039 == 1: - _t1879 = self.parse_term() - term1041 = _t1879 - _t1880 = logic_pb2.RelTerm(term=term1041) - _t1878 = _t1880 + _t1885 = -1 + _t1884 = _t1885 + _t1883 = _t1884 + _t1882 = _t1883 + _t1881 = _t1882 + _t1880 = _t1881 + _t1879 = _t1880 + _t1878 = _t1879 + _t1877 = _t1878 + _t1876 = _t1877 + _t1875 = _t1876 + _t1874 = _t1875 + _t1873 = _t1874 + _t1872 = _t1873 + _t1871 = _t1872 + prediction1043 = _t1871 + if prediction1043 == 1: + _t1887 = self.parse_term() + term1045 = _t1887 + _t1888 = logic_pb2.RelTerm(term=term1045) + _t1886 = _t1888 else: - if prediction1039 == 0: - _t1882 = self.parse_specialized_value() - specialized_value1040 = _t1882 - _t1883 = logic_pb2.RelTerm(specialized_value=specialized_value1040) - _t1881 = _t1883 + if prediction1043 == 0: + _t1890 = self.parse_specialized_value() + specialized_value1044 = _t1890 + _t1891 = logic_pb2.RelTerm(specialized_value=specialized_value1044) + _t1889 = _t1891 else: raise ParseError("Unexpected token in rel_term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1878 = _t1881 - result1043 = _t1878 - self.record_span(span_start1042, "RelTerm") - return result1043 + _t1886 = _t1889 + result1047 = _t1886 + self.record_span(span_start1046, "RelTerm") + return result1047 def parse_specialized_value(self) -> logic_pb2.Value: - span_start1045 = self.span_start() + span_start1049 = self.span_start() self.consume_literal("#") - _t1884 = self.parse_raw_value() - raw_value1044 = _t1884 - result1046 = raw_value1044 - self.record_span(span_start1045, "Value") - return result1046 + _t1892 = self.parse_raw_value() + raw_value1048 = _t1892 + result1050 = raw_value1048 + self.record_span(span_start1049, "Value") + return result1050 def parse_rel_atom(self) -> logic_pb2.RelAtom: - span_start1052 = self.span_start() + span_start1056 = self.span_start() self.consume_literal("(") self.consume_literal("relatom") - _t1885 = self.parse_name() - name1047 = _t1885 - xs1048 = [] - cond1049 = ((((((((((((((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 cond1049: - _t1886 = self.parse_rel_term() - item1050 = _t1886 - xs1048.append(item1050) - cond1049 = ((((((((((((((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_terms1051 = xs1048 + _t1893 = self.parse_name() + name1051 = _t1893 + xs1052 = [] + cond1053 = ((((((((((((((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 cond1053: + _t1894 = self.parse_rel_term() + item1054 = _t1894 + xs1052.append(item1054) + cond1053 = ((((((((((((((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_terms1055 = xs1052 self.consume_literal(")") - _t1887 = logic_pb2.RelAtom(name=name1047, terms=rel_terms1051) - result1053 = _t1887 - self.record_span(span_start1052, "RelAtom") - return result1053 + _t1895 = logic_pb2.RelAtom(name=name1051, terms=rel_terms1055) + result1057 = _t1895 + self.record_span(span_start1056, "RelAtom") + return result1057 def parse_cast(self) -> logic_pb2.Cast: - span_start1056 = self.span_start() + span_start1060 = self.span_start() self.consume_literal("(") self.consume_literal("cast") - _t1888 = self.parse_term() - term1054 = _t1888 - _t1889 = self.parse_term() - term_31055 = _t1889 + _t1896 = self.parse_term() + term1058 = _t1896 + _t1897 = self.parse_term() + term_31059 = _t1897 self.consume_literal(")") - _t1890 = logic_pb2.Cast(input=term1054, result=term_31055) - result1057 = _t1890 - self.record_span(span_start1056, "Cast") - return result1057 + _t1898 = logic_pb2.Cast(input=term1058, result=term_31059) + result1061 = _t1898 + self.record_span(span_start1060, "Cast") + return result1061 def parse_attrs(self) -> Sequence[logic_pb2.Attribute]: self.consume_literal("(") self.consume_literal("attrs") - xs1058 = [] - cond1059 = self.match_lookahead_literal("(", 0) - while cond1059: - _t1891 = self.parse_attribute() - item1060 = _t1891 - xs1058.append(item1060) - cond1059 = self.match_lookahead_literal("(", 0) - attributes1061 = xs1058 + xs1062 = [] + cond1063 = self.match_lookahead_literal("(", 0) + while cond1063: + _t1899 = self.parse_attribute() + item1064 = _t1899 + xs1062.append(item1064) + cond1063 = self.match_lookahead_literal("(", 0) + attributes1065 = xs1062 self.consume_literal(")") - return attributes1061 + return attributes1065 def parse_attribute(self) -> logic_pb2.Attribute: - span_start1067 = self.span_start() + span_start1071 = self.span_start() self.consume_literal("(") self.consume_literal("attribute") - _t1892 = self.parse_name() - name1062 = _t1892 - xs1063 = [] - cond1064 = ((((((((((((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 cond1064: - _t1893 = self.parse_raw_value() - item1065 = _t1893 - xs1063.append(item1065) - cond1064 = ((((((((((((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_values1066 = xs1063 + _t1900 = self.parse_name() + name1066 = _t1900 + xs1067 = [] + cond1068 = ((((((((((((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 cond1068: + _t1901 = self.parse_raw_value() + item1069 = _t1901 + xs1067.append(item1069) + cond1068 = ((((((((((((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_values1070 = xs1067 self.consume_literal(")") - _t1894 = logic_pb2.Attribute(name=name1062, args=raw_values1066) - result1068 = _t1894 - self.record_span(span_start1067, "Attribute") - return result1068 + _t1902 = logic_pb2.Attribute(name=name1066, args=raw_values1070) + result1072 = _t1902 + self.record_span(span_start1071, "Attribute") + return result1072 def parse_algorithm(self) -> logic_pb2.Algorithm: - span_start1075 = self.span_start() + span_start1079 = self.span_start() self.consume_literal("(") self.consume_literal("algorithm") - xs1069 = [] - cond1070 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond1070: - _t1895 = self.parse_relation_id() - item1071 = _t1895 - xs1069.append(item1071) - cond1070 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids1072 = xs1069 - _t1896 = self.parse_script() - script1073 = _t1896 + xs1073 = [] + cond1074 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1074: + _t1903 = self.parse_relation_id() + item1075 = _t1903 + xs1073.append(item1075) + cond1074 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1076 = xs1073 + _t1904 = self.parse_script() + script1077 = _t1904 if self.match_lookahead_literal("(", 0): - _t1898 = self.parse_attrs() - _t1897 = _t1898 + _t1906 = self.parse_attrs() + _t1905 = _t1906 else: - _t1897 = None - attrs1074 = _t1897 + _t1905 = None + attrs1078 = _t1905 self.consume_literal(")") - _t1899 = logic_pb2.Algorithm(body=script1073, attrs=(attrs1074 if attrs1074 is not None else [])) - getattr(_t1899, 'global').extend(relation_ids1072) - result1076 = _t1899 - self.record_span(span_start1075, "Algorithm") - return result1076 + _t1907 = logic_pb2.Algorithm(body=script1077, attrs=(attrs1078 if attrs1078 is not None else [])) + getattr(_t1907, 'global').extend(relation_ids1076) + result1080 = _t1907 + self.record_span(span_start1079, "Algorithm") + return result1080 def parse_script(self) -> logic_pb2.Script: - span_start1081 = self.span_start() + span_start1085 = self.span_start() self.consume_literal("(") self.consume_literal("script") - xs1077 = [] - cond1078 = self.match_lookahead_literal("(", 0) - while cond1078: - _t1900 = self.parse_construct() - item1079 = _t1900 - xs1077.append(item1079) - cond1078 = self.match_lookahead_literal("(", 0) - constructs1080 = xs1077 + xs1081 = [] + cond1082 = self.match_lookahead_literal("(", 0) + while cond1082: + _t1908 = self.parse_construct() + item1083 = _t1908 + xs1081.append(item1083) + cond1082 = self.match_lookahead_literal("(", 0) + constructs1084 = xs1081 self.consume_literal(")") - _t1901 = logic_pb2.Script(constructs=constructs1080) - result1082 = _t1901 - self.record_span(span_start1081, "Script") - return result1082 + _t1909 = logic_pb2.Script(constructs=constructs1084) + result1086 = _t1909 + self.record_span(span_start1085, "Script") + return result1086 def parse_construct(self) -> logic_pb2.Construct: - span_start1086 = self.span_start() + span_start1090 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1903 = 1 + _t1911 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1904 = 1 + _t1912 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1905 = 1 + _t1913 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1906 = 0 + _t1914 = 0 else: if self.match_lookahead_literal("break", 1): - _t1907 = 1 + _t1915 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1908 = 1 + _t1916 = 1 else: - _t1908 = -1 - _t1907 = _t1908 - _t1906 = _t1907 - _t1905 = _t1906 - _t1904 = _t1905 - _t1903 = _t1904 - _t1902 = _t1903 + _t1916 = -1 + _t1915 = _t1916 + _t1914 = _t1915 + _t1913 = _t1914 + _t1912 = _t1913 + _t1911 = _t1912 + _t1910 = _t1911 else: - _t1902 = -1 - prediction1083 = _t1902 - if prediction1083 == 1: - _t1910 = self.parse_instruction() - instruction1085 = _t1910 - _t1911 = logic_pb2.Construct(instruction=instruction1085) - _t1909 = _t1911 + _t1910 = -1 + prediction1087 = _t1910 + if prediction1087 == 1: + _t1918 = self.parse_instruction() + instruction1089 = _t1918 + _t1919 = logic_pb2.Construct(instruction=instruction1089) + _t1917 = _t1919 else: - if prediction1083 == 0: - _t1913 = self.parse_loop() - loop1084 = _t1913 - _t1914 = logic_pb2.Construct(loop=loop1084) - _t1912 = _t1914 + if prediction1087 == 0: + _t1921 = self.parse_loop() + loop1088 = _t1921 + _t1922 = logic_pb2.Construct(loop=loop1088) + _t1920 = _t1922 else: raise ParseError("Unexpected token in construct" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1909 = _t1912 - result1087 = _t1909 - self.record_span(span_start1086, "Construct") - return result1087 + _t1917 = _t1920 + result1091 = _t1917 + self.record_span(span_start1090, "Construct") + return result1091 def parse_loop(self) -> logic_pb2.Loop: - span_start1091 = self.span_start() + span_start1095 = self.span_start() self.consume_literal("(") self.consume_literal("loop") - _t1915 = self.parse_init() - init1088 = _t1915 - _t1916 = self.parse_script() - script1089 = _t1916 + _t1923 = self.parse_init() + init1092 = _t1923 + _t1924 = self.parse_script() + script1093 = _t1924 if self.match_lookahead_literal("(", 0): - _t1918 = self.parse_attrs() - _t1917 = _t1918 + _t1926 = self.parse_attrs() + _t1925 = _t1926 else: - _t1917 = None - attrs1090 = _t1917 + _t1925 = None + attrs1094 = _t1925 self.consume_literal(")") - _t1919 = logic_pb2.Loop(init=init1088, body=script1089, attrs=(attrs1090 if attrs1090 is not None else [])) - result1092 = _t1919 - self.record_span(span_start1091, "Loop") - return result1092 + _t1927 = logic_pb2.Loop(init=init1092, body=script1093, attrs=(attrs1094 if attrs1094 is not None else [])) + result1096 = _t1927 + self.record_span(span_start1095, "Loop") + return result1096 def parse_init(self) -> Sequence[logic_pb2.Instruction]: self.consume_literal("(") self.consume_literal("init") - xs1093 = [] - cond1094 = self.match_lookahead_literal("(", 0) - while cond1094: - _t1920 = self.parse_instruction() - item1095 = _t1920 - xs1093.append(item1095) - cond1094 = self.match_lookahead_literal("(", 0) - instructions1096 = xs1093 + xs1097 = [] + cond1098 = self.match_lookahead_literal("(", 0) + while cond1098: + _t1928 = self.parse_instruction() + item1099 = _t1928 + xs1097.append(item1099) + cond1098 = self.match_lookahead_literal("(", 0) + instructions1100 = xs1097 self.consume_literal(")") - return instructions1096 + return instructions1100 def parse_instruction(self) -> logic_pb2.Instruction: - span_start1103 = self.span_start() + span_start1107 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1922 = 1 + _t1930 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1923 = 4 + _t1931 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1924 = 3 + _t1932 = 3 else: if self.match_lookahead_literal("break", 1): - _t1925 = 2 + _t1933 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1926 = 0 + _t1934 = 0 else: - _t1926 = -1 - _t1925 = _t1926 - _t1924 = _t1925 - _t1923 = _t1924 - _t1922 = _t1923 - _t1921 = _t1922 + _t1934 = -1 + _t1933 = _t1934 + _t1932 = _t1933 + _t1931 = _t1932 + _t1930 = _t1931 + _t1929 = _t1930 else: - _t1921 = -1 - prediction1097 = _t1921 - if prediction1097 == 4: - _t1928 = self.parse_monus_def() - monus_def1102 = _t1928 - _t1929 = logic_pb2.Instruction(monus_def=monus_def1102) - _t1927 = _t1929 + _t1929 = -1 + prediction1101 = _t1929 + if prediction1101 == 4: + _t1936 = self.parse_monus_def() + monus_def1106 = _t1936 + _t1937 = logic_pb2.Instruction(monus_def=monus_def1106) + _t1935 = _t1937 else: - if prediction1097 == 3: - _t1931 = self.parse_monoid_def() - monoid_def1101 = _t1931 - _t1932 = logic_pb2.Instruction(monoid_def=monoid_def1101) - _t1930 = _t1932 + if prediction1101 == 3: + _t1939 = self.parse_monoid_def() + monoid_def1105 = _t1939 + _t1940 = logic_pb2.Instruction(monoid_def=monoid_def1105) + _t1938 = _t1940 else: - if prediction1097 == 2: - _t1934 = self.parse_break() - break1100 = _t1934 - _t1935 = logic_pb2.Instruction() - getattr(_t1935, 'break').CopyFrom(break1100) - _t1933 = _t1935 + if prediction1101 == 2: + _t1942 = self.parse_break() + break1104 = _t1942 + _t1943 = logic_pb2.Instruction() + getattr(_t1943, 'break').CopyFrom(break1104) + _t1941 = _t1943 else: - if prediction1097 == 1: - _t1937 = self.parse_upsert() - upsert1099 = _t1937 - _t1938 = logic_pb2.Instruction(upsert=upsert1099) - _t1936 = _t1938 + if prediction1101 == 1: + _t1945 = self.parse_upsert() + upsert1103 = _t1945 + _t1946 = logic_pb2.Instruction(upsert=upsert1103) + _t1944 = _t1946 else: - if prediction1097 == 0: - _t1940 = self.parse_assign() - assign1098 = _t1940 - _t1941 = logic_pb2.Instruction(assign=assign1098) - _t1939 = _t1941 + if prediction1101 == 0: + _t1948 = self.parse_assign() + assign1102 = _t1948 + _t1949 = logic_pb2.Instruction(assign=assign1102) + _t1947 = _t1949 else: raise ParseError("Unexpected token in instruction" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1936 = _t1939 - _t1933 = _t1936 - _t1930 = _t1933 - _t1927 = _t1930 - result1104 = _t1927 - self.record_span(span_start1103, "Instruction") - return result1104 + _t1944 = _t1947 + _t1941 = _t1944 + _t1938 = _t1941 + _t1935 = _t1938 + result1108 = _t1935 + self.record_span(span_start1107, "Instruction") + return result1108 def parse_assign(self) -> logic_pb2.Assign: - span_start1108 = self.span_start() + span_start1112 = self.span_start() self.consume_literal("(") self.consume_literal("assign") - _t1942 = self.parse_relation_id() - relation_id1105 = _t1942 - _t1943 = self.parse_abstraction() - abstraction1106 = _t1943 + _t1950 = self.parse_relation_id() + relation_id1109 = _t1950 + _t1951 = self.parse_abstraction() + abstraction1110 = _t1951 if self.match_lookahead_literal("(", 0): - _t1945 = self.parse_attrs() - _t1944 = _t1945 + _t1953 = self.parse_attrs() + _t1952 = _t1953 else: - _t1944 = None - attrs1107 = _t1944 + _t1952 = None + attrs1111 = _t1952 self.consume_literal(")") - _t1946 = logic_pb2.Assign(name=relation_id1105, body=abstraction1106, attrs=(attrs1107 if attrs1107 is not None else [])) - result1109 = _t1946 - self.record_span(span_start1108, "Assign") - return result1109 + _t1954 = logic_pb2.Assign(name=relation_id1109, body=abstraction1110, attrs=(attrs1111 if attrs1111 is not None else [])) + result1113 = _t1954 + self.record_span(span_start1112, "Assign") + return result1113 def parse_upsert(self) -> logic_pb2.Upsert: - span_start1113 = self.span_start() + span_start1117 = self.span_start() self.consume_literal("(") self.consume_literal("upsert") - _t1947 = self.parse_relation_id() - relation_id1110 = _t1947 - _t1948 = self.parse_abstraction_with_arity() - abstraction_with_arity1111 = _t1948 + _t1955 = self.parse_relation_id() + relation_id1114 = _t1955 + _t1956 = self.parse_abstraction_with_arity() + abstraction_with_arity1115 = _t1956 if self.match_lookahead_literal("(", 0): - _t1950 = self.parse_attrs() - _t1949 = _t1950 + _t1958 = self.parse_attrs() + _t1957 = _t1958 else: - _t1949 = None - attrs1112 = _t1949 + _t1957 = None + attrs1116 = _t1957 self.consume_literal(")") - _t1951 = logic_pb2.Upsert(name=relation_id1110, body=abstraction_with_arity1111[0], attrs=(attrs1112 if attrs1112 is not None else []), value_arity=abstraction_with_arity1111[1]) - result1114 = _t1951 - self.record_span(span_start1113, "Upsert") - return result1114 + _t1959 = logic_pb2.Upsert(name=relation_id1114, body=abstraction_with_arity1115[0], attrs=(attrs1116 if attrs1116 is not None else []), value_arity=abstraction_with_arity1115[1]) + result1118 = _t1959 + self.record_span(span_start1117, "Upsert") + return result1118 def parse_abstraction_with_arity(self) -> tuple[logic_pb2.Abstraction, int]: self.consume_literal("(") - _t1952 = self.parse_bindings() - bindings1115 = _t1952 - _t1953 = self.parse_formula() - formula1116 = _t1953 + _t1960 = self.parse_bindings() + bindings1119 = _t1960 + _t1961 = self.parse_formula() + formula1120 = _t1961 self.consume_literal(")") - _t1954 = logic_pb2.Abstraction(vars=(list(bindings1115[0]) + list(bindings1115[1] if bindings1115[1] is not None else [])), value=formula1116) - return (_t1954, len(bindings1115[1]),) + _t1962 = logic_pb2.Abstraction(vars=(list(bindings1119[0]) + list(bindings1119[1] if bindings1119[1] is not None else [])), value=formula1120) + return (_t1962, len(bindings1119[1]),) def parse_break(self) -> logic_pb2.Break: - span_start1120 = self.span_start() + span_start1124 = self.span_start() self.consume_literal("(") self.consume_literal("break") - _t1955 = self.parse_relation_id() - relation_id1117 = _t1955 - _t1956 = self.parse_abstraction() - abstraction1118 = _t1956 + _t1963 = self.parse_relation_id() + relation_id1121 = _t1963 + _t1964 = self.parse_abstraction() + abstraction1122 = _t1964 if self.match_lookahead_literal("(", 0): - _t1958 = self.parse_attrs() - _t1957 = _t1958 + _t1966 = self.parse_attrs() + _t1965 = _t1966 else: - _t1957 = None - attrs1119 = _t1957 + _t1965 = None + attrs1123 = _t1965 self.consume_literal(")") - _t1959 = logic_pb2.Break(name=relation_id1117, body=abstraction1118, attrs=(attrs1119 if attrs1119 is not None else [])) - result1121 = _t1959 - self.record_span(span_start1120, "Break") - return result1121 + _t1967 = logic_pb2.Break(name=relation_id1121, body=abstraction1122, attrs=(attrs1123 if attrs1123 is not None else [])) + result1125 = _t1967 + self.record_span(span_start1124, "Break") + return result1125 def parse_monoid_def(self) -> logic_pb2.MonoidDef: - span_start1126 = self.span_start() + span_start1130 = self.span_start() self.consume_literal("(") self.consume_literal("monoid") - _t1960 = self.parse_monoid() - monoid1122 = _t1960 - _t1961 = self.parse_relation_id() - relation_id1123 = _t1961 - _t1962 = self.parse_abstraction_with_arity() - abstraction_with_arity1124 = _t1962 + _t1968 = self.parse_monoid() + monoid1126 = _t1968 + _t1969 = self.parse_relation_id() + relation_id1127 = _t1969 + _t1970 = self.parse_abstraction_with_arity() + abstraction_with_arity1128 = _t1970 if self.match_lookahead_literal("(", 0): - _t1964 = self.parse_attrs() - _t1963 = _t1964 + _t1972 = self.parse_attrs() + _t1971 = _t1972 else: - _t1963 = None - attrs1125 = _t1963 + _t1971 = None + attrs1129 = _t1971 self.consume_literal(")") - _t1965 = logic_pb2.MonoidDef(monoid=monoid1122, name=relation_id1123, body=abstraction_with_arity1124[0], attrs=(attrs1125 if attrs1125 is not None else []), value_arity=abstraction_with_arity1124[1]) - result1127 = _t1965 - self.record_span(span_start1126, "MonoidDef") - return result1127 + _t1973 = logic_pb2.MonoidDef(monoid=monoid1126, name=relation_id1127, body=abstraction_with_arity1128[0], attrs=(attrs1129 if attrs1129 is not None else []), value_arity=abstraction_with_arity1128[1]) + result1131 = _t1973 + self.record_span(span_start1130, "MonoidDef") + return result1131 def parse_monoid(self) -> logic_pb2.Monoid: - span_start1133 = self.span_start() + span_start1137 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1967 = 3 + _t1975 = 3 else: if self.match_lookahead_literal("or", 1): - _t1968 = 0 + _t1976 = 0 else: if self.match_lookahead_literal("min", 1): - _t1969 = 1 + _t1977 = 1 else: if self.match_lookahead_literal("max", 1): - _t1970 = 2 + _t1978 = 2 else: - _t1970 = -1 - _t1969 = _t1970 - _t1968 = _t1969 - _t1967 = _t1968 - _t1966 = _t1967 + _t1978 = -1 + _t1977 = _t1978 + _t1976 = _t1977 + _t1975 = _t1976 + _t1974 = _t1975 else: - _t1966 = -1 - prediction1128 = _t1966 - if prediction1128 == 3: - _t1972 = self.parse_sum_monoid() - sum_monoid1132 = _t1972 - _t1973 = logic_pb2.Monoid(sum_monoid=sum_monoid1132) - _t1971 = _t1973 + _t1974 = -1 + prediction1132 = _t1974 + if prediction1132 == 3: + _t1980 = self.parse_sum_monoid() + sum_monoid1136 = _t1980 + _t1981 = logic_pb2.Monoid(sum_monoid=sum_monoid1136) + _t1979 = _t1981 else: - if prediction1128 == 2: - _t1975 = self.parse_max_monoid() - max_monoid1131 = _t1975 - _t1976 = logic_pb2.Monoid(max_monoid=max_monoid1131) - _t1974 = _t1976 + if prediction1132 == 2: + _t1983 = self.parse_max_monoid() + max_monoid1135 = _t1983 + _t1984 = logic_pb2.Monoid(max_monoid=max_monoid1135) + _t1982 = _t1984 else: - if prediction1128 == 1: - _t1978 = self.parse_min_monoid() - min_monoid1130 = _t1978 - _t1979 = logic_pb2.Monoid(min_monoid=min_monoid1130) - _t1977 = _t1979 + if prediction1132 == 1: + _t1986 = self.parse_min_monoid() + min_monoid1134 = _t1986 + _t1987 = logic_pb2.Monoid(min_monoid=min_monoid1134) + _t1985 = _t1987 else: - if prediction1128 == 0: - _t1981 = self.parse_or_monoid() - or_monoid1129 = _t1981 - _t1982 = logic_pb2.Monoid(or_monoid=or_monoid1129) - _t1980 = _t1982 + if prediction1132 == 0: + _t1989 = self.parse_or_monoid() + or_monoid1133 = _t1989 + _t1990 = logic_pb2.Monoid(or_monoid=or_monoid1133) + _t1988 = _t1990 else: raise ParseError("Unexpected token in monoid" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1977 = _t1980 - _t1974 = _t1977 - _t1971 = _t1974 - result1134 = _t1971 - self.record_span(span_start1133, "Monoid") - return result1134 + _t1985 = _t1988 + _t1982 = _t1985 + _t1979 = _t1982 + result1138 = _t1979 + self.record_span(span_start1137, "Monoid") + return result1138 def parse_or_monoid(self) -> logic_pb2.OrMonoid: - span_start1135 = self.span_start() + span_start1139 = self.span_start() self.consume_literal("(") self.consume_literal("or") self.consume_literal(")") - _t1983 = logic_pb2.OrMonoid() - result1136 = _t1983 - self.record_span(span_start1135, "OrMonoid") - return result1136 + _t1991 = logic_pb2.OrMonoid() + result1140 = _t1991 + self.record_span(span_start1139, "OrMonoid") + return result1140 def parse_min_monoid(self) -> logic_pb2.MinMonoid: - span_start1138 = self.span_start() + span_start1142 = self.span_start() self.consume_literal("(") self.consume_literal("min") - _t1984 = self.parse_type() - type1137 = _t1984 + _t1992 = self.parse_type() + type1141 = _t1992 self.consume_literal(")") - _t1985 = logic_pb2.MinMonoid(type=type1137) - result1139 = _t1985 - self.record_span(span_start1138, "MinMonoid") - return result1139 + _t1993 = logic_pb2.MinMonoid(type=type1141) + result1143 = _t1993 + self.record_span(span_start1142, "MinMonoid") + return result1143 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: - span_start1141 = self.span_start() + span_start1145 = self.span_start() self.consume_literal("(") self.consume_literal("max") - _t1986 = self.parse_type() - type1140 = _t1986 + _t1994 = self.parse_type() + type1144 = _t1994 self.consume_literal(")") - _t1987 = logic_pb2.MaxMonoid(type=type1140) - result1142 = _t1987 - self.record_span(span_start1141, "MaxMonoid") - return result1142 + _t1995 = logic_pb2.MaxMonoid(type=type1144) + result1146 = _t1995 + self.record_span(span_start1145, "MaxMonoid") + return result1146 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: - span_start1144 = self.span_start() + span_start1148 = self.span_start() self.consume_literal("(") self.consume_literal("sum") - _t1988 = self.parse_type() - type1143 = _t1988 + _t1996 = self.parse_type() + type1147 = _t1996 self.consume_literal(")") - _t1989 = logic_pb2.SumMonoid(type=type1143) - result1145 = _t1989 - self.record_span(span_start1144, "SumMonoid") - return result1145 + _t1997 = logic_pb2.SumMonoid(type=type1147) + result1149 = _t1997 + self.record_span(span_start1148, "SumMonoid") + return result1149 def parse_monus_def(self) -> logic_pb2.MonusDef: - span_start1150 = self.span_start() + span_start1154 = self.span_start() self.consume_literal("(") self.consume_literal("monus") - _t1990 = self.parse_monoid() - monoid1146 = _t1990 - _t1991 = self.parse_relation_id() - relation_id1147 = _t1991 - _t1992 = self.parse_abstraction_with_arity() - abstraction_with_arity1148 = _t1992 + _t1998 = self.parse_monoid() + monoid1150 = _t1998 + _t1999 = self.parse_relation_id() + relation_id1151 = _t1999 + _t2000 = self.parse_abstraction_with_arity() + abstraction_with_arity1152 = _t2000 if self.match_lookahead_literal("(", 0): - _t1994 = self.parse_attrs() - _t1993 = _t1994 + _t2002 = self.parse_attrs() + _t2001 = _t2002 else: - _t1993 = None - attrs1149 = _t1993 + _t2001 = None + attrs1153 = _t2001 self.consume_literal(")") - _t1995 = logic_pb2.MonusDef(monoid=monoid1146, name=relation_id1147, body=abstraction_with_arity1148[0], attrs=(attrs1149 if attrs1149 is not None else []), value_arity=abstraction_with_arity1148[1]) - result1151 = _t1995 - self.record_span(span_start1150, "MonusDef") - return result1151 + _t2003 = logic_pb2.MonusDef(monoid=monoid1150, name=relation_id1151, body=abstraction_with_arity1152[0], attrs=(attrs1153 if attrs1153 is not None else []), value_arity=abstraction_with_arity1152[1]) + result1155 = _t2003 + self.record_span(span_start1154, "MonusDef") + return result1155 def parse_constraint(self) -> logic_pb2.Constraint: - span_start1156 = self.span_start() + span_start1160 = self.span_start() self.consume_literal("(") self.consume_literal("functional_dependency") - _t1996 = self.parse_relation_id() - relation_id1152 = _t1996 - _t1997 = self.parse_abstraction() - abstraction1153 = _t1997 - _t1998 = self.parse_functional_dependency_keys() - functional_dependency_keys1154 = _t1998 - _t1999 = self.parse_functional_dependency_values() - functional_dependency_values1155 = _t1999 + _t2004 = self.parse_relation_id() + relation_id1156 = _t2004 + _t2005 = self.parse_abstraction() + abstraction1157 = _t2005 + _t2006 = self.parse_functional_dependency_keys() + functional_dependency_keys1158 = _t2006 + _t2007 = self.parse_functional_dependency_values() + functional_dependency_values1159 = _t2007 self.consume_literal(")") - _t2000 = logic_pb2.FunctionalDependency(guard=abstraction1153, keys=functional_dependency_keys1154, values=functional_dependency_values1155) - _t2001 = logic_pb2.Constraint(name=relation_id1152, functional_dependency=_t2000) - result1157 = _t2001 - self.record_span(span_start1156, "Constraint") - return result1157 + _t2008 = logic_pb2.FunctionalDependency(guard=abstraction1157, keys=functional_dependency_keys1158, values=functional_dependency_values1159) + _t2009 = logic_pb2.Constraint(name=relation_id1156, functional_dependency=_t2008) + result1161 = _t2009 + self.record_span(span_start1160, "Constraint") + return result1161 def parse_functional_dependency_keys(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("keys") - xs1158 = [] - cond1159 = self.match_lookahead_terminal("SYMBOL", 0) - while cond1159: - _t2002 = self.parse_var() - item1160 = _t2002 - xs1158.append(item1160) - cond1159 = self.match_lookahead_terminal("SYMBOL", 0) - vars1161 = xs1158 - self.consume_literal(")") - return vars1161 - - def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: - self.consume_literal("(") - self.consume_literal("values") xs1162 = [] cond1163 = self.match_lookahead_terminal("SYMBOL", 0) while cond1163: - _t2003 = self.parse_var() - item1164 = _t2003 + _t2010 = self.parse_var() + item1164 = _t2010 xs1162.append(item1164) cond1163 = self.match_lookahead_terminal("SYMBOL", 0) vars1165 = xs1162 self.consume_literal(")") return vars1165 + def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: + self.consume_literal("(") + self.consume_literal("values") + xs1166 = [] + cond1167 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1167: + _t2011 = self.parse_var() + item1168 = _t2011 + xs1166.append(item1168) + cond1167 = self.match_lookahead_terminal("SYMBOL", 0) + vars1169 = xs1166 + self.consume_literal(")") + return vars1169 + def parse_data(self) -> logic_pb2.Data: - span_start1171 = self.span_start() + span_start1175 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("iceberg_data", 1): - _t2005 = 3 + _t2013 = 3 else: if self.match_lookahead_literal("edb", 1): - _t2006 = 0 + _t2014 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t2007 = 2 + _t2015 = 2 else: if self.match_lookahead_literal("betree_relation", 1): - _t2008 = 1 + _t2016 = 1 else: - _t2008 = -1 - _t2007 = _t2008 - _t2006 = _t2007 - _t2005 = _t2006 - _t2004 = _t2005 + _t2016 = -1 + _t2015 = _t2016 + _t2014 = _t2015 + _t2013 = _t2014 + _t2012 = _t2013 else: - _t2004 = -1 - prediction1166 = _t2004 - if prediction1166 == 3: - _t2010 = self.parse_iceberg_data() - iceberg_data1170 = _t2010 - _t2011 = logic_pb2.Data(iceberg_data=iceberg_data1170) - _t2009 = _t2011 + _t2012 = -1 + prediction1170 = _t2012 + if prediction1170 == 3: + _t2018 = self.parse_iceberg_data() + iceberg_data1174 = _t2018 + _t2019 = logic_pb2.Data(iceberg_data=iceberg_data1174) + _t2017 = _t2019 else: - if prediction1166 == 2: - _t2013 = self.parse_csv_data() - csv_data1169 = _t2013 - _t2014 = logic_pb2.Data(csv_data=csv_data1169) - _t2012 = _t2014 + if prediction1170 == 2: + _t2021 = self.parse_csv_data() + csv_data1173 = _t2021 + _t2022 = logic_pb2.Data(csv_data=csv_data1173) + _t2020 = _t2022 else: - if prediction1166 == 1: - _t2016 = self.parse_betree_relation() - betree_relation1168 = _t2016 - _t2017 = logic_pb2.Data(betree_relation=betree_relation1168) - _t2015 = _t2017 + if prediction1170 == 1: + _t2024 = self.parse_betree_relation() + betree_relation1172 = _t2024 + _t2025 = logic_pb2.Data(betree_relation=betree_relation1172) + _t2023 = _t2025 else: - if prediction1166 == 0: - _t2019 = self.parse_edb() - edb1167 = _t2019 - _t2020 = logic_pb2.Data(edb=edb1167) - _t2018 = _t2020 + if prediction1170 == 0: + _t2027 = self.parse_edb() + edb1171 = _t2027 + _t2028 = logic_pb2.Data(edb=edb1171) + _t2026 = _t2028 else: raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2015 = _t2018 - _t2012 = _t2015 - _t2009 = _t2012 - result1172 = _t2009 - self.record_span(span_start1171, "Data") - return result1172 + _t2023 = _t2026 + _t2020 = _t2023 + _t2017 = _t2020 + result1176 = _t2017 + self.record_span(span_start1175, "Data") + return result1176 def parse_edb(self) -> logic_pb2.EDB: - span_start1176 = self.span_start() + span_start1180 = self.span_start() self.consume_literal("(") self.consume_literal("edb") - _t2021 = self.parse_relation_id() - relation_id1173 = _t2021 - _t2022 = self.parse_edb_path() - edb_path1174 = _t2022 - _t2023 = self.parse_edb_types() - edb_types1175 = _t2023 + _t2029 = self.parse_relation_id() + relation_id1177 = _t2029 + _t2030 = self.parse_edb_path() + edb_path1178 = _t2030 + _t2031 = self.parse_edb_types() + edb_types1179 = _t2031 self.consume_literal(")") - _t2024 = logic_pb2.EDB(target_id=relation_id1173, path=edb_path1174, types=edb_types1175) - result1177 = _t2024 - self.record_span(span_start1176, "EDB") - return result1177 + _t2032 = logic_pb2.EDB(target_id=relation_id1177, path=edb_path1178, types=edb_types1179) + result1181 = _t2032 + self.record_span(span_start1180, "EDB") + return result1181 def parse_edb_path(self) -> Sequence[str]: self.consume_literal("[") - xs1178 = [] - cond1179 = self.match_lookahead_terminal("STRING", 0) - while cond1179: - item1180 = self.consume_terminal("STRING") - xs1178.append(item1180) - cond1179 = self.match_lookahead_terminal("STRING", 0) - strings1181 = xs1178 + xs1182 = [] + cond1183 = self.match_lookahead_terminal("STRING", 0) + while cond1183: + item1184 = self.consume_terminal("STRING") + xs1182.append(item1184) + cond1183 = self.match_lookahead_terminal("STRING", 0) + strings1185 = xs1182 self.consume_literal("]") - return strings1181 + return strings1185 def parse_edb_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("[") - xs1182 = [] - cond1183 = (((((((((((((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 cond1183: - _t2025 = self.parse_type() - item1184 = _t2025 - xs1182.append(item1184) - cond1183 = (((((((((((((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)) - types1185 = xs1182 + xs1186 = [] + cond1187 = (((((((((((((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 cond1187: + _t2033 = self.parse_type() + item1188 = _t2033 + xs1186.append(item1188) + cond1187 = (((((((((((((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)) + types1189 = xs1186 self.consume_literal("]") - return types1185 + return types1189 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: - span_start1188 = self.span_start() + span_start1192 = self.span_start() self.consume_literal("(") self.consume_literal("betree_relation") - _t2026 = self.parse_relation_id() - relation_id1186 = _t2026 - _t2027 = self.parse_betree_info() - betree_info1187 = _t2027 + _t2034 = self.parse_relation_id() + relation_id1190 = _t2034 + _t2035 = self.parse_betree_info() + betree_info1191 = _t2035 self.consume_literal(")") - _t2028 = logic_pb2.BeTreeRelation(name=relation_id1186, relation_info=betree_info1187) - result1189 = _t2028 - self.record_span(span_start1188, "BeTreeRelation") - return result1189 + _t2036 = logic_pb2.BeTreeRelation(name=relation_id1190, relation_info=betree_info1191) + result1193 = _t2036 + self.record_span(span_start1192, "BeTreeRelation") + return result1193 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: - span_start1193 = self.span_start() + span_start1197 = self.span_start() self.consume_literal("(") self.consume_literal("betree_info") - _t2029 = self.parse_betree_info_key_types() - betree_info_key_types1190 = _t2029 - _t2030 = self.parse_betree_info_value_types() - betree_info_value_types1191 = _t2030 - _t2031 = self.parse_config_dict() - config_dict1192 = _t2031 + _t2037 = self.parse_betree_info_key_types() + betree_info_key_types1194 = _t2037 + _t2038 = self.parse_betree_info_value_types() + betree_info_value_types1195 = _t2038 + _t2039 = self.parse_config_dict() + config_dict1196 = _t2039 self.consume_literal(")") - _t2032 = self.construct_betree_info(betree_info_key_types1190, betree_info_value_types1191, config_dict1192) - result1194 = _t2032 - self.record_span(span_start1193, "BeTreeInfo") - return result1194 + _t2040 = self.construct_betree_info(betree_info_key_types1194, betree_info_value_types1195, config_dict1196) + result1198 = _t2040 + self.record_span(span_start1197, "BeTreeInfo") + return result1198 def parse_betree_info_key_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("key_types") - xs1195 = [] - cond1196 = (((((((((((((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 cond1196: - _t2033 = self.parse_type() - item1197 = _t2033 - xs1195.append(item1197) - cond1196 = (((((((((((((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)) - types1198 = xs1195 - self.consume_literal(")") - return types1198 - - def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: - self.consume_literal("(") - self.consume_literal("value_types") xs1199 = [] cond1200 = (((((((((((((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 cond1200: - _t2034 = self.parse_type() - item1201 = _t2034 + _t2041 = self.parse_type() + item1201 = _t2041 xs1199.append(item1201) cond1200 = (((((((((((((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)) types1202 = xs1199 self.consume_literal(")") return types1202 + def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: + self.consume_literal("(") + self.consume_literal("value_types") + xs1203 = [] + cond1204 = (((((((((((((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 cond1204: + _t2042 = self.parse_type() + item1205 = _t2042 + xs1203.append(item1205) + cond1204 = (((((((((((((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)) + types1206 = xs1203 + self.consume_literal(")") + return types1206 + def parse_csv_data(self) -> logic_pb2.CSVData: - span_start1208 = self.span_start() + span_start1212 = self.span_start() self.consume_literal("(") self.consume_literal("csv_data") - _t2035 = self.parse_csvlocator() - csvlocator1203 = _t2035 - _t2036 = self.parse_csv_config() - csv_config1204 = _t2036 + _t2043 = self.parse_csvlocator() + csvlocator1207 = _t2043 + _t2044 = self.parse_csv_config() + csv_config1208 = _t2044 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("columns", 1)): - _t2038 = self.parse_gnf_columns() - _t2037 = _t2038 + _t2046 = self.parse_gnf_columns() + _t2045 = _t2046 else: - _t2037 = None - gnf_columns1205 = _t2037 + _t2045 = None + gnf_columns1209 = _t2045 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("relations", 1)): - _t2040 = self.parse_target_relations() - _t2039 = _t2040 + _t2048 = self.parse_target_relations() + _t2047 = _t2048 else: - _t2039 = None - target_relations1206 = _t2039 - _t2041 = self.parse_csv_asof() - csv_asof1207 = _t2041 + _t2047 = None + target_relations1210 = _t2047 + _t2049 = self.parse_csv_asof() + csv_asof1211 = _t2049 self.consume_literal(")") - _t2042 = self.construct_csv_data(csvlocator1203, csv_config1204, gnf_columns1205, target_relations1206, csv_asof1207) - result1209 = _t2042 - self.record_span(span_start1208, "CSVData") - return result1209 + _t2050 = self.construct_csv_data(csvlocator1207, csv_config1208, gnf_columns1209, target_relations1210, csv_asof1211) + result1213 = _t2050 + self.record_span(span_start1212, "CSVData") + return result1213 def parse_csvlocator(self) -> logic_pb2.CSVLocator: - span_start1212 = self.span_start() + span_start1216 = self.span_start() self.consume_literal("(") self.consume_literal("csv_locator") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("paths", 1)): - _t2044 = self.parse_csv_locator_paths() - _t2043 = _t2044 + _t2052 = self.parse_csv_locator_paths() + _t2051 = _t2052 else: - _t2043 = None - csv_locator_paths1210 = _t2043 + _t2051 = None + csv_locator_paths1214 = _t2051 if self.match_lookahead_literal("(", 0): - _t2046 = self.parse_csv_locator_inline_data() - _t2045 = _t2046 + _t2054 = self.parse_csv_locator_inline_data() + _t2053 = _t2054 else: - _t2045 = None - csv_locator_inline_data1211 = _t2045 + _t2053 = None + csv_locator_inline_data1215 = _t2053 self.consume_literal(")") - _t2047 = logic_pb2.CSVLocator(paths=(csv_locator_paths1210 if csv_locator_paths1210 is not None else []), inline_data=(csv_locator_inline_data1211 if csv_locator_inline_data1211 is not None else "").encode()) - result1213 = _t2047 - self.record_span(span_start1212, "CSVLocator") - return result1213 + _t2055 = logic_pb2.CSVLocator(paths=(csv_locator_paths1214 if csv_locator_paths1214 is not None else []), inline_data=(csv_locator_inline_data1215 if csv_locator_inline_data1215 is not None else "").encode()) + result1217 = _t2055 + self.record_span(span_start1216, "CSVLocator") + return result1217 def parse_csv_locator_paths(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("paths") - xs1214 = [] - cond1215 = self.match_lookahead_terminal("STRING", 0) - while cond1215: - item1216 = self.consume_terminal("STRING") - xs1214.append(item1216) - cond1215 = self.match_lookahead_terminal("STRING", 0) - strings1217 = xs1214 + xs1218 = [] + cond1219 = self.match_lookahead_terminal("STRING", 0) + while cond1219: + item1220 = self.consume_terminal("STRING") + xs1218.append(item1220) + cond1219 = self.match_lookahead_terminal("STRING", 0) + strings1221 = xs1218 self.consume_literal(")") - return strings1217 + return strings1221 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - formatted_string1218 = self.consume_terminal("STRING") + formatted_string1222 = self.consume_terminal("STRING") self.consume_literal(")") - return formatted_string1218 + return formatted_string1222 def parse_csv_config(self) -> logic_pb2.CSVConfig: - span_start1221 = self.span_start() + span_start1225 = self.span_start() self.consume_literal("(") self.consume_literal("csv_config") - _t2048 = self.parse_config_dict() - config_dict1219 = _t2048 + _t2056 = self.parse_config_dict() + config_dict1223 = _t2056 if self.match_lookahead_literal("(", 0): - _t2050 = self.parse__storage_integration() - _t2049 = _t2050 + _t2058 = self.parse__storage_integration() + _t2057 = _t2058 else: - _t2049 = None - _storage_integration1220 = _t2049 + _t2057 = None + _storage_integration1224 = _t2057 self.consume_literal(")") - _t2051 = self.construct_csv_config(config_dict1219, _storage_integration1220) - result1222 = _t2051 - self.record_span(span_start1221, "CSVConfig") - return result1222 + _t2059 = self.construct_csv_config(config_dict1223, _storage_integration1224) + result1226 = _t2059 + self.record_span(span_start1225, "CSVConfig") + return result1226 def parse__storage_integration(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("(") self.consume_literal("storage_integration") - _t2052 = self.parse_config_dict() - config_dict1223 = _t2052 + _t2060 = self.parse_config_dict() + config_dict1227 = _t2060 self.consume_literal(")") - return config_dict1223 + return config_dict1227 def parse_gnf_columns(self) -> Sequence[logic_pb2.GNFColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1224 = [] - cond1225 = self.match_lookahead_literal("(", 0) - while cond1225: - _t2053 = self.parse_gnf_column() - item1226 = _t2053 - xs1224.append(item1226) - cond1225 = self.match_lookahead_literal("(", 0) - gnf_columns1227 = xs1224 + xs1228 = [] + cond1229 = self.match_lookahead_literal("(", 0) + while cond1229: + _t2061 = self.parse_gnf_column() + item1230 = _t2061 + xs1228.append(item1230) + cond1229 = self.match_lookahead_literal("(", 0) + gnf_columns1231 = xs1228 self.consume_literal(")") - return gnf_columns1227 + return gnf_columns1231 def parse_gnf_column(self) -> logic_pb2.GNFColumn: - span_start1234 = self.span_start() + span_start1238 = self.span_start() self.consume_literal("(") self.consume_literal("column") - _t2054 = self.parse_gnf_column_path() - gnf_column_path1228 = _t2054 + _t2062 = self.parse_gnf_column_path() + gnf_column_path1232 = _t2062 if (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)): - _t2056 = self.parse_relation_id() - _t2055 = _t2056 + _t2064 = self.parse_relation_id() + _t2063 = _t2064 else: - _t2055 = None - relation_id1229 = _t2055 + _t2063 = None + relation_id1233 = _t2063 self.consume_literal("[") - xs1230 = [] - cond1231 = (((((((((((((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 cond1231: - _t2057 = self.parse_type() - item1232 = _t2057 - xs1230.append(item1232) - cond1231 = (((((((((((((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)) - types1233 = xs1230 + xs1234 = [] + cond1235 = (((((((((((((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 cond1235: + _t2065 = self.parse_type() + item1236 = _t2065 + xs1234.append(item1236) + cond1235 = (((((((((((((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)) + types1237 = xs1234 self.consume_literal("]") self.consume_literal(")") - _t2058 = logic_pb2.GNFColumn(column_path=gnf_column_path1228, target_id=relation_id1229, types=types1233) - result1235 = _t2058 - self.record_span(span_start1234, "GNFColumn") - return result1235 + _t2066 = logic_pb2.GNFColumn(column_path=gnf_column_path1232, target_id=relation_id1233, types=types1237) + result1239 = _t2066 + self.record_span(span_start1238, "GNFColumn") + return result1239 def parse_gnf_column_path(self) -> Sequence[str]: if self.match_lookahead_literal("[", 0): - _t2059 = 1 + _t2067 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t2060 = 0 + _t2068 = 0 else: - _t2060 = -1 - _t2059 = _t2060 - prediction1236 = _t2059 - if prediction1236 == 1: + _t2068 = -1 + _t2067 = _t2068 + prediction1240 = _t2067 + if prediction1240 == 1: self.consume_literal("[") - xs1238 = [] - cond1239 = self.match_lookahead_terminal("STRING", 0) - while cond1239: - item1240 = self.consume_terminal("STRING") - xs1238.append(item1240) - cond1239 = self.match_lookahead_terminal("STRING", 0) - strings1241 = xs1238 + xs1242 = [] + cond1243 = self.match_lookahead_terminal("STRING", 0) + while cond1243: + item1244 = self.consume_terminal("STRING") + xs1242.append(item1244) + cond1243 = self.match_lookahead_terminal("STRING", 0) + strings1245 = xs1242 self.consume_literal("]") - _t2061 = strings1241 + _t2069 = strings1245 else: - if prediction1236 == 0: - string1237 = self.consume_terminal("STRING") - _t2062 = [string1237] + if prediction1240 == 0: + string1241 = self.consume_terminal("STRING") + _t2070 = [string1241] else: raise ParseError("Unexpected token in gnf_column_path" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2061 = _t2062 - return _t2061 + _t2069 = _t2070 + return _t2069 def parse_target_relations(self) -> logic_pb2.TargetRelations: - span_start1244 = self.span_start() + span_start1249 = self.span_start() self.consume_literal("(") self.consume_literal("relations") - _t2063 = self.parse_relation_keys() - relation_keys1242 = _t2063 - _t2064 = self.parse_relation_body() - relation_body1243 = _t2064 + _t2071 = self.parse_relation_keys() + relation_keys1246 = _t2071 + _t2072 = self.parse_relation_body() + relation_body1247 = _t2072 + if self.match_lookahead_literal("(", 0): + _t2074 = self.parse_load_errors() + _t2073 = _t2074 + else: + _t2073 = None + load_errors1248 = _t2073 self.consume_literal(")") - _t2065 = self.construct_relations(relation_keys1242, relation_body1243) - result1245 = _t2065 - self.record_span(span_start1244, "TargetRelations") - return result1245 + _t2075 = self.construct_relations(relation_keys1246, relation_body1247, load_errors1248) + result1250 = _t2075 + self.record_span(span_start1249, "TargetRelations") + return result1250 def parse_relation_keys(self) -> tuple[Sequence[logic_pb2.NamedColumn], bool]: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("keys", 1): if self.match_lookahead_literal("synthetic", 2): - _t2068 = 1 + _t2078 = 1 else: if self.match_lookahead_literal(")", 2): - _t2069 = 0 + _t2079 = 0 else: if self.match_lookahead_literal("(", 2): - _t2070 = 0 + _t2080 = 0 else: - _t2070 = -1 - _t2069 = _t2070 - _t2068 = _t2069 - _t2067 = _t2068 + _t2080 = -1 + _t2079 = _t2080 + _t2078 = _t2079 + _t2077 = _t2078 else: - _t2067 = -1 - _t2066 = _t2067 + _t2077 = -1 + _t2076 = _t2077 else: - _t2066 = -1 - prediction1246 = _t2066 - if prediction1246 == 1: + _t2076 = -1 + prediction1251 = _t2076 + if prediction1251 == 1: self.consume_literal("(") self.consume_literal("keys") self.consume_literal("synthetic") self.consume_literal(")") - _t2071 = ([], True,) + _t2081 = ([], True,) else: - if prediction1246 == 0: + if prediction1251 == 0: self.consume_literal("(") self.consume_literal("keys") - xs1247 = [] - cond1248 = self.match_lookahead_literal("(", 0) - while cond1248: - _t2073 = self.parse_named_column() - item1249 = _t2073 - xs1247.append(item1249) - cond1248 = self.match_lookahead_literal("(", 0) - named_columns1250 = xs1247 + xs1252 = [] + cond1253 = self.match_lookahead_literal("(", 0) + while cond1253: + _t2083 = self.parse_named_column() + item1254 = _t2083 + xs1252.append(item1254) + cond1253 = self.match_lookahead_literal("(", 0) + named_columns1255 = xs1252 self.consume_literal(")") - _t2072 = (named_columns1250, False,) + _t2082 = (named_columns1255, False,) else: raise ParseError("Unexpected token in relation_keys" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2071 = _t2072 - return _t2071 + _t2081 = _t2082 + return _t2081 def parse_named_column(self) -> logic_pb2.NamedColumn: - span_start1253 = self.span_start() + span_start1258 = self.span_start() self.consume_literal("(") self.consume_literal("column") - string1251 = self.consume_terminal("STRING") - _t2074 = self.parse_type() - type1252 = _t2074 + string1256 = self.consume_terminal("STRING") + _t2084 = self.parse_type() + type1257 = _t2084 self.consume_literal(")") - _t2075 = logic_pb2.NamedColumn(name=string1251, type=type1252) - result1254 = _t2075 - self.record_span(span_start1253, "NamedColumn") - return result1254 + _t2085 = logic_pb2.NamedColumn(name=string1256, type=type1257) + result1259 = _t2085 + self.record_span(span_start1258, "NamedColumn") + return result1259 def parse_relation_body(self) -> logic_pb2.TargetRelations: - span_start1259 = self.span_start() + span_start1264 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("relation", 1): - _t2077 = 0 + _t2087 = 0 else: if self.match_lookahead_literal("inserts", 1): - _t2078 = 1 + _t2088 = 1 else: - _t2078 = 0 - _t2077 = _t2078 - _t2076 = _t2077 + _t2088 = 0 + _t2087 = _t2088 + _t2086 = _t2087 else: - _t2076 = 0 - prediction1255 = _t2076 - if prediction1255 == 1: - _t2080 = self.parse_cdc_inserts() - cdc_inserts1257 = _t2080 - _t2081 = self.parse_cdc_deletes() - cdc_deletes1258 = _t2081 - _t2082 = self.construct_cdc_relations(cdc_inserts1257, cdc_deletes1258) - _t2079 = _t2082 + _t2086 = 0 + prediction1260 = _t2086 + if prediction1260 == 1: + _t2090 = self.parse_cdc_inserts() + cdc_inserts1262 = _t2090 + _t2091 = self.parse_cdc_deletes() + cdc_deletes1263 = _t2091 + _t2092 = self.construct_cdc_relations(cdc_inserts1262, cdc_deletes1263) + _t2089 = _t2092 else: - if prediction1255 == 0: - _t2084 = self.parse_non_cdc_relations() - non_cdc_relations1256 = _t2084 - _t2085 = self.construct_non_cdc_relations(non_cdc_relations1256) - _t2083 = _t2085 + if prediction1260 == 0: + _t2094 = self.parse_non_cdc_relations() + non_cdc_relations1261 = _t2094 + _t2095 = self.construct_non_cdc_relations(non_cdc_relations1261) + _t2093 = _t2095 else: raise ParseError("Unexpected token in relation_body" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2079 = _t2083 - result1260 = _t2079 - self.record_span(span_start1259, "TargetRelations") - return result1260 + _t2089 = _t2093 + result1265 = _t2089 + self.record_span(span_start1264, "TargetRelations") + return result1265 def parse_non_cdc_relations(self) -> Sequence[logic_pb2.TargetRelation]: - xs1261 = [] - cond1262 = self.match_lookahead_literal("(", 0) - while cond1262: - _t2086 = self.parse_target_relation() - item1263 = _t2086 - xs1261.append(item1263) - cond1262 = self.match_lookahead_literal("(", 0) - return xs1261 + xs1266 = [] + cond1267 = (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("relation", 1)) + while cond1267: + _t2096 = self.parse_target_relation() + item1268 = _t2096 + xs1266.append(item1268) + cond1267 = (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("relation", 1)) + return xs1266 def parse_target_relation(self) -> logic_pb2.TargetRelation: - span_start1269 = self.span_start() + span_start1274 = self.span_start() self.consume_literal("(") self.consume_literal("relation") - _t2087 = self.parse_relation_id() - relation_id1264 = _t2087 - xs1265 = [] - cond1266 = self.match_lookahead_literal("(", 0) - while cond1266: - _t2088 = self.parse_named_column() - item1267 = _t2088 - xs1265.append(item1267) - cond1266 = self.match_lookahead_literal("(", 0) - named_columns1268 = xs1265 + _t2097 = self.parse_relation_id() + relation_id1269 = _t2097 + xs1270 = [] + cond1271 = self.match_lookahead_literal("(", 0) + while cond1271: + _t2098 = self.parse_named_column() + item1272 = _t2098 + xs1270.append(item1272) + cond1271 = self.match_lookahead_literal("(", 0) + named_columns1273 = xs1270 self.consume_literal(")") - _t2089 = logic_pb2.TargetRelation(target_id=relation_id1264, values=named_columns1268) - result1270 = _t2089 - self.record_span(span_start1269, "TargetRelation") - return result1270 + _t2099 = logic_pb2.TargetRelation(target_id=relation_id1269, values=named_columns1273) + result1275 = _t2099 + self.record_span(span_start1274, "TargetRelation") + return result1275 def parse_cdc_inserts(self) -> Sequence[logic_pb2.TargetRelation]: self.consume_literal("(") self.consume_literal("inserts") - xs1271 = [] - cond1272 = self.match_lookahead_literal("(", 0) - while cond1272: - _t2090 = self.parse_target_relation() - item1273 = _t2090 - xs1271.append(item1273) - cond1272 = self.match_lookahead_literal("(", 0) - target_relations1274 = xs1271 + xs1276 = [] + cond1277 = self.match_lookahead_literal("(", 0) + while cond1277: + _t2100 = self.parse_target_relation() + item1278 = _t2100 + xs1276.append(item1278) + cond1277 = self.match_lookahead_literal("(", 0) + target_relations1279 = xs1276 self.consume_literal(")") - return target_relations1274 + return target_relations1279 def parse_cdc_deletes(self) -> Sequence[logic_pb2.TargetRelation]: self.consume_literal("(") self.consume_literal("deletes") - xs1275 = [] - cond1276 = self.match_lookahead_literal("(", 0) - while cond1276: - _t2091 = self.parse_target_relation() - item1277 = _t2091 - xs1275.append(item1277) - cond1276 = self.match_lookahead_literal("(", 0) - target_relations1278 = xs1275 + xs1280 = [] + cond1281 = self.match_lookahead_literal("(", 0) + while cond1281: + _t2101 = self.parse_target_relation() + item1282 = _t2101 + xs1280.append(item1282) + cond1281 = self.match_lookahead_literal("(", 0) + target_relations1283 = xs1280 + self.consume_literal(")") + return target_relations1283 + + def parse_load_errors(self) -> logic_pb2.RelationId: + span_start1285 = self.span_start() + self.consume_literal("(") + self.consume_literal("load_errors") + _t2102 = self.parse_relation_id() + relation_id1284 = _t2102 self.consume_literal(")") - return target_relations1278 + result1286 = relation_id1284 + self.record_span(span_start1285, "RelationId") + return result1286 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string1279 = self.consume_terminal("STRING") + string1287 = self.consume_terminal("STRING") self.consume_literal(")") - return string1279 + return string1287 def parse_iceberg_data(self) -> logic_pb2.IcebergData: - span_start1286 = self.span_start() + span_start1294 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_data") - _t2092 = self.parse_iceberg_locator() - iceberg_locator1280 = _t2092 - _t2093 = self.parse_iceberg_catalog_config() - iceberg_catalog_config1281 = _t2093 - _t2094 = self.parse_gnf_columns() - gnf_columns1282 = _t2094 + _t2103 = self.parse_iceberg_locator() + iceberg_locator1288 = _t2103 + _t2104 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1289 = _t2104 + _t2105 = self.parse_gnf_columns() + gnf_columns1290 = _t2105 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("from_snapshot", 1)): - _t2096 = self.parse_iceberg_from_snapshot() - _t2095 = _t2096 + _t2107 = self.parse_iceberg_from_snapshot() + _t2106 = _t2107 else: - _t2095 = None - iceberg_from_snapshot1283 = _t2095 + _t2106 = None + iceberg_from_snapshot1291 = _t2106 if self.match_lookahead_literal("(", 0): - _t2098 = self.parse_iceberg_to_snapshot() - _t2097 = _t2098 + _t2109 = self.parse_iceberg_to_snapshot() + _t2108 = _t2109 else: - _t2097 = None - iceberg_to_snapshot1284 = _t2097 - _t2099 = self.parse_boolean_value() - boolean_value1285 = _t2099 + _t2108 = None + iceberg_to_snapshot1292 = _t2108 + _t2110 = self.parse_boolean_value() + boolean_value1293 = _t2110 self.consume_literal(")") - _t2100 = self.construct_iceberg_data(iceberg_locator1280, iceberg_catalog_config1281, gnf_columns1282, iceberg_from_snapshot1283, iceberg_to_snapshot1284, boolean_value1285) - result1287 = _t2100 - self.record_span(span_start1286, "IcebergData") - return result1287 + _t2111 = self.construct_iceberg_data(iceberg_locator1288, iceberg_catalog_config1289, gnf_columns1290, iceberg_from_snapshot1291, iceberg_to_snapshot1292, boolean_value1293) + result1295 = _t2111 + self.record_span(span_start1294, "IcebergData") + return result1295 def parse_iceberg_locator(self) -> logic_pb2.IcebergLocator: - span_start1291 = self.span_start() + span_start1299 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_locator") - _t2101 = self.parse_iceberg_locator_table_name() - iceberg_locator_table_name1288 = _t2101 - _t2102 = self.parse_iceberg_locator_namespace() - iceberg_locator_namespace1289 = _t2102 - _t2103 = self.parse_iceberg_locator_warehouse() - iceberg_locator_warehouse1290 = _t2103 + _t2112 = self.parse_iceberg_locator_table_name() + iceberg_locator_table_name1296 = _t2112 + _t2113 = self.parse_iceberg_locator_namespace() + iceberg_locator_namespace1297 = _t2113 + _t2114 = self.parse_iceberg_locator_warehouse() + iceberg_locator_warehouse1298 = _t2114 self.consume_literal(")") - _t2104 = logic_pb2.IcebergLocator(table_name=iceberg_locator_table_name1288, namespace=iceberg_locator_namespace1289, warehouse=iceberg_locator_warehouse1290) - result1292 = _t2104 - self.record_span(span_start1291, "IcebergLocator") - return result1292 + _t2115 = logic_pb2.IcebergLocator(table_name=iceberg_locator_table_name1296, namespace=iceberg_locator_namespace1297, warehouse=iceberg_locator_warehouse1298) + result1300 = _t2115 + self.record_span(span_start1299, "IcebergLocator") + return result1300 def parse_iceberg_locator_table_name(self) -> str: self.consume_literal("(") self.consume_literal("table_name") - string1293 = self.consume_terminal("STRING") + string1301 = self.consume_terminal("STRING") self.consume_literal(")") - return string1293 + return string1301 def parse_iceberg_locator_namespace(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("namespace") - xs1294 = [] - cond1295 = self.match_lookahead_terminal("STRING", 0) - while cond1295: - item1296 = self.consume_terminal("STRING") - xs1294.append(item1296) - cond1295 = self.match_lookahead_terminal("STRING", 0) - strings1297 = xs1294 + xs1302 = [] + cond1303 = self.match_lookahead_terminal("STRING", 0) + while cond1303: + item1304 = self.consume_terminal("STRING") + xs1302.append(item1304) + cond1303 = self.match_lookahead_terminal("STRING", 0) + strings1305 = xs1302 self.consume_literal(")") - return strings1297 + return strings1305 def parse_iceberg_locator_warehouse(self) -> str: self.consume_literal("(") self.consume_literal("warehouse") - string1298 = self.consume_terminal("STRING") + string1306 = self.consume_terminal("STRING") self.consume_literal(")") - return string1298 + return string1306 def parse_iceberg_catalog_config(self) -> logic_pb2.IcebergCatalogConfig: - span_start1303 = self.span_start() + span_start1311 = self.span_start() self.consume_literal("(") self.consume_literal("iceberg_catalog_config") - _t2105 = self.parse_iceberg_catalog_uri() - iceberg_catalog_uri1299 = _t2105 + _t2116 = self.parse_iceberg_catalog_uri() + iceberg_catalog_uri1307 = _t2116 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("scope", 1)): - _t2107 = self.parse_iceberg_catalog_config_scope() - _t2106 = _t2107 + _t2118 = self.parse_iceberg_catalog_config_scope() + _t2117 = _t2118 else: - _t2106 = None - iceberg_catalog_config_scope1300 = _t2106 - _t2108 = self.parse_iceberg_properties() - iceberg_properties1301 = _t2108 - _t2109 = self.parse_iceberg_auth_properties() - iceberg_auth_properties1302 = _t2109 + _t2117 = None + iceberg_catalog_config_scope1308 = _t2117 + _t2119 = self.parse_iceberg_properties() + iceberg_properties1309 = _t2119 + _t2120 = self.parse_iceberg_auth_properties() + iceberg_auth_properties1310 = _t2120 self.consume_literal(")") - _t2110 = self.construct_iceberg_catalog_config(iceberg_catalog_uri1299, iceberg_catalog_config_scope1300, iceberg_properties1301, iceberg_auth_properties1302) - result1304 = _t2110 - self.record_span(span_start1303, "IcebergCatalogConfig") - return result1304 + _t2121 = self.construct_iceberg_catalog_config(iceberg_catalog_uri1307, iceberg_catalog_config_scope1308, iceberg_properties1309, iceberg_auth_properties1310) + result1312 = _t2121 + self.record_span(span_start1311, "IcebergCatalogConfig") + return result1312 def parse_iceberg_catalog_uri(self) -> str: self.consume_literal("(") self.consume_literal("catalog_uri") - string1305 = self.consume_terminal("STRING") + string1313 = self.consume_terminal("STRING") self.consume_literal(")") - return string1305 + return string1313 def parse_iceberg_catalog_config_scope(self) -> str: self.consume_literal("(") self.consume_literal("scope") - string1306 = self.consume_terminal("STRING") + string1314 = self.consume_terminal("STRING") self.consume_literal(")") - return string1306 + return string1314 def parse_iceberg_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("properties") - xs1307 = [] - cond1308 = self.match_lookahead_literal("(", 0) - while cond1308: - _t2111 = self.parse_iceberg_property_entry() - item1309 = _t2111 - xs1307.append(item1309) - cond1308 = self.match_lookahead_literal("(", 0) - iceberg_property_entrys1310 = xs1307 + xs1315 = [] + cond1316 = self.match_lookahead_literal("(", 0) + while cond1316: + _t2122 = self.parse_iceberg_property_entry() + item1317 = _t2122 + xs1315.append(item1317) + cond1316 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1318 = xs1315 self.consume_literal(")") - return iceberg_property_entrys1310 + return iceberg_property_entrys1318 def parse_iceberg_property_entry(self) -> tuple[str, str]: self.consume_literal("(") self.consume_literal("prop") - string1311 = self.consume_terminal("STRING") - string_31312 = self.consume_terminal("STRING") + string1319 = self.consume_terminal("STRING") + string_31320 = self.consume_terminal("STRING") self.consume_literal(")") - return (string1311, string_31312,) + return (string1319, string_31320,) def parse_iceberg_auth_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("auth_properties") - xs1313 = [] - cond1314 = self.match_lookahead_literal("(", 0) - while cond1314: - _t2112 = self.parse_iceberg_masked_property_entry() - item1315 = _t2112 - xs1313.append(item1315) - cond1314 = self.match_lookahead_literal("(", 0) - iceberg_masked_property_entrys1316 = xs1313 + xs1321 = [] + cond1322 = self.match_lookahead_literal("(", 0) + while cond1322: + _t2123 = self.parse_iceberg_masked_property_entry() + item1323 = _t2123 + xs1321.append(item1323) + cond1322 = self.match_lookahead_literal("(", 0) + iceberg_masked_property_entrys1324 = xs1321 self.consume_literal(")") - return iceberg_masked_property_entrys1316 + return iceberg_masked_property_entrys1324 def parse_iceberg_masked_property_entry(self) -> tuple[str, str]: self.consume_literal("(") self.consume_literal("prop") - string1317 = self.consume_terminal("STRING") - string_31318 = self.consume_terminal("STRING") + string1325 = self.consume_terminal("STRING") + string_31326 = self.consume_terminal("STRING") self.consume_literal(")") - return (string1317, string_31318,) + return (string1325, string_31326,) def parse_iceberg_from_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("from_snapshot") - string1319 = self.consume_terminal("STRING") + string1327 = self.consume_terminal("STRING") self.consume_literal(")") - return string1319 + return string1327 def parse_iceberg_to_snapshot(self) -> str: self.consume_literal("(") self.consume_literal("to_snapshot") - string1320 = self.consume_terminal("STRING") + string1328 = self.consume_terminal("STRING") self.consume_literal(")") - return string1320 + return string1328 def parse_undefine(self) -> transactions_pb2.Undefine: - span_start1322 = self.span_start() + span_start1330 = self.span_start() self.consume_literal("(") self.consume_literal("undefine") - _t2113 = self.parse_fragment_id() - fragment_id1321 = _t2113 + _t2124 = self.parse_fragment_id() + fragment_id1329 = _t2124 self.consume_literal(")") - _t2114 = transactions_pb2.Undefine(fragment_id=fragment_id1321) - result1323 = _t2114 - self.record_span(span_start1322, "Undefine") - return result1323 + _t2125 = transactions_pb2.Undefine(fragment_id=fragment_id1329) + result1331 = _t2125 + self.record_span(span_start1330, "Undefine") + return result1331 def parse_context(self) -> transactions_pb2.Context: - span_start1328 = self.span_start() + span_start1336 = self.span_start() self.consume_literal("(") self.consume_literal("context") - xs1324 = [] - cond1325 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond1325: - _t2115 = self.parse_relation_id() - item1326 = _t2115 - xs1324.append(item1326) - cond1325 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids1327 = xs1324 + xs1332 = [] + cond1333 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1333: + _t2126 = self.parse_relation_id() + item1334 = _t2126 + xs1332.append(item1334) + cond1333 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1335 = xs1332 self.consume_literal(")") - _t2116 = transactions_pb2.Context(relations=relation_ids1327) - result1329 = _t2116 - self.record_span(span_start1328, "Context") - return result1329 + _t2127 = transactions_pb2.Context(relations=relation_ids1335) + result1337 = _t2127 + self.record_span(span_start1336, "Context") + return result1337 def parse_snapshot(self) -> transactions_pb2.Snapshot: - span_start1335 = self.span_start() + span_start1343 = self.span_start() self.consume_literal("(") self.consume_literal("snapshot") - _t2117 = self.parse_edb_path() - edb_path1330 = _t2117 - xs1331 = [] - cond1332 = self.match_lookahead_literal("[", 0) - while cond1332: - _t2118 = self.parse_snapshot_mapping() - item1333 = _t2118 - xs1331.append(item1333) - cond1332 = self.match_lookahead_literal("[", 0) - snapshot_mappings1334 = xs1331 + _t2128 = self.parse_edb_path() + edb_path1338 = _t2128 + xs1339 = [] + cond1340 = self.match_lookahead_literal("[", 0) + while cond1340: + _t2129 = self.parse_snapshot_mapping() + item1341 = _t2129 + xs1339.append(item1341) + cond1340 = self.match_lookahead_literal("[", 0) + snapshot_mappings1342 = xs1339 self.consume_literal(")") - _t2119 = transactions_pb2.Snapshot(prefix=edb_path1330, mappings=snapshot_mappings1334) - result1336 = _t2119 - self.record_span(span_start1335, "Snapshot") - return result1336 + _t2130 = transactions_pb2.Snapshot(prefix=edb_path1338, mappings=snapshot_mappings1342) + result1344 = _t2130 + self.record_span(span_start1343, "Snapshot") + return result1344 def parse_snapshot_mapping(self) -> transactions_pb2.SnapshotMapping: - span_start1339 = self.span_start() - _t2120 = self.parse_edb_path() - edb_path1337 = _t2120 - _t2121 = self.parse_relation_id() - relation_id1338 = _t2121 - _t2122 = transactions_pb2.SnapshotMapping(destination_path=edb_path1337, source_relation=relation_id1338) - result1340 = _t2122 - self.record_span(span_start1339, "SnapshotMapping") - return result1340 + span_start1347 = self.span_start() + _t2131 = self.parse_edb_path() + edb_path1345 = _t2131 + _t2132 = self.parse_relation_id() + relation_id1346 = _t2132 + _t2133 = transactions_pb2.SnapshotMapping(destination_path=edb_path1345, source_relation=relation_id1346) + result1348 = _t2133 + self.record_span(span_start1347, "SnapshotMapping") + return result1348 def parse_epoch_reads(self) -> Sequence[transactions_pb2.Read]: self.consume_literal("(") self.consume_literal("reads") - xs1341 = [] - cond1342 = self.match_lookahead_literal("(", 0) - while cond1342: - _t2123 = self.parse_read() - item1343 = _t2123 - xs1341.append(item1343) - cond1342 = self.match_lookahead_literal("(", 0) - reads1344 = xs1341 + xs1349 = [] + cond1350 = self.match_lookahead_literal("(", 0) + while cond1350: + _t2134 = self.parse_read() + item1351 = _t2134 + xs1349.append(item1351) + cond1350 = self.match_lookahead_literal("(", 0) + reads1352 = xs1349 self.consume_literal(")") - return reads1344 + return reads1352 def parse_read(self) -> transactions_pb2.Read: - span_start1351 = self.span_start() + span_start1359 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t2125 = 2 + _t2136 = 2 else: if self.match_lookahead_literal("output", 1): - _t2126 = 1 + _t2137 = 1 else: if self.match_lookahead_literal("export_iceberg", 1): - _t2127 = 4 + _t2138 = 4 else: if self.match_lookahead_literal("export", 1): - _t2128 = 4 + _t2139 = 4 else: if self.match_lookahead_literal("demand", 1): - _t2129 = 0 + _t2140 = 0 else: if self.match_lookahead_literal("abort", 1): - _t2130 = 3 + _t2141 = 3 else: - _t2130 = -1 - _t2129 = _t2130 - _t2128 = _t2129 - _t2127 = _t2128 - _t2126 = _t2127 - _t2125 = _t2126 - _t2124 = _t2125 + _t2141 = -1 + _t2140 = _t2141 + _t2139 = _t2140 + _t2138 = _t2139 + _t2137 = _t2138 + _t2136 = _t2137 + _t2135 = _t2136 else: - _t2124 = -1 - prediction1345 = _t2124 - if prediction1345 == 4: - _t2132 = self.parse_export() - export1350 = _t2132 - _t2133 = transactions_pb2.Read(export=export1350) - _t2131 = _t2133 + _t2135 = -1 + prediction1353 = _t2135 + if prediction1353 == 4: + _t2143 = self.parse_export() + export1358 = _t2143 + _t2144 = transactions_pb2.Read(export=export1358) + _t2142 = _t2144 else: - if prediction1345 == 3: - _t2135 = self.parse_abort() - abort1349 = _t2135 - _t2136 = transactions_pb2.Read(abort=abort1349) - _t2134 = _t2136 + if prediction1353 == 3: + _t2146 = self.parse_abort() + abort1357 = _t2146 + _t2147 = transactions_pb2.Read(abort=abort1357) + _t2145 = _t2147 else: - if prediction1345 == 2: - _t2138 = self.parse_what_if() - what_if1348 = _t2138 - _t2139 = transactions_pb2.Read(what_if=what_if1348) - _t2137 = _t2139 + if prediction1353 == 2: + _t2149 = self.parse_what_if() + what_if1356 = _t2149 + _t2150 = transactions_pb2.Read(what_if=what_if1356) + _t2148 = _t2150 else: - if prediction1345 == 1: - _t2141 = self.parse_output() - output1347 = _t2141 - _t2142 = transactions_pb2.Read(output=output1347) - _t2140 = _t2142 + if prediction1353 == 1: + _t2152 = self.parse_output() + output1355 = _t2152 + _t2153 = transactions_pb2.Read(output=output1355) + _t2151 = _t2153 else: - if prediction1345 == 0: - _t2144 = self.parse_demand() - demand1346 = _t2144 - _t2145 = transactions_pb2.Read(demand=demand1346) - _t2143 = _t2145 + if prediction1353 == 0: + _t2155 = self.parse_demand() + demand1354 = _t2155 + _t2156 = transactions_pb2.Read(demand=demand1354) + _t2154 = _t2156 else: raise ParseError("Unexpected token in read" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2140 = _t2143 - _t2137 = _t2140 - _t2134 = _t2137 - _t2131 = _t2134 - result1352 = _t2131 - self.record_span(span_start1351, "Read") - return result1352 + _t2151 = _t2154 + _t2148 = _t2151 + _t2145 = _t2148 + _t2142 = _t2145 + result1360 = _t2142 + self.record_span(span_start1359, "Read") + return result1360 def parse_demand(self) -> transactions_pb2.Demand: - span_start1354 = self.span_start() + span_start1362 = self.span_start() self.consume_literal("(") self.consume_literal("demand") - _t2146 = self.parse_relation_id() - relation_id1353 = _t2146 + _t2157 = self.parse_relation_id() + relation_id1361 = _t2157 self.consume_literal(")") - _t2147 = transactions_pb2.Demand(relation_id=relation_id1353) - result1355 = _t2147 - self.record_span(span_start1354, "Demand") - return result1355 + _t2158 = transactions_pb2.Demand(relation_id=relation_id1361) + result1363 = _t2158 + self.record_span(span_start1362, "Demand") + return result1363 def parse_output(self) -> transactions_pb2.Output: - span_start1358 = self.span_start() + span_start1366 = self.span_start() self.consume_literal("(") self.consume_literal("output") - _t2148 = self.parse_name() - name1356 = _t2148 - _t2149 = self.parse_relation_id() - relation_id1357 = _t2149 + _t2159 = self.parse_name() + name1364 = _t2159 + _t2160 = self.parse_relation_id() + relation_id1365 = _t2160 self.consume_literal(")") - _t2150 = transactions_pb2.Output(name=name1356, relation_id=relation_id1357) - result1359 = _t2150 - self.record_span(span_start1358, "Output") - return result1359 + _t2161 = transactions_pb2.Output(name=name1364, relation_id=relation_id1365) + result1367 = _t2161 + self.record_span(span_start1366, "Output") + return result1367 def parse_what_if(self) -> transactions_pb2.WhatIf: - span_start1362 = self.span_start() + span_start1370 = self.span_start() self.consume_literal("(") self.consume_literal("what_if") - _t2151 = self.parse_name() - name1360 = _t2151 - _t2152 = self.parse_epoch() - epoch1361 = _t2152 + _t2162 = self.parse_name() + name1368 = _t2162 + _t2163 = self.parse_epoch() + epoch1369 = _t2163 self.consume_literal(")") - _t2153 = transactions_pb2.WhatIf(branch=name1360, epoch=epoch1361) - result1363 = _t2153 - self.record_span(span_start1362, "WhatIf") - return result1363 + _t2164 = transactions_pb2.WhatIf(branch=name1368, epoch=epoch1369) + result1371 = _t2164 + self.record_span(span_start1370, "WhatIf") + return result1371 def parse_abort(self) -> transactions_pb2.Abort: - span_start1366 = self.span_start() + span_start1374 = self.span_start() self.consume_literal("(") self.consume_literal("abort") if (self.match_lookahead_literal(":", 0) and self.match_lookahead_terminal("SYMBOL", 1)): - _t2155 = self.parse_name() - _t2154 = _t2155 + _t2166 = self.parse_name() + _t2165 = _t2166 else: - _t2154 = None - name1364 = _t2154 - _t2156 = self.parse_relation_id() - relation_id1365 = _t2156 + _t2165 = None + name1372 = _t2165 + _t2167 = self.parse_relation_id() + relation_id1373 = _t2167 self.consume_literal(")") - _t2157 = transactions_pb2.Abort(name=(name1364 if name1364 is not None else "abort"), relation_id=relation_id1365) - result1367 = _t2157 - self.record_span(span_start1366, "Abort") - return result1367 + _t2168 = transactions_pb2.Abort(name=(name1372 if name1372 is not None else "abort"), relation_id=relation_id1373) + result1375 = _t2168 + self.record_span(span_start1374, "Abort") + return result1375 def parse_export(self) -> transactions_pb2.Export: - span_start1371 = self.span_start() + span_start1379 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_iceberg", 1): - _t2159 = 1 + _t2170 = 1 else: if self.match_lookahead_literal("export", 1): - _t2160 = 0 + _t2171 = 0 else: - _t2160 = -1 - _t2159 = _t2160 - _t2158 = _t2159 + _t2171 = -1 + _t2170 = _t2171 + _t2169 = _t2170 else: - _t2158 = -1 - prediction1368 = _t2158 - if prediction1368 == 1: + _t2169 = -1 + prediction1376 = _t2169 + if prediction1376 == 1: self.consume_literal("(") self.consume_literal("export_iceberg") - _t2162 = self.parse_export_iceberg_config() - export_iceberg_config1370 = _t2162 + _t2173 = self.parse_export_iceberg_config() + export_iceberg_config1378 = _t2173 self.consume_literal(")") - _t2163 = transactions_pb2.Export(iceberg_config=export_iceberg_config1370) - _t2161 = _t2163 + _t2174 = transactions_pb2.Export(iceberg_config=export_iceberg_config1378) + _t2172 = _t2174 else: - if prediction1368 == 0: + if prediction1376 == 0: self.consume_literal("(") self.consume_literal("export") - _t2165 = self.parse_export_csv_config() - export_csv_config1369 = _t2165 + _t2176 = self.parse_export_csv_config() + export_csv_config1377 = _t2176 self.consume_literal(")") - _t2166 = transactions_pb2.Export(csv_config=export_csv_config1369) - _t2164 = _t2166 + _t2177 = transactions_pb2.Export(csv_config=export_csv_config1377) + _t2175 = _t2177 else: raise ParseError("Unexpected token in export" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2161 = _t2164 - result1372 = _t2161 - self.record_span(span_start1371, "Export") - return result1372 + _t2172 = _t2175 + result1380 = _t2172 + self.record_span(span_start1379, "Export") + return result1380 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - span_start1380 = self.span_start() + span_start1388 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_csv_config_v2", 1): - _t2168 = 0 + _t2179 = 0 else: if self.match_lookahead_literal("export_csv_config", 1): - _t2169 = 1 + _t2180 = 1 else: - _t2169 = -1 - _t2168 = _t2169 - _t2167 = _t2168 + _t2180 = -1 + _t2179 = _t2180 + _t2178 = _t2179 else: - _t2167 = -1 - prediction1373 = _t2167 - if prediction1373 == 1: + _t2178 = -1 + prediction1381 = _t2178 + if prediction1381 == 1: self.consume_literal("(") self.consume_literal("export_csv_config") - _t2171 = self.parse_export_csv_path() - export_csv_path1377 = _t2171 - _t2172 = self.parse_export_csv_columns_list() - export_csv_columns_list1378 = _t2172 - _t2173 = self.parse_config_dict() - config_dict1379 = _t2173 + _t2182 = self.parse_export_csv_path() + export_csv_path1385 = _t2182 + _t2183 = self.parse_export_csv_columns_list() + export_csv_columns_list1386 = _t2183 + _t2184 = self.parse_config_dict() + config_dict1387 = _t2184 self.consume_literal(")") - _t2174 = self.construct_export_csv_config(export_csv_path1377, export_csv_columns_list1378, config_dict1379) - _t2170 = _t2174 + _t2185 = self.construct_export_csv_config(export_csv_path1385, export_csv_columns_list1386, config_dict1387) + _t2181 = _t2185 else: - if prediction1373 == 0: + if prediction1381 == 0: self.consume_literal("(") self.consume_literal("export_csv_config_v2") - _t2176 = self.parse_export_csv_output_location() - export_csv_output_location1374 = _t2176 - _t2177 = self.parse_export_csv_source() - export_csv_source1375 = _t2177 - _t2178 = self.parse_csv_config() - csv_config1376 = _t2178 + _t2187 = self.parse_export_csv_output_location() + export_csv_output_location1382 = _t2187 + _t2188 = self.parse_export_csv_source() + export_csv_source1383 = _t2188 + _t2189 = self.parse_csv_config() + csv_config1384 = _t2189 self.consume_literal(")") - _t2179 = self.construct_export_csv_config_with_location(export_csv_output_location1374, export_csv_source1375, csv_config1376) - _t2175 = _t2179 + _t2190 = self.construct_export_csv_config_with_location(export_csv_output_location1382, export_csv_source1383, csv_config1384) + _t2186 = _t2190 else: raise ParseError("Unexpected token in export_csv_config" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2170 = _t2175 - result1381 = _t2170 - self.record_span(span_start1380, "ExportCSVConfig") - return result1381 + _t2181 = _t2186 + result1389 = _t2181 + self.record_span(span_start1388, "ExportCSVConfig") + return result1389 def parse_export_csv_output_location(self) -> tuple[str, str]: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("transaction_output_name", 1): - _t2181 = 1 + _t2192 = 1 else: if self.match_lookahead_literal("path", 1): - _t2182 = 0 + _t2193 = 0 else: - _t2182 = -1 - _t2181 = _t2182 - _t2180 = _t2181 + _t2193 = -1 + _t2192 = _t2193 + _t2191 = _t2192 else: - _t2180 = -1 - prediction1382 = _t2180 - if prediction1382 == 1: + _t2191 = -1 + prediction1390 = _t2191 + if prediction1390 == 1: self.consume_literal("(") self.consume_literal("transaction_output_name") - _t2184 = self.parse_name() - name1384 = _t2184 + _t2195 = self.parse_name() + name1392 = _t2195 self.consume_literal(")") - _t2183 = ("", name1384,) + _t2194 = ("", name1392,) else: - if prediction1382 == 0: + if prediction1390 == 0: self.consume_literal("(") self.consume_literal("path") - string1383 = self.consume_terminal("STRING") + string1391 = self.consume_terminal("STRING") self.consume_literal(")") - _t2185 = (string1383, "",) + _t2196 = (string1391, "",) else: raise ParseError("Unexpected token in export_csv_output_location" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2183 = _t2185 - return _t2183 + _t2194 = _t2196 + return _t2194 def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: - span_start1391 = self.span_start() + span_start1399 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("table_def", 1): - _t2187 = 1 + _t2198 = 1 else: if self.match_lookahead_literal("gnf_columns", 1): - _t2188 = 0 + _t2199 = 0 else: - _t2188 = -1 - _t2187 = _t2188 - _t2186 = _t2187 + _t2199 = -1 + _t2198 = _t2199 + _t2197 = _t2198 else: - _t2186 = -1 - prediction1385 = _t2186 - if prediction1385 == 1: + _t2197 = -1 + prediction1393 = _t2197 + if prediction1393 == 1: self.consume_literal("(") self.consume_literal("table_def") - _t2190 = self.parse_relation_id() - relation_id1390 = _t2190 + _t2201 = self.parse_relation_id() + relation_id1398 = _t2201 self.consume_literal(")") - _t2191 = transactions_pb2.ExportCSVSource(table_def=relation_id1390) - _t2189 = _t2191 + _t2202 = transactions_pb2.ExportCSVSource(table_def=relation_id1398) + _t2200 = _t2202 else: - if prediction1385 == 0: + if prediction1393 == 0: self.consume_literal("(") self.consume_literal("gnf_columns") - xs1386 = [] - cond1387 = self.match_lookahead_literal("(", 0) - while cond1387: - _t2193 = self.parse_export_csv_column() - item1388 = _t2193 - xs1386.append(item1388) - cond1387 = self.match_lookahead_literal("(", 0) - export_csv_columns1389 = xs1386 + xs1394 = [] + cond1395 = self.match_lookahead_literal("(", 0) + while cond1395: + _t2204 = self.parse_export_csv_column() + item1396 = _t2204 + xs1394.append(item1396) + cond1395 = self.match_lookahead_literal("(", 0) + export_csv_columns1397 = xs1394 self.consume_literal(")") - _t2194 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1389) - _t2195 = transactions_pb2.ExportCSVSource(gnf_columns=_t2194) - _t2192 = _t2195 + _t2205 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1397) + _t2206 = transactions_pb2.ExportCSVSource(gnf_columns=_t2205) + _t2203 = _t2206 else: raise ParseError("Unexpected token in export_csv_source" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t2189 = _t2192 - result1392 = _t2189 - self.record_span(span_start1391, "ExportCSVSource") - return result1392 + _t2200 = _t2203 + result1400 = _t2200 + self.record_span(span_start1399, "ExportCSVSource") + return result1400 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: - span_start1395 = self.span_start() + span_start1403 = self.span_start() self.consume_literal("(") self.consume_literal("column") - string1393 = self.consume_terminal("STRING") - _t2196 = self.parse_relation_id() - relation_id1394 = _t2196 + string1401 = self.consume_terminal("STRING") + _t2207 = self.parse_relation_id() + relation_id1402 = _t2207 self.consume_literal(")") - _t2197 = transactions_pb2.ExportCSVColumn(column_name=string1393, column_data=relation_id1394) - result1396 = _t2197 - self.record_span(span_start1395, "ExportCSVColumn") - return result1396 + _t2208 = transactions_pb2.ExportCSVColumn(column_name=string1401, column_data=relation_id1402) + result1404 = _t2208 + self.record_span(span_start1403, "ExportCSVColumn") + return result1404 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string1397 = self.consume_terminal("STRING") + string1405 = self.consume_terminal("STRING") self.consume_literal(")") - return string1397 + return string1405 def parse_export_csv_columns_list(self) -> Sequence[transactions_pb2.ExportCSVColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1398 = [] - cond1399 = self.match_lookahead_literal("(", 0) - while cond1399: - _t2198 = self.parse_export_csv_column() - item1400 = _t2198 - xs1398.append(item1400) - cond1399 = self.match_lookahead_literal("(", 0) - export_csv_columns1401 = xs1398 + xs1406 = [] + cond1407 = self.match_lookahead_literal("(", 0) + while cond1407: + _t2209 = self.parse_export_csv_column() + item1408 = _t2209 + xs1406.append(item1408) + cond1407 = self.match_lookahead_literal("(", 0) + export_csv_columns1409 = xs1406 self.consume_literal(")") - return export_csv_columns1401 + return export_csv_columns1409 def parse_export_iceberg_config(self) -> transactions_pb2.ExportIcebergConfig: - span_start1407 = self.span_start() + span_start1415 = self.span_start() self.consume_literal("(") self.consume_literal("export_iceberg_config") - _t2199 = self.parse_iceberg_locator() - iceberg_locator1402 = _t2199 - _t2200 = self.parse_iceberg_catalog_config() - iceberg_catalog_config1403 = _t2200 - _t2201 = self.parse_export_iceberg_table_def() - export_iceberg_table_def1404 = _t2201 - _t2202 = self.parse_iceberg_table_properties() - iceberg_table_properties1405 = _t2202 + _t2210 = self.parse_iceberg_locator() + iceberg_locator1410 = _t2210 + _t2211 = self.parse_iceberg_catalog_config() + iceberg_catalog_config1411 = _t2211 + _t2212 = self.parse_export_iceberg_table_def() + export_iceberg_table_def1412 = _t2212 + _t2213 = self.parse_iceberg_table_properties() + iceberg_table_properties1413 = _t2213 if self.match_lookahead_literal("{", 0): - _t2204 = self.parse_config_dict() - _t2203 = _t2204 + _t2215 = self.parse_config_dict() + _t2214 = _t2215 else: - _t2203 = None - config_dict1406 = _t2203 + _t2214 = None + config_dict1414 = _t2214 self.consume_literal(")") - _t2205 = self.construct_export_iceberg_config_full(iceberg_locator1402, iceberg_catalog_config1403, export_iceberg_table_def1404, iceberg_table_properties1405, config_dict1406) - result1408 = _t2205 - self.record_span(span_start1407, "ExportIcebergConfig") - return result1408 + _t2216 = self.construct_export_iceberg_config_full(iceberg_locator1410, iceberg_catalog_config1411, export_iceberg_table_def1412, iceberg_table_properties1413, config_dict1414) + result1416 = _t2216 + self.record_span(span_start1415, "ExportIcebergConfig") + return result1416 def parse_export_iceberg_table_def(self) -> logic_pb2.RelationId: - span_start1410 = self.span_start() + span_start1418 = self.span_start() self.consume_literal("(") self.consume_literal("table_def") - _t2206 = self.parse_relation_id() - relation_id1409 = _t2206 + _t2217 = self.parse_relation_id() + relation_id1417 = _t2217 self.consume_literal(")") - result1411 = relation_id1409 - self.record_span(span_start1410, "RelationId") - return result1411 + result1419 = relation_id1417 + self.record_span(span_start1418, "RelationId") + return result1419 def parse_iceberg_table_properties(self) -> Sequence[tuple[str, str]]: self.consume_literal("(") self.consume_literal("table_properties") - xs1412 = [] - cond1413 = self.match_lookahead_literal("(", 0) - while cond1413: - _t2207 = self.parse_iceberg_property_entry() - item1414 = _t2207 - xs1412.append(item1414) - cond1413 = self.match_lookahead_literal("(", 0) - iceberg_property_entrys1415 = xs1412 + xs1420 = [] + cond1421 = self.match_lookahead_literal("(", 0) + while cond1421: + _t2218 = self.parse_iceberg_property_entry() + item1422 = _t2218 + xs1420.append(item1422) + cond1421 = self.match_lookahead_literal("(", 0) + iceberg_property_entrys1423 = xs1420 self.consume_literal(")") - return iceberg_property_entrys1415 + return iceberg_property_entrys1423 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 2ad1b4f4..33ff59c3 100644 --- a/sdks/python/src/lqp/gen/pretty.py +++ b/sdks/python/src/lqp/gen/pretty.py @@ -219,11 +219,19 @@ def write_debug_info(self) -> None: def deconstruct_relation_keys(self, msg: logic_pb2.TargetRelations) -> tuple[Sequence[logic_pb2.NamedColumn], bool]: return (msg.keys, msg.synthetic_key,) + def deconstruct_load_errors_optional(self, msg: logic_pb2.TargetRelations) -> logic_pb2.RelationId | None: + if msg.HasField("load_errors"): + assert msg.load_errors is not None + return msg.load_errors + else: + _t1863 = None + return None + def deconstruct_csv_data_columns_optional(self, msg: logic_pb2.CSVData) -> Sequence[logic_pb2.GNFColumn] | None: if msg.HasField("relations"): return None else: - _t1854 = None + _t1864 = None return msg.columns def deconstruct_csv_data_relations_optional(self, msg: logic_pb2.CSVData) -> logic_pb2.TargetRelations | None: @@ -231,168 +239,168 @@ def deconstruct_csv_data_relations_optional(self, msg: logic_pb2.CSVData) -> log assert msg.relations is not None return msg.relations else: - _t1855 = None + _t1865 = None return None def deconstruct_export_csv_output_location(self, msg: transactions_pb2.ExportCSVConfig) -> tuple[str, str]: return (msg.path, msg.transaction_output_name,) def _make_value_int32(self, v: int) -> logic_pb2.Value: - _t1856 = logic_pb2.Value(int32_value=v) - return _t1856 + _t1866 = logic_pb2.Value(int32_value=v) + return _t1866 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1857 = logic_pb2.Value(int_value=v) - return _t1857 + _t1867 = logic_pb2.Value(int_value=v) + return _t1867 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1858 = logic_pb2.Value(float_value=v) - return _t1858 + _t1868 = logic_pb2.Value(float_value=v) + return _t1868 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1859 = logic_pb2.Value(string_value=v) - return _t1859 + _t1869 = logic_pb2.Value(string_value=v) + return _t1869 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1860 = logic_pb2.Value(boolean_value=v) - return _t1860 + _t1870 = logic_pb2.Value(boolean_value=v) + return _t1870 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1861 = logic_pb2.Value(uint128_value=v) - return _t1861 + _t1871 = logic_pb2.Value(uint128_value=v) + return _t1871 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: - _t1862 = self._make_value_string("auto") - result.append(("ivm.maintenance_level", _t1862,)) + _t1872 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1872,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1863 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1863,)) + _t1873 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1873,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF: - _t1864 = self._make_value_string("off") - result.append(("ivm.maintenance_level", _t1864,)) - _t1865 = self._make_value_int64(msg.semantics_version) - result.append(("semantics_version", _t1865,)) + _t1874 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1874,)) + _t1875 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1875,)) for pair in sorted(msg.configuration_values.items()): result.append(pair) return sorted(result) def deconstruct_csv_config(self, msg: logic_pb2.CSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1866 = self._make_value_int32(msg.header_row) - result.append(("csv_header_row", _t1866,)) - _t1867 = self._make_value_int64(msg.skip) - result.append(("csv_skip", _t1867,)) + _t1876 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1876,)) + _t1877 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1877,)) if msg.new_line != "": - _t1868 = self._make_value_string(msg.new_line) - result.append(("csv_new_line", _t1868,)) - _t1869 = self._make_value_string(msg.delimiter) - result.append(("csv_delimiter", _t1869,)) - _t1870 = self._make_value_string(msg.quotechar) - result.append(("csv_quotechar", _t1870,)) - _t1871 = self._make_value_string(msg.escapechar) - result.append(("csv_escapechar", _t1871,)) + _t1878 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1878,)) + _t1879 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1879,)) + _t1880 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1880,)) + _t1881 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1881,)) if msg.comment != "": - _t1872 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1872,)) + _t1882 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1882,)) for missing_string in msg.missing_strings: - _t1873 = self._make_value_string(missing_string) - result.append(("csv_missing_strings", _t1873,)) - _t1874 = self._make_value_string(msg.decimal_separator) - result.append(("csv_decimal_separator", _t1874,)) - _t1875 = self._make_value_string(msg.encoding) - result.append(("csv_encoding", _t1875,)) - _t1876 = self._make_value_string(msg.compression) - result.append(("csv_compression", _t1876,)) + _t1883 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1883,)) + _t1884 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1884,)) + _t1885 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1885,)) + _t1886 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1886,)) if msg.partition_size_mb != 0: - _t1877 = self._make_value_int64(msg.partition_size_mb) - result.append(("csv_partition_size_mb", _t1877,)) + _t1887 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1887,)) return sorted(result) def deconstruct_csv_storage_integration_optional(self, msg: logic_pb2.CSVConfig) -> Sequence[tuple[str, logic_pb2.Value]] | None: if not msg.HasField("storage_integration"): return None else: - _t1878 = None + _t1888 = None assert msg.storage_integration is not None si = msg.storage_integration result = [] if si.provider != "": - _t1879 = self._make_value_string(si.provider) - result.append(("provider", _t1879,)) + _t1889 = self._make_value_string(si.provider) + result.append(("provider", _t1889,)) if si.azure_sas_token != "": - _t1880 = self._make_value_string("***") - result.append(("azure_sas_token", _t1880,)) + _t1890 = self._make_value_string("***") + result.append(("azure_sas_token", _t1890,)) if si.s3_region != "": - _t1881 = self._make_value_string(si.s3_region) - result.append(("s3_region", _t1881,)) + _t1891 = self._make_value_string(si.s3_region) + result.append(("s3_region", _t1891,)) if si.s3_access_key_id != "": - _t1882 = self._make_value_string("***") - result.append(("s3_access_key_id", _t1882,)) + _t1892 = self._make_value_string("***") + result.append(("s3_access_key_id", _t1892,)) if si.s3_secret_access_key != "": - _t1883 = self._make_value_string("***") - result.append(("s3_secret_access_key", _t1883,)) + _t1893 = self._make_value_string("***") + result.append(("s3_secret_access_key", _t1893,)) return sorted(result) def deconstruct_betree_info_config(self, msg: logic_pb2.BeTreeInfo) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1884 = self._make_value_float64(msg.storage_config.epsilon) - result.append(("betree_config_epsilon", _t1884,)) - _t1885 = self._make_value_int64(msg.storage_config.max_pivots) - result.append(("betree_config_max_pivots", _t1885,)) - _t1886 = self._make_value_int64(msg.storage_config.max_deltas) - result.append(("betree_config_max_deltas", _t1886,)) - _t1887 = self._make_value_int64(msg.storage_config.max_leaf) - result.append(("betree_config_max_leaf", _t1887,)) + _t1894 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1894,)) + _t1895 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1895,)) + _t1896 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1896,)) + _t1897 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1897,)) 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 - _t1888 = self._make_value_uint128(msg.relation_locator.root_pageid) - result.append(("betree_locator_root_pageid", _t1888,)) + _t1898 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1898,)) 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 - _t1889 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) - result.append(("betree_locator_inline_data", _t1889,)) - _t1890 = self._make_value_int64(msg.relation_locator.element_count) - result.append(("betree_locator_element_count", _t1890,)) - _t1891 = self._make_value_int64(msg.relation_locator.tree_height) - result.append(("betree_locator_tree_height", _t1891,)) + _t1899 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1899,)) + _t1900 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1900,)) + _t1901 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1901,)) 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 - _t1892 = self._make_value_int64(msg.partition_size) - result.append(("partition_size", _t1892,)) + _t1902 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1902,)) if msg.compression is not None: assert msg.compression is not None - _t1893 = self._make_value_string(msg.compression) - result.append(("compression", _t1893,)) + _t1903 = self._make_value_string(msg.compression) + result.append(("compression", _t1903,)) if msg.syntax_header_row is not None: assert msg.syntax_header_row is not None - _t1894 = self._make_value_boolean(msg.syntax_header_row) - result.append(("syntax_header_row", _t1894,)) + _t1904 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1904,)) if msg.syntax_missing_string is not None: assert msg.syntax_missing_string is not None - _t1895 = self._make_value_string(msg.syntax_missing_string) - result.append(("syntax_missing_string", _t1895,)) + _t1905 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1905,)) if msg.syntax_delim is not None: assert msg.syntax_delim is not None - _t1896 = self._make_value_string(msg.syntax_delim) - result.append(("syntax_delim", _t1896,)) + _t1906 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1906,)) if msg.syntax_quotechar is not None: assert msg.syntax_quotechar is not None - _t1897 = self._make_value_string(msg.syntax_quotechar) - result.append(("syntax_quotechar", _t1897,)) + _t1907 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1907,)) if msg.syntax_escapechar is not None: assert msg.syntax_escapechar is not None - _t1898 = self._make_value_string(msg.syntax_escapechar) - result.append(("syntax_escapechar", _t1898,)) + _t1908 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1908,)) return sorted(result) def mask_secret_value(self, pair: tuple[str, str]) -> str: @@ -404,7 +412,7 @@ def deconstruct_iceberg_catalog_config_scope_optional(self, msg: logic_pb2.Icebe assert msg.scope is not None return msg.scope else: - _t1899 = None + _t1909 = None return None def deconstruct_iceberg_data_from_snapshot_optional(self, msg: logic_pb2.IcebergData) -> str | None: @@ -413,7 +421,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: - _t1900 = None + _t1910 = None return None def deconstruct_iceberg_data_to_snapshot_optional(self, msg: logic_pb2.IcebergData) -> str | None: @@ -422,7 +430,7 @@ def deconstruct_iceberg_data_to_snapshot_optional(self, msg: logic_pb2.IcebergDa assert msg.to_snapshot is not None return msg.to_snapshot else: - _t1901 = None + _t1911 = None return None def deconstruct_export_iceberg_config_optional(self, msg: transactions_pb2.ExportIcebergConfig) -> Sequence[tuple[str, logic_pb2.Value]] | None: @@ -430,20 +438,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 - _t1902 = self._make_value_string(msg.prefix) - result.append(("prefix", _t1902,)) + _t1912 = self._make_value_string(msg.prefix) + result.append(("prefix", _t1912,)) 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 - _t1903 = self._make_value_int64(msg.target_file_size_bytes) - result.append(("target_file_size_bytes", _t1903,)) + _t1913 = self._make_value_int64(msg.target_file_size_bytes) + result.append(("target_file_size_bytes", _t1913,)) if msg.compression != "": - _t1904 = self._make_value_string(msg.compression) - result.append(("compression", _t1904,)) + _t1914 = self._make_value_string(msg.compression) + result.append(("compression", _t1914,)) if len(result) == 0: return None else: - _t1905 = None + _t1915 = None return sorted(result) def deconstruct_relation_id_string(self, msg: logic_pb2.RelationId) -> str: @@ -456,7 +464,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: - _t1906 = None + _t1916 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -471,3179 +479,3186 @@ def deconstruct_bindings_with_arity(self, abs: logic_pb2.Abstraction, value_arit # --- Pretty-print methods --- def pretty_transaction(self, msg: transactions_pb2.Transaction): - flat859 = self._try_flat(msg, self.pretty_transaction) - if flat859 is not None: - assert flat859 is not None - self.write(flat859) + flat863 = self._try_flat(msg, self.pretty_transaction) + if flat863 is not None: + assert flat863 is not None + self.write(flat863) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("configure"): - _t1700 = _dollar_dollar.configure + _t1708 = _dollar_dollar.configure else: - _t1700 = None + _t1708 = None if _dollar_dollar.HasField("sync"): - _t1701 = _dollar_dollar.sync + _t1709 = _dollar_dollar.sync else: - _t1701 = None - fields850 = (_t1700, _t1701, _dollar_dollar.epochs,) - assert fields850 is not None - unwrapped_fields851 = fields850 + _t1709 = None + fields854 = (_t1708, _t1709, _dollar_dollar.epochs,) + assert fields854 is not None + unwrapped_fields855 = fields854 self.write("(transaction") self.indent_sexp() - field852 = unwrapped_fields851[0] - if field852 is not None: + field856 = unwrapped_fields855[0] + if field856 is not None: self.newline() - assert field852 is not None - opt_val853 = field852 - self.pretty_configure(opt_val853) - field854 = unwrapped_fields851[1] - if field854 is not None: + assert field856 is not None + opt_val857 = field856 + self.pretty_configure(opt_val857) + field858 = unwrapped_fields855[1] + if field858 is not None: self.newline() - assert field854 is not None - opt_val855 = field854 - self.pretty_sync(opt_val855) - field856 = unwrapped_fields851[2] - if not len(field856) == 0: + assert field858 is not None + opt_val859 = field858 + self.pretty_sync(opt_val859) + field860 = unwrapped_fields855[2] + if not len(field860) == 0: self.newline() - for i858, elem857 in enumerate(field856): - if (i858 > 0): + for i862, elem861 in enumerate(field860): + if (i862 > 0): self.newline() - self.pretty_epoch(elem857) + self.pretty_epoch(elem861) self.dedent() self.write(")") def pretty_configure(self, msg: transactions_pb2.Configure): - flat862 = self._try_flat(msg, self.pretty_configure) - if flat862 is not None: - assert flat862 is not None - self.write(flat862) + flat866 = self._try_flat(msg, self.pretty_configure) + if flat866 is not None: + assert flat866 is not None + self.write(flat866) return None else: _dollar_dollar = msg - _t1702 = self.deconstruct_configure(_dollar_dollar) - fields860 = _t1702 - assert fields860 is not None - unwrapped_fields861 = fields860 + _t1710 = self.deconstruct_configure(_dollar_dollar) + fields864 = _t1710 + assert fields864 is not None + unwrapped_fields865 = fields864 self.write("(configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields861) + self.pretty_config_dict(unwrapped_fields865) self.dedent() self.write(")") def pretty_config_dict(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat866 = self._try_flat(msg, self.pretty_config_dict) - if flat866 is not None: - assert flat866 is not None - self.write(flat866) + flat870 = self._try_flat(msg, self.pretty_config_dict) + if flat870 is not None: + assert flat870 is not None + self.write(flat870) return None else: - fields863 = msg + fields867 = msg self.write("{") self.indent() - if not len(fields863) == 0: + if not len(fields867) == 0: self.newline() - for i865, elem864 in enumerate(fields863): - if (i865 > 0): + for i869, elem868 in enumerate(fields867): + if (i869 > 0): self.newline() - self.pretty_config_key_value(elem864) + self.pretty_config_key_value(elem868) self.dedent() self.write("}") def pretty_config_key_value(self, msg: tuple[str, logic_pb2.Value]): - flat871 = self._try_flat(msg, self.pretty_config_key_value) - if flat871 is not None: - assert flat871 is not None - self.write(flat871) + flat875 = self._try_flat(msg, self.pretty_config_key_value) + if flat875 is not None: + assert flat875 is not None + self.write(flat875) return None else: _dollar_dollar = msg - fields867 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields867 is not None - unwrapped_fields868 = fields867 + fields871 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields871 is not None + unwrapped_fields872 = fields871 self.write(":") - field869 = unwrapped_fields868[0] - self.write(field869) + field873 = unwrapped_fields872[0] + self.write(field873) self.write(" ") - field870 = unwrapped_fields868[1] - self.pretty_raw_value(field870) + field874 = unwrapped_fields872[1] + self.pretty_raw_value(field874) def pretty_raw_value(self, msg: logic_pb2.Value): - flat897 = self._try_flat(msg, self.pretty_raw_value) - if flat897 is not None: - assert flat897 is not None - self.write(flat897) + flat901 = self._try_flat(msg, self.pretty_raw_value) + if flat901 is not None: + assert flat901 is not None + self.write(flat901) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1703 = _dollar_dollar.date_value + _t1711 = _dollar_dollar.date_value else: - _t1703 = None - deconstruct_result895 = _t1703 - if deconstruct_result895 is not None: - assert deconstruct_result895 is not None - unwrapped896 = deconstruct_result895 - self.pretty_raw_date(unwrapped896) + _t1711 = None + deconstruct_result899 = _t1711 + if deconstruct_result899 is not None: + assert deconstruct_result899 is not None + unwrapped900 = deconstruct_result899 + self.pretty_raw_date(unwrapped900) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1704 = _dollar_dollar.datetime_value + _t1712 = _dollar_dollar.datetime_value else: - _t1704 = None - deconstruct_result893 = _t1704 - if deconstruct_result893 is not None: - assert deconstruct_result893 is not None - unwrapped894 = deconstruct_result893 - self.pretty_raw_datetime(unwrapped894) + _t1712 = None + deconstruct_result897 = _t1712 + if deconstruct_result897 is not None: + assert deconstruct_result897 is not None + unwrapped898 = deconstruct_result897 + self.pretty_raw_datetime(unwrapped898) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1705 = _dollar_dollar.string_value + _t1713 = _dollar_dollar.string_value else: - _t1705 = None - deconstruct_result891 = _t1705 - if deconstruct_result891 is not None: - assert deconstruct_result891 is not None - unwrapped892 = deconstruct_result891 - self.write(self.format_string_value(unwrapped892)) + _t1713 = None + deconstruct_result895 = _t1713 + if deconstruct_result895 is not None: + assert deconstruct_result895 is not None + unwrapped896 = deconstruct_result895 + self.write(self.format_string_value(unwrapped896)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1706 = _dollar_dollar.int32_value + _t1714 = _dollar_dollar.int32_value else: - _t1706 = None - deconstruct_result889 = _t1706 - if deconstruct_result889 is not None: - assert deconstruct_result889 is not None - unwrapped890 = deconstruct_result889 - self.write((str(unwrapped890) + 'i32')) + _t1714 = None + deconstruct_result893 = _t1714 + if deconstruct_result893 is not None: + assert deconstruct_result893 is not None + unwrapped894 = deconstruct_result893 + self.write((str(unwrapped894) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1707 = _dollar_dollar.int_value + _t1715 = _dollar_dollar.int_value else: - _t1707 = None - deconstruct_result887 = _t1707 - if deconstruct_result887 is not None: - assert deconstruct_result887 is not None - unwrapped888 = deconstruct_result887 - self.write(str(unwrapped888)) + _t1715 = None + deconstruct_result891 = _t1715 + if deconstruct_result891 is not None: + assert deconstruct_result891 is not None + unwrapped892 = deconstruct_result891 + self.write(str(unwrapped892)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1708 = _dollar_dollar.float32_value + _t1716 = _dollar_dollar.float32_value else: - _t1708 = None - deconstruct_result885 = _t1708 - if deconstruct_result885 is not None: - assert deconstruct_result885 is not None - unwrapped886 = deconstruct_result885 - self.write(self.format_float32_literal(unwrapped886)) + _t1716 = None + deconstruct_result889 = _t1716 + if deconstruct_result889 is not None: + assert deconstruct_result889 is not None + unwrapped890 = deconstruct_result889 + self.write(self.format_float32_literal(unwrapped890)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1709 = _dollar_dollar.float_value + _t1717 = _dollar_dollar.float_value else: - _t1709 = None - deconstruct_result883 = _t1709 - if deconstruct_result883 is not None: - assert deconstruct_result883 is not None - unwrapped884 = deconstruct_result883 - self.write(str(unwrapped884)) + _t1717 = None + deconstruct_result887 = _t1717 + if deconstruct_result887 is not None: + assert deconstruct_result887 is not None + unwrapped888 = deconstruct_result887 + self.write(str(unwrapped888)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1710 = _dollar_dollar.uint32_value + _t1718 = _dollar_dollar.uint32_value else: - _t1710 = None - deconstruct_result881 = _t1710 - if deconstruct_result881 is not None: - assert deconstruct_result881 is not None - unwrapped882 = deconstruct_result881 - self.write((str(unwrapped882) + 'u32')) + _t1718 = None + deconstruct_result885 = _t1718 + if deconstruct_result885 is not None: + assert deconstruct_result885 is not None + unwrapped886 = deconstruct_result885 + self.write((str(unwrapped886) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1711 = _dollar_dollar.uint128_value + _t1719 = _dollar_dollar.uint128_value else: - _t1711 = None - deconstruct_result879 = _t1711 - if deconstruct_result879 is not None: - assert deconstruct_result879 is not None - unwrapped880 = deconstruct_result879 - self.write(self.format_uint128(unwrapped880)) + _t1719 = None + deconstruct_result883 = _t1719 + if deconstruct_result883 is not None: + assert deconstruct_result883 is not None + unwrapped884 = deconstruct_result883 + self.write(self.format_uint128(unwrapped884)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1712 = _dollar_dollar.int128_value + _t1720 = _dollar_dollar.int128_value else: - _t1712 = None - deconstruct_result877 = _t1712 - if deconstruct_result877 is not None: - assert deconstruct_result877 is not None - unwrapped878 = deconstruct_result877 - self.write(self.format_int128(unwrapped878)) + _t1720 = None + deconstruct_result881 = _t1720 + if deconstruct_result881 is not None: + assert deconstruct_result881 is not None + unwrapped882 = deconstruct_result881 + self.write(self.format_int128(unwrapped882)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1713 = _dollar_dollar.decimal_value + _t1721 = _dollar_dollar.decimal_value else: - _t1713 = None - deconstruct_result875 = _t1713 - if deconstruct_result875 is not None: - assert deconstruct_result875 is not None - unwrapped876 = deconstruct_result875 - self.write(self.format_decimal(unwrapped876)) + _t1721 = None + deconstruct_result879 = _t1721 + if deconstruct_result879 is not None: + assert deconstruct_result879 is not None + unwrapped880 = deconstruct_result879 + self.write(self.format_decimal(unwrapped880)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1714 = _dollar_dollar.boolean_value + _t1722 = _dollar_dollar.boolean_value else: - _t1714 = None - deconstruct_result873 = _t1714 - if deconstruct_result873 is not None: - assert deconstruct_result873 is not None - unwrapped874 = deconstruct_result873 - self.pretty_boolean_value(unwrapped874) + _t1722 = None + deconstruct_result877 = _t1722 + if deconstruct_result877 is not None: + assert deconstruct_result877 is not None + unwrapped878 = deconstruct_result877 + self.pretty_boolean_value(unwrapped878) else: - fields872 = msg + fields876 = msg self.write("missing") def pretty_raw_date(self, msg: logic_pb2.DateValue): - flat903 = self._try_flat(msg, self.pretty_raw_date) - if flat903 is not None: - assert flat903 is not None - self.write(flat903) + flat907 = self._try_flat(msg, self.pretty_raw_date) + if flat907 is not None: + assert flat907 is not None + self.write(flat907) return None else: _dollar_dollar = msg - fields898 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields898 is not None - unwrapped_fields899 = fields898 + fields902 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields902 is not None + unwrapped_fields903 = fields902 self.write("(date") self.indent_sexp() self.newline() - field900 = unwrapped_fields899[0] - self.write(str(field900)) + field904 = unwrapped_fields903[0] + self.write(str(field904)) self.newline() - field901 = unwrapped_fields899[1] - self.write(str(field901)) + field905 = unwrapped_fields903[1] + self.write(str(field905)) self.newline() - field902 = unwrapped_fields899[2] - self.write(str(field902)) + field906 = unwrapped_fields903[2] + self.write(str(field906)) self.dedent() self.write(")") def pretty_raw_datetime(self, msg: logic_pb2.DateTimeValue): - flat914 = self._try_flat(msg, self.pretty_raw_datetime) - if flat914 is not None: - assert flat914 is not None - self.write(flat914) + flat918 = self._try_flat(msg, self.pretty_raw_datetime) + if flat918 is not None: + assert flat918 is not None + self.write(flat918) return None else: _dollar_dollar = msg - fields904 = (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 fields904 is not None - unwrapped_fields905 = fields904 + fields908 = (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 fields908 is not None + unwrapped_fields909 = fields908 self.write("(datetime") self.indent_sexp() self.newline() - field906 = unwrapped_fields905[0] - self.write(str(field906)) + field910 = unwrapped_fields909[0] + self.write(str(field910)) self.newline() - field907 = unwrapped_fields905[1] - self.write(str(field907)) + field911 = unwrapped_fields909[1] + self.write(str(field911)) self.newline() - field908 = unwrapped_fields905[2] - self.write(str(field908)) + field912 = unwrapped_fields909[2] + self.write(str(field912)) self.newline() - field909 = unwrapped_fields905[3] - self.write(str(field909)) + field913 = unwrapped_fields909[3] + self.write(str(field913)) self.newline() - field910 = unwrapped_fields905[4] - self.write(str(field910)) + field914 = unwrapped_fields909[4] + self.write(str(field914)) self.newline() - field911 = unwrapped_fields905[5] - self.write(str(field911)) - field912 = unwrapped_fields905[6] - if field912 is not None: + field915 = unwrapped_fields909[5] + self.write(str(field915)) + field916 = unwrapped_fields909[6] + if field916 is not None: self.newline() - assert field912 is not None - opt_val913 = field912 - self.write(str(opt_val913)) + assert field916 is not None + opt_val917 = field916 + self.write(str(opt_val917)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): _dollar_dollar = msg if _dollar_dollar: - _t1715 = () + _t1723 = () else: - _t1715 = None - deconstruct_result917 = _t1715 - if deconstruct_result917 is not None: - assert deconstruct_result917 is not None - unwrapped918 = deconstruct_result917 + _t1723 = None + deconstruct_result921 = _t1723 + if deconstruct_result921 is not None: + assert deconstruct_result921 is not None + unwrapped922 = deconstruct_result921 self.write("true") else: _dollar_dollar = msg if not _dollar_dollar: - _t1716 = () + _t1724 = () else: - _t1716 = None - deconstruct_result915 = _t1716 - if deconstruct_result915 is not None: - assert deconstruct_result915 is not None - unwrapped916 = deconstruct_result915 + _t1724 = None + deconstruct_result919 = _t1724 + if deconstruct_result919 is not None: + assert deconstruct_result919 is not None + unwrapped920 = deconstruct_result919 self.write("false") else: raise ParseError("No matching rule for boolean_value") def pretty_sync(self, msg: transactions_pb2.Sync): - flat923 = self._try_flat(msg, self.pretty_sync) - if flat923 is not None: - assert flat923 is not None - self.write(flat923) + flat927 = self._try_flat(msg, self.pretty_sync) + if flat927 is not None: + assert flat927 is not None + self.write(flat927) return None else: _dollar_dollar = msg - fields919 = _dollar_dollar.fragments - assert fields919 is not None - unwrapped_fields920 = fields919 + fields923 = _dollar_dollar.fragments + assert fields923 is not None + unwrapped_fields924 = fields923 self.write("(sync") self.indent_sexp() - if not len(unwrapped_fields920) == 0: + if not len(unwrapped_fields924) == 0: self.newline() - for i922, elem921 in enumerate(unwrapped_fields920): - if (i922 > 0): + for i926, elem925 in enumerate(unwrapped_fields924): + if (i926 > 0): self.newline() - self.pretty_fragment_id(elem921) + self.pretty_fragment_id(elem925) self.dedent() self.write(")") def pretty_fragment_id(self, msg: fragments_pb2.FragmentId): - flat926 = self._try_flat(msg, self.pretty_fragment_id) - if flat926 is not None: - assert flat926 is not None - self.write(flat926) + flat930 = self._try_flat(msg, self.pretty_fragment_id) + if flat930 is not None: + assert flat930 is not None + self.write(flat930) return None else: _dollar_dollar = msg - fields924 = self.fragment_id_to_string(_dollar_dollar) - assert fields924 is not None - unwrapped_fields925 = fields924 + fields928 = self.fragment_id_to_string(_dollar_dollar) + assert fields928 is not None + unwrapped_fields929 = fields928 self.write(":") - self.write(unwrapped_fields925) + self.write(unwrapped_fields929) def pretty_epoch(self, msg: transactions_pb2.Epoch): - flat933 = self._try_flat(msg, self.pretty_epoch) - if flat933 is not None: - assert flat933 is not None - self.write(flat933) + flat937 = self._try_flat(msg, self.pretty_epoch) + if flat937 is not None: + assert flat937 is not None + self.write(flat937) return None else: _dollar_dollar = msg if not len(_dollar_dollar.writes) == 0: - _t1717 = _dollar_dollar.writes + _t1725 = _dollar_dollar.writes else: - _t1717 = None + _t1725 = None if not len(_dollar_dollar.reads) == 0: - _t1718 = _dollar_dollar.reads + _t1726 = _dollar_dollar.reads else: - _t1718 = None - fields927 = (_t1717, _t1718,) - assert fields927 is not None - unwrapped_fields928 = fields927 + _t1726 = None + fields931 = (_t1725, _t1726,) + assert fields931 is not None + unwrapped_fields932 = fields931 self.write("(epoch") self.indent_sexp() - field929 = unwrapped_fields928[0] - if field929 is not None: + field933 = unwrapped_fields932[0] + if field933 is not None: self.newline() - assert field929 is not None - opt_val930 = field929 - self.pretty_epoch_writes(opt_val930) - field931 = unwrapped_fields928[1] - if field931 is not None: + assert field933 is not None + opt_val934 = field933 + self.pretty_epoch_writes(opt_val934) + field935 = unwrapped_fields932[1] + if field935 is not None: self.newline() - assert field931 is not None - opt_val932 = field931 - self.pretty_epoch_reads(opt_val932) + assert field935 is not None + opt_val936 = field935 + self.pretty_epoch_reads(opt_val936) self.dedent() self.write(")") def pretty_epoch_writes(self, msg: Sequence[transactions_pb2.Write]): - flat937 = self._try_flat(msg, self.pretty_epoch_writes) - if flat937 is not None: - assert flat937 is not None - self.write(flat937) + flat941 = self._try_flat(msg, self.pretty_epoch_writes) + if flat941 is not None: + assert flat941 is not None + self.write(flat941) return None else: - fields934 = msg + fields938 = msg self.write("(writes") self.indent_sexp() - if not len(fields934) == 0: + if not len(fields938) == 0: self.newline() - for i936, elem935 in enumerate(fields934): - if (i936 > 0): + for i940, elem939 in enumerate(fields938): + if (i940 > 0): self.newline() - self.pretty_write(elem935) + self.pretty_write(elem939) self.dedent() self.write(")") def pretty_write(self, msg: transactions_pb2.Write): - flat946 = self._try_flat(msg, self.pretty_write) - if flat946 is not None: - assert flat946 is not None - self.write(flat946) + flat950 = self._try_flat(msg, self.pretty_write) + if flat950 is not None: + assert flat950 is not None + self.write(flat950) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("define"): - _t1719 = _dollar_dollar.define + _t1727 = _dollar_dollar.define else: - _t1719 = None - deconstruct_result944 = _t1719 - if deconstruct_result944 is not None: - assert deconstruct_result944 is not None - unwrapped945 = deconstruct_result944 - self.pretty_define(unwrapped945) + _t1727 = None + deconstruct_result948 = _t1727 + if deconstruct_result948 is not None: + assert deconstruct_result948 is not None + unwrapped949 = deconstruct_result948 + self.pretty_define(unwrapped949) else: _dollar_dollar = msg if _dollar_dollar.HasField("undefine"): - _t1720 = _dollar_dollar.undefine + _t1728 = _dollar_dollar.undefine else: - _t1720 = None - deconstruct_result942 = _t1720 - if deconstruct_result942 is not None: - assert deconstruct_result942 is not None - unwrapped943 = deconstruct_result942 - self.pretty_undefine(unwrapped943) + _t1728 = None + deconstruct_result946 = _t1728 + if deconstruct_result946 is not None: + assert deconstruct_result946 is not None + unwrapped947 = deconstruct_result946 + self.pretty_undefine(unwrapped947) else: _dollar_dollar = msg if _dollar_dollar.HasField("context"): - _t1721 = _dollar_dollar.context + _t1729 = _dollar_dollar.context else: - _t1721 = None - deconstruct_result940 = _t1721 - if deconstruct_result940 is not None: - assert deconstruct_result940 is not None - unwrapped941 = deconstruct_result940 - self.pretty_context(unwrapped941) + _t1729 = None + deconstruct_result944 = _t1729 + if deconstruct_result944 is not None: + assert deconstruct_result944 is not None + unwrapped945 = deconstruct_result944 + self.pretty_context(unwrapped945) else: _dollar_dollar = msg if _dollar_dollar.HasField("snapshot"): - _t1722 = _dollar_dollar.snapshot + _t1730 = _dollar_dollar.snapshot else: - _t1722 = None - deconstruct_result938 = _t1722 - if deconstruct_result938 is not None: - assert deconstruct_result938 is not None - unwrapped939 = deconstruct_result938 - self.pretty_snapshot(unwrapped939) + _t1730 = None + deconstruct_result942 = _t1730 + if deconstruct_result942 is not None: + assert deconstruct_result942 is not None + unwrapped943 = deconstruct_result942 + self.pretty_snapshot(unwrapped943) else: raise ParseError("No matching rule for write") def pretty_define(self, msg: transactions_pb2.Define): - flat949 = self._try_flat(msg, self.pretty_define) - if flat949 is not None: - assert flat949 is not None - self.write(flat949) + flat953 = self._try_flat(msg, self.pretty_define) + if flat953 is not None: + assert flat953 is not None + self.write(flat953) return None else: _dollar_dollar = msg - fields947 = _dollar_dollar.fragment - assert fields947 is not None - unwrapped_fields948 = fields947 + fields951 = _dollar_dollar.fragment + assert fields951 is not None + unwrapped_fields952 = fields951 self.write("(define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields948) + self.pretty_fragment(unwrapped_fields952) self.dedent() self.write(")") def pretty_fragment(self, msg: fragments_pb2.Fragment): - flat956 = self._try_flat(msg, self.pretty_fragment) - if flat956 is not None: - assert flat956 is not None - self.write(flat956) + flat960 = self._try_flat(msg, self.pretty_fragment) + if flat960 is not None: + assert flat960 is not None + self.write(flat960) return None else: _dollar_dollar = msg self.start_pretty_fragment(_dollar_dollar) - fields950 = (_dollar_dollar.id, _dollar_dollar.declarations,) - assert fields950 is not None - unwrapped_fields951 = fields950 + fields954 = (_dollar_dollar.id, _dollar_dollar.declarations,) + assert fields954 is not None + unwrapped_fields955 = fields954 self.write("(fragment") self.indent_sexp() self.newline() - field952 = unwrapped_fields951[0] - self.pretty_new_fragment_id(field952) - field953 = unwrapped_fields951[1] - if not len(field953) == 0: + field956 = unwrapped_fields955[0] + self.pretty_new_fragment_id(field956) + field957 = unwrapped_fields955[1] + if not len(field957) == 0: self.newline() - for i955, elem954 in enumerate(field953): - if (i955 > 0): + for i959, elem958 in enumerate(field957): + if (i959 > 0): self.newline() - self.pretty_declaration(elem954) + self.pretty_declaration(elem958) self.dedent() self.write(")") def pretty_new_fragment_id(self, msg: fragments_pb2.FragmentId): - flat958 = self._try_flat(msg, self.pretty_new_fragment_id) - if flat958 is not None: - assert flat958 is not None - self.write(flat958) + flat962 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat962 is not None: + assert flat962 is not None + self.write(flat962) return None else: - fields957 = msg - self.pretty_fragment_id(fields957) + fields961 = msg + self.pretty_fragment_id(fields961) def pretty_declaration(self, msg: logic_pb2.Declaration): - flat967 = self._try_flat(msg, self.pretty_declaration) - if flat967 is not None: - assert flat967 is not None - self.write(flat967) + flat971 = self._try_flat(msg, self.pretty_declaration) + if flat971 is not None: + assert flat971 is not None + self.write(flat971) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("def"): - _t1723 = getattr(_dollar_dollar, 'def') + _t1731 = getattr(_dollar_dollar, 'def') else: - _t1723 = None - deconstruct_result965 = _t1723 - if deconstruct_result965 is not None: - assert deconstruct_result965 is not None - unwrapped966 = deconstruct_result965 - self.pretty_def(unwrapped966) + _t1731 = None + deconstruct_result969 = _t1731 + if deconstruct_result969 is not None: + assert deconstruct_result969 is not None + unwrapped970 = deconstruct_result969 + self.pretty_def(unwrapped970) else: _dollar_dollar = msg if _dollar_dollar.HasField("algorithm"): - _t1724 = _dollar_dollar.algorithm + _t1732 = _dollar_dollar.algorithm else: - _t1724 = None - deconstruct_result963 = _t1724 - if deconstruct_result963 is not None: - assert deconstruct_result963 is not None - unwrapped964 = deconstruct_result963 - self.pretty_algorithm(unwrapped964) + _t1732 = None + deconstruct_result967 = _t1732 + if deconstruct_result967 is not None: + assert deconstruct_result967 is not None + unwrapped968 = deconstruct_result967 + self.pretty_algorithm(unwrapped968) else: _dollar_dollar = msg if _dollar_dollar.HasField("constraint"): - _t1725 = _dollar_dollar.constraint + _t1733 = _dollar_dollar.constraint else: - _t1725 = None - deconstruct_result961 = _t1725 - if deconstruct_result961 is not None: - assert deconstruct_result961 is not None - unwrapped962 = deconstruct_result961 - self.pretty_constraint(unwrapped962) + _t1733 = None + deconstruct_result965 = _t1733 + if deconstruct_result965 is not None: + assert deconstruct_result965 is not None + unwrapped966 = deconstruct_result965 + self.pretty_constraint(unwrapped966) else: _dollar_dollar = msg if _dollar_dollar.HasField("data"): - _t1726 = _dollar_dollar.data + _t1734 = _dollar_dollar.data else: - _t1726 = None - deconstruct_result959 = _t1726 - if deconstruct_result959 is not None: - assert deconstruct_result959 is not None - unwrapped960 = deconstruct_result959 - self.pretty_data(unwrapped960) + _t1734 = None + deconstruct_result963 = _t1734 + if deconstruct_result963 is not None: + assert deconstruct_result963 is not None + unwrapped964 = deconstruct_result963 + self.pretty_data(unwrapped964) else: raise ParseError("No matching rule for declaration") def pretty_def(self, msg: logic_pb2.Def): - flat974 = self._try_flat(msg, self.pretty_def) - if flat974 is not None: - assert flat974 is not None - self.write(flat974) + flat978 = self._try_flat(msg, self.pretty_def) + if flat978 is not None: + assert flat978 is not None + self.write(flat978) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1727 = _dollar_dollar.attrs + _t1735 = _dollar_dollar.attrs else: - _t1727 = None - fields968 = (_dollar_dollar.name, _dollar_dollar.body, _t1727,) - assert fields968 is not None - unwrapped_fields969 = fields968 + _t1735 = None + fields972 = (_dollar_dollar.name, _dollar_dollar.body, _t1735,) + assert fields972 is not None + unwrapped_fields973 = fields972 self.write("(def") self.indent_sexp() self.newline() - field970 = unwrapped_fields969[0] - self.pretty_relation_id(field970) + field974 = unwrapped_fields973[0] + self.pretty_relation_id(field974) self.newline() - field971 = unwrapped_fields969[1] - self.pretty_abstraction(field971) - field972 = unwrapped_fields969[2] - if field972 is not None: + field975 = unwrapped_fields973[1] + self.pretty_abstraction(field975) + field976 = unwrapped_fields973[2] + if field976 is not None: self.newline() - assert field972 is not None - opt_val973 = field972 - self.pretty_attrs(opt_val973) + assert field976 is not None + opt_val977 = field976 + self.pretty_attrs(opt_val977) self.dedent() self.write(")") def pretty_relation_id(self, msg: logic_pb2.RelationId): - flat979 = self._try_flat(msg, self.pretty_relation_id) - if flat979 is not None: - assert flat979 is not None - self.write(flat979) + flat983 = self._try_flat(msg, self.pretty_relation_id) + if flat983 is not None: + assert flat983 is not None + self.write(flat983) return None else: _dollar_dollar = msg if self.relation_id_to_string(_dollar_dollar) is not None: - _t1729 = self.deconstruct_relation_id_string(_dollar_dollar) - _t1728 = _t1729 + _t1737 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1736 = _t1737 else: - _t1728 = None - deconstruct_result977 = _t1728 - if deconstruct_result977 is not None: - assert deconstruct_result977 is not None - unwrapped978 = deconstruct_result977 + _t1736 = None + deconstruct_result981 = _t1736 + if deconstruct_result981 is not None: + assert deconstruct_result981 is not None + unwrapped982 = deconstruct_result981 self.write(":") - self.write(unwrapped978) + self.write(unwrapped982) else: _dollar_dollar = msg - _t1730 = self.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result975 = _t1730 - if deconstruct_result975 is not None: - assert deconstruct_result975 is not None - unwrapped976 = deconstruct_result975 - self.write(self.format_uint128(unwrapped976)) + _t1738 = self.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result979 = _t1738 + if deconstruct_result979 is not None: + assert deconstruct_result979 is not None + unwrapped980 = deconstruct_result979 + self.write(self.format_uint128(unwrapped980)) else: raise ParseError("No matching rule for relation_id") def pretty_abstraction(self, msg: logic_pb2.Abstraction): - flat984 = self._try_flat(msg, self.pretty_abstraction) - if flat984 is not None: - assert flat984 is not None - self.write(flat984) + flat988 = self._try_flat(msg, self.pretty_abstraction) + if flat988 is not None: + assert flat988 is not None + self.write(flat988) return None else: _dollar_dollar = msg - _t1731 = self.deconstruct_bindings(_dollar_dollar) - fields980 = (_t1731, _dollar_dollar.value,) - assert fields980 is not None - unwrapped_fields981 = fields980 + _t1739 = self.deconstruct_bindings(_dollar_dollar) + fields984 = (_t1739, _dollar_dollar.value,) + assert fields984 is not None + unwrapped_fields985 = fields984 self.write("(") self.indent() - field982 = unwrapped_fields981[0] - self.pretty_bindings(field982) + field986 = unwrapped_fields985[0] + self.pretty_bindings(field986) self.newline() - field983 = unwrapped_fields981[1] - self.pretty_formula(field983) + field987 = unwrapped_fields985[1] + self.pretty_formula(field987) self.dedent() self.write(")") def pretty_bindings(self, msg: tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]): - flat992 = self._try_flat(msg, self.pretty_bindings) - if flat992 is not None: - assert flat992 is not None - self.write(flat992) + flat996 = self._try_flat(msg, self.pretty_bindings) + if flat996 is not None: + assert flat996 is not None + self.write(flat996) return None else: _dollar_dollar = msg if not len(_dollar_dollar[1]) == 0: - _t1732 = _dollar_dollar[1] + _t1740 = _dollar_dollar[1] else: - _t1732 = None - fields985 = (_dollar_dollar[0], _t1732,) - assert fields985 is not None - unwrapped_fields986 = fields985 + _t1740 = None + fields989 = (_dollar_dollar[0], _t1740,) + assert fields989 is not None + unwrapped_fields990 = fields989 self.write("[") self.indent() - field987 = unwrapped_fields986[0] - for i989, elem988 in enumerate(field987): - if (i989 > 0): + field991 = unwrapped_fields990[0] + for i993, elem992 in enumerate(field991): + if (i993 > 0): self.newline() - self.pretty_binding(elem988) - field990 = unwrapped_fields986[1] - if field990 is not None: + self.pretty_binding(elem992) + field994 = unwrapped_fields990[1] + if field994 is not None: self.newline() - assert field990 is not None - opt_val991 = field990 - self.pretty_value_bindings(opt_val991) + assert field994 is not None + opt_val995 = field994 + self.pretty_value_bindings(opt_val995) self.dedent() self.write("]") def pretty_binding(self, msg: logic_pb2.Binding): - flat997 = self._try_flat(msg, self.pretty_binding) - if flat997 is not None: - assert flat997 is not None - self.write(flat997) + flat1001 = self._try_flat(msg, self.pretty_binding) + if flat1001 is not None: + assert flat1001 is not None + self.write(flat1001) return None else: _dollar_dollar = msg - fields993 = (_dollar_dollar.var.name, _dollar_dollar.type,) - assert fields993 is not None - unwrapped_fields994 = fields993 - field995 = unwrapped_fields994[0] - self.write(field995) + fields997 = (_dollar_dollar.var.name, _dollar_dollar.type,) + assert fields997 is not None + unwrapped_fields998 = fields997 + field999 = unwrapped_fields998[0] + self.write(field999) self.write("::") - field996 = unwrapped_fields994[1] - self.pretty_type(field996) + field1000 = unwrapped_fields998[1] + self.pretty_type(field1000) def pretty_type(self, msg: logic_pb2.Type): - flat1026 = self._try_flat(msg, self.pretty_type) - if flat1026 is not None: - assert flat1026 is not None - self.write(flat1026) + flat1030 = self._try_flat(msg, self.pretty_type) + if flat1030 is not None: + assert flat1030 is not None + self.write(flat1030) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("unspecified_type"): - _t1733 = _dollar_dollar.unspecified_type + _t1741 = _dollar_dollar.unspecified_type else: - _t1733 = None - deconstruct_result1024 = _t1733 - if deconstruct_result1024 is not None: - assert deconstruct_result1024 is not None - unwrapped1025 = deconstruct_result1024 - self.pretty_unspecified_type(unwrapped1025) + _t1741 = None + deconstruct_result1028 = _t1741 + if deconstruct_result1028 is not None: + assert deconstruct_result1028 is not None + unwrapped1029 = deconstruct_result1028 + self.pretty_unspecified_type(unwrapped1029) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_type"): - _t1734 = _dollar_dollar.string_type + _t1742 = _dollar_dollar.string_type else: - _t1734 = None - deconstruct_result1022 = _t1734 - if deconstruct_result1022 is not None: - assert deconstruct_result1022 is not None - unwrapped1023 = deconstruct_result1022 - self.pretty_string_type(unwrapped1023) + _t1742 = None + deconstruct_result1026 = _t1742 + if deconstruct_result1026 is not None: + assert deconstruct_result1026 is not None + unwrapped1027 = deconstruct_result1026 + self.pretty_string_type(unwrapped1027) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_type"): - _t1735 = _dollar_dollar.int_type + _t1743 = _dollar_dollar.int_type else: - _t1735 = None - deconstruct_result1020 = _t1735 - if deconstruct_result1020 is not None: - assert deconstruct_result1020 is not None - unwrapped1021 = deconstruct_result1020 - self.pretty_int_type(unwrapped1021) + _t1743 = None + deconstruct_result1024 = _t1743 + if deconstruct_result1024 is not None: + assert deconstruct_result1024 is not None + unwrapped1025 = deconstruct_result1024 + self.pretty_int_type(unwrapped1025) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_type"): - _t1736 = _dollar_dollar.float_type + _t1744 = _dollar_dollar.float_type else: - _t1736 = None - deconstruct_result1018 = _t1736 - if deconstruct_result1018 is not None: - assert deconstruct_result1018 is not None - unwrapped1019 = deconstruct_result1018 - self.pretty_float_type(unwrapped1019) + _t1744 = None + deconstruct_result1022 = _t1744 + if deconstruct_result1022 is not None: + assert deconstruct_result1022 is not None + unwrapped1023 = deconstruct_result1022 + self.pretty_float_type(unwrapped1023) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_type"): - _t1737 = _dollar_dollar.uint128_type + _t1745 = _dollar_dollar.uint128_type else: - _t1737 = None - deconstruct_result1016 = _t1737 - if deconstruct_result1016 is not None: - assert deconstruct_result1016 is not None - unwrapped1017 = deconstruct_result1016 - self.pretty_uint128_type(unwrapped1017) + _t1745 = None + deconstruct_result1020 = _t1745 + if deconstruct_result1020 is not None: + assert deconstruct_result1020 is not None + unwrapped1021 = deconstruct_result1020 + self.pretty_uint128_type(unwrapped1021) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_type"): - _t1738 = _dollar_dollar.int128_type + _t1746 = _dollar_dollar.int128_type else: - _t1738 = None - deconstruct_result1014 = _t1738 - if deconstruct_result1014 is not None: - assert deconstruct_result1014 is not None - unwrapped1015 = deconstruct_result1014 - self.pretty_int128_type(unwrapped1015) + _t1746 = None + deconstruct_result1018 = _t1746 + if deconstruct_result1018 is not None: + assert deconstruct_result1018 is not None + unwrapped1019 = deconstruct_result1018 + self.pretty_int128_type(unwrapped1019) else: _dollar_dollar = msg if _dollar_dollar.HasField("date_type"): - _t1739 = _dollar_dollar.date_type + _t1747 = _dollar_dollar.date_type else: - _t1739 = None - deconstruct_result1012 = _t1739 - if deconstruct_result1012 is not None: - assert deconstruct_result1012 is not None - unwrapped1013 = deconstruct_result1012 - self.pretty_date_type(unwrapped1013) + _t1747 = None + deconstruct_result1016 = _t1747 + if deconstruct_result1016 is not None: + assert deconstruct_result1016 is not None + unwrapped1017 = deconstruct_result1016 + self.pretty_date_type(unwrapped1017) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_type"): - _t1740 = _dollar_dollar.datetime_type + _t1748 = _dollar_dollar.datetime_type else: - _t1740 = None - deconstruct_result1010 = _t1740 - if deconstruct_result1010 is not None: - assert deconstruct_result1010 is not None - unwrapped1011 = deconstruct_result1010 - self.pretty_datetime_type(unwrapped1011) + _t1748 = None + deconstruct_result1014 = _t1748 + if deconstruct_result1014 is not None: + assert deconstruct_result1014 is not None + unwrapped1015 = deconstruct_result1014 + self.pretty_datetime_type(unwrapped1015) else: _dollar_dollar = msg if _dollar_dollar.HasField("missing_type"): - _t1741 = _dollar_dollar.missing_type + _t1749 = _dollar_dollar.missing_type else: - _t1741 = None - deconstruct_result1008 = _t1741 - if deconstruct_result1008 is not None: - assert deconstruct_result1008 is not None - unwrapped1009 = deconstruct_result1008 - self.pretty_missing_type(unwrapped1009) + _t1749 = None + deconstruct_result1012 = _t1749 + if deconstruct_result1012 is not None: + assert deconstruct_result1012 is not None + unwrapped1013 = deconstruct_result1012 + self.pretty_missing_type(unwrapped1013) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_type"): - _t1742 = _dollar_dollar.decimal_type + _t1750 = _dollar_dollar.decimal_type else: - _t1742 = None - deconstruct_result1006 = _t1742 - if deconstruct_result1006 is not None: - assert deconstruct_result1006 is not None - unwrapped1007 = deconstruct_result1006 - self.pretty_decimal_type(unwrapped1007) + _t1750 = None + deconstruct_result1010 = _t1750 + if deconstruct_result1010 is not None: + assert deconstruct_result1010 is not None + unwrapped1011 = deconstruct_result1010 + self.pretty_decimal_type(unwrapped1011) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_type"): - _t1743 = _dollar_dollar.boolean_type + _t1751 = _dollar_dollar.boolean_type else: - _t1743 = None - deconstruct_result1004 = _t1743 - if deconstruct_result1004 is not None: - assert deconstruct_result1004 is not None - unwrapped1005 = deconstruct_result1004 - self.pretty_boolean_type(unwrapped1005) + _t1751 = None + deconstruct_result1008 = _t1751 + if deconstruct_result1008 is not None: + assert deconstruct_result1008 is not None + unwrapped1009 = deconstruct_result1008 + self.pretty_boolean_type(unwrapped1009) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_type"): - _t1744 = _dollar_dollar.int32_type + _t1752 = _dollar_dollar.int32_type else: - _t1744 = None - deconstruct_result1002 = _t1744 - if deconstruct_result1002 is not None: - assert deconstruct_result1002 is not None - unwrapped1003 = deconstruct_result1002 - self.pretty_int32_type(unwrapped1003) + _t1752 = None + deconstruct_result1006 = _t1752 + if deconstruct_result1006 is not None: + assert deconstruct_result1006 is not None + unwrapped1007 = deconstruct_result1006 + self.pretty_int32_type(unwrapped1007) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_type"): - _t1745 = _dollar_dollar.float32_type + _t1753 = _dollar_dollar.float32_type else: - _t1745 = None - deconstruct_result1000 = _t1745 - if deconstruct_result1000 is not None: - assert deconstruct_result1000 is not None - unwrapped1001 = deconstruct_result1000 - self.pretty_float32_type(unwrapped1001) + _t1753 = None + deconstruct_result1004 = _t1753 + if deconstruct_result1004 is not None: + assert deconstruct_result1004 is not None + unwrapped1005 = deconstruct_result1004 + self.pretty_float32_type(unwrapped1005) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_type"): - _t1746 = _dollar_dollar.uint32_type + _t1754 = _dollar_dollar.uint32_type else: - _t1746 = None - deconstruct_result998 = _t1746 - if deconstruct_result998 is not None: - assert deconstruct_result998 is not None - unwrapped999 = deconstruct_result998 - self.pretty_uint32_type(unwrapped999) + _t1754 = None + deconstruct_result1002 = _t1754 + if deconstruct_result1002 is not None: + assert deconstruct_result1002 is not None + unwrapped1003 = deconstruct_result1002 + self.pretty_uint32_type(unwrapped1003) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields1027 = msg + fields1031 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields1028 = msg + fields1032 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields1029 = msg + fields1033 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields1030 = msg + fields1034 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields1031 = msg + fields1035 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields1032 = msg + fields1036 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields1033 = msg + fields1037 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields1034 = msg + fields1038 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields1035 = msg + fields1039 = msg self.write("MISSING") def pretty_decimal_type(self, msg: logic_pb2.DecimalType): - flat1040 = self._try_flat(msg, self.pretty_decimal_type) - if flat1040 is not None: - assert flat1040 is not None - self.write(flat1040) + flat1044 = self._try_flat(msg, self.pretty_decimal_type) + if flat1044 is not None: + assert flat1044 is not None + self.write(flat1044) return None else: _dollar_dollar = msg - fields1036 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - assert fields1036 is not None - unwrapped_fields1037 = fields1036 + fields1040 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) + assert fields1040 is not None + unwrapped_fields1041 = fields1040 self.write("(DECIMAL") self.indent_sexp() self.newline() - field1038 = unwrapped_fields1037[0] - self.write(str(field1038)) + field1042 = unwrapped_fields1041[0] + self.write(str(field1042)) self.newline() - field1039 = unwrapped_fields1037[1] - self.write(str(field1039)) + field1043 = unwrapped_fields1041[1] + self.write(str(field1043)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields1041 = msg + fields1045 = msg self.write("BOOLEAN") def pretty_int32_type(self, msg: logic_pb2.Int32Type): - fields1042 = msg + fields1046 = msg self.write("INT32") def pretty_float32_type(self, msg: logic_pb2.Float32Type): - fields1043 = msg + fields1047 = msg self.write("FLOAT32") def pretty_uint32_type(self, msg: logic_pb2.UInt32Type): - fields1044 = msg + fields1048 = msg self.write("UINT32") def pretty_value_bindings(self, msg: Sequence[logic_pb2.Binding]): - flat1048 = self._try_flat(msg, self.pretty_value_bindings) - if flat1048 is not None: - assert flat1048 is not None - self.write(flat1048) + flat1052 = self._try_flat(msg, self.pretty_value_bindings) + if flat1052 is not None: + assert flat1052 is not None + self.write(flat1052) return None else: - fields1045 = msg + fields1049 = msg self.write("|") - if not len(fields1045) == 0: + if not len(fields1049) == 0: self.write(" ") - for i1047, elem1046 in enumerate(fields1045): - if (i1047 > 0): + for i1051, elem1050 in enumerate(fields1049): + if (i1051 > 0): self.newline() - self.pretty_binding(elem1046) + self.pretty_binding(elem1050) def pretty_formula(self, msg: logic_pb2.Formula): - flat1075 = self._try_flat(msg, self.pretty_formula) - if flat1075 is not None: - assert flat1075 is not None - self.write(flat1075) + flat1079 = self._try_flat(msg, self.pretty_formula) + if flat1079 is not None: + assert flat1079 is not None + self.write(flat1079) return None else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1747 = _dollar_dollar.conjunction + _t1755 = _dollar_dollar.conjunction else: - _t1747 = None - deconstruct_result1073 = _t1747 - if deconstruct_result1073 is not None: - assert deconstruct_result1073 is not None - unwrapped1074 = deconstruct_result1073 - self.pretty_true(unwrapped1074) + _t1755 = None + deconstruct_result1077 = _t1755 + if deconstruct_result1077 is not None: + assert deconstruct_result1077 is not None + unwrapped1078 = deconstruct_result1077 + self.pretty_true(unwrapped1078) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1748 = _dollar_dollar.disjunction + _t1756 = _dollar_dollar.disjunction else: - _t1748 = None - deconstruct_result1071 = _t1748 - if deconstruct_result1071 is not None: - assert deconstruct_result1071 is not None - unwrapped1072 = deconstruct_result1071 - self.pretty_false(unwrapped1072) + _t1756 = None + deconstruct_result1075 = _t1756 + if deconstruct_result1075 is not None: + assert deconstruct_result1075 is not None + unwrapped1076 = deconstruct_result1075 + self.pretty_false(unwrapped1076) else: _dollar_dollar = msg if _dollar_dollar.HasField("exists"): - _t1749 = _dollar_dollar.exists + _t1757 = _dollar_dollar.exists else: - _t1749 = None - deconstruct_result1069 = _t1749 - if deconstruct_result1069 is not None: - assert deconstruct_result1069 is not None - unwrapped1070 = deconstruct_result1069 - self.pretty_exists(unwrapped1070) + _t1757 = None + deconstruct_result1073 = _t1757 + if deconstruct_result1073 is not None: + assert deconstruct_result1073 is not None + unwrapped1074 = deconstruct_result1073 + self.pretty_exists(unwrapped1074) else: _dollar_dollar = msg if _dollar_dollar.HasField("reduce"): - _t1750 = _dollar_dollar.reduce + _t1758 = _dollar_dollar.reduce else: - _t1750 = None - deconstruct_result1067 = _t1750 - if deconstruct_result1067 is not None: - assert deconstruct_result1067 is not None - unwrapped1068 = deconstruct_result1067 - self.pretty_reduce(unwrapped1068) + _t1758 = None + deconstruct_result1071 = _t1758 + if deconstruct_result1071 is not None: + assert deconstruct_result1071 is not None + unwrapped1072 = deconstruct_result1071 + self.pretty_reduce(unwrapped1072) else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1751 = _dollar_dollar.conjunction + _t1759 = _dollar_dollar.conjunction else: - _t1751 = None - deconstruct_result1065 = _t1751 - if deconstruct_result1065 is not None: - assert deconstruct_result1065 is not None - unwrapped1066 = deconstruct_result1065 - self.pretty_conjunction(unwrapped1066) + _t1759 = None + deconstruct_result1069 = _t1759 + if deconstruct_result1069 is not None: + assert deconstruct_result1069 is not None + unwrapped1070 = deconstruct_result1069 + self.pretty_conjunction(unwrapped1070) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1752 = _dollar_dollar.disjunction + _t1760 = _dollar_dollar.disjunction else: - _t1752 = None - deconstruct_result1063 = _t1752 - if deconstruct_result1063 is not None: - assert deconstruct_result1063 is not None - unwrapped1064 = deconstruct_result1063 - self.pretty_disjunction(unwrapped1064) + _t1760 = None + deconstruct_result1067 = _t1760 + if deconstruct_result1067 is not None: + assert deconstruct_result1067 is not None + unwrapped1068 = deconstruct_result1067 + self.pretty_disjunction(unwrapped1068) else: _dollar_dollar = msg if _dollar_dollar.HasField("not"): - _t1753 = getattr(_dollar_dollar, 'not') + _t1761 = getattr(_dollar_dollar, 'not') else: - _t1753 = None - deconstruct_result1061 = _t1753 - if deconstruct_result1061 is not None: - assert deconstruct_result1061 is not None - unwrapped1062 = deconstruct_result1061 - self.pretty_not(unwrapped1062) + _t1761 = None + deconstruct_result1065 = _t1761 + if deconstruct_result1065 is not None: + assert deconstruct_result1065 is not None + unwrapped1066 = deconstruct_result1065 + self.pretty_not(unwrapped1066) else: _dollar_dollar = msg if _dollar_dollar.HasField("ffi"): - _t1754 = _dollar_dollar.ffi + _t1762 = _dollar_dollar.ffi else: - _t1754 = None - deconstruct_result1059 = _t1754 - if deconstruct_result1059 is not None: - assert deconstruct_result1059 is not None - unwrapped1060 = deconstruct_result1059 - self.pretty_ffi(unwrapped1060) + _t1762 = None + deconstruct_result1063 = _t1762 + if deconstruct_result1063 is not None: + assert deconstruct_result1063 is not None + unwrapped1064 = deconstruct_result1063 + self.pretty_ffi(unwrapped1064) else: _dollar_dollar = msg if _dollar_dollar.HasField("atom"): - _t1755 = _dollar_dollar.atom + _t1763 = _dollar_dollar.atom else: - _t1755 = None - deconstruct_result1057 = _t1755 - if deconstruct_result1057 is not None: - assert deconstruct_result1057 is not None - unwrapped1058 = deconstruct_result1057 - self.pretty_atom(unwrapped1058) + _t1763 = None + deconstruct_result1061 = _t1763 + if deconstruct_result1061 is not None: + assert deconstruct_result1061 is not None + unwrapped1062 = deconstruct_result1061 + self.pretty_atom(unwrapped1062) else: _dollar_dollar = msg if _dollar_dollar.HasField("pragma"): - _t1756 = _dollar_dollar.pragma + _t1764 = _dollar_dollar.pragma else: - _t1756 = None - deconstruct_result1055 = _t1756 - if deconstruct_result1055 is not None: - assert deconstruct_result1055 is not None - unwrapped1056 = deconstruct_result1055 - self.pretty_pragma(unwrapped1056) + _t1764 = None + deconstruct_result1059 = _t1764 + if deconstruct_result1059 is not None: + assert deconstruct_result1059 is not None + unwrapped1060 = deconstruct_result1059 + self.pretty_pragma(unwrapped1060) else: _dollar_dollar = msg if _dollar_dollar.HasField("primitive"): - _t1757 = _dollar_dollar.primitive + _t1765 = _dollar_dollar.primitive else: - _t1757 = None - deconstruct_result1053 = _t1757 - if deconstruct_result1053 is not None: - assert deconstruct_result1053 is not None - unwrapped1054 = deconstruct_result1053 - self.pretty_primitive(unwrapped1054) + _t1765 = None + deconstruct_result1057 = _t1765 + if deconstruct_result1057 is not None: + assert deconstruct_result1057 is not None + unwrapped1058 = deconstruct_result1057 + self.pretty_primitive(unwrapped1058) else: _dollar_dollar = msg if _dollar_dollar.HasField("rel_atom"): - _t1758 = _dollar_dollar.rel_atom + _t1766 = _dollar_dollar.rel_atom else: - _t1758 = None - deconstruct_result1051 = _t1758 - if deconstruct_result1051 is not None: - assert deconstruct_result1051 is not None - unwrapped1052 = deconstruct_result1051 - self.pretty_rel_atom(unwrapped1052) + _t1766 = None + deconstruct_result1055 = _t1766 + if deconstruct_result1055 is not None: + assert deconstruct_result1055 is not None + unwrapped1056 = deconstruct_result1055 + self.pretty_rel_atom(unwrapped1056) else: _dollar_dollar = msg if _dollar_dollar.HasField("cast"): - _t1759 = _dollar_dollar.cast + _t1767 = _dollar_dollar.cast else: - _t1759 = None - deconstruct_result1049 = _t1759 - if deconstruct_result1049 is not None: - assert deconstruct_result1049 is not None - unwrapped1050 = deconstruct_result1049 - self.pretty_cast(unwrapped1050) + _t1767 = None + deconstruct_result1053 = _t1767 + if deconstruct_result1053 is not None: + assert deconstruct_result1053 is not None + unwrapped1054 = deconstruct_result1053 + self.pretty_cast(unwrapped1054) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields1076 = msg + fields1080 = msg self.write("(true)") def pretty_false(self, msg: logic_pb2.Disjunction): - fields1077 = msg + fields1081 = msg self.write("(false)") def pretty_exists(self, msg: logic_pb2.Exists): - flat1082 = self._try_flat(msg, self.pretty_exists) - if flat1082 is not None: - assert flat1082 is not None - self.write(flat1082) + flat1086 = self._try_flat(msg, self.pretty_exists) + if flat1086 is not None: + assert flat1086 is not None + self.write(flat1086) return None else: _dollar_dollar = msg - _t1760 = self.deconstruct_bindings(_dollar_dollar.body) - fields1078 = (_t1760, _dollar_dollar.body.value,) - assert fields1078 is not None - unwrapped_fields1079 = fields1078 + _t1768 = self.deconstruct_bindings(_dollar_dollar.body) + fields1082 = (_t1768, _dollar_dollar.body.value,) + assert fields1082 is not None + unwrapped_fields1083 = fields1082 self.write("(exists") self.indent_sexp() self.newline() - field1080 = unwrapped_fields1079[0] - self.pretty_bindings(field1080) + field1084 = unwrapped_fields1083[0] + self.pretty_bindings(field1084) self.newline() - field1081 = unwrapped_fields1079[1] - self.pretty_formula(field1081) + field1085 = unwrapped_fields1083[1] + self.pretty_formula(field1085) self.dedent() self.write(")") def pretty_reduce(self, msg: logic_pb2.Reduce): - flat1088 = self._try_flat(msg, self.pretty_reduce) - if flat1088 is not None: - assert flat1088 is not None - self.write(flat1088) + flat1092 = self._try_flat(msg, self.pretty_reduce) + if flat1092 is not None: + assert flat1092 is not None + self.write(flat1092) return None else: _dollar_dollar = msg - fields1083 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - assert fields1083 is not None - unwrapped_fields1084 = fields1083 + fields1087 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + assert fields1087 is not None + unwrapped_fields1088 = fields1087 self.write("(reduce") self.indent_sexp() self.newline() - field1085 = unwrapped_fields1084[0] - self.pretty_abstraction(field1085) + field1089 = unwrapped_fields1088[0] + self.pretty_abstraction(field1089) self.newline() - field1086 = unwrapped_fields1084[1] - self.pretty_abstraction(field1086) + field1090 = unwrapped_fields1088[1] + self.pretty_abstraction(field1090) self.newline() - field1087 = unwrapped_fields1084[2] - self.pretty_terms(field1087) + field1091 = unwrapped_fields1088[2] + self.pretty_terms(field1091) self.dedent() self.write(")") def pretty_terms(self, msg: Sequence[logic_pb2.Term]): - flat1092 = self._try_flat(msg, self.pretty_terms) - if flat1092 is not None: - assert flat1092 is not None - self.write(flat1092) + flat1096 = self._try_flat(msg, self.pretty_terms) + if flat1096 is not None: + assert flat1096 is not None + self.write(flat1096) return None else: - fields1089 = msg + fields1093 = msg self.write("(terms") self.indent_sexp() - if not len(fields1089) == 0: + if not len(fields1093) == 0: self.newline() - for i1091, elem1090 in enumerate(fields1089): - if (i1091 > 0): + for i1095, elem1094 in enumerate(fields1093): + if (i1095 > 0): self.newline() - self.pretty_term(elem1090) + self.pretty_term(elem1094) self.dedent() self.write(")") def pretty_term(self, msg: logic_pb2.Term): - flat1097 = self._try_flat(msg, self.pretty_term) - if flat1097 is not None: - assert flat1097 is not None - self.write(flat1097) + flat1101 = self._try_flat(msg, self.pretty_term) + if flat1101 is not None: + assert flat1101 is not None + self.write(flat1101) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("var"): - _t1761 = _dollar_dollar.var + _t1769 = _dollar_dollar.var else: - _t1761 = None - deconstruct_result1095 = _t1761 - if deconstruct_result1095 is not None: - assert deconstruct_result1095 is not None - unwrapped1096 = deconstruct_result1095 - self.pretty_var(unwrapped1096) + _t1769 = None + deconstruct_result1099 = _t1769 + if deconstruct_result1099 is not None: + assert deconstruct_result1099 is not None + unwrapped1100 = deconstruct_result1099 + self.pretty_var(unwrapped1100) else: _dollar_dollar = msg if _dollar_dollar.HasField("constant"): - _t1762 = _dollar_dollar.constant + _t1770 = _dollar_dollar.constant else: - _t1762 = None - deconstruct_result1093 = _t1762 - if deconstruct_result1093 is not None: - assert deconstruct_result1093 is not None - unwrapped1094 = deconstruct_result1093 - self.pretty_value(unwrapped1094) + _t1770 = None + deconstruct_result1097 = _t1770 + if deconstruct_result1097 is not None: + assert deconstruct_result1097 is not None + unwrapped1098 = deconstruct_result1097 + self.pretty_value(unwrapped1098) else: raise ParseError("No matching rule for term") def pretty_var(self, msg: logic_pb2.Var): - flat1100 = self._try_flat(msg, self.pretty_var) - if flat1100 is not None: - assert flat1100 is not None - self.write(flat1100) + flat1104 = self._try_flat(msg, self.pretty_var) + if flat1104 is not None: + assert flat1104 is not None + self.write(flat1104) return None else: _dollar_dollar = msg - fields1098 = _dollar_dollar.name - assert fields1098 is not None - unwrapped_fields1099 = fields1098 - self.write(unwrapped_fields1099) + fields1102 = _dollar_dollar.name + assert fields1102 is not None + unwrapped_fields1103 = fields1102 + self.write(unwrapped_fields1103) def pretty_value(self, msg: logic_pb2.Value): - flat1126 = self._try_flat(msg, self.pretty_value) - if flat1126 is not None: - assert flat1126 is not None - self.write(flat1126) + flat1130 = self._try_flat(msg, self.pretty_value) + if flat1130 is not None: + assert flat1130 is not None + self.write(flat1130) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1763 = _dollar_dollar.date_value + _t1771 = _dollar_dollar.date_value else: - _t1763 = None - deconstruct_result1124 = _t1763 - if deconstruct_result1124 is not None: - assert deconstruct_result1124 is not None - unwrapped1125 = deconstruct_result1124 - self.pretty_date(unwrapped1125) + _t1771 = None + deconstruct_result1128 = _t1771 + if deconstruct_result1128 is not None: + assert deconstruct_result1128 is not None + unwrapped1129 = deconstruct_result1128 + self.pretty_date(unwrapped1129) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1764 = _dollar_dollar.datetime_value + _t1772 = _dollar_dollar.datetime_value else: - _t1764 = None - deconstruct_result1122 = _t1764 - if deconstruct_result1122 is not None: - assert deconstruct_result1122 is not None - unwrapped1123 = deconstruct_result1122 - self.pretty_datetime(unwrapped1123) + _t1772 = None + deconstruct_result1126 = _t1772 + if deconstruct_result1126 is not None: + assert deconstruct_result1126 is not None + unwrapped1127 = deconstruct_result1126 + self.pretty_datetime(unwrapped1127) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1765 = _dollar_dollar.string_value + _t1773 = _dollar_dollar.string_value else: - _t1765 = None - deconstruct_result1120 = _t1765 - if deconstruct_result1120 is not None: - assert deconstruct_result1120 is not None - unwrapped1121 = deconstruct_result1120 - self.write(self.format_string_value(unwrapped1121)) + _t1773 = None + deconstruct_result1124 = _t1773 + if deconstruct_result1124 is not None: + assert deconstruct_result1124 is not None + unwrapped1125 = deconstruct_result1124 + self.write(self.format_string_value(unwrapped1125)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1766 = _dollar_dollar.int32_value + _t1774 = _dollar_dollar.int32_value else: - _t1766 = None - deconstruct_result1118 = _t1766 - if deconstruct_result1118 is not None: - assert deconstruct_result1118 is not None - unwrapped1119 = deconstruct_result1118 - self.write((str(unwrapped1119) + 'i32')) + _t1774 = None + deconstruct_result1122 = _t1774 + if deconstruct_result1122 is not None: + assert deconstruct_result1122 is not None + unwrapped1123 = deconstruct_result1122 + self.write((str(unwrapped1123) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1767 = _dollar_dollar.int_value + _t1775 = _dollar_dollar.int_value else: - _t1767 = None - deconstruct_result1116 = _t1767 - if deconstruct_result1116 is not None: - assert deconstruct_result1116 is not None - unwrapped1117 = deconstruct_result1116 - self.write(str(unwrapped1117)) + _t1775 = None + deconstruct_result1120 = _t1775 + if deconstruct_result1120 is not None: + assert deconstruct_result1120 is not None + unwrapped1121 = deconstruct_result1120 + self.write(str(unwrapped1121)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1768 = _dollar_dollar.float32_value + _t1776 = _dollar_dollar.float32_value else: - _t1768 = None - deconstruct_result1114 = _t1768 - if deconstruct_result1114 is not None: - assert deconstruct_result1114 is not None - unwrapped1115 = deconstruct_result1114 - self.write(self.format_float32_literal(unwrapped1115)) + _t1776 = None + deconstruct_result1118 = _t1776 + if deconstruct_result1118 is not None: + assert deconstruct_result1118 is not None + unwrapped1119 = deconstruct_result1118 + self.write(self.format_float32_literal(unwrapped1119)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1769 = _dollar_dollar.float_value + _t1777 = _dollar_dollar.float_value else: - _t1769 = None - deconstruct_result1112 = _t1769 - if deconstruct_result1112 is not None: - assert deconstruct_result1112 is not None - unwrapped1113 = deconstruct_result1112 - self.write(str(unwrapped1113)) + _t1777 = None + deconstruct_result1116 = _t1777 + if deconstruct_result1116 is not None: + assert deconstruct_result1116 is not None + unwrapped1117 = deconstruct_result1116 + self.write(str(unwrapped1117)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1770 = _dollar_dollar.uint32_value + _t1778 = _dollar_dollar.uint32_value else: - _t1770 = None - deconstruct_result1110 = _t1770 - if deconstruct_result1110 is not None: - assert deconstruct_result1110 is not None - unwrapped1111 = deconstruct_result1110 - self.write((str(unwrapped1111) + 'u32')) + _t1778 = None + deconstruct_result1114 = _t1778 + if deconstruct_result1114 is not None: + assert deconstruct_result1114 is not None + unwrapped1115 = deconstruct_result1114 + self.write((str(unwrapped1115) + 'u32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1771 = _dollar_dollar.uint128_value + _t1779 = _dollar_dollar.uint128_value else: - _t1771 = None - deconstruct_result1108 = _t1771 - if deconstruct_result1108 is not None: - assert deconstruct_result1108 is not None - unwrapped1109 = deconstruct_result1108 - self.write(self.format_uint128(unwrapped1109)) + _t1779 = None + deconstruct_result1112 = _t1779 + if deconstruct_result1112 is not None: + assert deconstruct_result1112 is not None + unwrapped1113 = deconstruct_result1112 + self.write(self.format_uint128(unwrapped1113)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1772 = _dollar_dollar.int128_value + _t1780 = _dollar_dollar.int128_value else: - _t1772 = None - deconstruct_result1106 = _t1772 - if deconstruct_result1106 is not None: - assert deconstruct_result1106 is not None - unwrapped1107 = deconstruct_result1106 - self.write(self.format_int128(unwrapped1107)) + _t1780 = None + deconstruct_result1110 = _t1780 + if deconstruct_result1110 is not None: + assert deconstruct_result1110 is not None + unwrapped1111 = deconstruct_result1110 + self.write(self.format_int128(unwrapped1111)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1773 = _dollar_dollar.decimal_value + _t1781 = _dollar_dollar.decimal_value else: - _t1773 = None - deconstruct_result1104 = _t1773 - if deconstruct_result1104 is not None: - assert deconstruct_result1104 is not None - unwrapped1105 = deconstruct_result1104 - self.write(self.format_decimal(unwrapped1105)) + _t1781 = None + deconstruct_result1108 = _t1781 + if deconstruct_result1108 is not None: + assert deconstruct_result1108 is not None + unwrapped1109 = deconstruct_result1108 + self.write(self.format_decimal(unwrapped1109)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1774 = _dollar_dollar.boolean_value + _t1782 = _dollar_dollar.boolean_value else: - _t1774 = None - deconstruct_result1102 = _t1774 - if deconstruct_result1102 is not None: - assert deconstruct_result1102 is not None - unwrapped1103 = deconstruct_result1102 - self.pretty_boolean_value(unwrapped1103) + _t1782 = None + deconstruct_result1106 = _t1782 + if deconstruct_result1106 is not None: + assert deconstruct_result1106 is not None + unwrapped1107 = deconstruct_result1106 + self.pretty_boolean_value(unwrapped1107) else: - fields1101 = msg + fields1105 = msg self.write("missing") def pretty_date(self, msg: logic_pb2.DateValue): - flat1132 = self._try_flat(msg, self.pretty_date) - if flat1132 is not None: - assert flat1132 is not None - self.write(flat1132) + flat1136 = self._try_flat(msg, self.pretty_date) + if flat1136 is not None: + assert flat1136 is not None + self.write(flat1136) return None else: _dollar_dollar = msg - fields1127 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields1127 is not None - unwrapped_fields1128 = fields1127 + fields1131 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields1131 is not None + unwrapped_fields1132 = fields1131 self.write("(date") self.indent_sexp() self.newline() - field1129 = unwrapped_fields1128[0] - self.write(str(field1129)) + field1133 = unwrapped_fields1132[0] + self.write(str(field1133)) self.newline() - field1130 = unwrapped_fields1128[1] - self.write(str(field1130)) + field1134 = unwrapped_fields1132[1] + self.write(str(field1134)) self.newline() - field1131 = unwrapped_fields1128[2] - self.write(str(field1131)) + field1135 = unwrapped_fields1132[2] + self.write(str(field1135)) self.dedent() self.write(")") def pretty_datetime(self, msg: logic_pb2.DateTimeValue): - flat1143 = self._try_flat(msg, self.pretty_datetime) - if flat1143 is not None: - assert flat1143 is not None - self.write(flat1143) + flat1147 = self._try_flat(msg, self.pretty_datetime) + if flat1147 is not None: + assert flat1147 is not None + self.write(flat1147) return None else: _dollar_dollar = msg - fields1133 = (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 fields1133 is not None - unwrapped_fields1134 = fields1133 + fields1137 = (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 fields1137 is not None + unwrapped_fields1138 = fields1137 self.write("(datetime") self.indent_sexp() self.newline() - field1135 = unwrapped_fields1134[0] - self.write(str(field1135)) + field1139 = unwrapped_fields1138[0] + self.write(str(field1139)) self.newline() - field1136 = unwrapped_fields1134[1] - self.write(str(field1136)) + field1140 = unwrapped_fields1138[1] + self.write(str(field1140)) self.newline() - field1137 = unwrapped_fields1134[2] - self.write(str(field1137)) + field1141 = unwrapped_fields1138[2] + self.write(str(field1141)) self.newline() - field1138 = unwrapped_fields1134[3] - self.write(str(field1138)) + field1142 = unwrapped_fields1138[3] + self.write(str(field1142)) self.newline() - field1139 = unwrapped_fields1134[4] - self.write(str(field1139)) + field1143 = unwrapped_fields1138[4] + self.write(str(field1143)) self.newline() - field1140 = unwrapped_fields1134[5] - self.write(str(field1140)) - field1141 = unwrapped_fields1134[6] - if field1141 is not None: + field1144 = unwrapped_fields1138[5] + self.write(str(field1144)) + field1145 = unwrapped_fields1138[6] + if field1145 is not None: self.newline() - assert field1141 is not None - opt_val1142 = field1141 - self.write(str(opt_val1142)) + assert field1145 is not None + opt_val1146 = field1145 + self.write(str(opt_val1146)) self.dedent() self.write(")") def pretty_conjunction(self, msg: logic_pb2.Conjunction): - flat1148 = self._try_flat(msg, self.pretty_conjunction) - if flat1148 is not None: - assert flat1148 is not None - self.write(flat1148) + flat1152 = self._try_flat(msg, self.pretty_conjunction) + if flat1152 is not None: + assert flat1152 is not None + self.write(flat1152) return None else: _dollar_dollar = msg - fields1144 = _dollar_dollar.args - assert fields1144 is not None - unwrapped_fields1145 = fields1144 + fields1148 = _dollar_dollar.args + assert fields1148 is not None + unwrapped_fields1149 = fields1148 self.write("(and") self.indent_sexp() - if not len(unwrapped_fields1145) == 0: + if not len(unwrapped_fields1149) == 0: self.newline() - for i1147, elem1146 in enumerate(unwrapped_fields1145): - if (i1147 > 0): + for i1151, elem1150 in enumerate(unwrapped_fields1149): + if (i1151 > 0): self.newline() - self.pretty_formula(elem1146) + self.pretty_formula(elem1150) self.dedent() self.write(")") def pretty_disjunction(self, msg: logic_pb2.Disjunction): - flat1153 = self._try_flat(msg, self.pretty_disjunction) - if flat1153 is not None: - assert flat1153 is not None - self.write(flat1153) + flat1157 = self._try_flat(msg, self.pretty_disjunction) + if flat1157 is not None: + assert flat1157 is not None + self.write(flat1157) return None else: _dollar_dollar = msg - fields1149 = _dollar_dollar.args - assert fields1149 is not None - unwrapped_fields1150 = fields1149 + fields1153 = _dollar_dollar.args + assert fields1153 is not None + unwrapped_fields1154 = fields1153 self.write("(or") self.indent_sexp() - if not len(unwrapped_fields1150) == 0: + if not len(unwrapped_fields1154) == 0: self.newline() - for i1152, elem1151 in enumerate(unwrapped_fields1150): - if (i1152 > 0): + for i1156, elem1155 in enumerate(unwrapped_fields1154): + if (i1156 > 0): self.newline() - self.pretty_formula(elem1151) + self.pretty_formula(elem1155) self.dedent() self.write(")") def pretty_not(self, msg: logic_pb2.Not): - flat1156 = self._try_flat(msg, self.pretty_not) - if flat1156 is not None: - assert flat1156 is not None - self.write(flat1156) + flat1160 = self._try_flat(msg, self.pretty_not) + if flat1160 is not None: + assert flat1160 is not None + self.write(flat1160) return None else: _dollar_dollar = msg - fields1154 = _dollar_dollar.arg - assert fields1154 is not None - unwrapped_fields1155 = fields1154 + fields1158 = _dollar_dollar.arg + assert fields1158 is not None + unwrapped_fields1159 = fields1158 self.write("(not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields1155) + self.pretty_formula(unwrapped_fields1159) self.dedent() self.write(")") def pretty_ffi(self, msg: logic_pb2.FFI): - flat1162 = self._try_flat(msg, self.pretty_ffi) - if flat1162 is not None: - assert flat1162 is not None - self.write(flat1162) + flat1166 = self._try_flat(msg, self.pretty_ffi) + if flat1166 is not None: + assert flat1166 is not None + self.write(flat1166) return None else: _dollar_dollar = msg - fields1157 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - assert fields1157 is not None - unwrapped_fields1158 = fields1157 + fields1161 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + assert fields1161 is not None + unwrapped_fields1162 = fields1161 self.write("(ffi") self.indent_sexp() self.newline() - field1159 = unwrapped_fields1158[0] - self.pretty_name(field1159) + field1163 = unwrapped_fields1162[0] + self.pretty_name(field1163) self.newline() - field1160 = unwrapped_fields1158[1] - self.pretty_ffi_args(field1160) + field1164 = unwrapped_fields1162[1] + self.pretty_ffi_args(field1164) self.newline() - field1161 = unwrapped_fields1158[2] - self.pretty_terms(field1161) + field1165 = unwrapped_fields1162[2] + self.pretty_terms(field1165) self.dedent() self.write(")") def pretty_name(self, msg: str): - flat1164 = self._try_flat(msg, self.pretty_name) - if flat1164 is not None: - assert flat1164 is not None - self.write(flat1164) + flat1168 = self._try_flat(msg, self.pretty_name) + if flat1168 is not None: + assert flat1168 is not None + self.write(flat1168) return None else: - fields1163 = msg + fields1167 = msg self.write(":") - self.write(fields1163) + self.write(fields1167) def pretty_ffi_args(self, msg: Sequence[logic_pb2.Abstraction]): - flat1168 = self._try_flat(msg, self.pretty_ffi_args) - if flat1168 is not None: - assert flat1168 is not None - self.write(flat1168) + flat1172 = self._try_flat(msg, self.pretty_ffi_args) + if flat1172 is not None: + assert flat1172 is not None + self.write(flat1172) return None else: - fields1165 = msg + fields1169 = msg self.write("(args") self.indent_sexp() - if not len(fields1165) == 0: + if not len(fields1169) == 0: self.newline() - for i1167, elem1166 in enumerate(fields1165): - if (i1167 > 0): + for i1171, elem1170 in enumerate(fields1169): + if (i1171 > 0): self.newline() - self.pretty_abstraction(elem1166) + self.pretty_abstraction(elem1170) self.dedent() self.write(")") def pretty_atom(self, msg: logic_pb2.Atom): - flat1175 = self._try_flat(msg, self.pretty_atom) - if flat1175 is not None: - assert flat1175 is not None - self.write(flat1175) + flat1179 = self._try_flat(msg, self.pretty_atom) + if flat1179 is not None: + assert flat1179 is not None + self.write(flat1179) return None else: _dollar_dollar = msg - fields1169 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1169 is not None - unwrapped_fields1170 = fields1169 + fields1173 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1173 is not None + unwrapped_fields1174 = fields1173 self.write("(atom") self.indent_sexp() self.newline() - field1171 = unwrapped_fields1170[0] - self.pretty_relation_id(field1171) - field1172 = unwrapped_fields1170[1] - if not len(field1172) == 0: + field1175 = unwrapped_fields1174[0] + self.pretty_relation_id(field1175) + field1176 = unwrapped_fields1174[1] + if not len(field1176) == 0: self.newline() - for i1174, elem1173 in enumerate(field1172): - if (i1174 > 0): + for i1178, elem1177 in enumerate(field1176): + if (i1178 > 0): self.newline() - self.pretty_term(elem1173) + self.pretty_term(elem1177) self.dedent() self.write(")") def pretty_pragma(self, msg: logic_pb2.Pragma): - flat1182 = self._try_flat(msg, self.pretty_pragma) - if flat1182 is not None: - assert flat1182 is not None - self.write(flat1182) + flat1186 = self._try_flat(msg, self.pretty_pragma) + if flat1186 is not None: + assert flat1186 is not None + self.write(flat1186) return None else: _dollar_dollar = msg - fields1176 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1176 is not None - unwrapped_fields1177 = fields1176 + fields1180 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1180 is not None + unwrapped_fields1181 = fields1180 self.write("(pragma") self.indent_sexp() self.newline() - field1178 = unwrapped_fields1177[0] - self.pretty_name(field1178) - field1179 = unwrapped_fields1177[1] - if not len(field1179) == 0: + field1182 = unwrapped_fields1181[0] + self.pretty_name(field1182) + field1183 = unwrapped_fields1181[1] + if not len(field1183) == 0: self.newline() - for i1181, elem1180 in enumerate(field1179): - if (i1181 > 0): + for i1185, elem1184 in enumerate(field1183): + if (i1185 > 0): self.newline() - self.pretty_term(elem1180) + self.pretty_term(elem1184) self.dedent() self.write(")") def pretty_primitive(self, msg: logic_pb2.Primitive): - flat1198 = self._try_flat(msg, self.pretty_primitive) - if flat1198 is not None: - assert flat1198 is not None - self.write(flat1198) + flat1202 = self._try_flat(msg, self.pretty_primitive) + if flat1202 is not None: + assert flat1202 is not None + self.write(flat1202) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1775 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1783 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1775 = None - guard_result1197 = _t1775 - if guard_result1197 is not None: + _t1783 = None + guard_result1201 = _t1783 + if guard_result1201 is not None: self.pretty_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1776 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1784 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1776 = None - guard_result1196 = _t1776 - if guard_result1196 is not None: + _t1784 = None + guard_result1200 = _t1784 + if guard_result1200 is not None: self.pretty_lt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1777 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1785 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1777 = None - guard_result1195 = _t1777 - if guard_result1195 is not None: + _t1785 = None + guard_result1199 = _t1785 + if guard_result1199 is not None: self.pretty_lt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1778 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1786 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1778 = None - guard_result1194 = _t1778 - if guard_result1194 is not None: + _t1786 = None + guard_result1198 = _t1786 + if guard_result1198 is not None: self.pretty_gt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1779 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1787 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1779 = None - guard_result1193 = _t1779 - if guard_result1193 is not None: + _t1787 = None + guard_result1197 = _t1787 + if guard_result1197 is not None: self.pretty_gt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1780 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1788 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1780 = None - guard_result1192 = _t1780 - if guard_result1192 is not None: + _t1788 = None + guard_result1196 = _t1788 + if guard_result1196 is not None: self.pretty_add(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1781 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1789 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1781 = None - guard_result1191 = _t1781 - if guard_result1191 is not None: + _t1789 = None + guard_result1195 = _t1789 + if guard_result1195 is not None: self.pretty_minus(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1782 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1790 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1782 = None - guard_result1190 = _t1782 - if guard_result1190 is not None: + _t1790 = None + guard_result1194 = _t1790 + if guard_result1194 is not None: self.pretty_multiply(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1783 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1791 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1783 = None - guard_result1189 = _t1783 - if guard_result1189 is not None: + _t1791 = None + guard_result1193 = _t1791 + if guard_result1193 is not None: self.pretty_divide(msg) else: _dollar_dollar = msg - fields1183 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1183 is not None - unwrapped_fields1184 = fields1183 + fields1187 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1187 is not None + unwrapped_fields1188 = fields1187 self.write("(primitive") self.indent_sexp() self.newline() - field1185 = unwrapped_fields1184[0] - self.pretty_name(field1185) - field1186 = unwrapped_fields1184[1] - if not len(field1186) == 0: + field1189 = unwrapped_fields1188[0] + self.pretty_name(field1189) + field1190 = unwrapped_fields1188[1] + if not len(field1190) == 0: self.newline() - for i1188, elem1187 in enumerate(field1186): - if (i1188 > 0): + for i1192, elem1191 in enumerate(field1190): + if (i1192 > 0): self.newline() - self.pretty_rel_term(elem1187) + self.pretty_rel_term(elem1191) self.dedent() self.write(")") def pretty_eq(self, msg: logic_pb2.Primitive): - flat1203 = self._try_flat(msg, self.pretty_eq) - if flat1203 is not None: - assert flat1203 is not None - self.write(flat1203) + flat1207 = self._try_flat(msg, self.pretty_eq) + if flat1207 is not None: + assert flat1207 is not None + self.write(flat1207) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1784 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1792 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1784 = None - fields1199 = _t1784 - assert fields1199 is not None - unwrapped_fields1200 = fields1199 + _t1792 = None + fields1203 = _t1792 + assert fields1203 is not None + unwrapped_fields1204 = fields1203 self.write("(=") self.indent_sexp() self.newline() - field1201 = unwrapped_fields1200[0] - self.pretty_term(field1201) + field1205 = unwrapped_fields1204[0] + self.pretty_term(field1205) self.newline() - field1202 = unwrapped_fields1200[1] - self.pretty_term(field1202) + field1206 = unwrapped_fields1204[1] + self.pretty_term(field1206) self.dedent() self.write(")") def pretty_lt(self, msg: logic_pb2.Primitive): - flat1208 = self._try_flat(msg, self.pretty_lt) - if flat1208 is not None: - assert flat1208 is not None - self.write(flat1208) + flat1212 = self._try_flat(msg, self.pretty_lt) + if flat1212 is not None: + assert flat1212 is not None + self.write(flat1212) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1785 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1793 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1785 = None - fields1204 = _t1785 - assert fields1204 is not None - unwrapped_fields1205 = fields1204 + _t1793 = None + fields1208 = _t1793 + assert fields1208 is not None + unwrapped_fields1209 = fields1208 self.write("(<") self.indent_sexp() self.newline() - field1206 = unwrapped_fields1205[0] - self.pretty_term(field1206) + field1210 = unwrapped_fields1209[0] + self.pretty_term(field1210) self.newline() - field1207 = unwrapped_fields1205[1] - self.pretty_term(field1207) + field1211 = unwrapped_fields1209[1] + self.pretty_term(field1211) self.dedent() self.write(")") def pretty_lt_eq(self, msg: logic_pb2.Primitive): - flat1213 = self._try_flat(msg, self.pretty_lt_eq) - if flat1213 is not None: - assert flat1213 is not None - self.write(flat1213) + flat1217 = self._try_flat(msg, self.pretty_lt_eq) + if flat1217 is not None: + assert flat1217 is not None + self.write(flat1217) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1786 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1794 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1786 = None - fields1209 = _t1786 - assert fields1209 is not None - unwrapped_fields1210 = fields1209 + _t1794 = None + fields1213 = _t1794 + assert fields1213 is not None + unwrapped_fields1214 = fields1213 self.write("(<=") self.indent_sexp() self.newline() - field1211 = unwrapped_fields1210[0] - self.pretty_term(field1211) + field1215 = unwrapped_fields1214[0] + self.pretty_term(field1215) self.newline() - field1212 = unwrapped_fields1210[1] - self.pretty_term(field1212) + field1216 = unwrapped_fields1214[1] + self.pretty_term(field1216) self.dedent() self.write(")") def pretty_gt(self, msg: logic_pb2.Primitive): - flat1218 = self._try_flat(msg, self.pretty_gt) - if flat1218 is not None: - assert flat1218 is not None - self.write(flat1218) + flat1222 = self._try_flat(msg, self.pretty_gt) + if flat1222 is not None: + assert flat1222 is not None + self.write(flat1222) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1787 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1795 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1787 = None - fields1214 = _t1787 - assert fields1214 is not None - unwrapped_fields1215 = fields1214 + _t1795 = None + fields1218 = _t1795 + assert fields1218 is not None + unwrapped_fields1219 = fields1218 self.write("(>") self.indent_sexp() self.newline() - field1216 = unwrapped_fields1215[0] - self.pretty_term(field1216) + field1220 = unwrapped_fields1219[0] + self.pretty_term(field1220) self.newline() - field1217 = unwrapped_fields1215[1] - self.pretty_term(field1217) + field1221 = unwrapped_fields1219[1] + self.pretty_term(field1221) self.dedent() self.write(")") def pretty_gt_eq(self, msg: logic_pb2.Primitive): - flat1223 = self._try_flat(msg, self.pretty_gt_eq) - if flat1223 is not None: - assert flat1223 is not None - self.write(flat1223) + flat1227 = self._try_flat(msg, self.pretty_gt_eq) + if flat1227 is not None: + assert flat1227 is not None + self.write(flat1227) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1788 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1796 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1788 = None - fields1219 = _t1788 - assert fields1219 is not None - unwrapped_fields1220 = fields1219 + _t1796 = None + fields1223 = _t1796 + assert fields1223 is not None + unwrapped_fields1224 = fields1223 self.write("(>=") self.indent_sexp() self.newline() - field1221 = unwrapped_fields1220[0] - self.pretty_term(field1221) + field1225 = unwrapped_fields1224[0] + self.pretty_term(field1225) self.newline() - field1222 = unwrapped_fields1220[1] - self.pretty_term(field1222) + field1226 = unwrapped_fields1224[1] + self.pretty_term(field1226) self.dedent() self.write(")") def pretty_add(self, msg: logic_pb2.Primitive): - flat1229 = self._try_flat(msg, self.pretty_add) - if flat1229 is not None: - assert flat1229 is not None - self.write(flat1229) + flat1233 = self._try_flat(msg, self.pretty_add) + if flat1233 is not None: + assert flat1233 is not None + self.write(flat1233) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1789 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1797 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1789 = None - fields1224 = _t1789 - assert fields1224 is not None - unwrapped_fields1225 = fields1224 + _t1797 = None + fields1228 = _t1797 + assert fields1228 is not None + unwrapped_fields1229 = fields1228 self.write("(+") self.indent_sexp() self.newline() - field1226 = unwrapped_fields1225[0] - self.pretty_term(field1226) + field1230 = unwrapped_fields1229[0] + self.pretty_term(field1230) self.newline() - field1227 = unwrapped_fields1225[1] - self.pretty_term(field1227) + field1231 = unwrapped_fields1229[1] + self.pretty_term(field1231) self.newline() - field1228 = unwrapped_fields1225[2] - self.pretty_term(field1228) + field1232 = unwrapped_fields1229[2] + self.pretty_term(field1232) self.dedent() self.write(")") def pretty_minus(self, msg: logic_pb2.Primitive): - flat1235 = self._try_flat(msg, self.pretty_minus) - if flat1235 is not None: - assert flat1235 is not None - self.write(flat1235) + flat1239 = self._try_flat(msg, self.pretty_minus) + if flat1239 is not None: + assert flat1239 is not None + self.write(flat1239) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1790 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1798 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1790 = None - fields1230 = _t1790 - assert fields1230 is not None - unwrapped_fields1231 = fields1230 + _t1798 = None + fields1234 = _t1798 + assert fields1234 is not None + unwrapped_fields1235 = fields1234 self.write("(-") self.indent_sexp() self.newline() - field1232 = unwrapped_fields1231[0] - self.pretty_term(field1232) + field1236 = unwrapped_fields1235[0] + self.pretty_term(field1236) self.newline() - field1233 = unwrapped_fields1231[1] - self.pretty_term(field1233) + field1237 = unwrapped_fields1235[1] + self.pretty_term(field1237) self.newline() - field1234 = unwrapped_fields1231[2] - self.pretty_term(field1234) + field1238 = unwrapped_fields1235[2] + self.pretty_term(field1238) self.dedent() self.write(")") def pretty_multiply(self, msg: logic_pb2.Primitive): - flat1241 = self._try_flat(msg, self.pretty_multiply) - if flat1241 is not None: - assert flat1241 is not None - self.write(flat1241) + flat1245 = self._try_flat(msg, self.pretty_multiply) + if flat1245 is not None: + assert flat1245 is not None + self.write(flat1245) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1791 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1799 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1791 = None - fields1236 = _t1791 - assert fields1236 is not None - unwrapped_fields1237 = fields1236 + _t1799 = None + fields1240 = _t1799 + assert fields1240 is not None + unwrapped_fields1241 = fields1240 self.write("(*") self.indent_sexp() self.newline() - field1238 = unwrapped_fields1237[0] - self.pretty_term(field1238) + field1242 = unwrapped_fields1241[0] + self.pretty_term(field1242) self.newline() - field1239 = unwrapped_fields1237[1] - self.pretty_term(field1239) + field1243 = unwrapped_fields1241[1] + self.pretty_term(field1243) self.newline() - field1240 = unwrapped_fields1237[2] - self.pretty_term(field1240) + field1244 = unwrapped_fields1241[2] + self.pretty_term(field1244) self.dedent() self.write(")") def pretty_divide(self, msg: logic_pb2.Primitive): - flat1247 = self._try_flat(msg, self.pretty_divide) - if flat1247 is not None: - assert flat1247 is not None - self.write(flat1247) + flat1251 = self._try_flat(msg, self.pretty_divide) + if flat1251 is not None: + assert flat1251 is not None + self.write(flat1251) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1792 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1800 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1792 = None - fields1242 = _t1792 - assert fields1242 is not None - unwrapped_fields1243 = fields1242 + _t1800 = None + fields1246 = _t1800 + assert fields1246 is not None + unwrapped_fields1247 = fields1246 self.write("(/") self.indent_sexp() self.newline() - field1244 = unwrapped_fields1243[0] - self.pretty_term(field1244) + field1248 = unwrapped_fields1247[0] + self.pretty_term(field1248) self.newline() - field1245 = unwrapped_fields1243[1] - self.pretty_term(field1245) + field1249 = unwrapped_fields1247[1] + self.pretty_term(field1249) self.newline() - field1246 = unwrapped_fields1243[2] - self.pretty_term(field1246) + field1250 = unwrapped_fields1247[2] + self.pretty_term(field1250) self.dedent() self.write(")") def pretty_rel_term(self, msg: logic_pb2.RelTerm): - flat1252 = self._try_flat(msg, self.pretty_rel_term) - if flat1252 is not None: - assert flat1252 is not None - self.write(flat1252) + flat1256 = self._try_flat(msg, self.pretty_rel_term) + if flat1256 is not None: + assert flat1256 is not None + self.write(flat1256) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("specialized_value"): - _t1793 = _dollar_dollar.specialized_value + _t1801 = _dollar_dollar.specialized_value else: - _t1793 = None - deconstruct_result1250 = _t1793 - if deconstruct_result1250 is not None: - assert deconstruct_result1250 is not None - unwrapped1251 = deconstruct_result1250 - self.pretty_specialized_value(unwrapped1251) + _t1801 = None + deconstruct_result1254 = _t1801 + if deconstruct_result1254 is not None: + assert deconstruct_result1254 is not None + unwrapped1255 = deconstruct_result1254 + self.pretty_specialized_value(unwrapped1255) else: _dollar_dollar = msg if _dollar_dollar.HasField("term"): - _t1794 = _dollar_dollar.term + _t1802 = _dollar_dollar.term else: - _t1794 = None - deconstruct_result1248 = _t1794 - if deconstruct_result1248 is not None: - assert deconstruct_result1248 is not None - unwrapped1249 = deconstruct_result1248 - self.pretty_term(unwrapped1249) + _t1802 = None + deconstruct_result1252 = _t1802 + if deconstruct_result1252 is not None: + assert deconstruct_result1252 is not None + unwrapped1253 = deconstruct_result1252 + self.pretty_term(unwrapped1253) else: raise ParseError("No matching rule for rel_term") def pretty_specialized_value(self, msg: logic_pb2.Value): - flat1254 = self._try_flat(msg, self.pretty_specialized_value) - if flat1254 is not None: - assert flat1254 is not None - self.write(flat1254) + flat1258 = self._try_flat(msg, self.pretty_specialized_value) + if flat1258 is not None: + assert flat1258 is not None + self.write(flat1258) return None else: - fields1253 = msg + fields1257 = msg self.write("#") - self.pretty_raw_value(fields1253) + self.pretty_raw_value(fields1257) def pretty_rel_atom(self, msg: logic_pb2.RelAtom): - flat1261 = self._try_flat(msg, self.pretty_rel_atom) - if flat1261 is not None: - assert flat1261 is not None - self.write(flat1261) + flat1265 = self._try_flat(msg, self.pretty_rel_atom) + if flat1265 is not None: + assert flat1265 is not None + self.write(flat1265) return None else: _dollar_dollar = msg - fields1255 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1255 is not None - unwrapped_fields1256 = fields1255 + fields1259 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1259 is not None + unwrapped_fields1260 = fields1259 self.write("(relatom") self.indent_sexp() self.newline() - field1257 = unwrapped_fields1256[0] - self.pretty_name(field1257) - field1258 = unwrapped_fields1256[1] - if not len(field1258) == 0: + field1261 = unwrapped_fields1260[0] + self.pretty_name(field1261) + field1262 = unwrapped_fields1260[1] + if not len(field1262) == 0: self.newline() - for i1260, elem1259 in enumerate(field1258): - if (i1260 > 0): + for i1264, elem1263 in enumerate(field1262): + if (i1264 > 0): self.newline() - self.pretty_rel_term(elem1259) + self.pretty_rel_term(elem1263) self.dedent() self.write(")") def pretty_cast(self, msg: logic_pb2.Cast): - flat1266 = self._try_flat(msg, self.pretty_cast) - if flat1266 is not None: - assert flat1266 is not None - self.write(flat1266) + flat1270 = self._try_flat(msg, self.pretty_cast) + if flat1270 is not None: + assert flat1270 is not None + self.write(flat1270) return None else: _dollar_dollar = msg - fields1262 = (_dollar_dollar.input, _dollar_dollar.result,) - assert fields1262 is not None - unwrapped_fields1263 = fields1262 + fields1266 = (_dollar_dollar.input, _dollar_dollar.result,) + assert fields1266 is not None + unwrapped_fields1267 = fields1266 self.write("(cast") self.indent_sexp() self.newline() - field1264 = unwrapped_fields1263[0] - self.pretty_term(field1264) + field1268 = unwrapped_fields1267[0] + self.pretty_term(field1268) self.newline() - field1265 = unwrapped_fields1263[1] - self.pretty_term(field1265) + field1269 = unwrapped_fields1267[1] + self.pretty_term(field1269) self.dedent() self.write(")") def pretty_attrs(self, msg: Sequence[logic_pb2.Attribute]): - flat1270 = self._try_flat(msg, self.pretty_attrs) - if flat1270 is not None: - assert flat1270 is not None - self.write(flat1270) + flat1274 = self._try_flat(msg, self.pretty_attrs) + if flat1274 is not None: + assert flat1274 is not None + self.write(flat1274) return None else: - fields1267 = msg + fields1271 = msg self.write("(attrs") self.indent_sexp() - if not len(fields1267) == 0: + if not len(fields1271) == 0: self.newline() - for i1269, elem1268 in enumerate(fields1267): - if (i1269 > 0): + for i1273, elem1272 in enumerate(fields1271): + if (i1273 > 0): self.newline() - self.pretty_attribute(elem1268) + self.pretty_attribute(elem1272) self.dedent() self.write(")") def pretty_attribute(self, msg: logic_pb2.Attribute): - flat1277 = self._try_flat(msg, self.pretty_attribute) - if flat1277 is not None: - assert flat1277 is not None - self.write(flat1277) + flat1281 = self._try_flat(msg, self.pretty_attribute) + if flat1281 is not None: + assert flat1281 is not None + self.write(flat1281) return None else: _dollar_dollar = msg - fields1271 = (_dollar_dollar.name, _dollar_dollar.args,) - assert fields1271 is not None - unwrapped_fields1272 = fields1271 + fields1275 = (_dollar_dollar.name, _dollar_dollar.args,) + assert fields1275 is not None + unwrapped_fields1276 = fields1275 self.write("(attribute") self.indent_sexp() self.newline() - field1273 = unwrapped_fields1272[0] - self.pretty_name(field1273) - field1274 = unwrapped_fields1272[1] - if not len(field1274) == 0: + field1277 = unwrapped_fields1276[0] + self.pretty_name(field1277) + field1278 = unwrapped_fields1276[1] + if not len(field1278) == 0: self.newline() - for i1276, elem1275 in enumerate(field1274): - if (i1276 > 0): + for i1280, elem1279 in enumerate(field1278): + if (i1280 > 0): self.newline() - self.pretty_raw_value(elem1275) + self.pretty_raw_value(elem1279) self.dedent() self.write(")") def pretty_algorithm(self, msg: logic_pb2.Algorithm): - flat1286 = self._try_flat(msg, self.pretty_algorithm) - if flat1286 is not None: - assert flat1286 is not None - self.write(flat1286) + flat1290 = self._try_flat(msg, self.pretty_algorithm) + if flat1290 is not None: + assert flat1290 is not None + self.write(flat1290) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1795 = _dollar_dollar.attrs + _t1803 = _dollar_dollar.attrs else: - _t1795 = None - fields1278 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1795,) - assert fields1278 is not None - unwrapped_fields1279 = fields1278 + _t1803 = None + fields1282 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body, _t1803,) + assert fields1282 is not None + unwrapped_fields1283 = fields1282 self.write("(algorithm") self.indent_sexp() - field1280 = unwrapped_fields1279[0] - if not len(field1280) == 0: + field1284 = unwrapped_fields1283[0] + if not len(field1284) == 0: self.newline() - for i1282, elem1281 in enumerate(field1280): - if (i1282 > 0): + for i1286, elem1285 in enumerate(field1284): + if (i1286 > 0): self.newline() - self.pretty_relation_id(elem1281) + self.pretty_relation_id(elem1285) self.newline() - field1283 = unwrapped_fields1279[1] - self.pretty_script(field1283) - field1284 = unwrapped_fields1279[2] - if field1284 is not None: + field1287 = unwrapped_fields1283[1] + self.pretty_script(field1287) + field1288 = unwrapped_fields1283[2] + if field1288 is not None: self.newline() - assert field1284 is not None - opt_val1285 = field1284 - self.pretty_attrs(opt_val1285) + assert field1288 is not None + opt_val1289 = field1288 + self.pretty_attrs(opt_val1289) self.dedent() self.write(")") def pretty_script(self, msg: logic_pb2.Script): - flat1291 = self._try_flat(msg, self.pretty_script) - if flat1291 is not None: - assert flat1291 is not None - self.write(flat1291) + flat1295 = self._try_flat(msg, self.pretty_script) + if flat1295 is not None: + assert flat1295 is not None + self.write(flat1295) return None else: _dollar_dollar = msg - fields1287 = _dollar_dollar.constructs - assert fields1287 is not None - unwrapped_fields1288 = fields1287 + fields1291 = _dollar_dollar.constructs + assert fields1291 is not None + unwrapped_fields1292 = fields1291 self.write("(script") self.indent_sexp() - if not len(unwrapped_fields1288) == 0: + if not len(unwrapped_fields1292) == 0: self.newline() - for i1290, elem1289 in enumerate(unwrapped_fields1288): - if (i1290 > 0): + for i1294, elem1293 in enumerate(unwrapped_fields1292): + if (i1294 > 0): self.newline() - self.pretty_construct(elem1289) + self.pretty_construct(elem1293) self.dedent() self.write(")") def pretty_construct(self, msg: logic_pb2.Construct): - flat1296 = self._try_flat(msg, self.pretty_construct) - if flat1296 is not None: - assert flat1296 is not None - self.write(flat1296) + flat1300 = self._try_flat(msg, self.pretty_construct) + if flat1300 is not None: + assert flat1300 is not None + self.write(flat1300) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("loop"): - _t1796 = _dollar_dollar.loop + _t1804 = _dollar_dollar.loop else: - _t1796 = None - deconstruct_result1294 = _t1796 - if deconstruct_result1294 is not None: - assert deconstruct_result1294 is not None - unwrapped1295 = deconstruct_result1294 - self.pretty_loop(unwrapped1295) + _t1804 = None + deconstruct_result1298 = _t1804 + if deconstruct_result1298 is not None: + assert deconstruct_result1298 is not None + unwrapped1299 = deconstruct_result1298 + self.pretty_loop(unwrapped1299) else: _dollar_dollar = msg if _dollar_dollar.HasField("instruction"): - _t1797 = _dollar_dollar.instruction + _t1805 = _dollar_dollar.instruction else: - _t1797 = None - deconstruct_result1292 = _t1797 - if deconstruct_result1292 is not None: - assert deconstruct_result1292 is not None - unwrapped1293 = deconstruct_result1292 - self.pretty_instruction(unwrapped1293) + _t1805 = None + deconstruct_result1296 = _t1805 + if deconstruct_result1296 is not None: + assert deconstruct_result1296 is not None + unwrapped1297 = deconstruct_result1296 + self.pretty_instruction(unwrapped1297) else: raise ParseError("No matching rule for construct") def pretty_loop(self, msg: logic_pb2.Loop): - flat1303 = self._try_flat(msg, self.pretty_loop) - if flat1303 is not None: - assert flat1303 is not None - self.write(flat1303) + flat1307 = self._try_flat(msg, self.pretty_loop) + if flat1307 is not None: + assert flat1307 is not None + self.write(flat1307) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1798 = _dollar_dollar.attrs + _t1806 = _dollar_dollar.attrs else: - _t1798 = None - fields1297 = (_dollar_dollar.init, _dollar_dollar.body, _t1798,) - assert fields1297 is not None - unwrapped_fields1298 = fields1297 + _t1806 = None + fields1301 = (_dollar_dollar.init, _dollar_dollar.body, _t1806,) + assert fields1301 is not None + unwrapped_fields1302 = fields1301 self.write("(loop") self.indent_sexp() self.newline() - field1299 = unwrapped_fields1298[0] - self.pretty_init(field1299) + field1303 = unwrapped_fields1302[0] + self.pretty_init(field1303) self.newline() - field1300 = unwrapped_fields1298[1] - self.pretty_script(field1300) - field1301 = unwrapped_fields1298[2] - if field1301 is not None: + field1304 = unwrapped_fields1302[1] + self.pretty_script(field1304) + field1305 = unwrapped_fields1302[2] + if field1305 is not None: self.newline() - assert field1301 is not None - opt_val1302 = field1301 - self.pretty_attrs(opt_val1302) + assert field1305 is not None + opt_val1306 = field1305 + self.pretty_attrs(opt_val1306) self.dedent() self.write(")") def pretty_init(self, msg: Sequence[logic_pb2.Instruction]): - flat1307 = self._try_flat(msg, self.pretty_init) - if flat1307 is not None: - assert flat1307 is not None - self.write(flat1307) + flat1311 = self._try_flat(msg, self.pretty_init) + if flat1311 is not None: + assert flat1311 is not None + self.write(flat1311) return None else: - fields1304 = msg + fields1308 = msg self.write("(init") self.indent_sexp() - if not len(fields1304) == 0: + if not len(fields1308) == 0: self.newline() - for i1306, elem1305 in enumerate(fields1304): - if (i1306 > 0): + for i1310, elem1309 in enumerate(fields1308): + if (i1310 > 0): self.newline() - self.pretty_instruction(elem1305) + self.pretty_instruction(elem1309) self.dedent() self.write(")") def pretty_instruction(self, msg: logic_pb2.Instruction): - flat1318 = self._try_flat(msg, self.pretty_instruction) - if flat1318 is not None: - assert flat1318 is not None - self.write(flat1318) + flat1322 = self._try_flat(msg, self.pretty_instruction) + if flat1322 is not None: + assert flat1322 is not None + self.write(flat1322) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("assign"): - _t1799 = _dollar_dollar.assign + _t1807 = _dollar_dollar.assign else: - _t1799 = None - deconstruct_result1316 = _t1799 - if deconstruct_result1316 is not None: - assert deconstruct_result1316 is not None - unwrapped1317 = deconstruct_result1316 - self.pretty_assign(unwrapped1317) + _t1807 = None + deconstruct_result1320 = _t1807 + if deconstruct_result1320 is not None: + assert deconstruct_result1320 is not None + unwrapped1321 = deconstruct_result1320 + self.pretty_assign(unwrapped1321) else: _dollar_dollar = msg if _dollar_dollar.HasField("upsert"): - _t1800 = _dollar_dollar.upsert + _t1808 = _dollar_dollar.upsert else: - _t1800 = None - deconstruct_result1314 = _t1800 - if deconstruct_result1314 is not None: - assert deconstruct_result1314 is not None - unwrapped1315 = deconstruct_result1314 - self.pretty_upsert(unwrapped1315) + _t1808 = None + deconstruct_result1318 = _t1808 + if deconstruct_result1318 is not None: + assert deconstruct_result1318 is not None + unwrapped1319 = deconstruct_result1318 + self.pretty_upsert(unwrapped1319) else: _dollar_dollar = msg if _dollar_dollar.HasField("break"): - _t1801 = getattr(_dollar_dollar, 'break') + _t1809 = getattr(_dollar_dollar, 'break') else: - _t1801 = None - deconstruct_result1312 = _t1801 - if deconstruct_result1312 is not None: - assert deconstruct_result1312 is not None - unwrapped1313 = deconstruct_result1312 - self.pretty_break(unwrapped1313) + _t1809 = None + deconstruct_result1316 = _t1809 + if deconstruct_result1316 is not None: + assert deconstruct_result1316 is not None + unwrapped1317 = deconstruct_result1316 + self.pretty_break(unwrapped1317) else: _dollar_dollar = msg if _dollar_dollar.HasField("monoid_def"): - _t1802 = _dollar_dollar.monoid_def + _t1810 = _dollar_dollar.monoid_def else: - _t1802 = None - deconstruct_result1310 = _t1802 - if deconstruct_result1310 is not None: - assert deconstruct_result1310 is not None - unwrapped1311 = deconstruct_result1310 - self.pretty_monoid_def(unwrapped1311) + _t1810 = None + deconstruct_result1314 = _t1810 + if deconstruct_result1314 is not None: + assert deconstruct_result1314 is not None + unwrapped1315 = deconstruct_result1314 + self.pretty_monoid_def(unwrapped1315) else: _dollar_dollar = msg if _dollar_dollar.HasField("monus_def"): - _t1803 = _dollar_dollar.monus_def + _t1811 = _dollar_dollar.monus_def else: - _t1803 = None - deconstruct_result1308 = _t1803 - if deconstruct_result1308 is not None: - assert deconstruct_result1308 is not None - unwrapped1309 = deconstruct_result1308 - self.pretty_monus_def(unwrapped1309) + _t1811 = None + deconstruct_result1312 = _t1811 + if deconstruct_result1312 is not None: + assert deconstruct_result1312 is not None + unwrapped1313 = deconstruct_result1312 + self.pretty_monus_def(unwrapped1313) else: raise ParseError("No matching rule for instruction") def pretty_assign(self, msg: logic_pb2.Assign): - flat1325 = self._try_flat(msg, self.pretty_assign) - if flat1325 is not None: - assert flat1325 is not None - self.write(flat1325) + flat1329 = self._try_flat(msg, self.pretty_assign) + if flat1329 is not None: + assert flat1329 is not None + self.write(flat1329) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1804 = _dollar_dollar.attrs + _t1812 = _dollar_dollar.attrs else: - _t1804 = None - fields1319 = (_dollar_dollar.name, _dollar_dollar.body, _t1804,) - assert fields1319 is not None - unwrapped_fields1320 = fields1319 + _t1812 = None + fields1323 = (_dollar_dollar.name, _dollar_dollar.body, _t1812,) + assert fields1323 is not None + unwrapped_fields1324 = fields1323 self.write("(assign") self.indent_sexp() self.newline() - field1321 = unwrapped_fields1320[0] - self.pretty_relation_id(field1321) + field1325 = unwrapped_fields1324[0] + self.pretty_relation_id(field1325) self.newline() - field1322 = unwrapped_fields1320[1] - self.pretty_abstraction(field1322) - field1323 = unwrapped_fields1320[2] - if field1323 is not None: + field1326 = unwrapped_fields1324[1] + self.pretty_abstraction(field1326) + field1327 = unwrapped_fields1324[2] + if field1327 is not None: self.newline() - assert field1323 is not None - opt_val1324 = field1323 - self.pretty_attrs(opt_val1324) + assert field1327 is not None + opt_val1328 = field1327 + self.pretty_attrs(opt_val1328) self.dedent() self.write(")") def pretty_upsert(self, msg: logic_pb2.Upsert): - flat1332 = self._try_flat(msg, self.pretty_upsert) - if flat1332 is not None: - assert flat1332 is not None - self.write(flat1332) + flat1336 = self._try_flat(msg, self.pretty_upsert) + 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: - _t1805 = _dollar_dollar.attrs + _t1813 = _dollar_dollar.attrs else: - _t1805 = None - fields1326 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1805,) - assert fields1326 is not None - unwrapped_fields1327 = fields1326 + _t1813 = None + fields1330 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1813,) + assert fields1330 is not None + unwrapped_fields1331 = fields1330 self.write("(upsert") self.indent_sexp() self.newline() - field1328 = unwrapped_fields1327[0] - self.pretty_relation_id(field1328) + field1332 = unwrapped_fields1331[0] + self.pretty_relation_id(field1332) self.newline() - field1329 = unwrapped_fields1327[1] - self.pretty_abstraction_with_arity(field1329) - field1330 = unwrapped_fields1327[2] - if field1330 is not None: + field1333 = unwrapped_fields1331[1] + self.pretty_abstraction_with_arity(field1333) + field1334 = unwrapped_fields1331[2] + if field1334 is not None: self.newline() - assert field1330 is not None - opt_val1331 = field1330 - self.pretty_attrs(opt_val1331) + assert field1334 is not None + opt_val1335 = field1334 + self.pretty_attrs(opt_val1335) self.dedent() self.write(")") def pretty_abstraction_with_arity(self, msg: tuple[logic_pb2.Abstraction, int]): - flat1337 = self._try_flat(msg, self.pretty_abstraction_with_arity) - if flat1337 is not None: - assert flat1337 is not None - self.write(flat1337) + flat1341 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1341 is not None: + assert flat1341 is not None + self.write(flat1341) return None else: _dollar_dollar = msg - _t1806 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) - fields1333 = (_t1806, _dollar_dollar[0].value,) - assert fields1333 is not None - unwrapped_fields1334 = fields1333 + _t1814 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + fields1337 = (_t1814, _dollar_dollar[0].value,) + assert fields1337 is not None + unwrapped_fields1338 = fields1337 self.write("(") self.indent() - field1335 = unwrapped_fields1334[0] - self.pretty_bindings(field1335) + field1339 = unwrapped_fields1338[0] + self.pretty_bindings(field1339) self.newline() - field1336 = unwrapped_fields1334[1] - self.pretty_formula(field1336) + field1340 = unwrapped_fields1338[1] + self.pretty_formula(field1340) self.dedent() self.write(")") def pretty_break(self, msg: logic_pb2.Break): - flat1344 = self._try_flat(msg, self.pretty_break) - if flat1344 is not None: - assert flat1344 is not None - self.write(flat1344) + flat1348 = self._try_flat(msg, self.pretty_break) + if flat1348 is not None: + assert flat1348 is not None + self.write(flat1348) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1807 = _dollar_dollar.attrs + _t1815 = _dollar_dollar.attrs else: - _t1807 = None - fields1338 = (_dollar_dollar.name, _dollar_dollar.body, _t1807,) - assert fields1338 is not None - unwrapped_fields1339 = fields1338 + _t1815 = None + fields1342 = (_dollar_dollar.name, _dollar_dollar.body, _t1815,) + assert fields1342 is not None + unwrapped_fields1343 = fields1342 self.write("(break") self.indent_sexp() self.newline() - field1340 = unwrapped_fields1339[0] - self.pretty_relation_id(field1340) + field1344 = unwrapped_fields1343[0] + self.pretty_relation_id(field1344) self.newline() - field1341 = unwrapped_fields1339[1] - self.pretty_abstraction(field1341) - field1342 = unwrapped_fields1339[2] - if field1342 is not None: + field1345 = unwrapped_fields1343[1] + self.pretty_abstraction(field1345) + field1346 = unwrapped_fields1343[2] + if field1346 is not None: self.newline() - assert field1342 is not None - opt_val1343 = field1342 - self.pretty_attrs(opt_val1343) + assert field1346 is not None + opt_val1347 = field1346 + self.pretty_attrs(opt_val1347) self.dedent() self.write(")") def pretty_monoid_def(self, msg: logic_pb2.MonoidDef): - flat1352 = self._try_flat(msg, self.pretty_monoid_def) - if flat1352 is not None: - assert flat1352 is not None - self.write(flat1352) + flat1356 = self._try_flat(msg, self.pretty_monoid_def) + if flat1356 is not None: + assert flat1356 is not None + self.write(flat1356) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1808 = _dollar_dollar.attrs + _t1816 = _dollar_dollar.attrs else: - _t1808 = None - fields1345 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1808,) - assert fields1345 is not None - unwrapped_fields1346 = fields1345 + _t1816 = None + fields1349 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1816,) + assert fields1349 is not None + unwrapped_fields1350 = fields1349 self.write("(monoid") self.indent_sexp() self.newline() - field1347 = unwrapped_fields1346[0] - self.pretty_monoid(field1347) + field1351 = unwrapped_fields1350[0] + self.pretty_monoid(field1351) self.newline() - field1348 = unwrapped_fields1346[1] - self.pretty_relation_id(field1348) + field1352 = unwrapped_fields1350[1] + self.pretty_relation_id(field1352) self.newline() - field1349 = unwrapped_fields1346[2] - self.pretty_abstraction_with_arity(field1349) - field1350 = unwrapped_fields1346[3] - if field1350 is not None: + field1353 = unwrapped_fields1350[2] + self.pretty_abstraction_with_arity(field1353) + field1354 = unwrapped_fields1350[3] + if field1354 is not None: self.newline() - assert field1350 is not None - opt_val1351 = field1350 - self.pretty_attrs(opt_val1351) + assert field1354 is not None + opt_val1355 = field1354 + self.pretty_attrs(opt_val1355) self.dedent() self.write(")") def pretty_monoid(self, msg: logic_pb2.Monoid): - flat1361 = self._try_flat(msg, self.pretty_monoid) - if flat1361 is not None: - assert flat1361 is not None - self.write(flat1361) + flat1365 = self._try_flat(msg, self.pretty_monoid) + if flat1365 is not None: + assert flat1365 is not None + self.write(flat1365) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("or_monoid"): - _t1809 = _dollar_dollar.or_monoid + _t1817 = _dollar_dollar.or_monoid else: - _t1809 = None - deconstruct_result1359 = _t1809 - if deconstruct_result1359 is not None: - assert deconstruct_result1359 is not None - unwrapped1360 = deconstruct_result1359 - self.pretty_or_monoid(unwrapped1360) + _t1817 = None + deconstruct_result1363 = _t1817 + if deconstruct_result1363 is not None: + assert deconstruct_result1363 is not None + unwrapped1364 = deconstruct_result1363 + self.pretty_or_monoid(unwrapped1364) else: _dollar_dollar = msg if _dollar_dollar.HasField("min_monoid"): - _t1810 = _dollar_dollar.min_monoid + _t1818 = _dollar_dollar.min_monoid else: - _t1810 = None - deconstruct_result1357 = _t1810 - if deconstruct_result1357 is not None: - assert deconstruct_result1357 is not None - unwrapped1358 = deconstruct_result1357 - self.pretty_min_monoid(unwrapped1358) + _t1818 = None + deconstruct_result1361 = _t1818 + if deconstruct_result1361 is not None: + assert deconstruct_result1361 is not None + unwrapped1362 = deconstruct_result1361 + self.pretty_min_monoid(unwrapped1362) else: _dollar_dollar = msg if _dollar_dollar.HasField("max_monoid"): - _t1811 = _dollar_dollar.max_monoid + _t1819 = _dollar_dollar.max_monoid else: - _t1811 = None - deconstruct_result1355 = _t1811 - if deconstruct_result1355 is not None: - assert deconstruct_result1355 is not None - unwrapped1356 = deconstruct_result1355 - self.pretty_max_monoid(unwrapped1356) + _t1819 = None + deconstruct_result1359 = _t1819 + if deconstruct_result1359 is not None: + assert deconstruct_result1359 is not None + unwrapped1360 = deconstruct_result1359 + self.pretty_max_monoid(unwrapped1360) else: _dollar_dollar = msg if _dollar_dollar.HasField("sum_monoid"): - _t1812 = _dollar_dollar.sum_monoid + _t1820 = _dollar_dollar.sum_monoid else: - _t1812 = None - deconstruct_result1353 = _t1812 - if deconstruct_result1353 is not None: - assert deconstruct_result1353 is not None - unwrapped1354 = deconstruct_result1353 - self.pretty_sum_monoid(unwrapped1354) + _t1820 = None + deconstruct_result1357 = _t1820 + if deconstruct_result1357 is not None: + assert deconstruct_result1357 is not None + unwrapped1358 = deconstruct_result1357 + self.pretty_sum_monoid(unwrapped1358) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1362 = msg + fields1366 = msg self.write("(or)") def pretty_min_monoid(self, msg: logic_pb2.MinMonoid): - flat1365 = self._try_flat(msg, self.pretty_min_monoid) - if flat1365 is not None: - assert flat1365 is not None - self.write(flat1365) + flat1369 = self._try_flat(msg, self.pretty_min_monoid) + if flat1369 is not None: + assert flat1369 is not None + self.write(flat1369) return None else: _dollar_dollar = msg - fields1363 = _dollar_dollar.type - assert fields1363 is not None - unwrapped_fields1364 = fields1363 + fields1367 = _dollar_dollar.type + assert fields1367 is not None + unwrapped_fields1368 = fields1367 self.write("(min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1364) + self.pretty_type(unwrapped_fields1368) self.dedent() self.write(")") def pretty_max_monoid(self, msg: logic_pb2.MaxMonoid): - flat1368 = self._try_flat(msg, self.pretty_max_monoid) - if flat1368 is not None: - assert flat1368 is not None - self.write(flat1368) + flat1372 = self._try_flat(msg, self.pretty_max_monoid) + if flat1372 is not None: + assert flat1372 is not None + self.write(flat1372) return None else: _dollar_dollar = msg - fields1366 = _dollar_dollar.type - assert fields1366 is not None - unwrapped_fields1367 = fields1366 + fields1370 = _dollar_dollar.type + assert fields1370 is not None + unwrapped_fields1371 = fields1370 self.write("(max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1367) + self.pretty_type(unwrapped_fields1371) self.dedent() self.write(")") def pretty_sum_monoid(self, msg: logic_pb2.SumMonoid): - flat1371 = self._try_flat(msg, self.pretty_sum_monoid) - if flat1371 is not None: - assert flat1371 is not None - self.write(flat1371) + flat1375 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1375 is not None: + assert flat1375 is not None + self.write(flat1375) return None else: _dollar_dollar = msg - fields1369 = _dollar_dollar.type - assert fields1369 is not None - unwrapped_fields1370 = fields1369 + fields1373 = _dollar_dollar.type + assert fields1373 is not None + unwrapped_fields1374 = fields1373 self.write("(sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1370) + self.pretty_type(unwrapped_fields1374) self.dedent() self.write(")") def pretty_monus_def(self, msg: logic_pb2.MonusDef): - flat1379 = self._try_flat(msg, self.pretty_monus_def) - if flat1379 is not None: - assert flat1379 is not None - self.write(flat1379) + flat1383 = self._try_flat(msg, self.pretty_monus_def) + if flat1383 is not None: + assert flat1383 is not None + self.write(flat1383) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1813 = _dollar_dollar.attrs + _t1821 = _dollar_dollar.attrs else: - _t1813 = None - fields1372 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1813,) - assert fields1372 is not None - unwrapped_fields1373 = fields1372 + _t1821 = None + fields1376 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1821,) + assert fields1376 is not None + unwrapped_fields1377 = fields1376 self.write("(monus") self.indent_sexp() self.newline() - field1374 = unwrapped_fields1373[0] - self.pretty_monoid(field1374) + field1378 = unwrapped_fields1377[0] + self.pretty_monoid(field1378) self.newline() - field1375 = unwrapped_fields1373[1] - self.pretty_relation_id(field1375) + field1379 = unwrapped_fields1377[1] + self.pretty_relation_id(field1379) self.newline() - field1376 = unwrapped_fields1373[2] - self.pretty_abstraction_with_arity(field1376) - field1377 = unwrapped_fields1373[3] - if field1377 is not None: + field1380 = unwrapped_fields1377[2] + self.pretty_abstraction_with_arity(field1380) + field1381 = unwrapped_fields1377[3] + if field1381 is not None: self.newline() - assert field1377 is not None - opt_val1378 = field1377 - self.pretty_attrs(opt_val1378) + assert field1381 is not None + opt_val1382 = field1381 + self.pretty_attrs(opt_val1382) self.dedent() self.write(")") def pretty_constraint(self, msg: logic_pb2.Constraint): - flat1386 = self._try_flat(msg, self.pretty_constraint) - if flat1386 is not None: - assert flat1386 is not None - self.write(flat1386) + flat1390 = self._try_flat(msg, self.pretty_constraint) + if flat1390 is not None: + assert flat1390 is not None + self.write(flat1390) return None else: _dollar_dollar = msg - fields1380 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) - assert fields1380 is not None - unwrapped_fields1381 = fields1380 + fields1384 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) + assert fields1384 is not None + unwrapped_fields1385 = fields1384 self.write("(functional_dependency") self.indent_sexp() self.newline() - field1382 = unwrapped_fields1381[0] - self.pretty_relation_id(field1382) + field1386 = unwrapped_fields1385[0] + self.pretty_relation_id(field1386) self.newline() - field1383 = unwrapped_fields1381[1] - self.pretty_abstraction(field1383) + field1387 = unwrapped_fields1385[1] + self.pretty_abstraction(field1387) self.newline() - field1384 = unwrapped_fields1381[2] - self.pretty_functional_dependency_keys(field1384) + field1388 = unwrapped_fields1385[2] + self.pretty_functional_dependency_keys(field1388) self.newline() - field1385 = unwrapped_fields1381[3] - self.pretty_functional_dependency_values(field1385) + field1389 = unwrapped_fields1385[3] + self.pretty_functional_dependency_values(field1389) self.dedent() self.write(")") def pretty_functional_dependency_keys(self, msg: Sequence[logic_pb2.Var]): - flat1390 = self._try_flat(msg, self.pretty_functional_dependency_keys) - if flat1390 is not None: - assert flat1390 is not None - self.write(flat1390) + flat1394 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1394 is not None: + assert flat1394 is not None + self.write(flat1394) return None else: - fields1387 = msg + fields1391 = msg self.write("(keys") self.indent_sexp() - if not len(fields1387) == 0: + if not len(fields1391) == 0: self.newline() - for i1389, elem1388 in enumerate(fields1387): - if (i1389 > 0): + for i1393, elem1392 in enumerate(fields1391): + if (i1393 > 0): self.newline() - self.pretty_var(elem1388) + self.pretty_var(elem1392) self.dedent() self.write(")") def pretty_functional_dependency_values(self, msg: Sequence[logic_pb2.Var]): - flat1394 = self._try_flat(msg, self.pretty_functional_dependency_values) - if flat1394 is not None: - assert flat1394 is not None - self.write(flat1394) + flat1398 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1398 is not None: + assert flat1398 is not None + self.write(flat1398) return None else: - fields1391 = msg + fields1395 = msg self.write("(values") self.indent_sexp() - if not len(fields1391) == 0: + if not len(fields1395) == 0: self.newline() - for i1393, elem1392 in enumerate(fields1391): - if (i1393 > 0): + for i1397, elem1396 in enumerate(fields1395): + if (i1397 > 0): self.newline() - self.pretty_var(elem1392) + self.pretty_var(elem1396) self.dedent() self.write(")") def pretty_data(self, msg: logic_pb2.Data): - flat1403 = self._try_flat(msg, self.pretty_data) - if flat1403 is not None: - assert flat1403 is not None - self.write(flat1403) + flat1407 = self._try_flat(msg, self.pretty_data) + if flat1407 is not None: + assert flat1407 is not None + self.write(flat1407) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("edb"): - _t1814 = _dollar_dollar.edb + _t1822 = _dollar_dollar.edb else: - _t1814 = None - deconstruct_result1401 = _t1814 - if deconstruct_result1401 is not None: - assert deconstruct_result1401 is not None - unwrapped1402 = deconstruct_result1401 - self.pretty_edb(unwrapped1402) + _t1822 = None + deconstruct_result1405 = _t1822 + if deconstruct_result1405 is not None: + assert deconstruct_result1405 is not None + unwrapped1406 = deconstruct_result1405 + self.pretty_edb(unwrapped1406) else: _dollar_dollar = msg if _dollar_dollar.HasField("betree_relation"): - _t1815 = _dollar_dollar.betree_relation + _t1823 = _dollar_dollar.betree_relation else: - _t1815 = None - deconstruct_result1399 = _t1815 - if deconstruct_result1399 is not None: - assert deconstruct_result1399 is not None - unwrapped1400 = deconstruct_result1399 - self.pretty_betree_relation(unwrapped1400) + _t1823 = None + deconstruct_result1403 = _t1823 + if deconstruct_result1403 is not None: + assert deconstruct_result1403 is not None + unwrapped1404 = deconstruct_result1403 + self.pretty_betree_relation(unwrapped1404) else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_data"): - _t1816 = _dollar_dollar.csv_data + _t1824 = _dollar_dollar.csv_data else: - _t1816 = None - deconstruct_result1397 = _t1816 - if deconstruct_result1397 is not None: - assert deconstruct_result1397 is not None - unwrapped1398 = deconstruct_result1397 - self.pretty_csv_data(unwrapped1398) + _t1824 = None + deconstruct_result1401 = _t1824 + if deconstruct_result1401 is not None: + assert deconstruct_result1401 is not None + unwrapped1402 = deconstruct_result1401 + self.pretty_csv_data(unwrapped1402) else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_data"): - _t1817 = _dollar_dollar.iceberg_data + _t1825 = _dollar_dollar.iceberg_data else: - _t1817 = None - deconstruct_result1395 = _t1817 - if deconstruct_result1395 is not None: - assert deconstruct_result1395 is not None - unwrapped1396 = deconstruct_result1395 - self.pretty_iceberg_data(unwrapped1396) + _t1825 = None + deconstruct_result1399 = _t1825 + if deconstruct_result1399 is not None: + assert deconstruct_result1399 is not None + unwrapped1400 = deconstruct_result1399 + self.pretty_iceberg_data(unwrapped1400) else: raise ParseError("No matching rule for data") def pretty_edb(self, msg: logic_pb2.EDB): - flat1409 = self._try_flat(msg, self.pretty_edb) - if flat1409 is not None: - assert flat1409 is not None - self.write(flat1409) + flat1413 = self._try_flat(msg, self.pretty_edb) + if flat1413 is not None: + assert flat1413 is not None + self.write(flat1413) return None else: _dollar_dollar = msg - fields1404 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - assert fields1404 is not None - unwrapped_fields1405 = fields1404 + fields1408 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + assert fields1408 is not None + unwrapped_fields1409 = fields1408 self.write("(edb") self.indent_sexp() self.newline() - field1406 = unwrapped_fields1405[0] - self.pretty_relation_id(field1406) + field1410 = unwrapped_fields1409[0] + self.pretty_relation_id(field1410) self.newline() - field1407 = unwrapped_fields1405[1] - self.pretty_edb_path(field1407) + field1411 = unwrapped_fields1409[1] + self.pretty_edb_path(field1411) self.newline() - field1408 = unwrapped_fields1405[2] - self.pretty_edb_types(field1408) + field1412 = unwrapped_fields1409[2] + self.pretty_edb_types(field1412) self.dedent() self.write(")") def pretty_edb_path(self, msg: Sequence[str]): - flat1413 = self._try_flat(msg, self.pretty_edb_path) - if flat1413 is not None: - assert flat1413 is not None - self.write(flat1413) + flat1417 = self._try_flat(msg, self.pretty_edb_path) + if flat1417 is not None: + assert flat1417 is not None + self.write(flat1417) return None else: - fields1410 = msg + fields1414 = msg self.write("[") self.indent() - for i1412, elem1411 in enumerate(fields1410): - if (i1412 > 0): + for i1416, elem1415 in enumerate(fields1414): + if (i1416 > 0): self.newline() - self.write(self.format_string_value(elem1411)) + self.write(self.format_string_value(elem1415)) self.dedent() self.write("]") def pretty_edb_types(self, msg: Sequence[logic_pb2.Type]): - flat1417 = self._try_flat(msg, self.pretty_edb_types) - if flat1417 is not None: - assert flat1417 is not None - self.write(flat1417) + flat1421 = self._try_flat(msg, self.pretty_edb_types) + if flat1421 is not None: + assert flat1421 is not None + self.write(flat1421) return None else: - fields1414 = msg + fields1418 = msg self.write("[") self.indent() - for i1416, elem1415 in enumerate(fields1414): - if (i1416 > 0): + for i1420, elem1419 in enumerate(fields1418): + if (i1420 > 0): self.newline() - self.pretty_type(elem1415) + self.pretty_type(elem1419) self.dedent() self.write("]") def pretty_betree_relation(self, msg: logic_pb2.BeTreeRelation): - flat1422 = self._try_flat(msg, self.pretty_betree_relation) - if flat1422 is not None: - assert flat1422 is not None - self.write(flat1422) + flat1426 = self._try_flat(msg, self.pretty_betree_relation) + if flat1426 is not None: + assert flat1426 is not None + self.write(flat1426) return None else: _dollar_dollar = msg - fields1418 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - assert fields1418 is not None - unwrapped_fields1419 = fields1418 + fields1422 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + assert fields1422 is not None + unwrapped_fields1423 = fields1422 self.write("(betree_relation") self.indent_sexp() self.newline() - field1420 = unwrapped_fields1419[0] - self.pretty_relation_id(field1420) + field1424 = unwrapped_fields1423[0] + self.pretty_relation_id(field1424) self.newline() - field1421 = unwrapped_fields1419[1] - self.pretty_betree_info(field1421) + field1425 = unwrapped_fields1423[1] + self.pretty_betree_info(field1425) self.dedent() self.write(")") def pretty_betree_info(self, msg: logic_pb2.BeTreeInfo): - flat1428 = self._try_flat(msg, self.pretty_betree_info) - if flat1428 is not None: - assert flat1428 is not None - self.write(flat1428) + flat1432 = self._try_flat(msg, self.pretty_betree_info) + if flat1432 is not None: + assert flat1432 is not None + self.write(flat1432) return None else: _dollar_dollar = msg - _t1818 = self.deconstruct_betree_info_config(_dollar_dollar) - fields1423 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1818,) - assert fields1423 is not None - unwrapped_fields1424 = fields1423 + _t1826 = self.deconstruct_betree_info_config(_dollar_dollar) + fields1427 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1826,) + assert fields1427 is not None + unwrapped_fields1428 = fields1427 self.write("(betree_info") self.indent_sexp() self.newline() - field1425 = unwrapped_fields1424[0] - self.pretty_betree_info_key_types(field1425) + field1429 = unwrapped_fields1428[0] + self.pretty_betree_info_key_types(field1429) self.newline() - field1426 = unwrapped_fields1424[1] - self.pretty_betree_info_value_types(field1426) + field1430 = unwrapped_fields1428[1] + self.pretty_betree_info_value_types(field1430) self.newline() - field1427 = unwrapped_fields1424[2] - self.pretty_config_dict(field1427) + field1431 = unwrapped_fields1428[2] + self.pretty_config_dict(field1431) self.dedent() self.write(")") def pretty_betree_info_key_types(self, msg: Sequence[logic_pb2.Type]): - flat1432 = self._try_flat(msg, self.pretty_betree_info_key_types) - if flat1432 is not None: - assert flat1432 is not None - self.write(flat1432) + flat1436 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1436 is not None: + assert flat1436 is not None + self.write(flat1436) return None else: - fields1429 = msg + fields1433 = msg self.write("(key_types") self.indent_sexp() - if not len(fields1429) == 0: + if not len(fields1433) == 0: self.newline() - for i1431, elem1430 in enumerate(fields1429): - if (i1431 > 0): + for i1435, elem1434 in enumerate(fields1433): + if (i1435 > 0): self.newline() - self.pretty_type(elem1430) + self.pretty_type(elem1434) self.dedent() self.write(")") def pretty_betree_info_value_types(self, msg: Sequence[logic_pb2.Type]): - flat1436 = self._try_flat(msg, self.pretty_betree_info_value_types) - if flat1436 is not None: - assert flat1436 is not None - self.write(flat1436) + flat1440 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1440 is not None: + assert flat1440 is not None + self.write(flat1440) return None else: - fields1433 = msg + fields1437 = msg self.write("(value_types") self.indent_sexp() - if not len(fields1433) == 0: + if not len(fields1437) == 0: self.newline() - for i1435, elem1434 in enumerate(fields1433): - if (i1435 > 0): + for i1439, elem1438 in enumerate(fields1437): + if (i1439 > 0): self.newline() - self.pretty_type(elem1434) + self.pretty_type(elem1438) self.dedent() self.write(")") def pretty_csv_data(self, msg: logic_pb2.CSVData): - flat1446 = self._try_flat(msg, self.pretty_csv_data) - if flat1446 is not None: - assert flat1446 is not None - self.write(flat1446) + flat1450 = self._try_flat(msg, self.pretty_csv_data) + if flat1450 is not None: + assert flat1450 is not None + self.write(flat1450) return None else: _dollar_dollar = msg - _t1819 = self.deconstruct_csv_data_columns_optional(_dollar_dollar) - _t1820 = self.deconstruct_csv_data_relations_optional(_dollar_dollar) - fields1437 = (_dollar_dollar.locator, _dollar_dollar.config, _t1819, _t1820, _dollar_dollar.asof,) - assert fields1437 is not None - unwrapped_fields1438 = fields1437 + _t1827 = self.deconstruct_csv_data_columns_optional(_dollar_dollar) + _t1828 = self.deconstruct_csv_data_relations_optional(_dollar_dollar) + fields1441 = (_dollar_dollar.locator, _dollar_dollar.config, _t1827, _t1828, _dollar_dollar.asof,) + assert fields1441 is not None + unwrapped_fields1442 = fields1441 self.write("(csv_data") self.indent_sexp() self.newline() - field1439 = unwrapped_fields1438[0] - self.pretty_csvlocator(field1439) + field1443 = unwrapped_fields1442[0] + self.pretty_csvlocator(field1443) self.newline() - field1440 = unwrapped_fields1438[1] - self.pretty_csv_config(field1440) - field1441 = unwrapped_fields1438[2] - if field1441 is not None: + field1444 = unwrapped_fields1442[1] + self.pretty_csv_config(field1444) + field1445 = unwrapped_fields1442[2] + if field1445 is not None: self.newline() - assert field1441 is not None - opt_val1442 = field1441 - self.pretty_gnf_columns(opt_val1442) - field1443 = unwrapped_fields1438[3] - if field1443 is not None: + assert field1445 is not None + opt_val1446 = field1445 + self.pretty_gnf_columns(opt_val1446) + field1447 = unwrapped_fields1442[3] + if field1447 is not None: self.newline() - assert field1443 is not None - opt_val1444 = field1443 - self.pretty_target_relations(opt_val1444) + assert field1447 is not None + opt_val1448 = field1447 + self.pretty_target_relations(opt_val1448) self.newline() - field1445 = unwrapped_fields1438[4] - self.pretty_csv_asof(field1445) + field1449 = unwrapped_fields1442[4] + self.pretty_csv_asof(field1449) self.dedent() self.write(")") def pretty_csvlocator(self, msg: logic_pb2.CSVLocator): - flat1453 = self._try_flat(msg, self.pretty_csvlocator) - if flat1453 is not None: - assert flat1453 is not None - self.write(flat1453) + flat1457 = self._try_flat(msg, self.pretty_csvlocator) + if flat1457 is not None: + assert flat1457 is not None + self.write(flat1457) return None else: _dollar_dollar = msg if not len(_dollar_dollar.paths) == 0: - _t1821 = _dollar_dollar.paths + _t1829 = _dollar_dollar.paths else: - _t1821 = None + _t1829 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1822 = _dollar_dollar.inline_data.decode('utf-8') + _t1830 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1822 = None - fields1447 = (_t1821, _t1822,) - assert fields1447 is not None - unwrapped_fields1448 = fields1447 + _t1830 = None + fields1451 = (_t1829, _t1830,) + assert fields1451 is not None + unwrapped_fields1452 = fields1451 self.write("(csv_locator") self.indent_sexp() - field1449 = unwrapped_fields1448[0] - if field1449 is not None: + field1453 = unwrapped_fields1452[0] + if field1453 is not None: self.newline() - assert field1449 is not None - opt_val1450 = field1449 - self.pretty_csv_locator_paths(opt_val1450) - field1451 = unwrapped_fields1448[1] - if field1451 is not None: + assert field1453 is not None + opt_val1454 = field1453 + self.pretty_csv_locator_paths(opt_val1454) + field1455 = unwrapped_fields1452[1] + if field1455 is not None: self.newline() - assert field1451 is not None - opt_val1452 = field1451 - self.pretty_csv_locator_inline_data(opt_val1452) + assert field1455 is not None + opt_val1456 = field1455 + self.pretty_csv_locator_inline_data(opt_val1456) self.dedent() self.write(")") def pretty_csv_locator_paths(self, msg: Sequence[str]): - flat1457 = self._try_flat(msg, self.pretty_csv_locator_paths) - if flat1457 is not None: - assert flat1457 is not None - self.write(flat1457) + flat1461 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1461 is not None: + assert flat1461 is not None + self.write(flat1461) return None else: - fields1454 = msg + fields1458 = msg self.write("(paths") self.indent_sexp() - if not len(fields1454) == 0: + if not len(fields1458) == 0: self.newline() - for i1456, elem1455 in enumerate(fields1454): - if (i1456 > 0): + for i1460, elem1459 in enumerate(fields1458): + if (i1460 > 0): self.newline() - self.write(self.format_string_value(elem1455)) + self.write(self.format_string_value(elem1459)) self.dedent() self.write(")") def pretty_csv_locator_inline_data(self, msg: str): - flat1459 = self._try_flat(msg, self.pretty_csv_locator_inline_data) - if flat1459 is not None: - assert flat1459 is not None - self.write(flat1459) + flat1463 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1463 is not None: + assert flat1463 is not None + self.write(flat1463) return None else: - fields1458 = msg + fields1462 = msg self.write("(inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1458)) + self.write(self.format_string_value(fields1462)) self.dedent() self.write(")") def pretty_csv_config(self, msg: logic_pb2.CSVConfig): - flat1465 = self._try_flat(msg, self.pretty_csv_config) - if flat1465 is not None: - assert flat1465 is not None - self.write(flat1465) + flat1469 = self._try_flat(msg, self.pretty_csv_config) + if flat1469 is not None: + assert flat1469 is not None + self.write(flat1469) return None else: _dollar_dollar = msg - _t1823 = self.deconstruct_csv_config(_dollar_dollar) - _t1824 = self.deconstruct_csv_storage_integration_optional(_dollar_dollar) - fields1460 = (_t1823, _t1824,) - assert fields1460 is not None - unwrapped_fields1461 = fields1460 + _t1831 = self.deconstruct_csv_config(_dollar_dollar) + _t1832 = self.deconstruct_csv_storage_integration_optional(_dollar_dollar) + fields1464 = (_t1831, _t1832,) + assert fields1464 is not None + unwrapped_fields1465 = fields1464 self.write("(csv_config") self.indent_sexp() self.newline() - field1462 = unwrapped_fields1461[0] - self.pretty_config_dict(field1462) - field1463 = unwrapped_fields1461[1] - if field1463 is not None: + field1466 = unwrapped_fields1465[0] + self.pretty_config_dict(field1466) + field1467 = unwrapped_fields1465[1] + if field1467 is not None: self.newline() - assert field1463 is not None - opt_val1464 = field1463 - self.pretty__storage_integration(opt_val1464) + assert field1467 is not None + opt_val1468 = field1467 + self.pretty__storage_integration(opt_val1468) self.dedent() self.write(")") def pretty__storage_integration(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat1467 = self._try_flat(msg, self.pretty__storage_integration) - if flat1467 is not None: - assert flat1467 is not None - self.write(flat1467) + flat1471 = self._try_flat(msg, self.pretty__storage_integration) + if flat1471 is not None: + assert flat1471 is not None + self.write(flat1471) return None else: - fields1466 = msg + fields1470 = msg self.write("(storage_integration") self.indent_sexp() self.newline() - self.pretty_config_dict(fields1466) + self.pretty_config_dict(fields1470) self.dedent() self.write(")") def pretty_gnf_columns(self, msg: Sequence[logic_pb2.GNFColumn]): - flat1471 = self._try_flat(msg, self.pretty_gnf_columns) - if flat1471 is not None: - assert flat1471 is not None - self.write(flat1471) + flat1475 = self._try_flat(msg, self.pretty_gnf_columns) + if flat1475 is not None: + assert flat1475 is not None + self.write(flat1475) return None else: - fields1468 = msg + fields1472 = msg self.write("(columns") self.indent_sexp() - if not len(fields1468) == 0: + if not len(fields1472) == 0: self.newline() - for i1470, elem1469 in enumerate(fields1468): - if (i1470 > 0): + for i1474, elem1473 in enumerate(fields1472): + if (i1474 > 0): self.newline() - self.pretty_gnf_column(elem1469) + self.pretty_gnf_column(elem1473) self.dedent() self.write(")") def pretty_gnf_column(self, msg: logic_pb2.GNFColumn): - flat1480 = self._try_flat(msg, self.pretty_gnf_column) - if flat1480 is not None: - assert flat1480 is not None - self.write(flat1480) + flat1484 = self._try_flat(msg, self.pretty_gnf_column) + if flat1484 is not None: + assert flat1484 is not None + self.write(flat1484) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("target_id"): - _t1825 = _dollar_dollar.target_id + _t1833 = _dollar_dollar.target_id else: - _t1825 = None - fields1472 = (_dollar_dollar.column_path, _t1825, _dollar_dollar.types,) - assert fields1472 is not None - unwrapped_fields1473 = fields1472 + _t1833 = None + fields1476 = (_dollar_dollar.column_path, _t1833, _dollar_dollar.types,) + assert fields1476 is not None + unwrapped_fields1477 = fields1476 self.write("(column") self.indent_sexp() self.newline() - field1474 = unwrapped_fields1473[0] - self.pretty_gnf_column_path(field1474) - field1475 = unwrapped_fields1473[1] - if field1475 is not None: + field1478 = unwrapped_fields1477[0] + self.pretty_gnf_column_path(field1478) + field1479 = unwrapped_fields1477[1] + if field1479 is not None: self.newline() - assert field1475 is not None - opt_val1476 = field1475 - self.pretty_relation_id(opt_val1476) + assert field1479 is not None + opt_val1480 = field1479 + self.pretty_relation_id(opt_val1480) self.newline() self.write("[") - field1477 = unwrapped_fields1473[2] - for i1479, elem1478 in enumerate(field1477): - if (i1479 > 0): + field1481 = unwrapped_fields1477[2] + for i1483, elem1482 in enumerate(field1481): + if (i1483 > 0): self.newline() - self.pretty_type(elem1478) + self.pretty_type(elem1482) self.write("]") self.dedent() self.write(")") def pretty_gnf_column_path(self, msg: Sequence[str]): - flat1487 = self._try_flat(msg, self.pretty_gnf_column_path) - if flat1487 is not None: - assert flat1487 is not None - self.write(flat1487) + flat1491 = self._try_flat(msg, self.pretty_gnf_column_path) + if flat1491 is not None: + assert flat1491 is not None + self.write(flat1491) return None else: _dollar_dollar = msg if len(_dollar_dollar) == 1: - _t1826 = _dollar_dollar[0] + _t1834 = _dollar_dollar[0] else: - _t1826 = None - deconstruct_result1485 = _t1826 - if deconstruct_result1485 is not None: - assert deconstruct_result1485 is not None - unwrapped1486 = deconstruct_result1485 - self.write(self.format_string_value(unwrapped1486)) + _t1834 = None + deconstruct_result1489 = _t1834 + if deconstruct_result1489 is not None: + assert deconstruct_result1489 is not None + unwrapped1490 = deconstruct_result1489 + self.write(self.format_string_value(unwrapped1490)) else: _dollar_dollar = msg if len(_dollar_dollar) != 1: - _t1827 = _dollar_dollar + _t1835 = _dollar_dollar else: - _t1827 = None - deconstruct_result1481 = _t1827 - if deconstruct_result1481 is not None: - assert deconstruct_result1481 is not None - unwrapped1482 = deconstruct_result1481 + _t1835 = None + deconstruct_result1485 = _t1835 + if deconstruct_result1485 is not None: + assert deconstruct_result1485 is not None + unwrapped1486 = deconstruct_result1485 self.write("[") self.indent() - for i1484, elem1483 in enumerate(unwrapped1482): - if (i1484 > 0): + for i1488, elem1487 in enumerate(unwrapped1486): + if (i1488 > 0): self.newline() - self.write(self.format_string_value(elem1483)) + self.write(self.format_string_value(elem1487)) self.dedent() self.write("]") else: raise ParseError("No matching rule for gnf_column_path") def pretty_target_relations(self, msg: logic_pb2.TargetRelations): - flat1492 = self._try_flat(msg, self.pretty_target_relations) - if flat1492 is not None: - assert flat1492 is not None - self.write(flat1492) + flat1498 = self._try_flat(msg, self.pretty_target_relations) + if flat1498 is not None: + assert flat1498 is not None + self.write(flat1498) return None else: _dollar_dollar = msg - _t1828 = self.deconstruct_relation_keys(_dollar_dollar) - fields1488 = (_t1828, _dollar_dollar,) - assert fields1488 is not None - unwrapped_fields1489 = fields1488 + _t1836 = self.deconstruct_relation_keys(_dollar_dollar) + _t1837 = self.deconstruct_load_errors_optional(_dollar_dollar) + fields1492 = (_t1836, _dollar_dollar, _t1837,) + assert fields1492 is not None + unwrapped_fields1493 = fields1492 self.write("(relations") self.indent_sexp() self.newline() - field1490 = unwrapped_fields1489[0] - self.pretty_relation_keys(field1490) + field1494 = unwrapped_fields1493[0] + self.pretty_relation_keys(field1494) self.newline() - field1491 = unwrapped_fields1489[1] - self.pretty_relation_body(field1491) + field1495 = unwrapped_fields1493[1] + self.pretty_relation_body(field1495) + field1496 = unwrapped_fields1493[2] + if field1496 is not None: + self.newline() + assert field1496 is not None + opt_val1497 = field1496 + self.pretty_load_errors(opt_val1497) self.dedent() self.write(")") def pretty_relation_keys(self, msg: tuple[Sequence[logic_pb2.NamedColumn], bool]): - flat1499 = self._try_flat(msg, self.pretty_relation_keys) - if flat1499 is not None: - assert flat1499 is not None - self.write(flat1499) + flat1505 = self._try_flat(msg, self.pretty_relation_keys) + if flat1505 is not None: + assert flat1505 is not None + self.write(flat1505) return None else: _dollar_dollar = msg if not _dollar_dollar[1]: - _t1829 = _dollar_dollar[0] + _t1838 = _dollar_dollar[0] else: - _t1829 = None - deconstruct_result1495 = _t1829 - if deconstruct_result1495 is not None: - assert deconstruct_result1495 is not None - unwrapped1496 = deconstruct_result1495 + _t1838 = None + deconstruct_result1501 = _t1838 + if deconstruct_result1501 is not None: + assert deconstruct_result1501 is not None + unwrapped1502 = deconstruct_result1501 self.write("(keys") self.indent_sexp() - if not len(unwrapped1496) == 0: + if not len(unwrapped1502) == 0: self.newline() - for i1498, elem1497 in enumerate(unwrapped1496): - if (i1498 > 0): + for i1504, elem1503 in enumerate(unwrapped1502): + if (i1504 > 0): self.newline() - self.pretty_named_column(elem1497) + self.pretty_named_column(elem1503) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar[1]: - _t1830 = () + _t1839 = () else: - _t1830 = None - deconstruct_result1493 = _t1830 - if deconstruct_result1493 is not None: - assert deconstruct_result1493 is not None - unwrapped1494 = deconstruct_result1493 + _t1839 = None + deconstruct_result1499 = _t1839 + if deconstruct_result1499 is not None: + assert deconstruct_result1499 is not None + unwrapped1500 = deconstruct_result1499 self.write("(keys") self.newline() self.write("synthetic)") @@ -3651,1008 +3666,1023 @@ def pretty_relation_keys(self, msg: tuple[Sequence[logic_pb2.NamedColumn], bool] raise ParseError("No matching rule for relation_keys") def pretty_named_column(self, msg: logic_pb2.NamedColumn): - flat1504 = self._try_flat(msg, self.pretty_named_column) - if flat1504 is not None: - assert flat1504 is not None - self.write(flat1504) + flat1510 = self._try_flat(msg, self.pretty_named_column) + if flat1510 is not None: + assert flat1510 is not None + self.write(flat1510) return None else: _dollar_dollar = msg - fields1500 = (_dollar_dollar.name, _dollar_dollar.type,) - assert fields1500 is not None - unwrapped_fields1501 = fields1500 + fields1506 = (_dollar_dollar.name, _dollar_dollar.type,) + assert fields1506 is not None + unwrapped_fields1507 = fields1506 self.write("(column") self.indent_sexp() self.newline() - field1502 = unwrapped_fields1501[0] - self.write(self.format_string_value(field1502)) + field1508 = unwrapped_fields1507[0] + self.write(self.format_string_value(field1508)) self.newline() - field1503 = unwrapped_fields1501[1] - self.pretty_type(field1503) + field1509 = unwrapped_fields1507[1] + self.pretty_type(field1509) self.dedent() self.write(")") def pretty_relation_body(self, msg: logic_pb2.TargetRelations): - flat1511 = self._try_flat(msg, self.pretty_relation_body) - if flat1511 is not None: - assert flat1511 is not None - self.write(flat1511) + flat1517 = self._try_flat(msg, self.pretty_relation_body) + if flat1517 is not None: + assert flat1517 is not None + self.write(flat1517) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("plain"): - _t1831 = _dollar_dollar.plain.targets + _t1840 = _dollar_dollar.plain.targets else: - _t1831 = None - deconstruct_result1509 = _t1831 - if deconstruct_result1509 is not None: - assert deconstruct_result1509 is not None - unwrapped1510 = deconstruct_result1509 - self.pretty_non_cdc_relations(unwrapped1510) + _t1840 = None + deconstruct_result1515 = _t1840 + if deconstruct_result1515 is not None: + assert deconstruct_result1515 is not None + unwrapped1516 = deconstruct_result1515 + self.pretty_non_cdc_relations(unwrapped1516) else: _dollar_dollar = msg if _dollar_dollar.HasField("cdc"): - _t1832 = (_dollar_dollar.cdc.inserts, _dollar_dollar.cdc.deletes,) + _t1841 = (_dollar_dollar.cdc.inserts, _dollar_dollar.cdc.deletes,) else: - _t1832 = None - deconstruct_result1505 = _t1832 - if deconstruct_result1505 is not None: - assert deconstruct_result1505 is not None - unwrapped1506 = deconstruct_result1505 - field1507 = unwrapped1506[0] - self.pretty_cdc_inserts(field1507) + _t1841 = None + deconstruct_result1511 = _t1841 + if deconstruct_result1511 is not None: + assert deconstruct_result1511 is not None + unwrapped1512 = deconstruct_result1511 + field1513 = unwrapped1512[0] + self.pretty_cdc_inserts(field1513) self.write(" ") - field1508 = unwrapped1506[1] - self.pretty_cdc_deletes(field1508) + field1514 = unwrapped1512[1] + self.pretty_cdc_deletes(field1514) else: raise ParseError("No matching rule for relation_body") def pretty_non_cdc_relations(self, msg: Sequence[logic_pb2.TargetRelation]): - flat1515 = self._try_flat(msg, self.pretty_non_cdc_relations) - if flat1515 is not None: - assert flat1515 is not None - self.write(flat1515) + flat1521 = self._try_flat(msg, self.pretty_non_cdc_relations) + if flat1521 is not None: + assert flat1521 is not None + self.write(flat1521) return None else: - fields1512 = msg - for i1514, elem1513 in enumerate(fields1512): - if (i1514 > 0): + fields1518 = msg + for i1520, elem1519 in enumerate(fields1518): + if (i1520 > 0): self.newline() - self.pretty_target_relation(elem1513) + self.pretty_target_relation(elem1519) def pretty_target_relation(self, msg: logic_pb2.TargetRelation): - flat1522 = self._try_flat(msg, self.pretty_target_relation) - if flat1522 is not None: - assert flat1522 is not None - self.write(flat1522) + flat1528 = self._try_flat(msg, self.pretty_target_relation) + if flat1528 is not None: + assert flat1528 is not None + self.write(flat1528) return None else: _dollar_dollar = msg - fields1516 = (_dollar_dollar.target_id, _dollar_dollar.values,) - assert fields1516 is not None - unwrapped_fields1517 = fields1516 + fields1522 = (_dollar_dollar.target_id, _dollar_dollar.values,) + assert fields1522 is not None + unwrapped_fields1523 = fields1522 self.write("(relation") self.indent_sexp() self.newline() - field1518 = unwrapped_fields1517[0] - self.pretty_relation_id(field1518) - field1519 = unwrapped_fields1517[1] - if not len(field1519) == 0: + field1524 = unwrapped_fields1523[0] + self.pretty_relation_id(field1524) + field1525 = unwrapped_fields1523[1] + if not len(field1525) == 0: self.newline() - for i1521, elem1520 in enumerate(field1519): - if (i1521 > 0): + for i1527, elem1526 in enumerate(field1525): + if (i1527 > 0): self.newline() - self.pretty_named_column(elem1520) + self.pretty_named_column(elem1526) self.dedent() self.write(")") def pretty_cdc_inserts(self, msg: Sequence[logic_pb2.TargetRelation]): - flat1526 = self._try_flat(msg, self.pretty_cdc_inserts) - if flat1526 is not None: - assert flat1526 is not None - self.write(flat1526) + flat1532 = self._try_flat(msg, self.pretty_cdc_inserts) + if flat1532 is not None: + assert flat1532 is not None + self.write(flat1532) return None else: - fields1523 = msg + fields1529 = msg self.write("(inserts") self.indent_sexp() - if not len(fields1523) == 0: + if not len(fields1529) == 0: self.newline() - for i1525, elem1524 in enumerate(fields1523): - if (i1525 > 0): + for i1531, elem1530 in enumerate(fields1529): + if (i1531 > 0): self.newline() - self.pretty_target_relation(elem1524) + self.pretty_target_relation(elem1530) self.dedent() self.write(")") def pretty_cdc_deletes(self, msg: Sequence[logic_pb2.TargetRelation]): - flat1530 = self._try_flat(msg, self.pretty_cdc_deletes) - if flat1530 is not None: - assert flat1530 is not None - self.write(flat1530) + flat1536 = self._try_flat(msg, self.pretty_cdc_deletes) + if flat1536 is not None: + assert flat1536 is not None + self.write(flat1536) return None else: - fields1527 = msg + fields1533 = msg self.write("(deletes") self.indent_sexp() - if not len(fields1527) == 0: + if not len(fields1533) == 0: self.newline() - for i1529, elem1528 in enumerate(fields1527): - if (i1529 > 0): + for i1535, elem1534 in enumerate(fields1533): + if (i1535 > 0): self.newline() - self.pretty_target_relation(elem1528) + self.pretty_target_relation(elem1534) + self.dedent() + self.write(")") + + def pretty_load_errors(self, msg: logic_pb2.RelationId): + flat1538 = self._try_flat(msg, self.pretty_load_errors) + if flat1538 is not None: + assert flat1538 is not None + self.write(flat1538) + return None + else: + fields1537 = msg + self.write("(load_errors") + self.indent_sexp() + self.newline() + self.pretty_relation_id(fields1537) self.dedent() self.write(")") def pretty_csv_asof(self, msg: str): - flat1532 = self._try_flat(msg, self.pretty_csv_asof) - if flat1532 is not None: - assert flat1532 is not None - self.write(flat1532) + flat1540 = self._try_flat(msg, self.pretty_csv_asof) + if flat1540 is not None: + assert flat1540 is not None + self.write(flat1540) return None else: - fields1531 = msg + fields1539 = msg self.write("(asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1531)) + self.write(self.format_string_value(fields1539)) self.dedent() self.write(")") def pretty_iceberg_data(self, msg: logic_pb2.IcebergData): - flat1543 = self._try_flat(msg, self.pretty_iceberg_data) - if flat1543 is not None: - assert flat1543 is not None - self.write(flat1543) + flat1551 = self._try_flat(msg, self.pretty_iceberg_data) + if flat1551 is not None: + assert flat1551 is not None + self.write(flat1551) return None else: _dollar_dollar = msg - _t1833 = self.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) - _t1834 = self.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) - fields1533 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1833, _t1834, _dollar_dollar.returns_delta,) - assert fields1533 is not None - unwrapped_fields1534 = fields1533 + _t1842 = self.deconstruct_iceberg_data_from_snapshot_optional(_dollar_dollar) + _t1843 = self.deconstruct_iceberg_data_to_snapshot_optional(_dollar_dollar) + fields1541 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _t1842, _t1843, _dollar_dollar.returns_delta,) + assert fields1541 is not None + unwrapped_fields1542 = fields1541 self.write("(iceberg_data") self.indent_sexp() self.newline() - field1535 = unwrapped_fields1534[0] - self.pretty_iceberg_locator(field1535) + field1543 = unwrapped_fields1542[0] + self.pretty_iceberg_locator(field1543) self.newline() - field1536 = unwrapped_fields1534[1] - self.pretty_iceberg_catalog_config(field1536) + field1544 = unwrapped_fields1542[1] + self.pretty_iceberg_catalog_config(field1544) self.newline() - field1537 = unwrapped_fields1534[2] - self.pretty_gnf_columns(field1537) - field1538 = unwrapped_fields1534[3] - if field1538 is not None: + field1545 = unwrapped_fields1542[2] + self.pretty_gnf_columns(field1545) + field1546 = unwrapped_fields1542[3] + if field1546 is not None: self.newline() - assert field1538 is not None - opt_val1539 = field1538 - self.pretty_iceberg_from_snapshot(opt_val1539) - field1540 = unwrapped_fields1534[4] - if field1540 is not None: + assert field1546 is not None + opt_val1547 = field1546 + self.pretty_iceberg_from_snapshot(opt_val1547) + field1548 = unwrapped_fields1542[4] + if field1548 is not None: self.newline() - assert field1540 is not None - opt_val1541 = field1540 - self.pretty_iceberg_to_snapshot(opt_val1541) + assert field1548 is not None + opt_val1549 = field1548 + self.pretty_iceberg_to_snapshot(opt_val1549) self.newline() - field1542 = unwrapped_fields1534[5] - self.pretty_boolean_value(field1542) + field1550 = unwrapped_fields1542[5] + self.pretty_boolean_value(field1550) self.dedent() self.write(")") def pretty_iceberg_locator(self, msg: logic_pb2.IcebergLocator): - flat1549 = self._try_flat(msg, self.pretty_iceberg_locator) - if flat1549 is not None: - assert flat1549 is not None - self.write(flat1549) + flat1557 = self._try_flat(msg, self.pretty_iceberg_locator) + if flat1557 is not None: + assert flat1557 is not None + self.write(flat1557) return None else: _dollar_dollar = msg - fields1544 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) - assert fields1544 is not None - unwrapped_fields1545 = fields1544 + fields1552 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + assert fields1552 is not None + unwrapped_fields1553 = fields1552 self.write("(iceberg_locator") self.indent_sexp() self.newline() - field1546 = unwrapped_fields1545[0] - self.pretty_iceberg_locator_table_name(field1546) + field1554 = unwrapped_fields1553[0] + self.pretty_iceberg_locator_table_name(field1554) self.newline() - field1547 = unwrapped_fields1545[1] - self.pretty_iceberg_locator_namespace(field1547) + field1555 = unwrapped_fields1553[1] + self.pretty_iceberg_locator_namespace(field1555) self.newline() - field1548 = unwrapped_fields1545[2] - self.pretty_iceberg_locator_warehouse(field1548) + field1556 = unwrapped_fields1553[2] + self.pretty_iceberg_locator_warehouse(field1556) self.dedent() self.write(")") def pretty_iceberg_locator_table_name(self, msg: str): - flat1551 = self._try_flat(msg, self.pretty_iceberg_locator_table_name) - if flat1551 is not None: - assert flat1551 is not None - self.write(flat1551) + flat1559 = self._try_flat(msg, self.pretty_iceberg_locator_table_name) + if flat1559 is not None: + assert flat1559 is not None + self.write(flat1559) return None else: - fields1550 = msg + fields1558 = msg self.write("(table_name") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1550)) + self.write(self.format_string_value(fields1558)) self.dedent() self.write(")") def pretty_iceberg_locator_namespace(self, msg: Sequence[str]): - flat1555 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) - if flat1555 is not None: - assert flat1555 is not None - self.write(flat1555) + flat1563 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) + if flat1563 is not None: + assert flat1563 is not None + self.write(flat1563) return None else: - fields1552 = msg + fields1560 = msg self.write("(namespace") self.indent_sexp() - if not len(fields1552) == 0: + if not len(fields1560) == 0: self.newline() - for i1554, elem1553 in enumerate(fields1552): - if (i1554 > 0): + for i1562, elem1561 in enumerate(fields1560): + if (i1562 > 0): self.newline() - self.write(self.format_string_value(elem1553)) + self.write(self.format_string_value(elem1561)) self.dedent() self.write(")") def pretty_iceberg_locator_warehouse(self, msg: str): - flat1557 = self._try_flat(msg, self.pretty_iceberg_locator_warehouse) - if flat1557 is not None: - assert flat1557 is not None - self.write(flat1557) + flat1565 = self._try_flat(msg, self.pretty_iceberg_locator_warehouse) + if flat1565 is not None: + assert flat1565 is not None + self.write(flat1565) return None else: - fields1556 = msg + fields1564 = msg self.write("(warehouse") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1556)) + self.write(self.format_string_value(fields1564)) self.dedent() self.write(")") def pretty_iceberg_catalog_config(self, msg: logic_pb2.IcebergCatalogConfig): - flat1565 = self._try_flat(msg, self.pretty_iceberg_catalog_config) - if flat1565 is not None: - assert flat1565 is not None - self.write(flat1565) + flat1573 = self._try_flat(msg, self.pretty_iceberg_catalog_config) + if flat1573 is not None: + assert flat1573 is not None + self.write(flat1573) return None else: _dollar_dollar = msg - _t1835 = self.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) - fields1558 = (_dollar_dollar.catalog_uri, _t1835, sorted(_dollar_dollar.properties.items()), sorted(_dollar_dollar.auth_properties.items()),) - assert fields1558 is not None - unwrapped_fields1559 = fields1558 + _t1844 = self.deconstruct_iceberg_catalog_config_scope_optional(_dollar_dollar) + fields1566 = (_dollar_dollar.catalog_uri, _t1844, sorted(_dollar_dollar.properties.items()), sorted(_dollar_dollar.auth_properties.items()),) + assert fields1566 is not None + unwrapped_fields1567 = fields1566 self.write("(iceberg_catalog_config") self.indent_sexp() self.newline() - field1560 = unwrapped_fields1559[0] - self.pretty_iceberg_catalog_uri(field1560) - field1561 = unwrapped_fields1559[1] - if field1561 is not None: + field1568 = unwrapped_fields1567[0] + self.pretty_iceberg_catalog_uri(field1568) + field1569 = unwrapped_fields1567[1] + if field1569 is not None: self.newline() - assert field1561 is not None - opt_val1562 = field1561 - self.pretty_iceberg_catalog_config_scope(opt_val1562) + assert field1569 is not None + opt_val1570 = field1569 + self.pretty_iceberg_catalog_config_scope(opt_val1570) self.newline() - field1563 = unwrapped_fields1559[2] - self.pretty_iceberg_properties(field1563) + field1571 = unwrapped_fields1567[2] + self.pretty_iceberg_properties(field1571) self.newline() - field1564 = unwrapped_fields1559[3] - self.pretty_iceberg_auth_properties(field1564) + field1572 = unwrapped_fields1567[3] + self.pretty_iceberg_auth_properties(field1572) self.dedent() self.write(")") def pretty_iceberg_catalog_uri(self, msg: str): - flat1567 = self._try_flat(msg, self.pretty_iceberg_catalog_uri) - if flat1567 is not None: - assert flat1567 is not None - self.write(flat1567) + flat1575 = self._try_flat(msg, self.pretty_iceberg_catalog_uri) + if flat1575 is not None: + assert flat1575 is not None + self.write(flat1575) return None else: - fields1566 = msg + fields1574 = msg self.write("(catalog_uri") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1566)) + self.write(self.format_string_value(fields1574)) self.dedent() self.write(")") def pretty_iceberg_catalog_config_scope(self, msg: str): - flat1569 = self._try_flat(msg, self.pretty_iceberg_catalog_config_scope) - if flat1569 is not None: - assert flat1569 is not None - self.write(flat1569) + flat1577 = self._try_flat(msg, self.pretty_iceberg_catalog_config_scope) + if flat1577 is not None: + assert flat1577 is not None + self.write(flat1577) return None else: - fields1568 = msg + fields1576 = msg self.write("(scope") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1568)) + self.write(self.format_string_value(fields1576)) self.dedent() self.write(")") def pretty_iceberg_properties(self, msg: Sequence[tuple[str, str]]): - flat1573 = self._try_flat(msg, self.pretty_iceberg_properties) - if flat1573 is not None: - assert flat1573 is not None - self.write(flat1573) + flat1581 = self._try_flat(msg, self.pretty_iceberg_properties) + if flat1581 is not None: + assert flat1581 is not None + self.write(flat1581) return None else: - fields1570 = msg + fields1578 = msg self.write("(properties") self.indent_sexp() - if not len(fields1570) == 0: + if not len(fields1578) == 0: self.newline() - for i1572, elem1571 in enumerate(fields1570): - if (i1572 > 0): + for i1580, elem1579 in enumerate(fields1578): + if (i1580 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1571) + self.pretty_iceberg_property_entry(elem1579) self.dedent() self.write(")") def pretty_iceberg_property_entry(self, msg: tuple[str, str]): - flat1578 = self._try_flat(msg, self.pretty_iceberg_property_entry) - if flat1578 is not None: - assert flat1578 is not None - self.write(flat1578) + flat1586 = self._try_flat(msg, self.pretty_iceberg_property_entry) + if flat1586 is not None: + assert flat1586 is not None + self.write(flat1586) return None else: _dollar_dollar = msg - fields1574 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields1574 is not None - unwrapped_fields1575 = fields1574 + fields1582 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields1582 is not None + unwrapped_fields1583 = fields1582 self.write("(prop") self.indent_sexp() self.newline() - field1576 = unwrapped_fields1575[0] - self.write(self.format_string_value(field1576)) + field1584 = unwrapped_fields1583[0] + self.write(self.format_string_value(field1584)) self.newline() - field1577 = unwrapped_fields1575[1] - self.write(self.format_string_value(field1577)) + field1585 = unwrapped_fields1583[1] + self.write(self.format_string_value(field1585)) self.dedent() self.write(")") def pretty_iceberg_auth_properties(self, msg: Sequence[tuple[str, str]]): - flat1582 = self._try_flat(msg, self.pretty_iceberg_auth_properties) - if flat1582 is not None: - assert flat1582 is not None - self.write(flat1582) + flat1590 = self._try_flat(msg, self.pretty_iceberg_auth_properties) + if flat1590 is not None: + assert flat1590 is not None + self.write(flat1590) return None else: - fields1579 = msg + fields1587 = msg self.write("(auth_properties") self.indent_sexp() - if not len(fields1579) == 0: + if not len(fields1587) == 0: self.newline() - for i1581, elem1580 in enumerate(fields1579): - if (i1581 > 0): + for i1589, elem1588 in enumerate(fields1587): + if (i1589 > 0): self.newline() - self.pretty_iceberg_masked_property_entry(elem1580) + self.pretty_iceberg_masked_property_entry(elem1588) self.dedent() self.write(")") def pretty_iceberg_masked_property_entry(self, msg: tuple[str, str]): - flat1587 = self._try_flat(msg, self.pretty_iceberg_masked_property_entry) - if flat1587 is not None: - assert flat1587 is not None - self.write(flat1587) + flat1595 = self._try_flat(msg, self.pretty_iceberg_masked_property_entry) + if flat1595 is not None: + assert flat1595 is not None + self.write(flat1595) return None else: _dollar_dollar = msg - _t1836 = self.mask_secret_value(_dollar_dollar) - fields1583 = (_dollar_dollar[0], _t1836,) - assert fields1583 is not None - unwrapped_fields1584 = fields1583 + _t1845 = self.mask_secret_value(_dollar_dollar) + fields1591 = (_dollar_dollar[0], _t1845,) + assert fields1591 is not None + unwrapped_fields1592 = fields1591 self.write("(prop") self.indent_sexp() self.newline() - field1585 = unwrapped_fields1584[0] - self.write(self.format_string_value(field1585)) + field1593 = unwrapped_fields1592[0] + self.write(self.format_string_value(field1593)) self.newline() - field1586 = unwrapped_fields1584[1] - self.write(self.format_string_value(field1586)) + field1594 = unwrapped_fields1592[1] + self.write(self.format_string_value(field1594)) self.dedent() self.write(")") def pretty_iceberg_from_snapshot(self, msg: str): - flat1589 = self._try_flat(msg, self.pretty_iceberg_from_snapshot) - if flat1589 is not None: - assert flat1589 is not None - self.write(flat1589) + flat1597 = self._try_flat(msg, self.pretty_iceberg_from_snapshot) + if flat1597 is not None: + assert flat1597 is not None + self.write(flat1597) return None else: - fields1588 = msg + fields1596 = msg self.write("(from_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1588)) + self.write(self.format_string_value(fields1596)) self.dedent() self.write(")") def pretty_iceberg_to_snapshot(self, msg: str): - flat1591 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) - if flat1591 is not None: - assert flat1591 is not None - self.write(flat1591) + flat1599 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) + if flat1599 is not None: + assert flat1599 is not None + self.write(flat1599) return None else: - fields1590 = msg + fields1598 = msg self.write("(to_snapshot") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1590)) + self.write(self.format_string_value(fields1598)) self.dedent() self.write(")") def pretty_undefine(self, msg: transactions_pb2.Undefine): - flat1594 = self._try_flat(msg, self.pretty_undefine) - if flat1594 is not None: - assert flat1594 is not None - self.write(flat1594) + flat1602 = self._try_flat(msg, self.pretty_undefine) + if flat1602 is not None: + assert flat1602 is not None + self.write(flat1602) return None else: _dollar_dollar = msg - fields1592 = _dollar_dollar.fragment_id - assert fields1592 is not None - unwrapped_fields1593 = fields1592 + fields1600 = _dollar_dollar.fragment_id + assert fields1600 is not None + unwrapped_fields1601 = fields1600 self.write("(undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1593) + self.pretty_fragment_id(unwrapped_fields1601) self.dedent() self.write(")") def pretty_context(self, msg: transactions_pb2.Context): - flat1599 = self._try_flat(msg, self.pretty_context) - if flat1599 is not None: - assert flat1599 is not None - self.write(flat1599) + flat1607 = self._try_flat(msg, self.pretty_context) + if flat1607 is not None: + assert flat1607 is not None + self.write(flat1607) return None else: _dollar_dollar = msg - fields1595 = _dollar_dollar.relations - assert fields1595 is not None - unwrapped_fields1596 = fields1595 + fields1603 = _dollar_dollar.relations + assert fields1603 is not None + unwrapped_fields1604 = fields1603 self.write("(context") self.indent_sexp() - if not len(unwrapped_fields1596) == 0: + if not len(unwrapped_fields1604) == 0: self.newline() - for i1598, elem1597 in enumerate(unwrapped_fields1596): - if (i1598 > 0): + for i1606, elem1605 in enumerate(unwrapped_fields1604): + if (i1606 > 0): self.newline() - self.pretty_relation_id(elem1597) + self.pretty_relation_id(elem1605) self.dedent() self.write(")") def pretty_snapshot(self, msg: transactions_pb2.Snapshot): - flat1606 = self._try_flat(msg, self.pretty_snapshot) - if flat1606 is not None: - assert flat1606 is not None - self.write(flat1606) + flat1614 = self._try_flat(msg, self.pretty_snapshot) + if flat1614 is not None: + assert flat1614 is not None + self.write(flat1614) return None else: _dollar_dollar = msg - fields1600 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) - assert fields1600 is not None - unwrapped_fields1601 = fields1600 + fields1608 = (_dollar_dollar.prefix, _dollar_dollar.mappings,) + assert fields1608 is not None + unwrapped_fields1609 = fields1608 self.write("(snapshot") self.indent_sexp() self.newline() - field1602 = unwrapped_fields1601[0] - self.pretty_edb_path(field1602) - field1603 = unwrapped_fields1601[1] - if not len(field1603) == 0: + field1610 = unwrapped_fields1609[0] + self.pretty_edb_path(field1610) + field1611 = unwrapped_fields1609[1] + if not len(field1611) == 0: self.newline() - for i1605, elem1604 in enumerate(field1603): - if (i1605 > 0): + for i1613, elem1612 in enumerate(field1611): + if (i1613 > 0): self.newline() - self.pretty_snapshot_mapping(elem1604) + self.pretty_snapshot_mapping(elem1612) self.dedent() self.write(")") def pretty_snapshot_mapping(self, msg: transactions_pb2.SnapshotMapping): - flat1611 = self._try_flat(msg, self.pretty_snapshot_mapping) - if flat1611 is not None: - assert flat1611 is not None - self.write(flat1611) + flat1619 = self._try_flat(msg, self.pretty_snapshot_mapping) + if flat1619 is not None: + assert flat1619 is not None + self.write(flat1619) return None else: _dollar_dollar = msg - fields1607 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - assert fields1607 is not None - unwrapped_fields1608 = fields1607 - field1609 = unwrapped_fields1608[0] - self.pretty_edb_path(field1609) + fields1615 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + assert fields1615 is not None + unwrapped_fields1616 = fields1615 + field1617 = unwrapped_fields1616[0] + self.pretty_edb_path(field1617) self.write(" ") - field1610 = unwrapped_fields1608[1] - self.pretty_relation_id(field1610) + field1618 = unwrapped_fields1616[1] + self.pretty_relation_id(field1618) def pretty_epoch_reads(self, msg: Sequence[transactions_pb2.Read]): - flat1615 = self._try_flat(msg, self.pretty_epoch_reads) - if flat1615 is not None: - assert flat1615 is not None - self.write(flat1615) + flat1623 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1623 is not None: + assert flat1623 is not None + self.write(flat1623) return None else: - fields1612 = msg + fields1620 = msg self.write("(reads") self.indent_sexp() - if not len(fields1612) == 0: + if not len(fields1620) == 0: self.newline() - for i1614, elem1613 in enumerate(fields1612): - if (i1614 > 0): + for i1622, elem1621 in enumerate(fields1620): + if (i1622 > 0): self.newline() - self.pretty_read(elem1613) + self.pretty_read(elem1621) self.dedent() self.write(")") def pretty_read(self, msg: transactions_pb2.Read): - flat1626 = self._try_flat(msg, self.pretty_read) - if flat1626 is not None: - assert flat1626 is not None - self.write(flat1626) + flat1634 = self._try_flat(msg, self.pretty_read) + if flat1634 is not None: + assert flat1634 is not None + self.write(flat1634) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("demand"): - _t1837 = _dollar_dollar.demand + _t1846 = _dollar_dollar.demand else: - _t1837 = None - deconstruct_result1624 = _t1837 - if deconstruct_result1624 is not None: - assert deconstruct_result1624 is not None - unwrapped1625 = deconstruct_result1624 - self.pretty_demand(unwrapped1625) + _t1846 = None + deconstruct_result1632 = _t1846 + if deconstruct_result1632 is not None: + assert deconstruct_result1632 is not None + unwrapped1633 = deconstruct_result1632 + self.pretty_demand(unwrapped1633) else: _dollar_dollar = msg if _dollar_dollar.HasField("output"): - _t1838 = _dollar_dollar.output + _t1847 = _dollar_dollar.output else: - _t1838 = None - deconstruct_result1622 = _t1838 - if deconstruct_result1622 is not None: - assert deconstruct_result1622 is not None - unwrapped1623 = deconstruct_result1622 - self.pretty_output(unwrapped1623) + _t1847 = None + deconstruct_result1630 = _t1847 + if deconstruct_result1630 is not None: + assert deconstruct_result1630 is not None + unwrapped1631 = deconstruct_result1630 + self.pretty_output(unwrapped1631) else: _dollar_dollar = msg if _dollar_dollar.HasField("what_if"): - _t1839 = _dollar_dollar.what_if + _t1848 = _dollar_dollar.what_if else: - _t1839 = None - deconstruct_result1620 = _t1839 - if deconstruct_result1620 is not None: - assert deconstruct_result1620 is not None - unwrapped1621 = deconstruct_result1620 - self.pretty_what_if(unwrapped1621) + _t1848 = None + deconstruct_result1628 = _t1848 + if deconstruct_result1628 is not None: + assert deconstruct_result1628 is not None + unwrapped1629 = deconstruct_result1628 + self.pretty_what_if(unwrapped1629) else: _dollar_dollar = msg if _dollar_dollar.HasField("abort"): - _t1840 = _dollar_dollar.abort + _t1849 = _dollar_dollar.abort else: - _t1840 = None - deconstruct_result1618 = _t1840 - if deconstruct_result1618 is not None: - assert deconstruct_result1618 is not None - unwrapped1619 = deconstruct_result1618 - self.pretty_abort(unwrapped1619) + _t1849 = None + deconstruct_result1626 = _t1849 + if deconstruct_result1626 is not None: + assert deconstruct_result1626 is not None + unwrapped1627 = deconstruct_result1626 + self.pretty_abort(unwrapped1627) else: _dollar_dollar = msg if _dollar_dollar.HasField("export"): - _t1841 = _dollar_dollar.export + _t1850 = _dollar_dollar.export else: - _t1841 = None - deconstruct_result1616 = _t1841 - if deconstruct_result1616 is not None: - assert deconstruct_result1616 is not None - unwrapped1617 = deconstruct_result1616 - self.pretty_export(unwrapped1617) + _t1850 = None + deconstruct_result1624 = _t1850 + if deconstruct_result1624 is not None: + assert deconstruct_result1624 is not None + unwrapped1625 = deconstruct_result1624 + self.pretty_export(unwrapped1625) else: raise ParseError("No matching rule for read") def pretty_demand(self, msg: transactions_pb2.Demand): - flat1629 = self._try_flat(msg, self.pretty_demand) - if flat1629 is not None: - assert flat1629 is not None - self.write(flat1629) + flat1637 = self._try_flat(msg, self.pretty_demand) + if flat1637 is not None: + assert flat1637 is not None + self.write(flat1637) return None else: _dollar_dollar = msg - fields1627 = _dollar_dollar.relation_id - assert fields1627 is not None - unwrapped_fields1628 = fields1627 + fields1635 = _dollar_dollar.relation_id + assert fields1635 is not None + unwrapped_fields1636 = fields1635 self.write("(demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1628) + self.pretty_relation_id(unwrapped_fields1636) self.dedent() self.write(")") def pretty_output(self, msg: transactions_pb2.Output): - flat1634 = self._try_flat(msg, self.pretty_output) - if flat1634 is not None: - assert flat1634 is not None - self.write(flat1634) + flat1642 = self._try_flat(msg, self.pretty_output) + if flat1642 is not None: + assert flat1642 is not None + self.write(flat1642) return None else: _dollar_dollar = msg - fields1630 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - assert fields1630 is not None - unwrapped_fields1631 = fields1630 + fields1638 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + assert fields1638 is not None + unwrapped_fields1639 = fields1638 self.write("(output") self.indent_sexp() self.newline() - field1632 = unwrapped_fields1631[0] - self.pretty_name(field1632) + field1640 = unwrapped_fields1639[0] + self.pretty_name(field1640) self.newline() - field1633 = unwrapped_fields1631[1] - self.pretty_relation_id(field1633) + field1641 = unwrapped_fields1639[1] + self.pretty_relation_id(field1641) self.dedent() self.write(")") def pretty_what_if(self, msg: transactions_pb2.WhatIf): - flat1639 = self._try_flat(msg, self.pretty_what_if) - if flat1639 is not None: - assert flat1639 is not None - self.write(flat1639) + flat1647 = self._try_flat(msg, self.pretty_what_if) + if flat1647 is not None: + assert flat1647 is not None + self.write(flat1647) return None else: _dollar_dollar = msg - fields1635 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - assert fields1635 is not None - unwrapped_fields1636 = fields1635 + fields1643 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + assert fields1643 is not None + unwrapped_fields1644 = fields1643 self.write("(what_if") self.indent_sexp() self.newline() - field1637 = unwrapped_fields1636[0] - self.pretty_name(field1637) + field1645 = unwrapped_fields1644[0] + self.pretty_name(field1645) self.newline() - field1638 = unwrapped_fields1636[1] - self.pretty_epoch(field1638) + field1646 = unwrapped_fields1644[1] + self.pretty_epoch(field1646) self.dedent() self.write(")") def pretty_abort(self, msg: transactions_pb2.Abort): - flat1645 = self._try_flat(msg, self.pretty_abort) - if flat1645 is not None: - assert flat1645 is not None - self.write(flat1645) + flat1653 = self._try_flat(msg, self.pretty_abort) + if flat1653 is not None: + assert flat1653 is not None + self.write(flat1653) return None else: _dollar_dollar = msg if _dollar_dollar.name != "abort": - _t1842 = _dollar_dollar.name + _t1851 = _dollar_dollar.name else: - _t1842 = None - fields1640 = (_t1842, _dollar_dollar.relation_id,) - assert fields1640 is not None - unwrapped_fields1641 = fields1640 + _t1851 = None + fields1648 = (_t1851, _dollar_dollar.relation_id,) + assert fields1648 is not None + unwrapped_fields1649 = fields1648 self.write("(abort") self.indent_sexp() - field1642 = unwrapped_fields1641[0] - if field1642 is not None: + field1650 = unwrapped_fields1649[0] + if field1650 is not None: self.newline() - assert field1642 is not None - opt_val1643 = field1642 - self.pretty_name(opt_val1643) + assert field1650 is not None + opt_val1651 = field1650 + self.pretty_name(opt_val1651) self.newline() - field1644 = unwrapped_fields1641[1] - self.pretty_relation_id(field1644) + field1652 = unwrapped_fields1649[1] + self.pretty_relation_id(field1652) self.dedent() self.write(")") def pretty_export(self, msg: transactions_pb2.Export): - flat1650 = self._try_flat(msg, self.pretty_export) - if flat1650 is not None: - assert flat1650 is not None - self.write(flat1650) + flat1658 = self._try_flat(msg, self.pretty_export) + if flat1658 is not None: + assert flat1658 is not None + self.write(flat1658) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_config"): - _t1843 = _dollar_dollar.csv_config + _t1852 = _dollar_dollar.csv_config else: - _t1843 = None - deconstruct_result1648 = _t1843 - if deconstruct_result1648 is not None: - assert deconstruct_result1648 is not None - unwrapped1649 = deconstruct_result1648 + _t1852 = None + deconstruct_result1656 = _t1852 + if deconstruct_result1656 is not None: + assert deconstruct_result1656 is not None + unwrapped1657 = deconstruct_result1656 self.write("(export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped1649) + self.pretty_export_csv_config(unwrapped1657) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("iceberg_config"): - _t1844 = _dollar_dollar.iceberg_config + _t1853 = _dollar_dollar.iceberg_config else: - _t1844 = None - deconstruct_result1646 = _t1844 - if deconstruct_result1646 is not None: - assert deconstruct_result1646 is not None - unwrapped1647 = deconstruct_result1646 + _t1853 = None + deconstruct_result1654 = _t1853 + if deconstruct_result1654 is not None: + assert deconstruct_result1654 is not None + unwrapped1655 = deconstruct_result1654 self.write("(export_iceberg") self.indent_sexp() self.newline() - self.pretty_export_iceberg_config(unwrapped1647) + self.pretty_export_iceberg_config(unwrapped1655) self.dedent() self.write(")") else: raise ParseError("No matching rule for export") def pretty_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig): - flat1661 = self._try_flat(msg, self.pretty_export_csv_config) - if flat1661 is not None: - assert flat1661 is not None - self.write(flat1661) + flat1669 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1669 is not None: + assert flat1669 is not None + self.write(flat1669) return None else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) == 0: - _t1846 = self.deconstruct_export_csv_output_location(_dollar_dollar) - _t1845 = (_t1846, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1855 = self.deconstruct_export_csv_output_location(_dollar_dollar) + _t1854 = (_t1855, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else: - _t1845 = None - deconstruct_result1656 = _t1845 - if deconstruct_result1656 is not None: - assert deconstruct_result1656 is not None - unwrapped1657 = deconstruct_result1656 + _t1854 = None + deconstruct_result1664 = _t1854 + if deconstruct_result1664 is not None: + assert deconstruct_result1664 is not None + unwrapped1665 = deconstruct_result1664 self.write("(export_csv_config_v2") self.indent_sexp() self.newline() - field1658 = unwrapped1657[0] - self.pretty_export_csv_output_location(field1658) + field1666 = unwrapped1665[0] + self.pretty_export_csv_output_location(field1666) self.newline() - field1659 = unwrapped1657[1] - self.pretty_export_csv_source(field1659) + field1667 = unwrapped1665[1] + self.pretty_export_csv_source(field1667) self.newline() - field1660 = unwrapped1657[2] - self.pretty_csv_config(field1660) + field1668 = unwrapped1665[2] + self.pretty_csv_config(field1668) self.dedent() self.write(")") else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) != 0: - _t1848 = self.deconstruct_export_csv_config(_dollar_dollar) - _t1847 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1848,) + _t1857 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1856 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1857,) else: - _t1847 = None - deconstruct_result1651 = _t1847 - if deconstruct_result1651 is not None: - assert deconstruct_result1651 is not None - unwrapped1652 = deconstruct_result1651 + _t1856 = None + deconstruct_result1659 = _t1856 + if deconstruct_result1659 is not None: + assert deconstruct_result1659 is not None + unwrapped1660 = deconstruct_result1659 self.write("(export_csv_config") self.indent_sexp() self.newline() - field1653 = unwrapped1652[0] - self.pretty_export_csv_path(field1653) + field1661 = unwrapped1660[0] + self.pretty_export_csv_path(field1661) self.newline() - field1654 = unwrapped1652[1] - self.pretty_export_csv_columns_list(field1654) + field1662 = unwrapped1660[1] + self.pretty_export_csv_columns_list(field1662) self.newline() - field1655 = unwrapped1652[2] - self.pretty_config_dict(field1655) + field1663 = unwrapped1660[2] + self.pretty_config_dict(field1663) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_config") def pretty_export_csv_output_location(self, msg: tuple[str, str]): - flat1666 = self._try_flat(msg, self.pretty_export_csv_output_location) - if flat1666 is not None: - assert flat1666 is not None - self.write(flat1666) + flat1674 = self._try_flat(msg, self.pretty_export_csv_output_location) + if flat1674 is not None: + assert flat1674 is not None + self.write(flat1674) return None else: _dollar_dollar = msg if _dollar_dollar[0] != "": - _t1849 = _dollar_dollar[0] + _t1858 = _dollar_dollar[0] else: - _t1849 = None - deconstruct_result1664 = _t1849 - if deconstruct_result1664 is not None: - assert deconstruct_result1664 is not None - unwrapped1665 = deconstruct_result1664 + _t1858 = None + deconstruct_result1672 = _t1858 + if deconstruct_result1672 is not None: + assert deconstruct_result1672 is not None + unwrapped1673 = deconstruct_result1672 self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(unwrapped1665)) + self.write(self.format_string_value(unwrapped1673)) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar[1] != "": - _t1850 = _dollar_dollar[1] + _t1859 = _dollar_dollar[1] else: - _t1850 = None - deconstruct_result1662 = _t1850 - if deconstruct_result1662 is not None: - assert deconstruct_result1662 is not None - unwrapped1663 = deconstruct_result1662 + _t1859 = None + deconstruct_result1670 = _t1859 + if deconstruct_result1670 is not None: + assert deconstruct_result1670 is not None + unwrapped1671 = deconstruct_result1670 self.write("(transaction_output_name") self.indent_sexp() self.newline() - self.pretty_name(unwrapped1663) + self.pretty_name(unwrapped1671) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_output_location") def pretty_export_csv_source(self, msg: transactions_pb2.ExportCSVSource): - flat1673 = self._try_flat(msg, self.pretty_export_csv_source) - if flat1673 is not None: - assert flat1673 is not None - self.write(flat1673) + flat1681 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1681 is not None: + assert flat1681 is not None + self.write(flat1681) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("gnf_columns"): - _t1851 = _dollar_dollar.gnf_columns.columns + _t1860 = _dollar_dollar.gnf_columns.columns else: - _t1851 = None - deconstruct_result1669 = _t1851 - if deconstruct_result1669 is not None: - assert deconstruct_result1669 is not None - unwrapped1670 = deconstruct_result1669 + _t1860 = None + deconstruct_result1677 = _t1860 + if deconstruct_result1677 is not None: + assert deconstruct_result1677 is not None + unwrapped1678 = deconstruct_result1677 self.write("(gnf_columns") self.indent_sexp() - if not len(unwrapped1670) == 0: + if not len(unwrapped1678) == 0: self.newline() - for i1672, elem1671 in enumerate(unwrapped1670): - if (i1672 > 0): + for i1680, elem1679 in enumerate(unwrapped1678): + if (i1680 > 0): self.newline() - self.pretty_export_csv_column(elem1671) + self.pretty_export_csv_column(elem1679) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("table_def"): - _t1852 = _dollar_dollar.table_def + _t1861 = _dollar_dollar.table_def else: - _t1852 = None - deconstruct_result1667 = _t1852 - if deconstruct_result1667 is not None: - assert deconstruct_result1667 is not None - unwrapped1668 = deconstruct_result1667 + _t1861 = None + deconstruct_result1675 = _t1861 + if deconstruct_result1675 is not None: + assert deconstruct_result1675 is not None + unwrapped1676 = deconstruct_result1675 self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped1668) + self.pretty_relation_id(unwrapped1676) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_source") def pretty_export_csv_column(self, msg: transactions_pb2.ExportCSVColumn): - flat1678 = self._try_flat(msg, self.pretty_export_csv_column) - if flat1678 is not None: - assert flat1678 is not None - self.write(flat1678) + flat1686 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1686 is not None: + assert flat1686 is not None + self.write(flat1686) return None else: _dollar_dollar = msg - fields1674 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - assert fields1674 is not None - unwrapped_fields1675 = fields1674 + fields1682 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + assert fields1682 is not None + unwrapped_fields1683 = fields1682 self.write("(column") self.indent_sexp() self.newline() - field1676 = unwrapped_fields1675[0] - self.write(self.format_string_value(field1676)) + field1684 = unwrapped_fields1683[0] + self.write(self.format_string_value(field1684)) self.newline() - field1677 = unwrapped_fields1675[1] - self.pretty_relation_id(field1677) + field1685 = unwrapped_fields1683[1] + self.pretty_relation_id(field1685) self.dedent() self.write(")") def pretty_export_csv_path(self, msg: str): - flat1680 = self._try_flat(msg, self.pretty_export_csv_path) - if flat1680 is not None: - assert flat1680 is not None - self.write(flat1680) + flat1688 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1688 is not None: + assert flat1688 is not None + self.write(flat1688) return None else: - fields1679 = msg + fields1687 = msg self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1679)) + self.write(self.format_string_value(fields1687)) self.dedent() self.write(")") def pretty_export_csv_columns_list(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): - flat1684 = self._try_flat(msg, self.pretty_export_csv_columns_list) - if flat1684 is not None: - assert flat1684 is not None - self.write(flat1684) + flat1692 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1692 is not None: + assert flat1692 is not None + self.write(flat1692) return None else: - fields1681 = msg + fields1689 = msg self.write("(columns") self.indent_sexp() - if not len(fields1681) == 0: + if not len(fields1689) == 0: self.newline() - for i1683, elem1682 in enumerate(fields1681): - if (i1683 > 0): + for i1691, elem1690 in enumerate(fields1689): + if (i1691 > 0): self.newline() - self.pretty_export_csv_column(elem1682) + self.pretty_export_csv_column(elem1690) self.dedent() self.write(")") def pretty_export_iceberg_config(self, msg: transactions_pb2.ExportIcebergConfig): - flat1693 = self._try_flat(msg, self.pretty_export_iceberg_config) - if flat1693 is not None: - assert flat1693 is not None - self.write(flat1693) + flat1701 = self._try_flat(msg, self.pretty_export_iceberg_config) + if flat1701 is not None: + assert flat1701 is not None + self.write(flat1701) return None else: _dollar_dollar = msg - _t1853 = self.deconstruct_export_iceberg_config_optional(_dollar_dollar) - fields1685 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sorted(_dollar_dollar.table_properties.items()), _t1853,) - assert fields1685 is not None - unwrapped_fields1686 = fields1685 + _t1862 = self.deconstruct_export_iceberg_config_optional(_dollar_dollar) + fields1693 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.table_def, sorted(_dollar_dollar.table_properties.items()), _t1862,) + assert fields1693 is not None + unwrapped_fields1694 = fields1693 self.write("(export_iceberg_config") self.indent_sexp() self.newline() - field1687 = unwrapped_fields1686[0] - self.pretty_iceberg_locator(field1687) + field1695 = unwrapped_fields1694[0] + self.pretty_iceberg_locator(field1695) self.newline() - field1688 = unwrapped_fields1686[1] - self.pretty_iceberg_catalog_config(field1688) + field1696 = unwrapped_fields1694[1] + self.pretty_iceberg_catalog_config(field1696) self.newline() - field1689 = unwrapped_fields1686[2] - self.pretty_export_iceberg_table_def(field1689) + field1697 = unwrapped_fields1694[2] + self.pretty_export_iceberg_table_def(field1697) self.newline() - field1690 = unwrapped_fields1686[3] - self.pretty_iceberg_table_properties(field1690) - field1691 = unwrapped_fields1686[4] - if field1691 is not None: + field1698 = unwrapped_fields1694[3] + self.pretty_iceberg_table_properties(field1698) + field1699 = unwrapped_fields1694[4] + if field1699 is not None: self.newline() - assert field1691 is not None - opt_val1692 = field1691 - self.pretty_config_dict(opt_val1692) + assert field1699 is not None + opt_val1700 = field1699 + self.pretty_config_dict(opt_val1700) self.dedent() self.write(")") def pretty_export_iceberg_table_def(self, msg: logic_pb2.RelationId): - flat1695 = self._try_flat(msg, self.pretty_export_iceberg_table_def) - if flat1695 is not None: - assert flat1695 is not None - self.write(flat1695) + flat1703 = self._try_flat(msg, self.pretty_export_iceberg_table_def) + if flat1703 is not None: + assert flat1703 is not None + self.write(flat1703) return None else: - fields1694 = msg + fields1702 = msg self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(fields1694) + self.pretty_relation_id(fields1702) self.dedent() self.write(")") def pretty_iceberg_table_properties(self, msg: Sequence[tuple[str, str]]): - flat1699 = self._try_flat(msg, self.pretty_iceberg_table_properties) - if flat1699 is not None: - assert flat1699 is not None - self.write(flat1699) + flat1707 = self._try_flat(msg, self.pretty_iceberg_table_properties) + if flat1707 is not None: + assert flat1707 is not None + self.write(flat1707) return None else: - fields1696 = msg + fields1704 = msg self.write("(table_properties") self.indent_sexp() - if not len(fields1696) == 0: + if not len(fields1704) == 0: self.newline() - for i1698, elem1697 in enumerate(fields1696): - if (i1698 > 0): + for i1706, elem1705 in enumerate(fields1704): + if (i1706 > 0): self.newline() - self.pretty_iceberg_property_entry(elem1697) + self.pretty_iceberg_property_entry(elem1705) self.dedent() self.write(")") @@ -4665,8 +4695,8 @@ def pretty_debug_info(self, msg: fragments_pb2.DebugInfo): for _idx, _rid in enumerate(msg.ids): self.newline() self.write("(") - _t1907 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) - self.pprint_dispatch(_t1907) + _t1917 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1917) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.py b/sdks/python/src/lqp/proto/v1/logic_pb2.py index 192085e8..a9afea64 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\"\xcf\x01\n\x12StorageIntegration\x12\x1a\n\x08provider\x18\x01 \x01(\tR\x08provider\x12&\n\x0f\x61zure_sas_token\x18\x02 \x01(\tR\razureSasToken\x12\x1b\n\ts3_region\x18\x03 \x01(\tR\x08s3Region\x12\'\n\x10s3_access_key_id\x18\x04 \x01(\tR\rs3AccessKeyId\x12/\n\x14s3_secret_access_key\x18\x05 \x01(\tR\x11s3SecretAccessKey\"P\n\x0bNamedColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"\x88\x01\n\x0eTargetRelation\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x38\n\x06values\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.NamedColumnR\x06values\"M\n\x0cPlainTargets\x12=\n\x07targets\x18\x01 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07targets\"\x8a\x01\n\nCDCTargets\x12=\n\x07inserts\x18\x01 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07inserts\x12=\n\x07\x64\x65letes\x18\x02 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07\x64\x65letes\"\xe4\x01\n\x0fTargetRelations\x12\x34\n\x04keys\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.NamedColumnR\x04keys\x12\x39\n\x05plain\x18\x02 \x01(\x0b\x32!.relationalai.lqp.v1.PlainTargetsH\x00R\x05plain\x12\x33\n\x03\x63\x64\x63\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CDCTargetsH\x00R\x03\x63\x64\x63\x12#\n\rsynthetic_key\x18\x04 \x01(\x08R\x0csyntheticKeyB\x06\n\x04\x62ody\"\xa1\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\x12G\n\trelations\x18\x05 \x01(\x0b\x32$.relationalai.lqp.v1.TargetRelationsH\x00R\trelations\x88\x01\x01\x42\x0c\n\n_relations\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x86\x04\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\x12]\n\x13storage_integration\x18\r \x01(\x0b\x32\'.relationalai.lqp.v1.StorageIntegrationH\x00R\x12storageIntegration\x88\x01\x01\x42\x16\n\x14_storage_integration\"\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\"\xcf\x01\n\x12StorageIntegration\x12\x1a\n\x08provider\x18\x01 \x01(\tR\x08provider\x12&\n\x0f\x61zure_sas_token\x18\x02 \x01(\tR\razureSasToken\x12\x1b\n\ts3_region\x18\x03 \x01(\tR\x08s3Region\x12\'\n\x10s3_access_key_id\x18\x04 \x01(\tR\rs3AccessKeyId\x12/\n\x14s3_secret_access_key\x18\x05 \x01(\tR\x11s3SecretAccessKey\"P\n\x0bNamedColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"\x88\x01\n\x0eTargetRelation\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x38\n\x06values\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.NamedColumnR\x06values\"M\n\x0cPlainTargets\x12=\n\x07targets\x18\x01 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07targets\"\x8a\x01\n\nCDCTargets\x12=\n\x07inserts\x18\x01 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07inserts\x12=\n\x07\x64\x65letes\x18\x02 \x03(\x0b\x32#.relationalai.lqp.v1.TargetRelationR\x07\x64\x65letes\"\xbb\x02\n\x0fTargetRelations\x12\x34\n\x04keys\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.NamedColumnR\x04keys\x12\x39\n\x05plain\x18\x02 \x01(\x0b\x32!.relationalai.lqp.v1.PlainTargetsH\x00R\x05plain\x12\x33\n\x03\x63\x64\x63\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CDCTargetsH\x00R\x03\x63\x64\x63\x12#\n\rsynthetic_key\x18\x04 \x01(\x08R\x0csyntheticKey\x12\x45\n\x0bload_errors\x18\x05 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x01R\nloadErrors\x88\x01\x01\x42\x06\n\x04\x62odyB\x0e\n\x0c_load_errors\"\xa1\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\x12G\n\trelations\x18\x05 \x01(\x0b\x32$.relationalai.lqp.v1.TargetRelationsH\x00R\trelations\x88\x01\x01\x42\x0c\n\n_relations\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x86\x04\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\x12]\n\x13storage_integration\x18\r \x01(\x0b\x32\'.relationalai.lqp.v1.StorageIntegrationH\x00R\x12storageIntegration\x88\x01\x01\x42\x16\n\x14_storage_integration\"\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) @@ -133,69 +133,69 @@ _globals['_CDCTARGETS']._serialized_start=7234 _globals['_CDCTARGETS']._serialized_end=7372 _globals['_TARGETRELATIONS']._serialized_start=7375 - _globals['_TARGETRELATIONS']._serialized_end=7603 - _globals['_CSVDATA']._serialized_start=7606 - _globals['_CSVDATA']._serialized_end=7895 - _globals['_CSVLOCATOR']._serialized_start=7897 - _globals['_CSVLOCATOR']._serialized_end=7964 - _globals['_CSVCONFIG']._serialized_start=7967 - _globals['_CSVCONFIG']._serialized_end=8485 - _globals['_ICEBERGDATA']._serialized_start=8488 - _globals['_ICEBERGDATA']._serialized_end=8840 - _globals['_ICEBERGLOCATOR']._serialized_start=8842 - _globals['_ICEBERGLOCATOR']._serialized_end=8949 - _globals['_ICEBERGCATALOGCONFIG']._serialized_start=8952 - _globals['_ICEBERGCATALOGCONFIG']._serialized_end=9369 - _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_start=9231 - _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_end=9292 - _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_start=9294 - _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_end=9359 - _globals['_GNFCOLUMN']._serialized_start=9372 - _globals['_GNFCOLUMN']._serialized_end=9546 - _globals['_RELATIONID']._serialized_start=9548 - _globals['_RELATIONID']._serialized_end=9608 - _globals['_TYPE']._serialized_start=9611 - _globals['_TYPE']._serialized_end=10592 - _globals['_UNSPECIFIEDTYPE']._serialized_start=10594 - _globals['_UNSPECIFIEDTYPE']._serialized_end=10611 - _globals['_STRINGTYPE']._serialized_start=10613 - _globals['_STRINGTYPE']._serialized_end=10625 - _globals['_INTTYPE']._serialized_start=10627 - _globals['_INTTYPE']._serialized_end=10636 - _globals['_FLOATTYPE']._serialized_start=10638 - _globals['_FLOATTYPE']._serialized_end=10649 - _globals['_UINT128TYPE']._serialized_start=10651 - _globals['_UINT128TYPE']._serialized_end=10664 - _globals['_INT128TYPE']._serialized_start=10666 - _globals['_INT128TYPE']._serialized_end=10678 - _globals['_DATETYPE']._serialized_start=10680 - _globals['_DATETYPE']._serialized_end=10690 - _globals['_DATETIMETYPE']._serialized_start=10692 - _globals['_DATETIMETYPE']._serialized_end=10706 - _globals['_MISSINGTYPE']._serialized_start=10708 - _globals['_MISSINGTYPE']._serialized_end=10721 - _globals['_DECIMALTYPE']._serialized_start=10723 - _globals['_DECIMALTYPE']._serialized_end=10788 - _globals['_BOOLEANTYPE']._serialized_start=10790 - _globals['_BOOLEANTYPE']._serialized_end=10803 - _globals['_INT32TYPE']._serialized_start=10805 - _globals['_INT32TYPE']._serialized_end=10816 - _globals['_FLOAT32TYPE']._serialized_start=10818 - _globals['_FLOAT32TYPE']._serialized_end=10831 - _globals['_UINT32TYPE']._serialized_start=10833 - _globals['_UINT32TYPE']._serialized_end=10845 - _globals['_VALUE']._serialized_start=10848 - _globals['_VALUE']._serialized_end=11552 - _globals['_UINT128VALUE']._serialized_start=11554 - _globals['_UINT128VALUE']._serialized_end=11606 - _globals['_INT128VALUE']._serialized_start=11608 - _globals['_INT128VALUE']._serialized_end=11659 - _globals['_MISSINGVALUE']._serialized_start=11661 - _globals['_MISSINGVALUE']._serialized_end=11675 - _globals['_DATEVALUE']._serialized_start=11677 - _globals['_DATEVALUE']._serialized_end=11748 - _globals['_DATETIMEVALUE']._serialized_start=11751 - _globals['_DATETIMEVALUE']._serialized_end=11928 - _globals['_DECIMALVALUE']._serialized_start=11930 - _globals['_DECIMALVALUE']._serialized_end=12052 + _globals['_TARGETRELATIONS']._serialized_end=7690 + _globals['_CSVDATA']._serialized_start=7693 + _globals['_CSVDATA']._serialized_end=7982 + _globals['_CSVLOCATOR']._serialized_start=7984 + _globals['_CSVLOCATOR']._serialized_end=8051 + _globals['_CSVCONFIG']._serialized_start=8054 + _globals['_CSVCONFIG']._serialized_end=8572 + _globals['_ICEBERGDATA']._serialized_start=8575 + _globals['_ICEBERGDATA']._serialized_end=8927 + _globals['_ICEBERGLOCATOR']._serialized_start=8929 + _globals['_ICEBERGLOCATOR']._serialized_end=9036 + _globals['_ICEBERGCATALOGCONFIG']._serialized_start=9039 + _globals['_ICEBERGCATALOGCONFIG']._serialized_end=9456 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_start=9318 + _globals['_ICEBERGCATALOGCONFIG_PROPERTIESENTRY']._serialized_end=9379 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_start=9381 + _globals['_ICEBERGCATALOGCONFIG_AUTHPROPERTIESENTRY']._serialized_end=9446 + _globals['_GNFCOLUMN']._serialized_start=9459 + _globals['_GNFCOLUMN']._serialized_end=9633 + _globals['_RELATIONID']._serialized_start=9635 + _globals['_RELATIONID']._serialized_end=9695 + _globals['_TYPE']._serialized_start=9698 + _globals['_TYPE']._serialized_end=10679 + _globals['_UNSPECIFIEDTYPE']._serialized_start=10681 + _globals['_UNSPECIFIEDTYPE']._serialized_end=10698 + _globals['_STRINGTYPE']._serialized_start=10700 + _globals['_STRINGTYPE']._serialized_end=10712 + _globals['_INTTYPE']._serialized_start=10714 + _globals['_INTTYPE']._serialized_end=10723 + _globals['_FLOATTYPE']._serialized_start=10725 + _globals['_FLOATTYPE']._serialized_end=10736 + _globals['_UINT128TYPE']._serialized_start=10738 + _globals['_UINT128TYPE']._serialized_end=10751 + _globals['_INT128TYPE']._serialized_start=10753 + _globals['_INT128TYPE']._serialized_end=10765 + _globals['_DATETYPE']._serialized_start=10767 + _globals['_DATETYPE']._serialized_end=10777 + _globals['_DATETIMETYPE']._serialized_start=10779 + _globals['_DATETIMETYPE']._serialized_end=10793 + _globals['_MISSINGTYPE']._serialized_start=10795 + _globals['_MISSINGTYPE']._serialized_end=10808 + _globals['_DECIMALTYPE']._serialized_start=10810 + _globals['_DECIMALTYPE']._serialized_end=10875 + _globals['_BOOLEANTYPE']._serialized_start=10877 + _globals['_BOOLEANTYPE']._serialized_end=10890 + _globals['_INT32TYPE']._serialized_start=10892 + _globals['_INT32TYPE']._serialized_end=10903 + _globals['_FLOAT32TYPE']._serialized_start=10905 + _globals['_FLOAT32TYPE']._serialized_end=10918 + _globals['_UINT32TYPE']._serialized_start=10920 + _globals['_UINT32TYPE']._serialized_end=10932 + _globals['_VALUE']._serialized_start=10935 + _globals['_VALUE']._serialized_end=11639 + _globals['_UINT128VALUE']._serialized_start=11641 + _globals['_UINT128VALUE']._serialized_end=11693 + _globals['_INT128VALUE']._serialized_start=11695 + _globals['_INT128VALUE']._serialized_end=11746 + _globals['_MISSINGVALUE']._serialized_start=11748 + _globals['_MISSINGVALUE']._serialized_end=11762 + _globals['_DATEVALUE']._serialized_start=11764 + _globals['_DATEVALUE']._serialized_end=11835 + _globals['_DATETIMEVALUE']._serialized_start=11838 + _globals['_DATETIMEVALUE']._serialized_end=12015 + _globals['_DECIMALVALUE']._serialized_start=12017 + _globals['_DECIMALVALUE']._serialized_end=12139 # @@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 5289b27f..b851552e 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi @@ -451,16 +451,18 @@ class CDCTargets(_message.Message): def __init__(self, inserts: _Optional[_Iterable[_Union[TargetRelation, _Mapping]]] = ..., deletes: _Optional[_Iterable[_Union[TargetRelation, _Mapping]]] = ...) -> None: ... class TargetRelations(_message.Message): - __slots__ = ("keys", "plain", "cdc", "synthetic_key") + __slots__ = ("keys", "plain", "cdc", "synthetic_key", "load_errors") KEYS_FIELD_NUMBER: _ClassVar[int] PLAIN_FIELD_NUMBER: _ClassVar[int] CDC_FIELD_NUMBER: _ClassVar[int] SYNTHETIC_KEY_FIELD_NUMBER: _ClassVar[int] + LOAD_ERRORS_FIELD_NUMBER: _ClassVar[int] keys: _containers.RepeatedCompositeFieldContainer[NamedColumn] plain: PlainTargets cdc: CDCTargets synthetic_key: bool - def __init__(self, keys: _Optional[_Iterable[_Union[NamedColumn, _Mapping]]] = ..., plain: _Optional[_Union[PlainTargets, _Mapping]] = ..., cdc: _Optional[_Union[CDCTargets, _Mapping]] = ..., synthetic_key: _Optional[bool] = ...) -> None: ... + load_errors: RelationId + def __init__(self, keys: _Optional[_Iterable[_Union[NamedColumn, _Mapping]]] = ..., plain: _Optional[_Union[PlainTargets, _Mapping]] = ..., cdc: _Optional[_Union[CDCTargets, _Mapping]] = ..., synthetic_key: _Optional[bool] = ..., load_errors: _Optional[_Union[RelationId, _Mapping]] = ...) -> None: ... class CSVData(_message.Message): __slots__ = ("locator", "config", "columns", "asof", "relations") diff --git a/sdks/python/tests/test_parser.py b/sdks/python/tests/test_parser.py index 633f90ad..525210a3 100644 --- a/sdks/python/tests/test_parser.py +++ b/sdks/python/tests/test_parser.py @@ -148,6 +148,59 @@ def test_synthetic_key_rejects_unknown_marker(): parse_fragment(_relations_fragment("(keys bogus)")) +def _load_errors_fragment(load_errors_clause: str) -> str: + # Minimal fragment exercising the optional `(load_errors ...)` clause that + # trails the target relations. + return ( + '(fragment :f (csv_data (csv_locator (paths "x.csv")) (csv_config {}) ' + '(relations (keys (column "id" INT)) (relation :r (column "v" INT)) ' + f"{load_errors_clause}) " + '(asof "2025-01-01T00:00:00Z")))' + ) + + +def test_load_errors_clause(): + # `(load_errors :name)` names the relation collecting rows that fail to load. + relations = _relations_of(_load_errors_fragment("(load_errors :my_load_errors)")) + assert relations.HasField("load_errors") + parser = Parser([], "") + assert relations.load_errors == parser.relation_id_from_string("my_load_errors") + # The clause is trailing and does not disturb the target relations. + assert len(relations.plain.targets) == 1 + + # Omitting the clause leaves the field unset rather than defaulted. + relations = _relations_of(_load_errors_fragment("")) + assert not relations.HasField("load_errors") + + +def test_load_errors_with_cdc(): + # The clause also trails CDC insert/delete deltas. + fragment = ( + '(fragment :f (csv_data (csv_locator (paths "x.csv")) (csv_config {}) ' + "(relations (keys synthetic) " + '(inserts (relation :ins (column "v" INT))) ' + '(deletes (relation :del (column "v" INT))) ' + "(load_errors :my_load_errors)) " + '(asof "2025-01-01T00:00:00Z")))' + ) + relations = _relations_of(fragment) + assert relations.HasField("load_errors") + assert len(relations.cdc.inserts) == 1 + assert len(relations.cdc.deletes) == 1 + + +def test_load_errors_must_follow_relations(): + # The clause is trailing: it may not appear before the target relations. + fragment = ( + '(fragment :f (csv_data (csv_locator (paths "x.csv")) (csv_config {}) ' + '(relations (keys (column "id" INT)) (load_errors :e) ' + '(relation :r (column "v" INT))) ' + '(asof "2025-01-01T00:00:00Z")))' + ) + with pytest.raises(ParseError): + parse_fragment(fragment) + + class TestSymbolLexing: """Tests for SYMBOL token regex — hyphen must be literal, not a range.""" diff --git a/tests/bin/relations_load_errors.bin b/tests/bin/relations_load_errors.bin new file mode 100644 index 0000000000000000000000000000000000000000..de1c6f843e4fd11ac2e2b5e37e9a473b518b0719 GIT binary patch literal 319 zcmdDlOk?R#B*K7#SFu>Kd5o8W@Hc7+8T(lvV&22NzRj ziV%|&gOCB29+wcO(@y^jeWvd|3U(|J`n#Yie}ND;7i&&pQfiJ6lMn-lQho z#Goa_$vy8TcTfD^mx7K$v(s$$`Tmr$!)69h3`3<5OL=BWst{jpWqeM4VoH2!QBi(T bv5<_A6c};tiE9B9*IXtp7A~eVL!otyN~;;ARxomjbBPukTj}d3l_qDWmguLZq^B0^ zB^Q?oiE=P1G3sbBDj6{7#SFu>Kd5o8W@Hc7+8T(lvaY22bU6; z5a+$sm1hoiAMX@QmflcW$y~uE#KXl_o|>7SQ6j{o#2^Gxlk6;CblKpowV;FEsiqeo?WIl8^!yvRZ6DLRJGZ1DlW3gjBfD&Bo>~79l1MMgTCHfB^si literal 0 HcmV?d00001 diff --git a/tests/lqp/relations_load_errors.lqp b/tests/lqp/relations_load_errors.lqp new file mode 100644 index 00000000..889bcb59 --- /dev/null +++ b/tests/lqp/relations_load_errors.lqp @@ -0,0 +1,24 @@ +(transaction + (epoch + (writes + (define + (fragment :f1 + ;; Generalized CSV loading with a `load_errors` sink: rows that fail to load are + ;; collected into :my_load_errors. Its schema is fixed by the loader and differs + ;; from the declared keys, so it is a special case rather than a target relation. + (csv_data + (csv_locator + (paths "s3://bucket/nodes.csv")) + (csv_config {}) + (relations + (keys + (column "id" INT)) + (relation :wide + (column "label" STRING) + (column "ratio" FLOAT)) + (load_errors :my_load_errors)) + (asof "2025-06-01T00:00:00Z"))))) + + (reads + (output :wide :wide) + (output :my_load_errors :my_load_errors)))) diff --git a/tests/lqp/relations_load_errors_cdc.lqp b/tests/lqp/relations_load_errors_cdc.lqp new file mode 100644 index 00000000..ad2bc81d --- /dev/null +++ b/tests/lqp/relations_load_errors_cdc.lqp @@ -0,0 +1,26 @@ +(transaction + (epoch + (writes + (define + (fragment :f1 + ;; A `load_errors` sink combined with CDC loading: the insert/delete deltas are + ;; unaffected, and failed rows still land in :my_load_errors. + (csv_data + (csv_locator + (paths "s3://bucket/edges.csv")) + (csv_config {}) + (relations + (keys synthetic) + (inserts + (relation :weight_ins + (column "weight" FLOAT))) + (deletes + (relation :weight_del + (column "weight" FLOAT))) + (load_errors :my_load_errors)) + (asof "2025-06-01T00:00:00Z"))))) + + (reads + (output :weight_ins :weight_ins) + (output :weight_del :weight_del) + (output :my_load_errors :my_load_errors)))) diff --git a/tests/pretty/relations_load_errors.lqp b/tests/pretty/relations_load_errors.lqp new file mode 100644 index 00000000..54bd0d88 --- /dev/null +++ b/tests/pretty/relations_load_errors.lqp @@ -0,0 +1,25 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (csv_data + (csv_locator (paths "s3://bucket/nodes.csv")) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1i32 + :csv_quotechar "\"" + :csv_skip 0}) + (relations + (keys (column "id" INT)) + (relation :wide (column "label" STRING) (column "ratio" FLOAT)) + (load_errors :my_load_errors)) + (asof "2025-06-01T00:00:00Z"))))) + (reads (output :wide :wide) (output :my_load_errors :my_load_errors)))) diff --git a/tests/pretty/relations_load_errors_cdc.lqp b/tests/pretty/relations_load_errors_cdc.lqp new file mode 100644 index 00000000..227ff302 --- /dev/null +++ b/tests/pretty/relations_load_errors_cdc.lqp @@ -0,0 +1,29 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (csv_data + (csv_locator (paths "s3://bucket/edges.csv")) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1i32 + :csv_quotechar "\"" + :csv_skip 0}) + (relations + (keys synthetic) + (inserts (relation :weight_ins (column "weight" FLOAT))) (deletes + (relation :weight_del (column "weight" FLOAT))) + (load_errors :my_load_errors)) + (asof "2025-06-01T00:00:00Z"))))) + (reads + (output :weight_ins :weight_ins) + (output :weight_del :weight_del) + (output :my_load_errors :my_load_errors)))) diff --git a/tests/pretty_debug/relations_load_errors.lqp b/tests/pretty_debug/relations_load_errors.lqp new file mode 100644 index 00000000..af699297 --- /dev/null +++ b/tests/pretty_debug/relations_load_errors.lqp @@ -0,0 +1,36 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (csv_data + (csv_locator (paths "s3://bucket/nodes.csv")) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1i32 + :csv_quotechar "\"" + :csv_skip 0}) + (relations + (keys (column "id" INT)) + (relation + 0xa06f7aa0fd12a488f1ee358ed04fb942 + (column "label" STRING) + (column "ratio" FLOAT)) + (load_errors 0xf94dbe3c669b1241e9fd5f8c0bd99e0b)) + (asof "2025-06-01T00:00:00Z"))))) + (reads + (output :wide 0xa06f7aa0fd12a488f1ee358ed04fb942) + (output :my_load_errors 0xf94dbe3c669b1241e9fd5f8c0bd99e0b)))) + +;; Debug information +;; ----------------------- +;; Original names +;; ID `0xf94dbe3c669b1241e9fd5f8c0bd99e0b` -> `my_load_errors` +;; ID `0xa06f7aa0fd12a488f1ee358ed04fb942` -> `wide` diff --git a/tests/pretty_debug/relations_load_errors_cdc.lqp b/tests/pretty_debug/relations_load_errors_cdc.lqp new file mode 100644 index 00000000..7658a9c5 --- /dev/null +++ b/tests/pretty_debug/relations_load_errors_cdc.lqp @@ -0,0 +1,36 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (csv_data + (csv_locator (paths "s3://bucket/edges.csv")) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1i32 + :csv_quotechar "\"" + :csv_skip 0}) + (relations + (keys synthetic) + (inserts (relation 0x678037975b01b6389c78bc1cc79abde (column "weight" FLOAT))) (deletes + (relation 0xb214f85adaa2e403bed30d3721f4363 (column "weight" FLOAT))) + (load_errors 0xf94dbe3c669b1241e9fd5f8c0bd99e0b)) + (asof "2025-06-01T00:00:00Z"))))) + (reads + (output :weight_ins 0x678037975b01b6389c78bc1cc79abde) + (output :weight_del 0xb214f85adaa2e403bed30d3721f4363) + (output :my_load_errors 0xf94dbe3c669b1241e9fd5f8c0bd99e0b)))) + +;; Debug information +;; ----------------------- +;; Original names +;; ID `0xf94dbe3c669b1241e9fd5f8c0bd99e0b` -> `my_load_errors` +;; ID `0xb214f85adaa2e403bed30d3721f4363` -> `weight_del` +;; ID `0x678037975b01b6389c78bc1cc79abde` -> `weight_ins`