diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8d3354b..e3fec2f 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -5,10 +5,9 @@ RUN bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && \ sdk install java 25-graalce" RUN mkdir -p ~/lib && cd ~/lib && curl -L -O http://www.antlr.org/download/antlr-4.13.2-complete.jar ENV ANTLR_JAR="~/lib/antlr-4.13.2-complete.jar" -# protoc 29.5 is the last version with protobuf python v5 which is compatible with protoletariat v3 -RUN cd ~ && curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v29.5/protoc-29.5-linux-x86_64.zip && \ - unzip protoc-29.5-linux-x86_64.zip -d ~/.local && \ - rm protoc-29.5-linux-x86_64.zip +RUN cd ~ && curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v33.2/protoc-33.2-linux-x86_64.zip && \ + unzip protoc-33.2-linux-x86_64.zip -d ~/.local && \ + rm protoc-33.2-linux-x86_64.zip RUN curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.58.0/buf-$(uname -s)-$(uname -m)" -o ~/.local/bin/buf && chmod +x ~/.local/bin/buf RUN curl -LsSf https://astral.sh/uv/install.sh | sh USER root \ No newline at end of file diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 2ffb091..02785d1 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -31,4 +31,4 @@ jobs: uvx ruff@0.11.11 check - name: Run ruff formatter run: | - uvx ruff@0.11.11 format \ No newline at end of file + uvx ruff@0.11.11 format --check \ No newline at end of file diff --git a/buf.gen.yaml b/buf.gen.yaml index 9e78e96..fd87494 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,6 +1,6 @@ version: v2 plugins: - - protoc_builtin: python - out: src/substrait/gen - - remote: buf.build/community/nipunn1313-mypy:v3.6.0 - out: src/substrait/gen + - remote: buf.build/protocolbuffers/python:v33.2 + out: src + - remote: buf.build/community/nipunn1313-mypy:v4.0.0 + out: src diff --git a/gen_proto.sh b/gen_proto.sh index e047ad3..59b57da 100755 --- a/gen_proto.sh +++ b/gen_proto.sh @@ -2,11 +2,11 @@ set -eou pipefail -namespace=proto +namespace=substrait.gen.proto submodule_dir=./third_party/substrait src_dir="$submodule_dir"/proto tmp_dir=./buf_work_dir -dest_dir=./src/substrait/gen +dest_dir=./src extension_dir=./src/substrait/extensions # Prefix the protobuf files with a unique configuration to prevent namespace conflicts @@ -14,11 +14,11 @@ extension_dir=./src/substrait/extensions python "$submodule_dir"/tools/proto_prefix.py "$tmp_dir" "$namespace" "$src_dir" # Remove the old python protobuf files -rm -rf "$dest_dir/proto" +rm -rf "$dest_dir/substrait/gen/proto" # Generate the new python protobuf files buf generate -uv run protol --in-place --create-package --python-out "$dest_dir" buf +find "$dest_dir/substrait/gen" -type d -exec touch {}/__init__.py \; # Remove the old extension files rm -rf "$extension_dir" diff --git a/pyproject.toml b/pyproject.toml index 5e4a8a3..29da257 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ authors = [{name = "Substrait contributors", email = "substrait@googlegroups.com license = {text = "Apache-2.0"} readme = "README.md" requires-python = ">=3.10,<3.14" -dependencies = ["protobuf >=3.19.1,<6"] +dependencies = ["protobuf >=6.33,<7"] dynamic = ["version"] [tool.setuptools_scm] @@ -17,7 +17,7 @@ sql = ["sqloxide", "deepdiff"] [dependency-groups] dev = ["pytest >= 7.0.0", "antlr4-python3-runtime", "pyyaml", "sqloxide", "deepdiff", "duckdb<=1.2.2", "datafusion"] -gen_proto = ["protobuf >=3.19.1,<6", "protoletariat >= 3.0.0"] +gen_proto = ["protobuf >=6.33,<7"] gen_extensions = ["datamodel-code-generator"] [tool.pytest.ini_options] diff --git a/src/substrait/builders/type.py b/src/substrait/builders/type.py index 9e715a4..92b560a 100644 --- a/src/substrait/builders/type.py +++ b/src/substrait/builders/type.py @@ -223,7 +223,6 @@ def precision_timestamp_tz(precision: int, nullable=True) -> stt.Type: ) - def struct(types: Iterable[stt.Type], nullable=True) -> stt.Type: return stt.Type( struct=stt.Type.Struct( diff --git a/src/substrait/gen/proto/__init__.pyi b/src/substrait/gen/proto/__init__.pyi deleted file mode 100644 index 736ca9f..0000000 --- a/src/substrait/gen/proto/__init__.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from . import algebra_pb2 -from . import capabilities_pb2 -from . import extended_expression_pb2 -from . import extensions -from . import function_pb2 -from . import parameterized_types_pb2 -from . import plan_pb2 -from . import type_expressions_pb2 -from . import type_pb2 diff --git a/src/substrait/gen/proto/algebra_pb2.py b/src/substrait/gen/proto/algebra_pb2.py index 26c3977..7a2c291 100644 --- a/src/substrait/gen/proto/algebra_pb2.py +++ b/src/substrait/gen/proto/algebra_pb2.py @@ -1,350 +1,370 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/algebra.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/algebra.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/algebra.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() + + from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from ..proto.extensions import extensions_pb2 as proto_dot_extensions_dot_extensions__pb2 -from ..proto import type_pb2 as proto_dot_type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13proto/algebra.proto\x12\x05proto\x1a\x19google/protobuf/any.proto\x1a!proto/extensions/extensions.proto\x1a\x10proto/type.proto"\xba\x0c\n\tRelCommon\x121\n\x06direct\x18\x01 \x01(\x0b2\x17.proto.RelCommon.DirectH\x00R\x06direct\x12+\n\x04emit\x18\x02 \x01(\x0b2\x15.proto.RelCommon.EmitH\x00R\x04emit\x12)\n\x04hint\x18\x03 \x01(\x0b2\x15.proto.RelCommon.HintR\x04hint\x12R\n\x12advanced_extension\x18\x04 \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\x08\n\x06Direct\x1a-\n\x04Emit\x12%\n\x0eoutput_mapping\x18\x01 \x03(\x05R\routputMapping\x1a\x87\n\n\x04Hint\x121\n\x05stats\x18\x01 \x01(\x0b2\x1b.proto.RelCommon.Hint.StatsR\x05stats\x12G\n\nconstraint\x18\x02 \x01(\x0b2\'.proto.RelCommon.Hint.RuntimeConstraintR\nconstraint\x12\x14\n\x05alias\x18\x03 \x01(\tR\x05alias\x12!\n\x0coutput_names\x18\x04 \x03(\tR\x0boutputNames\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x12U\n\x12saved_computations\x18\x0b \x03(\x0b2&.proto.RelCommon.Hint.SavedComputationR\x11savedComputations\x12X\n\x13loaded_computations\x18\x0c \x03(\x0b2\'.proto.RelCommon.Hint.LoadedComputationR\x12loadedComputations\x1a\x99\x01\n\x05Stats\x12\x1b\n\trow_count\x18\x01 \x01(\x01R\x08rowCount\x12\x1f\n\x0brecord_size\x18\x02 \x01(\x01R\nrecordSize\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1ag\n\x11RuntimeConstraint\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\xc8\x01\n\x10SavedComputation\x12%\n\x0ecomputation_id\x18\x01 \x01(\x05R\rcomputationId\x129\n\x04type\x18\x02 \x01(\x0e2%.proto.RelCommon.Hint.ComputationTypeR\x04type\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\xdc\x01\n\x11LoadedComputation\x128\n\x18computation_id_reference\x18\x01 \x01(\x05R\x16computationIdReference\x129\n\x04type\x18\x02 \x01(\x0e2%.proto.RelCommon.Hint.ComputationTypeR\x04type\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\x95\x01\n\x0fComputationType\x12 \n\x1cCOMPUTATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1aCOMPUTATION_TYPE_HASHTABLE\x10\x01\x12!\n\x1dCOMPUTATION_TYPE_BLOOM_FILTER\x10\x02\x12\x1d\n\x18COMPUTATION_TYPE_UNKNOWN\x10\x8fNB\x0b\n\temit_kind"\x85\x14\n\x07ReadRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x123\n\x0bbase_schema\x18\x02 \x01(\x0b2\x12.proto.NamedStructR\nbaseSchema\x12)\n\x06filter\x18\x03 \x01(\x0b2\x11.proto.ExpressionR\x06filter\x12?\n\x12best_effort_filter\x18\x0b \x01(\x0b2\x11.proto.ExpressionR\x10bestEffortFilter\x12@\n\nprojection\x18\x04 \x01(\x0b2 .proto.Expression.MaskExpressionR\nprojection\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x12B\n\rvirtual_table\x18\x05 \x01(\x0b2\x1b.proto.ReadRel.VirtualTableH\x00R\x0cvirtualTable\x12<\n\x0blocal_files\x18\x06 \x01(\x0b2\x19.proto.ReadRel.LocalFilesH\x00R\nlocalFiles\x12<\n\x0bnamed_table\x18\x07 \x01(\x0b2\x19.proto.ReadRel.NamedTableH\x00R\nnamedTable\x12H\n\x0fextension_table\x18\x08 \x01(\x0b2\x1d.proto.ReadRel.ExtensionTableH\x00R\x0eextensionTable\x12B\n\riceberg_table\x18\t \x01(\x0b2\x1b.proto.ReadRel.IcebergTableH\x00R\x0cicebergTable\x1av\n\nNamedTable\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\xfc\x01\n\x0cIcebergTable\x12F\n\x06direct\x18\x01 \x01(\x0b2,.proto.ReadRel.IcebergTable.MetadataFileReadH\x00R\x06direct\x1a\x95\x01\n\x10MetadataFileRead\x12!\n\x0cmetadata_uri\x18\x01 \x01(\tR\x0bmetadataUri\x12!\n\x0bsnapshot_id\x18\x02 \x01(\tH\x00R\nsnapshotId\x12/\n\x12snapshot_timestamp\x18\x03 \x01(\x03H\x00R\x11snapshotTimestampB\n\n\x08snapshotB\x0c\n\ntable_type\x1a\x8f\x01\n\x0cVirtualTable\x12<\n\x06values\x18\x01 \x03(\x0b2 .proto.Expression.Literal.StructB\x02\x18\x01R\x06values\x12A\n\x0bexpressions\x18\x02 \x03(\x0b2\x1f.proto.Expression.Nested.StructR\x0bexpressions\x1a>\n\x0eExtensionTable\x12,\n\x06detail\x18\x01 \x01(\x0b2\x14.google.protobuf.AnyR\x06detail\x1a\xf4\t\n\nLocalFiles\x12;\n\x05items\x18\x01 \x03(\x0b2%.proto.ReadRel.LocalFiles.FileOrFilesR\x05items\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\xd4\x08\n\x0bFileOrFiles\x12\x1b\n\x08uri_path\x18\x01 \x01(\tH\x00R\x07uriPath\x12$\n\ruri_path_glob\x18\x02 \x01(\tH\x00R\x0buriPathGlob\x12\x1b\n\x08uri_file\x18\x03 \x01(\tH\x00R\x07uriFile\x12\x1f\n\nuri_folder\x18\x04 \x01(\tH\x00R\turiFolder\x12\'\n\x0fpartition_index\x18\x06 \x01(\x04R\x0epartitionIndex\x12\x14\n\x05start\x18\x07 \x01(\x04R\x05start\x12\x16\n\x06length\x18\x08 \x01(\x04R\x06length\x12T\n\x07parquet\x18\t \x01(\x0b28.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsH\x01R\x07parquet\x12N\n\x05arrow\x18\n \x01(\x0b26.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsH\x01R\x05arrow\x12H\n\x03orc\x18\x0b \x01(\x0b24.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsH\x01R\x03orc\x124\n\textension\x18\x0c \x01(\x0b2\x14.google.protobuf.AnyH\x01R\textension\x12K\n\x04dwrf\x18\r \x01(\x0b25.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsH\x01R\x04dwrf\x12]\n\x04text\x18\x0e \x01(\x0b2G.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsH\x01R\x04text\x1a\x14\n\x12ParquetReadOptions\x1a\x12\n\x10ArrowReadOptions\x1a\x10\n\x0eOrcReadOptions\x1a\x11\n\x0fDwrfReadOptions\x1a\xa1\x02\n!DelimiterSeparatedTextReadOptions\x12\'\n\x0ffield_delimiter\x18\x01 \x01(\tR\x0efieldDelimiter\x12"\n\rmax_line_size\x18\x02 \x01(\x04R\x0bmaxLineSize\x12\x14\n\x05quote\x18\x03 \x01(\tR\x05quote\x12/\n\x14header_lines_to_skip\x18\x04 \x01(\x04R\x11headerLinesToSkip\x12\x16\n\x06escape\x18\x05 \x01(\tR\x06escape\x126\n\x15value_treated_as_null\x18\x06 \x01(\tH\x00R\x12valueTreatedAsNull\x88\x01\x01B\x18\n\x16_value_treated_as_nullB\x0b\n\tpath_typeB\r\n\x0bfile_formatJ\x04\x08\x05\x10\x06R\x06formatB\x0b\n\tread_type"\xe1\x01\n\nProjectRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x123\n\x0bexpressions\x18\x03 \x03(\x0b2\x11.proto.ExpressionR\x0bexpressions\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xb1\x05\n\x07JoinRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12\x1e\n\x04left\x18\x02 \x01(\x0b2\n.proto.RelR\x04left\x12 \n\x05right\x18\x03 \x01(\x0b2\n.proto.RelR\x05right\x121\n\nexpression\x18\x04 \x01(\x0b2\x11.proto.ExpressionR\nexpression\x12;\n\x10post_join_filter\x18\x05 \x01(\x0b2\x11.proto.ExpressionR\x0epostJoinFilter\x12+\n\x04type\x18\x06 \x01(\x0e2\x17.proto.JoinRel.JoinTypeR\x04type\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x06\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x08\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c"\xca\x01\n\x08CrossRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12\x1e\n\x04left\x18\x02 \x01(\x0b2\n.proto.RelR\x04left\x12 \n\x05right\x18\x03 \x01(\x0b2\n.proto.RelR\x05right\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xeb\x02\n\x08FetchRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12\x1c\n\x06offset\x18\x03 \x01(\x03B\x02\x18\x01H\x00R\x06offset\x124\n\x0boffset_expr\x18\x05 \x01(\x0b2\x11.proto.ExpressionH\x00R\noffsetExpr\x12\x1a\n\x05count\x18\x04 \x01(\x03B\x02\x18\x01H\x01R\x05count\x122\n\ncount_expr\x18\x06 \x01(\x0b2\x11.proto.ExpressionH\x01R\tcountExpr\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtensionB\r\n\x0boffset_modeB\x0c\n\ncount_mode"\xdf\x04\n\x0cAggregateRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12:\n\tgroupings\x18\x03 \x03(\x0b2\x1c.proto.AggregateRel.GroupingR\tgroupings\x127\n\x08measures\x18\x04 \x03(\x0b2\x1b.proto.AggregateRel.MeasureR\x08measures\x12D\n\x14grouping_expressions\x18\x05 \x03(\x0b2\x11.proto.ExpressionR\x13groupingExpressions\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\x89\x01\n\x08Grouping\x12H\n\x14grouping_expressions\x18\x01 \x03(\x0b2\x11.proto.ExpressionB\x02\x18\x01R\x13groupingExpressions\x123\n\x15expression_references\x18\x02 \x03(\rR\x14expressionReferences\x1ah\n\x07Measure\x122\n\x07measure\x18\x01 \x01(\x0b2\x18.proto.AggregateFunctionR\x07measure\x12)\n\x06filter\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x06filter"\xca\x07\n\x1cConsistentPartitionWindowRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12`\n\x10window_functions\x18\x03 \x03(\x0b25.proto.ConsistentPartitionWindowRel.WindowRelFunctionR\x0fwindowFunctions\x12F\n\x15partition_expressions\x18\x04 \x03(\x0b2\x11.proto.ExpressionR\x14partitionExpressions\x12&\n\x05sorts\x18\x05 \x03(\x0b2\x10.proto.SortFieldR\x05sorts\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1a\xb7\x04\n\x11WindowRelFunction\x12-\n\x12function_reference\x18\x01 \x01(\rR\x11functionReference\x125\n\targuments\x18\t \x03(\x0b2\x17.proto.FunctionArgumentR\targuments\x12/\n\x07options\x18\x0b \x03(\x0b2\x15.proto.FunctionOptionR\x07options\x12,\n\x0boutput_type\x18\x07 \x01(\x0b2\x0b.proto.TypeR\noutputType\x12-\n\x05phase\x18\x06 \x01(\x0e2\x17.proto.AggregationPhaseR\x05phase\x12N\n\ninvocation\x18\n \x01(\x0e2..proto.AggregateFunction.AggregationInvocationR\ninvocation\x12G\n\x0blower_bound\x18\x05 \x01(\x0b2&.proto.Expression.WindowFunction.BoundR\nlowerBound\x12G\n\x0bupper_bound\x18\x04 \x01(\x0b2&.proto.Expression.WindowFunction.BoundR\nupperBound\x12L\n\x0bbounds_type\x18\x0c \x01(\x0e2+.proto.Expression.WindowFunction.BoundsTypeR\nboundsType"\xd1\x01\n\x07SortRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12&\n\x05sorts\x18\x03 \x03(\x0b2\x10.proto.SortFieldR\x05sorts\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xdc\x01\n\tFilterRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12/\n\tcondition\x18\x03 \x01(\x0b2\x11.proto.ExpressionR\tcondition\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xde\x03\n\x06SetRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12"\n\x06inputs\x18\x02 \x03(\x0b2\n.proto.RelR\x06inputs\x12#\n\x02op\x18\x03 \x01(\x0e2\x13.proto.SetRel.SetOpR\x02op\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\x8c\x02\n\x05SetOp\x12\x16\n\x12SET_OP_UNSPECIFIED\x10\x00\x12\x18\n\x14SET_OP_MINUS_PRIMARY\x10\x01\x12\x1c\n\x18SET_OP_MINUS_PRIMARY_ALL\x10\x07\x12\x19\n\x15SET_OP_MINUS_MULTISET\x10\x02\x12\x1f\n\x1bSET_OP_INTERSECTION_PRIMARY\x10\x03\x12 \n\x1cSET_OP_INTERSECTION_MULTISET\x10\x04\x12$\n SET_OP_INTERSECTION_MULTISET_ALL\x10\x08\x12\x19\n\x15SET_OP_UNION_DISTINCT\x10\x05\x12\x14\n\x10SET_OP_UNION_ALL\x10\x06"\x8e\x01\n\x12ExtensionSingleRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12,\n\x06detail\x18\x03 \x01(\x0b2\x14.google.protobuf.AnyR\x06detail"j\n\x10ExtensionLeafRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12,\n\x06detail\x18\x02 \x01(\x0b2\x14.google.protobuf.AnyR\x06detail"\x8f\x01\n\x11ExtensionMultiRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12"\n\x06inputs\x18\x02 \x03(\x0b2\n.proto.RelR\x06inputs\x12,\n\x06detail\x18\x03 \x01(\x0b2\x14.google.protobuf.AnyR\x06detail"\xe9\x08\n\x0bExchangeRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x12\'\n\x0fpartition_count\x18\x03 \x01(\x05R\x0epartitionCount\x12;\n\x07targets\x18\x04 \x03(\x0b2!.proto.ExchangeRel.ExchangeTargetR\x07targets\x12N\n\x11scatter_by_fields\x18\x05 \x01(\x0b2 .proto.ExchangeRel.ScatterFieldsH\x00R\x0fscatterByFields\x12P\n\rsingle_target\x18\x06 \x01(\x0b2).proto.ExchangeRel.SingleBucketExpressionH\x00R\x0csingleTarget\x12M\n\x0cmulti_target\x18\x07 \x01(\x0b2(.proto.ExchangeRel.MultiBucketExpressionH\x00R\x0bmultiTarget\x12@\n\x0bround_robin\x18\x08 \x01(\x0b2\x1d.proto.ExchangeRel.RoundRobinH\x00R\nroundRobin\x12<\n\tbroadcast\x18\t \x01(\x0b2\x1c.proto.ExchangeRel.BroadcastH\x00R\tbroadcast\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1aI\n\rScatterFields\x128\n\x06fields\x18\x01 \x03(\x0b2 .proto.Expression.FieldReferenceR\x06fields\x1aK\n\x16SingleBucketExpression\x121\n\nexpression\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\nexpression\x1a|\n\x15MultiBucketExpression\x121\n\nexpression\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\nexpression\x120\n\x14constrained_to_count\x18\x02 \x01(\x08R\x12constrainedToCount\x1a\x0b\n\tBroadcast\x1a"\n\nRoundRobin\x12\x14\n\x05exact\x18\x01 \x01(\x08R\x05exact\x1a\x8a\x01\n\x0eExchangeTarget\x12!\n\x0cpartition_id\x18\x01 \x03(\x05R\x0bpartitionId\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x122\n\x08extended\x18\x03 \x01(\x0b2\x14.google.protobuf.AnyH\x00R\x08extendedB\r\n\x0btarget_typeB\x0f\n\rexchange_kind"\xfc\x02\n\tExpandRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12 \n\x05input\x18\x02 \x01(\x0b2\n.proto.RelR\x05input\x124\n\x06fields\x18\x04 \x03(\x0b2\x1c.proto.ExpandRel.ExpandFieldR\x06fields\x1a\xa7\x01\n\x0bExpandField\x12J\n\x0fswitching_field\x18\x02 \x01(\x0b2\x1f.proto.ExpandRel.SwitchingFieldH\x00R\x0eswitchingField\x12>\n\x10consistent_field\x18\x03 \x01(\x0b2\x11.proto.ExpressionH\x00R\x0fconsistentFieldB\x0c\n\nfield_type\x1aC\n\x0eSwitchingField\x121\n\nduplicates\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\nduplicates"A\n\x07RelRoot\x12 \n\x05input\x18\x01 \x01(\x0b2\n.proto.RelR\x05input\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names"\xd0\x08\n\x03Rel\x12$\n\x04read\x18\x01 \x01(\x0b2\x0e.proto.ReadRelH\x00R\x04read\x12*\n\x06filter\x18\x02 \x01(\x0b2\x10.proto.FilterRelH\x00R\x06filter\x12\'\n\x05fetch\x18\x03 \x01(\x0b2\x0f.proto.FetchRelH\x00R\x05fetch\x123\n\taggregate\x18\x04 \x01(\x0b2\x13.proto.AggregateRelH\x00R\taggregate\x12$\n\x04sort\x18\x05 \x01(\x0b2\x0e.proto.SortRelH\x00R\x04sort\x12$\n\x04join\x18\x06 \x01(\x0b2\x0e.proto.JoinRelH\x00R\x04join\x12-\n\x07project\x18\x07 \x01(\x0b2\x11.proto.ProjectRelH\x00R\x07project\x12!\n\x03set\x18\x08 \x01(\x0b2\r.proto.SetRelH\x00R\x03set\x12F\n\x10extension_single\x18\t \x01(\x0b2\x19.proto.ExtensionSingleRelH\x00R\x0fextensionSingle\x12C\n\x0fextension_multi\x18\n \x01(\x0b2\x18.proto.ExtensionMultiRelH\x00R\x0eextensionMulti\x12@\n\x0eextension_leaf\x18\x0b \x01(\x0b2\x17.proto.ExtensionLeafRelH\x00R\rextensionLeaf\x12\'\n\x05cross\x18\x0c \x01(\x0b2\x0f.proto.CrossRelH\x00R\x05cross\x123\n\treference\x18\x15 \x01(\x0b2\x13.proto.ReferenceRelH\x00R\treference\x12\'\n\x05write\x18\x13 \x01(\x0b2\x0f.proto.WriteRelH\x00R\x05write\x12!\n\x03ddl\x18\x14 \x01(\x0b2\r.proto.DdlRelH\x00R\x03ddl\x12*\n\x06update\x18\x16 \x01(\x0b2\x10.proto.UpdateRelH\x00R\x06update\x121\n\thash_join\x18\r \x01(\x0b2\x12.proto.HashJoinRelH\x00R\x08hashJoin\x124\n\nmerge_join\x18\x0e \x01(\x0b2\x13.proto.MergeJoinRelH\x00R\tmergeJoin\x12D\n\x10nested_loop_join\x18\x12 \x01(\x0b2\x18.proto.NestedLoopJoinRelH\x00R\x0enestedLoopJoin\x12=\n\x06window\x18\x11 \x01(\x0b2#.proto.ConsistentPartitionWindowRelH\x00R\x06window\x120\n\x08exchange\x18\x0f \x01(\x0b2\x12.proto.ExchangeRelH\x00R\x08exchange\x12*\n\x06expand\x18\x10 \x01(\x0b2\x10.proto.ExpandRelH\x00R\x06expandB\n\n\x08rel_type"|\n\x10NamedObjectWrite\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"?\n\x0fExtensionObject\x12,\n\x06detail\x18\x01 \x01(\x0b2\x14.google.protobuf.AnyR\x06detail"\x86\x06\n\x06DdlRel\x12<\n\x0cnamed_object\x18\x01 \x01(\x0b2\x17.proto.NamedObjectWriteH\x00R\x0bnamedObject\x12C\n\x10extension_object\x18\x02 \x01(\x0b2\x16.proto.ExtensionObjectH\x00R\x0fextensionObject\x125\n\x0ctable_schema\x18\x03 \x01(\x0b2\x12.proto.NamedStructR\x0btableSchema\x12G\n\x0etable_defaults\x18\x04 \x01(\x0b2 .proto.Expression.Literal.StructR\rtableDefaults\x12/\n\x06object\x18\x05 \x01(\x0e2\x17.proto.DdlRel.DdlObjectR\x06object\x12#\n\x02op\x18\x06 \x01(\x0e2\x13.proto.DdlRel.DdlOpR\x02op\x123\n\x0fview_definition\x18\x07 \x01(\x0b2\n.proto.RelR\x0eviewDefinition\x12(\n\x06common\x18\x08 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12R\n\x12advanced_extension\x18\t \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"R\n\tDdlObject\x12\x1a\n\x16DDL_OBJECT_UNSPECIFIED\x10\x00\x12\x14\n\x10DDL_OBJECT_TABLE\x10\x01\x12\x13\n\x0fDDL_OBJECT_VIEW\x10\x02"\x8d\x01\n\x05DdlOp\x12\x16\n\x12DDL_OP_UNSPECIFIED\x10\x00\x12\x11\n\rDDL_OP_CREATE\x10\x01\x12\x1c\n\x18DDL_OP_CREATE_OR_REPLACE\x10\x02\x12\x10\n\x0cDDL_OP_ALTER\x10\x03\x12\x0f\n\x0bDDL_OP_DROP\x10\x04\x12\x18\n\x14DDL_OP_DROP_IF_EXIST\x10\x05B\x0c\n\nwrite_type"\x9b\x07\n\x08WriteRel\x12:\n\x0bnamed_table\x18\x01 \x01(\x0b2\x17.proto.NamedObjectWriteH\x00R\nnamedTable\x12A\n\x0fextension_table\x18\x02 \x01(\x0b2\x16.proto.ExtensionObjectH\x00R\x0eextensionTable\x125\n\x0ctable_schema\x18\x03 \x01(\x0b2\x12.proto.NamedStructR\x0btableSchema\x12\'\n\x02op\x18\x04 \x01(\x0e2\x17.proto.WriteRel.WriteOpR\x02op\x12 \n\x05input\x18\x05 \x01(\x0b2\n.proto.RelR\x05input\x12;\n\x0bcreate_mode\x18\x08 \x01(\x0e2\x1a.proto.WriteRel.CreateModeR\ncreateMode\x122\n\x06output\x18\x06 \x01(\x0e2\x1a.proto.WriteRel.OutputModeR\x06output\x12(\n\x06common\x18\x07 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12R\n\x12advanced_extension\x18\t \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"u\n\x07WriteOp\x12\x18\n\x14WRITE_OP_UNSPECIFIED\x10\x00\x12\x13\n\x0fWRITE_OP_INSERT\x10\x01\x12\x13\n\x0fWRITE_OP_DELETE\x10\x02\x12\x13\n\x0fWRITE_OP_UPDATE\x10\x03\x12\x11\n\rWRITE_OP_CTAS\x10\x04"\xb1\x01\n\nCreateMode\x12\x1b\n\x17CREATE_MODE_UNSPECIFIED\x10\x00\x12 \n\x1cCREATE_MODE_APPEND_IF_EXISTS\x10\x01\x12!\n\x1dCREATE_MODE_REPLACE_IF_EXISTS\x10\x02\x12 \n\x1cCREATE_MODE_IGNORE_IF_EXISTS\x10\x03\x12\x1f\n\x1bCREATE_MODE_ERROR_IF_EXISTS\x10\x04"f\n\nOutputMode\x12\x1b\n\x17OUTPUT_MODE_UNSPECIFIED\x10\x00\x12\x19\n\x15OUTPUT_MODE_NO_OUTPUT\x10\x01\x12 \n\x1cOUTPUT_MODE_MODIFIED_RECORDS\x10\x02B\x0c\n\nwrite_type"\xd3\x03\n\tUpdateRel\x124\n\x0bnamed_table\x18\x01 \x01(\x0b2\x11.proto.NamedTableH\x00R\nnamedTable\x125\n\x0ctable_schema\x18\x02 \x01(\x0b2\x12.proto.NamedStructR\x0btableSchema\x12/\n\tcondition\x18\x03 \x01(\x0b2\x11.proto.ExpressionR\tcondition\x12N\n\x0ftransformations\x18\x04 \x03(\x0b2$.proto.UpdateRel.TransformExpressionR\x0ftransformations\x12R\n\x12advanced_extension\x18\x05 \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension\x1au\n\x13TransformExpression\x129\n\x0etransformation\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\x0etransformation\x12#\n\rcolumn_target\x18\x02 \x01(\x05R\x0ccolumnTargetB\r\n\x0bupdate_type"v\n\nNamedTable\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xab\x04\n\x11ComparisonJoinKey\x124\n\x04left\x18\x01 \x01(\x0b2 .proto.Expression.FieldReferenceR\x04left\x126\n\x05right\x18\x02 \x01(\x0b2 .proto.Expression.FieldReferenceR\x05right\x12G\n\ncomparison\x18\x03 \x01(\x0b2\'.proto.ComparisonJoinKey.ComparisonTypeR\ncomparison\x1a\xa5\x01\n\x0eComparisonType\x12G\n\x06simple\x18\x01 \x01(\x0e2-.proto.ComparisonJoinKey.SimpleComparisonTypeH\x00R\x06simple\x12<\n\x19custom_function_reference\x18\x02 \x01(\rH\x00R\x17customFunctionReferenceB\x0c\n\ninner_type"\xb6\x01\n\x14SimpleComparisonType\x12&\n"SIMPLE_COMPARISON_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SIMPLE_COMPARISON_TYPE_EQ\x10\x01\x12/\n+SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM\x10\x02\x12&\n"SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL\x10\x03"\xd4\x07\n\x0bHashJoinRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12\x1e\n\x04left\x18\x02 \x01(\x0b2\n.proto.RelR\x04left\x12 \n\x05right\x18\x03 \x01(\x0b2\n.proto.RelR\x05right\x12A\n\tleft_keys\x18\x04 \x03(\x0b2 .proto.Expression.FieldReferenceB\x02\x18\x01R\x08leftKeys\x12C\n\nright_keys\x18\x05 \x03(\x0b2 .proto.Expression.FieldReferenceB\x02\x18\x01R\trightKeys\x12,\n\x04keys\x18\x08 \x03(\x0b2\x18.proto.ComparisonJoinKeyR\x04keys\x12;\n\x10post_join_filter\x18\x06 \x01(\x0b2\x11.proto.ExpressionR\x0epostJoinFilter\x12/\n\x04type\x18\x07 \x01(\x0e2\x1b.proto.HashJoinRel.JoinTypeR\x04type\x12>\n\x0bbuild_input\x18\t \x01(\x0e2\x1d.proto.HashJoinRel.BuildInputR\nbuildInput\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c"V\n\nBuildInput\x12\x1b\n\x17BUILD_INPUT_UNSPECIFIED\x10\x00\x12\x14\n\x10BUILD_INPUT_LEFT\x10\x01\x12\x15\n\x11BUILD_INPUT_RIGHT\x10\x02"\xbe\x06\n\x0cMergeJoinRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12\x1e\n\x04left\x18\x02 \x01(\x0b2\n.proto.RelR\x04left\x12 \n\x05right\x18\x03 \x01(\x0b2\n.proto.RelR\x05right\x12A\n\tleft_keys\x18\x04 \x03(\x0b2 .proto.Expression.FieldReferenceB\x02\x18\x01R\x08leftKeys\x12C\n\nright_keys\x18\x05 \x03(\x0b2 .proto.Expression.FieldReferenceB\x02\x18\x01R\trightKeys\x12,\n\x04keys\x18\x08 \x03(\x0b2\x18.proto.ComparisonJoinKeyR\x04keys\x12;\n\x10post_join_filter\x18\x06 \x01(\x0b2\x11.proto.ExpressionR\x0epostJoinFilter\x120\n\x04type\x18\x07 \x01(\x0e2\x1c.proto.MergeJoinRel.JoinTypeR\x04type\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c"\x88\x05\n\x11NestedLoopJoinRel\x12(\n\x06common\x18\x01 \x01(\x0b2\x10.proto.RelCommonR\x06common\x12\x1e\n\x04left\x18\x02 \x01(\x0b2\n.proto.RelR\x04left\x12 \n\x05right\x18\x03 \x01(\x0b2\n.proto.RelR\x05right\x121\n\nexpression\x18\x04 \x01(\x0b2\x11.proto.ExpressionR\nexpression\x125\n\x04type\x18\x05 \x01(\x0e2!.proto.NestedLoopJoinRel.JoinTypeR\x04type\x12R\n\x12advanced_extension\x18\n \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x11advancedExtension"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c"\x82\x01\n\x10FunctionArgument\x12\x14\n\x04enum\x18\x01 \x01(\tH\x00R\x04enum\x12!\n\x04type\x18\x02 \x01(\x0b2\x0b.proto.TypeH\x00R\x04type\x12)\n\x05value\x18\x03 \x01(\x0b2\x11.proto.ExpressionH\x00R\x05valueB\n\n\x08arg_type"D\n\x0eFunctionOption\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n\npreference\x18\x02 \x03(\tR\npreference"\xdfW\n\nExpression\x125\n\x07literal\x18\x01 \x01(\x0b2\x19.proto.Expression.LiteralH\x00R\x07literal\x12@\n\tselection\x18\x02 \x01(\x0b2 .proto.Expression.FieldReferenceH\x00R\tselection\x12K\n\x0fscalar_function\x18\x03 \x01(\x0b2 .proto.Expression.ScalarFunctionH\x00R\x0escalarFunction\x12K\n\x0fwindow_function\x18\x05 \x01(\x0b2 .proto.Expression.WindowFunctionH\x00R\x0ewindowFunction\x123\n\x07if_then\x18\x06 \x01(\x0b2\x18.proto.Expression.IfThenH\x00R\x06ifThen\x12Q\n\x11switch_expression\x18\x07 \x01(\x0b2".proto.Expression.SwitchExpressionH\x00R\x10switchExpression\x12L\n\x10singular_or_list\x18\x08 \x01(\x0b2 .proto.Expression.SingularOrListH\x00R\x0esingularOrList\x12C\n\rmulti_or_list\x18\t \x01(\x0b2\x1d.proto.Expression.MultiOrListH\x00R\x0bmultiOrList\x12,\n\x04cast\x18\x0b \x01(\x0b2\x16.proto.Expression.CastH\x00R\x04cast\x128\n\x08subquery\x18\x0c \x01(\x0b2\x1a.proto.Expression.SubqueryH\x00R\x08subquery\x122\n\x06nested\x18\r \x01(\x0b2\x18.proto.Expression.NestedH\x00R\x06nested\x12F\n\x11dynamic_parameter\x18\x0e \x01(\x0b2\x17.proto.DynamicParameterH\x00R\x10dynamicParameter\x120\n\x04enum\x18\n \x01(\x0b2\x16.proto.Expression.EnumB\x02\x18\x01H\x00R\x04enum\x1a\x86\x01\n\x04Enum\x12\x1e\n\tspecified\x18\x01 \x01(\tH\x00R\tspecified\x12@\n\x0bunspecified\x18\x02 \x01(\x0b2\x1c.proto.Expression.Enum.EmptyH\x00R\x0bunspecified\x1a\x0b\n\x05Empty:\x02\x18\x01:\x02\x18\x01B\x0b\n\tenum_kind\x1a\xde\x16\n\x07Literal\x12\x1a\n\x07boolean\x18\x01 \x01(\x08H\x00R\x07boolean\x12\x10\n\x02i8\x18\x02 \x01(\x05H\x00R\x02i8\x12\x12\n\x03i16\x18\x03 \x01(\x05H\x00R\x03i16\x12\x12\n\x03i32\x18\x05 \x01(\x05H\x00R\x03i32\x12\x12\n\x03i64\x18\x07 \x01(\x03H\x00R\x03i64\x12\x14\n\x04fp32\x18\n \x01(\x02H\x00R\x04fp32\x12\x14\n\x04fp64\x18\x0b \x01(\x01H\x00R\x04fp64\x12\x18\n\x06string\x18\x0c \x01(\tH\x00R\x06string\x12\x18\n\x06binary\x18\r \x01(\x0cH\x00R\x06binary\x12"\n\ttimestamp\x18\x0e \x01(\x03B\x02\x18\x01H\x00R\ttimestamp\x12\x14\n\x04date\x18\x10 \x01(\x05H\x00R\x04date\x12\x14\n\x04time\x18\x11 \x01(\x03H\x00R\x04time\x12d\n\x16interval_year_to_month\x18\x13 \x01(\x0b2-.proto.Expression.Literal.IntervalYearToMonthH\x00R\x13intervalYearToMonth\x12d\n\x16interval_day_to_second\x18\x14 \x01(\x0b2-.proto.Expression.Literal.IntervalDayToSecondH\x00R\x13intervalDayToSecond\x12Y\n\x11interval_compound\x18$ \x01(\x0b2*.proto.Expression.Literal.IntervalCompoundH\x00R\x10intervalCompound\x12\x1f\n\nfixed_char\x18\x15 \x01(\tH\x00R\tfixedChar\x12>\n\x08var_char\x18\x16 \x01(\x0b2!.proto.Expression.Literal.VarCharH\x00R\x07varChar\x12#\n\x0cfixed_binary\x18\x17 \x01(\x0cH\x00R\x0bfixedBinary\x12=\n\x07decimal\x18\x18 \x01(\x0b2!.proto.Expression.Literal.DecimalH\x00R\x07decimal\x12P\n\x0eprecision_time\x18% \x01(\x0b2\'.proto.Expression.Literal.PrecisionTimeH\x00R\rprecisionTime\x12_\n\x13precision_timestamp\x18" \x01(\x0b2,.proto.Expression.Literal.PrecisionTimestampH\x00R\x12precisionTimestamp\x12d\n\x16precision_timestamp_tz\x18# \x01(\x0b2,.proto.Expression.Literal.PrecisionTimestampH\x00R\x14precisionTimestampTz\x12:\n\x06struct\x18\x19 \x01(\x0b2 .proto.Expression.Literal.StructH\x00R\x06struct\x121\n\x03map\x18\x1a \x01(\x0b2\x1d.proto.Expression.Literal.MapH\x00R\x03map\x12\'\n\x0ctimestamp_tz\x18\x1b \x01(\x03B\x02\x18\x01H\x00R\x0btimestampTz\x12\x14\n\x04uuid\x18\x1c \x01(\x0cH\x00R\x04uuid\x12!\n\x04null\x18\x1d \x01(\x0b2\x0b.proto.TypeH\x00R\x04null\x124\n\x04list\x18\x1e \x01(\x0b2\x1e.proto.Expression.Literal.ListH\x00R\x04list\x121\n\nempty_list\x18\x1f \x01(\x0b2\x10.proto.Type.ListH\x00R\temptyList\x12.\n\tempty_map\x18 \x01(\x0b2\x0f.proto.Type.MapH\x00R\x08emptyMap\x12J\n\x0cuser_defined\x18! \x01(\x0b2%.proto.Expression.Literal.UserDefinedH\x00R\x0buserDefined\x12\x1a\n\x08nullable\x182 \x01(\x08R\x08nullable\x128\n\x18type_variation_reference\x183 \x01(\rR\x16typeVariationReference\x1a7\n\x07VarChar\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x16\n\x06length\x18\x02 \x01(\rR\x06length\x1aS\n\x07Decimal\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x1c\n\tprecision\x18\x02 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x03 \x01(\x05R\x05scale\x1aC\n\rPrecisionTime\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value\x1aH\n\x12PrecisionTimestamp\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value\x1a\xb6\x01\n\x03Map\x12E\n\nkey_values\x18\x01 \x03(\x0b2&.proto.Expression.Literal.Map.KeyValueR\tkeyValues\x1ah\n\x08KeyValue\x12+\n\x03key\x18\x01 \x01(\x0b2\x19.proto.Expression.LiteralR\x03key\x12/\n\x05value\x18\x02 \x01(\x0b2\x19.proto.Expression.LiteralR\x05value\x1aC\n\x13IntervalYearToMonth\x12\x14\n\x05years\x18\x01 \x01(\x05R\x05years\x12\x16\n\x06months\x18\x02 \x01(\x05R\x06months\x1a\xbf\x01\n\x13IntervalDayToSecond\x12\x12\n\x04days\x18\x01 \x01(\x05R\x04days\x12\x18\n\x07seconds\x18\x02 \x01(\x05R\x07seconds\x12(\n\x0cmicroseconds\x18\x03 \x01(\x05B\x02\x18\x01H\x00R\x0cmicroseconds\x12\x1e\n\tprecision\x18\x04 \x01(\x05H\x00R\tprecision\x12\x1e\n\nsubseconds\x18\x05 \x01(\x03R\nsubsecondsB\x10\n\x0eprecision_mode\x1a\xda\x01\n\x10IntervalCompound\x12b\n\x16interval_year_to_month\x18\x01 \x01(\x0b2-.proto.Expression.Literal.IntervalYearToMonthR\x13intervalYearToMonth\x12b\n\x16interval_day_to_second\x18\x02 \x01(\x0b2-.proto.Expression.Literal.IntervalDayToSecondR\x13intervalDayToSecond\x1a;\n\x06Struct\x121\n\x06fields\x18\x01 \x03(\x0b2\x19.proto.Expression.LiteralR\x06fields\x1a9\n\x04List\x121\n\x06values\x18\x01 \x03(\x0b2\x19.proto.Expression.LiteralR\x06values\x1a\xe5\x01\n\x0bUserDefined\x12%\n\x0etype_reference\x18\x01 \x01(\rR\rtypeReference\x12>\n\x0ftype_parameters\x18\x03 \x03(\x0b2\x15.proto.Type.ParameterR\x0etypeParameters\x12,\n\x05value\x18\x02 \x01(\x0b2\x14.google.protobuf.AnyH\x00R\x05value\x12:\n\x06struct\x18\x04 \x01(\x0b2 .proto.Expression.Literal.StructH\x00R\x06structB\x05\n\x03valB\x0e\n\x0cliteral_type\x1a\x9f\x04\n\x06Nested\x12\x1a\n\x08nullable\x18\x01 \x01(\x08R\x08nullable\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x06struct\x18\x03 \x01(\x0b2\x1f.proto.Expression.Nested.StructH\x00R\x06struct\x123\n\x04list\x18\x04 \x01(\x0b2\x1d.proto.Expression.Nested.ListH\x00R\x04list\x120\n\x03map\x18\x05 \x01(\x0b2\x1c.proto.Expression.Nested.MapH\x00R\x03map\x1a\xa5\x01\n\x03Map\x12D\n\nkey_values\x18\x01 \x03(\x0b2%.proto.Expression.Nested.Map.KeyValueR\tkeyValues\x1aX\n\x08KeyValue\x12#\n\x03key\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\x03key\x12\'\n\x05value\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x05value\x1a3\n\x06Struct\x12)\n\x06fields\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\x06fields\x1a1\n\x04List\x12)\n\x06values\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\x06valuesB\r\n\x0bnested_type\x1a\x80\x02\n\x0eScalarFunction\x12-\n\x12function_reference\x18\x01 \x01(\rR\x11functionReference\x125\n\targuments\x18\x04 \x03(\x0b2\x17.proto.FunctionArgumentR\targuments\x12/\n\x07options\x18\x05 \x03(\x0b2\x15.proto.FunctionOptionR\x07options\x12,\n\x0boutput_type\x18\x03 \x01(\x0b2\x0b.proto.TypeR\noutputType\x12)\n\x04args\x18\x02 \x03(\x0b2\x11.proto.ExpressionB\x02\x18\x01R\x04args\x1a\xd5\t\n\x0eWindowFunction\x12-\n\x12function_reference\x18\x01 \x01(\rR\x11functionReference\x125\n\targuments\x18\t \x03(\x0b2\x17.proto.FunctionArgumentR\targuments\x12/\n\x07options\x18\x0b \x03(\x0b2\x15.proto.FunctionOptionR\x07options\x12,\n\x0boutput_type\x18\x07 \x01(\x0b2\x0b.proto.TypeR\noutputType\x12-\n\x05phase\x18\x06 \x01(\x0e2\x17.proto.AggregationPhaseR\x05phase\x12&\n\x05sorts\x18\x03 \x03(\x0b2\x10.proto.SortFieldR\x05sorts\x12N\n\ninvocation\x18\n \x01(\x0e2..proto.AggregateFunction.AggregationInvocationR\ninvocation\x121\n\npartitions\x18\x02 \x03(\x0b2\x11.proto.ExpressionR\npartitions\x12L\n\x0bbounds_type\x18\x0c \x01(\x0e2+.proto.Expression.WindowFunction.BoundsTypeR\nboundsType\x12G\n\x0blower_bound\x18\x05 \x01(\x0b2&.proto.Expression.WindowFunction.BoundR\nlowerBound\x12G\n\x0bupper_bound\x18\x04 \x01(\x0b2&.proto.Expression.WindowFunction.BoundR\nupperBound\x12)\n\x04args\x18\x08 \x03(\x0b2\x11.proto.ExpressionB\x02\x18\x01R\x04args\x1a\xc0\x03\n\x05Bound\x12P\n\tpreceding\x18\x01 \x01(\x0b20.proto.Expression.WindowFunction.Bound.PrecedingH\x00R\tpreceding\x12P\n\tfollowing\x18\x02 \x01(\x0b20.proto.Expression.WindowFunction.Bound.FollowingH\x00R\tfollowing\x12T\n\x0bcurrent_row\x18\x03 \x01(\x0b21.proto.Expression.WindowFunction.Bound.CurrentRowH\x00R\ncurrentRow\x12P\n\tunbounded\x18\x04 \x01(\x0b20.proto.Expression.WindowFunction.Bound.UnboundedH\x00R\tunbounded\x1a#\n\tPreceding\x12\x16\n\x06offset\x18\x01 \x01(\x03R\x06offset\x1a#\n\tFollowing\x12\x16\n\x06offset\x18\x01 \x01(\x03R\x06offset\x1a\x0c\n\nCurrentRow\x1a\x0b\n\tUnboundedB\x06\n\x04kind"V\n\nBoundsType\x12\x1b\n\x17BOUNDS_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10BOUNDS_TYPE_ROWS\x10\x01\x12\x15\n\x11BOUNDS_TYPE_RANGE\x10\x02\x1a\xba\x01\n\x06IfThen\x123\n\x03ifs\x18\x01 \x03(\x0b2!.proto.Expression.IfThen.IfClauseR\x03ifs\x12%\n\x04else\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x04else\x1aT\n\x08IfClause\x12!\n\x02if\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\x02if\x12%\n\x04then\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x04then\x1a\xa0\x02\n\x04Cast\x12\x1f\n\x04type\x18\x01 \x01(\x0b2\x0b.proto.TypeR\x04type\x12\'\n\x05input\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x05input\x12Q\n\x10failure_behavior\x18\x03 \x01(\x0e2&.proto.Expression.Cast.FailureBehaviorR\x0ffailureBehavior"{\n\x0fFailureBehavior\x12 \n\x1cFAILURE_BEHAVIOR_UNSPECIFIED\x10\x00\x12 \n\x1cFAILURE_BEHAVIOR_RETURN_NULL\x10\x01\x12$\n FAILURE_BEHAVIOR_THROW_EXCEPTION\x10\x02\x1a\xfd\x01\n\x10SwitchExpression\x12\'\n\x05match\x18\x03 \x01(\x0b2\x11.proto.ExpressionR\x05match\x12<\n\x03ifs\x18\x01 \x03(\x0b2*.proto.Expression.SwitchExpression.IfValueR\x03ifs\x12%\n\x04else\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x04else\x1a[\n\x07IfValue\x12)\n\x02if\x18\x01 \x01(\x0b2\x19.proto.Expression.LiteralR\x02if\x12%\n\x04then\x18\x02 \x01(\x0b2\x11.proto.ExpressionR\x04then\x1af\n\x0eSingularOrList\x12\'\n\x05value\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\x05value\x12+\n\x07options\x18\x02 \x03(\x0b2\x11.proto.ExpressionR\x07options\x1a\xab\x01\n\x0bMultiOrList\x12\'\n\x05value\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\x05value\x12>\n\x07options\x18\x02 \x03(\x0b2$.proto.Expression.MultiOrList.RecordR\x07options\x1a3\n\x06Record\x12)\n\x06fields\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\x06fields\x1a\x83\x04\n\x10EmbeddedFunction\x12/\n\targuments\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\targuments\x12,\n\x0boutput_type\x18\x02 \x01(\x0b2\x0b.proto.TypeR\noutputType\x12o\n\x16python_pickle_function\x18\x03 \x01(\x0b27.proto.Expression.EmbeddedFunction.PythonPickleFunctionH\x00R\x14pythonPickleFunction\x12l\n\x15web_assembly_function\x18\x04 \x01(\x0b26.proto.Expression.EmbeddedFunction.WebAssemblyFunctionH\x00R\x13webAssemblyFunction\x1aV\n\x14PythonPickleFunction\x12\x1a\n\x08function\x18\x01 \x01(\x0cR\x08function\x12"\n\x0cprerequisite\x18\x02 \x03(\tR\x0cprerequisite\x1aQ\n\x13WebAssemblyFunction\x12\x16\n\x06script\x18\x01 \x01(\x0cR\x06script\x12"\n\x0cprerequisite\x18\x02 \x03(\tR\x0cprerequisiteB\x06\n\x04kind\x1a\xcc\x04\n\x10ReferenceSegment\x12D\n\x07map_key\x18\x01 \x01(\x0b2).proto.Expression.ReferenceSegment.MapKeyH\x00R\x06mapKey\x12S\n\x0cstruct_field\x18\x02 \x01(\x0b2..proto.Expression.ReferenceSegment.StructFieldH\x00R\x0bstructField\x12S\n\x0clist_element\x18\x03 \x01(\x0b2..proto.Expression.ReferenceSegment.ListElementH\x00R\x0blistElement\x1av\n\x06MapKey\x122\n\x07map_key\x18\x01 \x01(\x0b2\x19.proto.Expression.LiteralR\x06mapKey\x128\n\x05child\x18\x02 \x01(\x0b2".proto.Expression.ReferenceSegmentR\x05child\x1a]\n\x0bStructField\x12\x14\n\x05field\x18\x01 \x01(\x05R\x05field\x128\n\x05child\x18\x02 \x01(\x0b2".proto.Expression.ReferenceSegmentR\x05child\x1a_\n\x0bListElement\x12\x16\n\x06offset\x18\x01 \x01(\x05R\x06offset\x128\n\x05child\x18\x02 \x01(\x0b2".proto.Expression.ReferenceSegmentR\x05childB\x10\n\x0ereference_type\x1a\xee\n\n\x0eMaskExpression\x12E\n\x06select\x18\x01 \x01(\x0b2-.proto.Expression.MaskExpression.StructSelectR\x06select\x128\n\x18maintain_singular_struct\x18\x02 \x01(\x08R\x16maintainSingularStruct\x1a\xdc\x01\n\x06Select\x12G\n\x06struct\x18\x01 \x01(\x0b2-.proto.Expression.MaskExpression.StructSelectH\x00R\x06struct\x12A\n\x04list\x18\x02 \x01(\x0b2+.proto.Expression.MaskExpression.ListSelectH\x00R\x04list\x12>\n\x03map\x18\x03 \x01(\x0b2*.proto.Expression.MaskExpression.MapSelectH\x00R\x03mapB\x06\n\x04type\x1a^\n\x0cStructSelect\x12N\n\x0cstruct_items\x18\x01 \x03(\x0b2+.proto.Expression.MaskExpression.StructItemR\x0bstructItems\x1aa\n\nStructItem\x12\x14\n\x05field\x18\x01 \x01(\x05R\x05field\x12=\n\x05child\x18\x02 \x01(\x0b2\'.proto.Expression.MaskExpression.SelectR\x05child\x1a\xd6\x03\n\nListSelect\x12X\n\tselection\x18\x01 \x03(\x0b2:.proto.Expression.MaskExpression.ListSelect.ListSelectItemR\tselection\x12=\n\x05child\x18\x02 \x01(\x0b2\'.proto.Expression.MaskExpression.SelectR\x05child\x1a\xae\x02\n\x0eListSelectItem\x12\\\n\x04item\x18\x01 \x01(\x0b2F.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementH\x00R\x04item\x12\\\n\x05slice\x18\x02 \x01(\x0b2D.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceH\x00R\x05slice\x1a#\n\x0bListElement\x12\x14\n\x05field\x18\x01 \x01(\x05R\x05field\x1a3\n\tListSlice\x12\x14\n\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n\x03end\x18\x02 \x01(\x05R\x03endB\x06\n\x04type\x1a\xdf\x02\n\tMapSelect\x12E\n\x03key\x18\x01 \x01(\x0b21.proto.Expression.MaskExpression.MapSelect.MapKeyH\x00R\x03key\x12]\n\nexpression\x18\x02 \x01(\x0b2;.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionH\x00R\nexpression\x12=\n\x05child\x18\x03 \x01(\x0b2\'.proto.Expression.MaskExpression.SelectR\x05child\x1a!\n\x06MapKey\x12\x17\n\x07map_key\x18\x01 \x01(\tR\x06mapKey\x1a@\n\x10MapKeyExpression\x12,\n\x12map_key_expression\x18\x01 \x01(\tR\x10mapKeyExpressionB\x08\n\x06select\x1a\xf9\x03\n\x0eFieldReference\x12O\n\x10direct_reference\x18\x01 \x01(\x0b2".proto.Expression.ReferenceSegmentH\x00R\x0fdirectReference\x12M\n\x10masked_reference\x18\x02 \x01(\x0b2 .proto.Expression.MaskExpressionH\x00R\x0fmaskedReference\x123\n\nexpression\x18\x03 \x01(\x0b2\x11.proto.ExpressionH\x01R\nexpression\x12W\n\x0eroot_reference\x18\x04 \x01(\x0b2..proto.Expression.FieldReference.RootReferenceH\x01R\rrootReference\x12Z\n\x0fouter_reference\x18\x05 \x01(\x0b2/.proto.Expression.FieldReference.OuterReferenceH\x01R\x0eouterReference\x1a\x0f\n\rRootReference\x1a-\n\x0eOuterReference\x12\x1b\n\tsteps_out\x18\x01 \x01(\rR\x08stepsOutB\x10\n\x0ereference_typeB\x0b\n\troot_type\x1a\xe1\t\n\x08Subquery\x12;\n\x06scalar\x18\x01 \x01(\x0b2!.proto.Expression.Subquery.ScalarH\x00R\x06scalar\x12K\n\x0cin_predicate\x18\x02 \x01(\x0b2&.proto.Expression.Subquery.InPredicateH\x00R\x0binPredicate\x12N\n\rset_predicate\x18\x03 \x01(\x0b2\'.proto.Expression.Subquery.SetPredicateH\x00R\x0csetPredicate\x12Q\n\x0eset_comparison\x18\x04 \x01(\x0b2(.proto.Expression.Subquery.SetComparisonH\x00R\rsetComparison\x1a*\n\x06Scalar\x12 \n\x05input\x18\x01 \x01(\x0b2\n.proto.RelR\x05input\x1ab\n\x0bInPredicate\x12+\n\x07needles\x18\x01 \x03(\x0b2\x11.proto.ExpressionR\x07needles\x12&\n\x08haystack\x18\x02 \x01(\x0b2\n.proto.RelR\x08haystack\x1a\xe9\x01\n\x0cSetPredicate\x12V\n\x0cpredicate_op\x18\x01 \x01(\x0e23.proto.Expression.Subquery.SetPredicate.PredicateOpR\x0bpredicateOp\x12"\n\x06tuples\x18\x02 \x01(\x0b2\n.proto.RelR\x06tuples"]\n\x0bPredicateOp\x12\x1c\n\x18PREDICATE_OP_UNSPECIFIED\x10\x00\x12\x17\n\x13PREDICATE_OP_EXISTS\x10\x01\x12\x17\n\x13PREDICATE_OP_UNIQUE\x10\x02\x1a\x9a\x04\n\rSetComparison\x12W\n\x0creduction_op\x18\x01 \x01(\x0e24.proto.Expression.Subquery.SetComparison.ReductionOpR\x0breductionOp\x12Z\n\rcomparison_op\x18\x02 \x01(\x0e25.proto.Expression.Subquery.SetComparison.ComparisonOpR\x0ccomparisonOp\x12%\n\x04left\x18\x03 \x01(\x0b2\x11.proto.ExpressionR\x04left\x12 \n\x05right\x18\x04 \x01(\x0b2\n.proto.RelR\x05right"\xb1\x01\n\x0cComparisonOp\x12\x1d\n\x19COMPARISON_OP_UNSPECIFIED\x10\x00\x12\x14\n\x10COMPARISON_OP_EQ\x10\x01\x12\x14\n\x10COMPARISON_OP_NE\x10\x02\x12\x14\n\x10COMPARISON_OP_LT\x10\x03\x12\x14\n\x10COMPARISON_OP_GT\x10\x04\x12\x14\n\x10COMPARISON_OP_LE\x10\x05\x12\x14\n\x10COMPARISON_OP_GE\x10\x06"W\n\x0bReductionOp\x12\x1c\n\x18REDUCTION_OP_UNSPECIFIED\x10\x00\x12\x14\n\x10REDUCTION_OP_ANY\x10\x01\x12\x14\n\x10REDUCTION_OP_ALL\x10\x02B\x0f\n\rsubquery_typeB\n\n\x08rex_type"d\n\x10DynamicParameter\x12\x1f\n\x04type\x18\x01 \x01(\x0b2\x0b.proto.TypeR\x04type\x12/\n\x13parameter_reference\x18\x02 \x01(\rR\x12parameterReference"\xa5\x03\n\tSortField\x12%\n\x04expr\x18\x01 \x01(\x0b2\x11.proto.ExpressionR\x04expr\x12>\n\tdirection\x18\x02 \x01(\x0e2\x1e.proto.SortField.SortDirectionH\x00R\tdirection\x12D\n\x1dcomparison_function_reference\x18\x03 \x01(\rH\x00R\x1bcomparisonFunctionReference"\xdd\x01\n\rSortDirection\x12\x1e\n\x1aSORT_DIRECTION_UNSPECIFIED\x10\x00\x12"\n\x1eSORT_DIRECTION_ASC_NULLS_FIRST\x10\x01\x12!\n\x1dSORT_DIRECTION_ASC_NULLS_LAST\x10\x02\x12#\n\x1fSORT_DIRECTION_DESC_NULLS_FIRST\x10\x03\x12"\n\x1eSORT_DIRECTION_DESC_NULLS_LAST\x10\x04\x12\x1c\n\x18SORT_DIRECTION_CLUSTERED\x10\x05B\x0b\n\tsort_kind"\xb1\x04\n\x11AggregateFunction\x12-\n\x12function_reference\x18\x01 \x01(\rR\x11functionReference\x125\n\targuments\x18\x07 \x03(\x0b2\x17.proto.FunctionArgumentR\targuments\x12/\n\x07options\x18\x08 \x03(\x0b2\x15.proto.FunctionOptionR\x07options\x12,\n\x0boutput_type\x18\x05 \x01(\x0b2\x0b.proto.TypeR\noutputType\x12-\n\x05phase\x18\x04 \x01(\x0e2\x17.proto.AggregationPhaseR\x05phase\x12&\n\x05sorts\x18\x03 \x03(\x0b2\x10.proto.SortFieldR\x05sorts\x12N\n\ninvocation\x18\x06 \x01(\x0e2..proto.AggregateFunction.AggregationInvocationR\ninvocation\x12)\n\x04args\x18\x02 \x03(\x0b2\x11.proto.ExpressionB\x02\x18\x01R\x04args"\x84\x01\n\x15AggregationInvocation\x12&\n"AGGREGATION_INVOCATION_UNSPECIFIED\x10\x00\x12\x1e\n\x1aAGGREGATION_INVOCATION_ALL\x10\x01\x12#\n\x1fAGGREGATION_INVOCATION_DISTINCT\x10\x02"7\n\x0cReferenceRel\x12\'\n\x0fsubtree_ordinal\x18\x01 \x01(\x05R\x0esubtreeOrdinal*\xef\x01\n\x10AggregationPhase\x12!\n\x1dAGGREGATION_PHASE_UNSPECIFIED\x10\x00\x12-\n)AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE\x10\x01\x122\n.AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE\x10\x02\x12\'\n#AGGREGATION_PHASE_INITIAL_TO_RESULT\x10\x03\x12,\n(AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT\x10\x04B#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') +from substrait.gen.proto.extensions import extensions_pb2 as substrait_dot_gen_dot_proto_dot_extensions_dot_extensions__pb2 +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!substrait/gen/proto/algebra.proto\x12\x13substrait.gen.proto\x1a\x19google/protobuf/any.proto\x1a/substrait/gen/proto/extensions/extensions.proto\x1a\x1esubstrait/gen/proto/type.proto\"\x8c\x0e\n\tRelCommon\x12?\n\x06\x64irect\x18\x01 \x01(\x0b\x32%.substrait.gen.proto.RelCommon.DirectH\x00R\x06\x64irect\x12\x39\n\x04\x65mit\x18\x02 \x01(\x0b\x32#.substrait.gen.proto.RelCommon.EmitH\x00R\x04\x65mit\x12\x37\n\x04hint\x18\x03 \x01(\x0b\x32#.substrait.gen.proto.RelCommon.HintR\x04hint\x12`\n\x12\x61\x64vanced_extension\x18\x04 \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\x08\n\x06\x44irect\x1a-\n\x04\x45mit\x12%\n\x0eoutput_mapping\x18\x01 \x03(\x05R\routputMapping\x1a\xa1\x0b\n\x04Hint\x12?\n\x05stats\x18\x01 \x01(\x0b\x32).substrait.gen.proto.RelCommon.Hint.StatsR\x05stats\x12U\n\nconstraint\x18\x02 \x01(\x0b\x32\x35.substrait.gen.proto.RelCommon.Hint.RuntimeConstraintR\nconstraint\x12\x14\n\x05\x61lias\x18\x03 \x01(\tR\x05\x61lias\x12!\n\x0coutput_names\x18\x04 \x03(\tR\x0boutputNames\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x12\x63\n\x12saved_computations\x18\x0b \x03(\x0b\x32\x34.substrait.gen.proto.RelCommon.Hint.SavedComputationR\x11savedComputations\x12\x66\n\x13loaded_computations\x18\x0c \x03(\x0b\x32\x35.substrait.gen.proto.RelCommon.Hint.LoadedComputationR\x12loadedComputations\x1a\xa7\x01\n\x05Stats\x12\x1b\n\trow_count\x18\x01 \x01(\x01R\x08rowCount\x12\x1f\n\x0brecord_size\x18\x02 \x01(\x01R\nrecordSize\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1au\n\x11RuntimeConstraint\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\xe4\x01\n\x10SavedComputation\x12%\n\x0e\x63omputation_id\x18\x01 \x01(\x05R\rcomputationId\x12G\n\x04type\x18\x02 \x01(\x0e\x32\x33.substrait.gen.proto.RelCommon.Hint.ComputationTypeR\x04type\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\xf8\x01\n\x11LoadedComputation\x12\x38\n\x18\x63omputation_id_reference\x18\x01 \x01(\x05R\x16\x63omputationIdReference\x12G\n\x04type\x18\x02 \x01(\x0e\x32\x33.substrait.gen.proto.RelCommon.Hint.ComputationTypeR\x04type\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\x95\x01\n\x0f\x43omputationType\x12 \n\x1c\x43OMPUTATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43OMPUTATION_TYPE_HASHTABLE\x10\x01\x12!\n\x1d\x43OMPUTATION_TYPE_BLOOM_FILTER\x10\x02\x12\x1d\n\x18\x43OMPUTATION_TYPE_UNKNOWN\x10\x8fNB\x0b\n\temit_kind\"\xba\x16\n\x07ReadRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12\x41\n\x0b\x62\x61se_schema\x18\x02 \x01(\x0b\x32 .substrait.gen.proto.NamedStructR\nbaseSchema\x12\x37\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x06\x66ilter\x12M\n\x12\x62\x65st_effort_filter\x18\x0b \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x10\x62\x65stEffortFilter\x12N\n\nprojection\x18\x04 \x01(\x0b\x32..substrait.gen.proto.Expression.MaskExpressionR\nprojection\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x12P\n\rvirtual_table\x18\x05 \x01(\x0b\x32).substrait.gen.proto.ReadRel.VirtualTableH\x00R\x0cvirtualTable\x12J\n\x0blocal_files\x18\x06 \x01(\x0b\x32\'.substrait.gen.proto.ReadRel.LocalFilesH\x00R\nlocalFiles\x12J\n\x0bnamed_table\x18\x07 \x01(\x0b\x32\'.substrait.gen.proto.ReadRel.NamedTableH\x00R\nnamedTable\x12V\n\x0f\x65xtension_table\x18\x08 \x01(\x0b\x32+.substrait.gen.proto.ReadRel.ExtensionTableH\x00R\x0e\x65xtensionTable\x12P\n\riceberg_table\x18\t \x01(\x0b\x32).substrait.gen.proto.ReadRel.IcebergTableH\x00R\x0cicebergTable\x1a\x84\x01\n\nNamedTable\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\x8a\x02\n\x0cIcebergTable\x12T\n\x06\x64irect\x18\x01 \x01(\x0b\x32:.substrait.gen.proto.ReadRel.IcebergTable.MetadataFileReadH\x00R\x06\x64irect\x1a\x95\x01\n\x10MetadataFileRead\x12!\n\x0cmetadata_uri\x18\x01 \x01(\tR\x0bmetadataUri\x12!\n\x0bsnapshot_id\x18\x02 \x01(\tH\x00R\nsnapshotId\x12/\n\x12snapshot_timestamp\x18\x03 \x01(\x03H\x00R\x11snapshotTimestampB\n\n\x08snapshotB\x0c\n\ntable_type\x1a\xab\x01\n\x0cVirtualTable\x12J\n\x06values\x18\x01 \x03(\x0b\x32..substrait.gen.proto.Expression.Literal.StructB\x02\x18\x01R\x06values\x12O\n\x0b\x65xpressions\x18\x02 \x03(\x0b\x32-.substrait.gen.proto.Expression.Nested.StructR\x0b\x65xpressions\x1a>\n\x0e\x45xtensionTable\x12,\n\x06\x64\x65tail\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x64\x65tail\x1a\xd6\n\n\nLocalFiles\x12I\n\x05items\x18\x01 \x03(\x0b\x32\x33.substrait.gen.proto.ReadRel.LocalFiles.FileOrFilesR\x05items\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\x9a\t\n\x0b\x46ileOrFiles\x12\x1b\n\x08uri_path\x18\x01 \x01(\tH\x00R\x07uriPath\x12$\n\ruri_path_glob\x18\x02 \x01(\tH\x00R\x0buriPathGlob\x12\x1b\n\x08uri_file\x18\x03 \x01(\tH\x00R\x07uriFile\x12\x1f\n\nuri_folder\x18\x04 \x01(\tH\x00R\turiFolder\x12\'\n\x0fpartition_index\x18\x06 \x01(\x04R\x0epartitionIndex\x12\x14\n\x05start\x18\x07 \x01(\x04R\x05start\x12\x16\n\x06length\x18\x08 \x01(\x04R\x06length\x12\x62\n\x07parquet\x18\t \x01(\x0b\x32\x46.substrait.gen.proto.ReadRel.LocalFiles.FileOrFiles.ParquetReadOptionsH\x01R\x07parquet\x12\\\n\x05\x61rrow\x18\n \x01(\x0b\x32\x44.substrait.gen.proto.ReadRel.LocalFiles.FileOrFiles.ArrowReadOptionsH\x01R\x05\x61rrow\x12V\n\x03orc\x18\x0b \x01(\x0b\x32\x42.substrait.gen.proto.ReadRel.LocalFiles.FileOrFiles.OrcReadOptionsH\x01R\x03orc\x12\x34\n\textension\x18\x0c \x01(\x0b\x32\x14.google.protobuf.AnyH\x01R\textension\x12Y\n\x04\x64wrf\x18\r \x01(\x0b\x32\x43.substrait.gen.proto.ReadRel.LocalFiles.FileOrFiles.DwrfReadOptionsH\x01R\x04\x64wrf\x12k\n\x04text\x18\x0e \x01(\x0b\x32U.substrait.gen.proto.ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptionsH\x01R\x04text\x1a\x14\n\x12ParquetReadOptions\x1a\x12\n\x10\x41rrowReadOptions\x1a\x10\n\x0eOrcReadOptions\x1a\x11\n\x0f\x44wrfReadOptions\x1a\xa1\x02\n!DelimiterSeparatedTextReadOptions\x12\'\n\x0f\x66ield_delimiter\x18\x01 \x01(\tR\x0e\x66ieldDelimiter\x12\"\n\rmax_line_size\x18\x02 \x01(\x04R\x0bmaxLineSize\x12\x14\n\x05quote\x18\x03 \x01(\tR\x05quote\x12/\n\x14header_lines_to_skip\x18\x04 \x01(\x04R\x11headerLinesToSkip\x12\x16\n\x06\x65scape\x18\x05 \x01(\tR\x06\x65scape\x12\x36\n\x15value_treated_as_null\x18\x06 \x01(\tH\x00R\x12valueTreatedAsNull\x88\x01\x01\x42\x18\n\x16_value_treated_as_nullB\x0b\n\tpath_typeB\r\n\x0b\x66ile_formatJ\x04\x08\x05\x10\x06R\x06\x66ormatB\x0b\n\tread_type\"\x99\x02\n\nProjectRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\x41\n\x0b\x65xpressions\x18\x03 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x0b\x65xpressions\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\x93\x06\n\x07JoinRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x04left\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x04left\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\x12?\n\nexpression\x18\x04 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\nexpression\x12I\n\x10post_join_filter\x18\x05 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x0epostJoinFilter\x12\x39\n\x04type\x18\x06 \x01(\x0e\x32%.substrait.gen.proto.JoinRel.JoinTypeR\x04type\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x06\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x08\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c\"\x82\x02\n\x08\x43rossRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x04left\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x04left\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xb1\x03\n\x08\x46\x65tchRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\x1c\n\x06offset\x18\x03 \x01(\x03\x42\x02\x18\x01H\x00R\x06offset\x12\x42\n\x0boffset_expr\x18\x05 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x00R\noffsetExpr\x12\x1a\n\x05\x63ount\x18\x04 \x01(\x03\x42\x02\x18\x01H\x01R\x05\x63ount\x12@\n\ncount_expr\x18\x06 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x01R\tcountExpr\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtensionB\r\n\x0boffset_modeB\x0c\n\ncount_mode\"\xde\x05\n\x0c\x41ggregateRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12H\n\tgroupings\x18\x03 \x03(\x0b\x32*.substrait.gen.proto.AggregateRel.GroupingR\tgroupings\x12\x45\n\x08measures\x18\x04 \x03(\x0b\x32).substrait.gen.proto.AggregateRel.MeasureR\x08measures\x12R\n\x14grouping_expressions\x18\x05 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x13groupingExpressions\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\x97\x01\n\x08Grouping\x12V\n\x14grouping_expressions\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionB\x02\x18\x01R\x13groupingExpressions\x12\x33\n\x15\x65xpression_references\x18\x02 \x03(\rR\x14\x65xpressionReferences\x1a\x84\x01\n\x07Measure\x12@\n\x07measure\x18\x01 \x01(\x0b\x32&.substrait.gen.proto.AggregateFunctionR\x07measure\x12\x37\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x06\x66ilter\"\x8e\t\n\x1c\x43onsistentPartitionWindowRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12n\n\x10window_functions\x18\x03 \x03(\x0b\x32\x43.substrait.gen.proto.ConsistentPartitionWindowRel.WindowRelFunctionR\x0fwindowFunctions\x12T\n\x15partition_expressions\x18\x04 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x14partitionExpressions\x12\x34\n\x05sorts\x18\x05 \x03(\x0b\x32\x1e.substrait.gen.proto.SortFieldR\x05sorts\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\xa7\x05\n\x11WindowRelFunction\x12-\n\x12\x66unction_reference\x18\x01 \x01(\rR\x11\x66unctionReference\x12\x43\n\targuments\x18\t \x03(\x0b\x32%.substrait.gen.proto.FunctionArgumentR\targuments\x12=\n\x07options\x18\x0b \x03(\x0b\x32#.substrait.gen.proto.FunctionOptionR\x07options\x12:\n\x0boutput_type\x18\x07 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\noutputType\x12;\n\x05phase\x18\x06 \x01(\x0e\x32%.substrait.gen.proto.AggregationPhaseR\x05phase\x12\\\n\ninvocation\x18\n \x01(\x0e\x32<.substrait.gen.proto.AggregateFunction.AggregationInvocationR\ninvocation\x12U\n\x0blower_bound\x18\x05 \x01(\x0b\x32\x34.substrait.gen.proto.Expression.WindowFunction.BoundR\nlowerBound\x12U\n\x0bupper_bound\x18\x04 \x01(\x0b\x32\x34.substrait.gen.proto.Expression.WindowFunction.BoundR\nupperBound\x12Z\n\x0b\x62ounds_type\x18\x0c \x01(\x0e\x32\x39.substrait.gen.proto.Expression.WindowFunction.BoundsTypeR\nboundsType\"\x89\x02\n\x07SortRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\x34\n\x05sorts\x18\x03 \x03(\x0b\x32\x1e.substrait.gen.proto.SortFieldR\x05sorts\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\x94\x02\n\tFilterRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12=\n\tcondition\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\tcondition\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\x96\x04\n\x06SetRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12\x30\n\x06inputs\x18\x02 \x03(\x0b\x32\x18.substrait.gen.proto.RelR\x06inputs\x12\x31\n\x02op\x18\x03 \x01(\x0e\x32!.substrait.gen.proto.SetRel.SetOpR\x02op\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\x8c\x02\n\x05SetOp\x12\x16\n\x12SET_OP_UNSPECIFIED\x10\x00\x12\x18\n\x14SET_OP_MINUS_PRIMARY\x10\x01\x12\x1c\n\x18SET_OP_MINUS_PRIMARY_ALL\x10\x07\x12\x19\n\x15SET_OP_MINUS_MULTISET\x10\x02\x12\x1f\n\x1bSET_OP_INTERSECTION_PRIMARY\x10\x03\x12 \n\x1cSET_OP_INTERSECTION_MULTISET\x10\x04\x12$\n SET_OP_INTERSECTION_MULTISET_ALL\x10\x08\x12\x19\n\x15SET_OP_UNION_DISTINCT\x10\x05\x12\x14\n\x10SET_OP_UNION_ALL\x10\x06\"\xaa\x01\n\x12\x45xtensionSingleRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12,\n\x06\x64\x65tail\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x64\x65tail\"x\n\x10\x45xtensionLeafRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x06\x64\x65tail\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x64\x65tail\"\xab\x01\n\x11\x45xtensionMultiRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12\x30\n\x06inputs\x18\x02 \x03(\x0b\x32\x18.substrait.gen.proto.RelR\x06inputs\x12,\n\x06\x64\x65tail\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x64\x65tail\"\x92\n\n\x0b\x45xchangeRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\'\n\x0fpartition_count\x18\x03 \x01(\x05R\x0epartitionCount\x12I\n\x07targets\x18\x04 \x03(\x0b\x32/.substrait.gen.proto.ExchangeRel.ExchangeTargetR\x07targets\x12\\\n\x11scatter_by_fields\x18\x05 \x01(\x0b\x32..substrait.gen.proto.ExchangeRel.ScatterFieldsH\x00R\x0fscatterByFields\x12^\n\rsingle_target\x18\x06 \x01(\x0b\x32\x37.substrait.gen.proto.ExchangeRel.SingleBucketExpressionH\x00R\x0csingleTarget\x12[\n\x0cmulti_target\x18\x07 \x01(\x0b\x32\x36.substrait.gen.proto.ExchangeRel.MultiBucketExpressionH\x00R\x0bmultiTarget\x12N\n\x0bround_robin\x18\x08 \x01(\x0b\x32+.substrait.gen.proto.ExchangeRel.RoundRobinH\x00R\nroundRobin\x12J\n\tbroadcast\x18\t \x01(\x0b\x32*.substrait.gen.proto.ExchangeRel.BroadcastH\x00R\tbroadcast\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1aW\n\rScatterFields\x12\x46\n\x06\x66ields\x18\x01 \x03(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceR\x06\x66ields\x1aY\n\x16SingleBucketExpression\x12?\n\nexpression\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\nexpression\x1a\x8a\x01\n\x15MultiBucketExpression\x12?\n\nexpression\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\nexpression\x12\x30\n\x14\x63onstrained_to_count\x18\x02 \x01(\x08R\x12\x63onstrainedToCount\x1a\x0b\n\tBroadcast\x1a\"\n\nRoundRobin\x12\x14\n\x05\x65xact\x18\x01 \x01(\x08R\x05\x65xact\x1a\x8a\x01\n\x0e\x45xchangeTarget\x12!\n\x0cpartition_id\x18\x01 \x03(\x05R\x0bpartitionId\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x12\x32\n\x08\x65xtended\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00R\x08\x65xtendedB\r\n\x0btarget_typeB\x0f\n\rexchange_kind\"\xd0\x03\n\tExpandRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12.\n\x05input\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\x42\n\x06\x66ields\x18\x04 \x03(\x0b\x32*.substrait.gen.proto.ExpandRel.ExpandFieldR\x06\x66ields\x1a\xc3\x01\n\x0b\x45xpandField\x12X\n\x0fswitching_field\x18\x02 \x01(\x0b\x32-.substrait.gen.proto.ExpandRel.SwitchingFieldH\x00R\x0eswitchingField\x12L\n\x10\x63onsistent_field\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x00R\x0f\x63onsistentFieldB\x0c\n\nfield_type\x1aQ\n\x0eSwitchingField\x12?\n\nduplicates\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\nduplicates\"O\n\x07RelRoot\x12.\n\x05input\x18\x01 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12\x14\n\x05names\x18\x02 \x03(\tR\x05names\"\x84\x0b\n\x03Rel\x12\x32\n\x04read\x18\x01 \x01(\x0b\x32\x1c.substrait.gen.proto.ReadRelH\x00R\x04read\x12\x38\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1e.substrait.gen.proto.FilterRelH\x00R\x06\x66ilter\x12\x35\n\x05\x66\x65tch\x18\x03 \x01(\x0b\x32\x1d.substrait.gen.proto.FetchRelH\x00R\x05\x66\x65tch\x12\x41\n\taggregate\x18\x04 \x01(\x0b\x32!.substrait.gen.proto.AggregateRelH\x00R\taggregate\x12\x32\n\x04sort\x18\x05 \x01(\x0b\x32\x1c.substrait.gen.proto.SortRelH\x00R\x04sort\x12\x32\n\x04join\x18\x06 \x01(\x0b\x32\x1c.substrait.gen.proto.JoinRelH\x00R\x04join\x12;\n\x07project\x18\x07 \x01(\x0b\x32\x1f.substrait.gen.proto.ProjectRelH\x00R\x07project\x12/\n\x03set\x18\x08 \x01(\x0b\x32\x1b.substrait.gen.proto.SetRelH\x00R\x03set\x12T\n\x10\x65xtension_single\x18\t \x01(\x0b\x32\'.substrait.gen.proto.ExtensionSingleRelH\x00R\x0f\x65xtensionSingle\x12Q\n\x0f\x65xtension_multi\x18\n \x01(\x0b\x32&.substrait.gen.proto.ExtensionMultiRelH\x00R\x0e\x65xtensionMulti\x12N\n\x0e\x65xtension_leaf\x18\x0b \x01(\x0b\x32%.substrait.gen.proto.ExtensionLeafRelH\x00R\rextensionLeaf\x12\x35\n\x05\x63ross\x18\x0c \x01(\x0b\x32\x1d.substrait.gen.proto.CrossRelH\x00R\x05\x63ross\x12\x41\n\treference\x18\x15 \x01(\x0b\x32!.substrait.gen.proto.ReferenceRelH\x00R\treference\x12\x35\n\x05write\x18\x13 \x01(\x0b\x32\x1d.substrait.gen.proto.WriteRelH\x00R\x05write\x12/\n\x03\x64\x64l\x18\x14 \x01(\x0b\x32\x1b.substrait.gen.proto.DdlRelH\x00R\x03\x64\x64l\x12\x38\n\x06update\x18\x16 \x01(\x0b\x32\x1e.substrait.gen.proto.UpdateRelH\x00R\x06update\x12?\n\thash_join\x18\r \x01(\x0b\x32 .substrait.gen.proto.HashJoinRelH\x00R\x08hashJoin\x12\x42\n\nmerge_join\x18\x0e \x01(\x0b\x32!.substrait.gen.proto.MergeJoinRelH\x00R\tmergeJoin\x12R\n\x10nested_loop_join\x18\x12 \x01(\x0b\x32&.substrait.gen.proto.NestedLoopJoinRelH\x00R\x0enestedLoopJoin\x12K\n\x06window\x18\x11 \x01(\x0b\x32\x31.substrait.gen.proto.ConsistentPartitionWindowRelH\x00R\x06window\x12>\n\x08\x65xchange\x18\x0f \x01(\x0b\x32 .substrait.gen.proto.ExchangeRelH\x00R\x08\x65xchange\x12\x38\n\x06\x65xpand\x18\x10 \x01(\x0b\x32\x1e.substrait.gen.proto.ExpandRelH\x00R\x06\x65xpandB\n\n\x08rel_type\"\x8a\x01\n\x10NamedObjectWrite\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"?\n\x0f\x45xtensionObject\x12,\n\x06\x64\x65tail\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06\x64\x65tail\"\x84\x07\n\x06\x44\x64lRel\x12J\n\x0cnamed_object\x18\x01 \x01(\x0b\x32%.substrait.gen.proto.NamedObjectWriteH\x00R\x0bnamedObject\x12Q\n\x10\x65xtension_object\x18\x02 \x01(\x0b\x32$.substrait.gen.proto.ExtensionObjectH\x00R\x0f\x65xtensionObject\x12\x43\n\x0ctable_schema\x18\x03 \x01(\x0b\x32 .substrait.gen.proto.NamedStructR\x0btableSchema\x12U\n\x0etable_defaults\x18\x04 \x01(\x0b\x32..substrait.gen.proto.Expression.Literal.StructR\rtableDefaults\x12=\n\x06object\x18\x05 \x01(\x0e\x32%.substrait.gen.proto.DdlRel.DdlObjectR\x06object\x12\x31\n\x02op\x18\x06 \x01(\x0e\x32!.substrait.gen.proto.DdlRel.DdlOpR\x02op\x12\x41\n\x0fview_definition\x18\x07 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x0eviewDefinition\x12\x36\n\x06\x63ommon\x18\x08 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12`\n\x12\x61\x64vanced_extension\x18\t \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"R\n\tDdlObject\x12\x1a\n\x16\x44\x44L_OBJECT_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44\x44L_OBJECT_TABLE\x10\x01\x12\x13\n\x0f\x44\x44L_OBJECT_VIEW\x10\x02\"\x8d\x01\n\x05\x44\x64lOp\x12\x16\n\x12\x44\x44L_OP_UNSPECIFIED\x10\x00\x12\x11\n\rDDL_OP_CREATE\x10\x01\x12\x1c\n\x18\x44\x44L_OP_CREATE_OR_REPLACE\x10\x02\x12\x10\n\x0c\x44\x44L_OP_ALTER\x10\x03\x12\x0f\n\x0b\x44\x44L_OP_DROP\x10\x04\x12\x18\n\x14\x44\x44L_OP_DROP_IF_EXIST\x10\x05\x42\x0c\n\nwrite_type\"\x99\x08\n\x08WriteRel\x12H\n\x0bnamed_table\x18\x01 \x01(\x0b\x32%.substrait.gen.proto.NamedObjectWriteH\x00R\nnamedTable\x12O\n\x0f\x65xtension_table\x18\x02 \x01(\x0b\x32$.substrait.gen.proto.ExtensionObjectH\x00R\x0e\x65xtensionTable\x12\x43\n\x0ctable_schema\x18\x03 \x01(\x0b\x32 .substrait.gen.proto.NamedStructR\x0btableSchema\x12\x35\n\x02op\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.WriteRel.WriteOpR\x02op\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x12I\n\x0b\x63reate_mode\x18\x08 \x01(\x0e\x32(.substrait.gen.proto.WriteRel.CreateModeR\ncreateMode\x12@\n\x06output\x18\x06 \x01(\x0e\x32(.substrait.gen.proto.WriteRel.OutputModeR\x06output\x12\x36\n\x06\x63ommon\x18\x07 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12`\n\x12\x61\x64vanced_extension\x18\t \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"u\n\x07WriteOp\x12\x18\n\x14WRITE_OP_UNSPECIFIED\x10\x00\x12\x13\n\x0fWRITE_OP_INSERT\x10\x01\x12\x13\n\x0fWRITE_OP_DELETE\x10\x02\x12\x13\n\x0fWRITE_OP_UPDATE\x10\x03\x12\x11\n\rWRITE_OP_CTAS\x10\x04\"\xb1\x01\n\nCreateMode\x12\x1b\n\x17\x43REATE_MODE_UNSPECIFIED\x10\x00\x12 \n\x1c\x43REATE_MODE_APPEND_IF_EXISTS\x10\x01\x12!\n\x1d\x43REATE_MODE_REPLACE_IF_EXISTS\x10\x02\x12 \n\x1c\x43REATE_MODE_IGNORE_IF_EXISTS\x10\x03\x12\x1f\n\x1b\x43REATE_MODE_ERROR_IF_EXISTS\x10\x04\"f\n\nOutputMode\x12\x1b\n\x17OUTPUT_MODE_UNSPECIFIED\x10\x00\x12\x19\n\x15OUTPUT_MODE_NO_OUTPUT\x10\x01\x12 \n\x1cOUTPUT_MODE_MODIFIED_RECORDS\x10\x02\x42\x0c\n\nwrite_type\"\xa8\x04\n\tUpdateRel\x12\x42\n\x0bnamed_table\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.NamedTableH\x00R\nnamedTable\x12\x43\n\x0ctable_schema\x18\x02 \x01(\x0b\x32 .substrait.gen.proto.NamedStructR\x0btableSchema\x12=\n\tcondition\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\tcondition\x12\\\n\x0ftransformations\x18\x04 \x03(\x0b\x32\x32.substrait.gen.proto.UpdateRel.TransformExpressionR\x0ftransformations\x12`\n\x12\x61\x64vanced_extension\x18\x05 \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\x1a\x83\x01\n\x13TransformExpression\x12G\n\x0etransformation\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x0etransformation\x12#\n\rcolumn_target\x18\x02 \x01(\x05R\x0c\x63olumnTargetB\r\n\x0bupdate_type\"\x84\x01\n\nNamedTable\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xe3\x04\n\x11\x43omparisonJoinKey\x12\x42\n\x04left\x18\x01 \x01(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceR\x04left\x12\x44\n\x05right\x18\x02 \x01(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceR\x05right\x12U\n\ncomparison\x18\x03 \x01(\x0b\x32\x35.substrait.gen.proto.ComparisonJoinKey.ComparisonTypeR\ncomparison\x1a\xb3\x01\n\x0e\x43omparisonType\x12U\n\x06simple\x18\x01 \x01(\x0e\x32;.substrait.gen.proto.ComparisonJoinKey.SimpleComparisonTypeH\x00R\x06simple\x12<\n\x19\x63ustom_function_reference\x18\x02 \x01(\rH\x00R\x17\x63ustomFunctionReferenceB\x0c\n\ninner_type\"\xb6\x01\n\x14SimpleComparisonType\x12&\n\"SIMPLE_COMPARISON_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19SIMPLE_COMPARISON_TYPE_EQ\x10\x01\x12/\n+SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM\x10\x02\x12&\n\"SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL\x10\x03\"\xe0\x08\n\x0bHashJoinRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x04left\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x04left\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\x12O\n\tleft_keys\x18\x04 \x03(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceB\x02\x18\x01R\x08leftKeys\x12Q\n\nright_keys\x18\x05 \x03(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceB\x02\x18\x01R\trightKeys\x12:\n\x04keys\x18\x08 \x03(\x0b\x32&.substrait.gen.proto.ComparisonJoinKeyR\x04keys\x12I\n\x10post_join_filter\x18\x06 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x0epostJoinFilter\x12=\n\x04type\x18\x07 \x01(\x0e\x32).substrait.gen.proto.HashJoinRel.JoinTypeR\x04type\x12L\n\x0b\x62uild_input\x18\t \x01(\x0e\x32+.substrait.gen.proto.HashJoinRel.BuildInputR\nbuildInput\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c\"V\n\nBuildInput\x12\x1b\n\x17\x42UILD_INPUT_UNSPECIFIED\x10\x00\x12\x14\n\x10\x42UILD_INPUT_LEFT\x10\x01\x12\x15\n\x11\x42UILD_INPUT_RIGHT\x10\x02\"\xbc\x07\n\x0cMergeJoinRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x04left\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x04left\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\x12O\n\tleft_keys\x18\x04 \x03(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceB\x02\x18\x01R\x08leftKeys\x12Q\n\nright_keys\x18\x05 \x03(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceB\x02\x18\x01R\trightKeys\x12:\n\x04keys\x18\x08 \x03(\x0b\x32&.substrait.gen.proto.ComparisonJoinKeyR\x04keys\x12I\n\x10post_join_filter\x18\x06 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x0epostJoinFilter\x12>\n\x04type\x18\x07 \x01(\x0e\x32*.substrait.gen.proto.MergeJoinRel.JoinTypeR\x04type\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c\"\xdc\x05\n\x11NestedLoopJoinRel\x12\x36\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x1e.substrait.gen.proto.RelCommonR\x06\x63ommon\x12,\n\x04left\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x04left\x12.\n\x05right\x18\x03 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\x12?\n\nexpression\x18\x04 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\nexpression\x12\x43\n\x04type\x18\x05 \x01(\x0e\x32/.substrait.gen.proto.NestedLoopJoinRel.JoinTypeR\x04type\x12`\n\x12\x61\x64vanced_extension\x18\n \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x11\x61\x64vancedExtension\"\xc8\x02\n\x08JoinType\x12\x19\n\x15JOIN_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fJOIN_TYPE_INNER\x10\x01\x12\x13\n\x0fJOIN_TYPE_OUTER\x10\x02\x12\x12\n\x0eJOIN_TYPE_LEFT\x10\x03\x12\x13\n\x0fJOIN_TYPE_RIGHT\x10\x04\x12\x17\n\x13JOIN_TYPE_LEFT_SEMI\x10\x05\x12\x18\n\x14JOIN_TYPE_RIGHT_SEMI\x10\x06\x12\x17\n\x13JOIN_TYPE_LEFT_ANTI\x10\x07\x12\x18\n\x14JOIN_TYPE_RIGHT_ANTI\x10\x08\x12\x19\n\x15JOIN_TYPE_LEFT_SINGLE\x10\t\x12\x1a\n\x16JOIN_TYPE_RIGHT_SINGLE\x10\n\x12\x17\n\x13JOIN_TYPE_LEFT_MARK\x10\x0b\x12\x18\n\x14JOIN_TYPE_RIGHT_MARK\x10\x0c\"\x9e\x01\n\x10\x46unctionArgument\x12\x14\n\x04\x65num\x18\x01 \x01(\tH\x00R\x04\x65num\x12/\n\x04type\x18\x02 \x01(\x0b\x32\x19.substrait.gen.proto.TypeH\x00R\x04type\x12\x37\n\x05value\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x00R\x05valueB\n\n\x08\x61rg_type\"D\n\x0e\x46unctionOption\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n\npreference\x18\x02 \x03(\tR\npreference\"\xaa\x65\n\nExpression\x12\x43\n\x07literal\x18\x01 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralH\x00R\x07literal\x12N\n\tselection\x18\x02 \x01(\x0b\x32..substrait.gen.proto.Expression.FieldReferenceH\x00R\tselection\x12Y\n\x0fscalar_function\x18\x03 \x01(\x0b\x32..substrait.gen.proto.Expression.ScalarFunctionH\x00R\x0escalarFunction\x12Y\n\x0fwindow_function\x18\x05 \x01(\x0b\x32..substrait.gen.proto.Expression.WindowFunctionH\x00R\x0ewindowFunction\x12\x41\n\x07if_then\x18\x06 \x01(\x0b\x32&.substrait.gen.proto.Expression.IfThenH\x00R\x06ifThen\x12_\n\x11switch_expression\x18\x07 \x01(\x0b\x32\x30.substrait.gen.proto.Expression.SwitchExpressionH\x00R\x10switchExpression\x12Z\n\x10singular_or_list\x18\x08 \x01(\x0b\x32..substrait.gen.proto.Expression.SingularOrListH\x00R\x0esingularOrList\x12Q\n\rmulti_or_list\x18\t \x01(\x0b\x32+.substrait.gen.proto.Expression.MultiOrListH\x00R\x0bmultiOrList\x12:\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32$.substrait.gen.proto.Expression.CastH\x00R\x04\x63\x61st\x12\x46\n\x08subquery\x18\x0c \x01(\x0b\x32(.substrait.gen.proto.Expression.SubqueryH\x00R\x08subquery\x12@\n\x06nested\x18\r \x01(\x0b\x32&.substrait.gen.proto.Expression.NestedH\x00R\x06nested\x12T\n\x11\x64ynamic_parameter\x18\x0e \x01(\x0b\x32%.substrait.gen.proto.DynamicParameterH\x00R\x10\x64ynamicParameter\x12>\n\x04\x65num\x18\n \x01(\x0b\x32$.substrait.gen.proto.Expression.EnumB\x02\x18\x01H\x00R\x04\x65num\x1a\x94\x01\n\x04\x45num\x12\x1e\n\tspecified\x18\x01 \x01(\tH\x00R\tspecified\x12N\n\x0bunspecified\x18\x02 \x01(\x0b\x32*.substrait.gen.proto.Expression.Enum.EmptyH\x00R\x0bunspecified\x1a\x0b\n\x05\x45mpty:\x02\x18\x01:\x02\x18\x01\x42\x0b\n\tenum_kind\x1a\xaf\x19\n\x07Literal\x12\x1a\n\x07\x62oolean\x18\x01 \x01(\x08H\x00R\x07\x62oolean\x12\x10\n\x02i8\x18\x02 \x01(\x05H\x00R\x02i8\x12\x12\n\x03i16\x18\x03 \x01(\x05H\x00R\x03i16\x12\x12\n\x03i32\x18\x05 \x01(\x05H\x00R\x03i32\x12\x12\n\x03i64\x18\x07 \x01(\x03H\x00R\x03i64\x12\x14\n\x04\x66p32\x18\n \x01(\x02H\x00R\x04\x66p32\x12\x14\n\x04\x66p64\x18\x0b \x01(\x01H\x00R\x04\x66p64\x12\x18\n\x06string\x18\x0c \x01(\tH\x00R\x06string\x12\x18\n\x06\x62inary\x18\r \x01(\x0cH\x00R\x06\x62inary\x12\"\n\ttimestamp\x18\x0e \x01(\x03\x42\x02\x18\x01H\x00R\ttimestamp\x12\x14\n\x04\x64\x61te\x18\x10 \x01(\x05H\x00R\x04\x64\x61te\x12\x14\n\x04time\x18\x11 \x01(\x03H\x00R\x04time\x12r\n\x16interval_year_to_month\x18\x13 \x01(\x0b\x32;.substrait.gen.proto.Expression.Literal.IntervalYearToMonthH\x00R\x13intervalYearToMonth\x12r\n\x16interval_day_to_second\x18\x14 \x01(\x0b\x32;.substrait.gen.proto.Expression.Literal.IntervalDayToSecondH\x00R\x13intervalDayToSecond\x12g\n\x11interval_compound\x18$ \x01(\x0b\x32\x38.substrait.gen.proto.Expression.Literal.IntervalCompoundH\x00R\x10intervalCompound\x12\x1f\n\nfixed_char\x18\x15 \x01(\tH\x00R\tfixedChar\x12L\n\x08var_char\x18\x16 \x01(\x0b\x32/.substrait.gen.proto.Expression.Literal.VarCharH\x00R\x07varChar\x12#\n\x0c\x66ixed_binary\x18\x17 \x01(\x0cH\x00R\x0b\x66ixedBinary\x12K\n\x07\x64\x65\x63imal\x18\x18 \x01(\x0b\x32/.substrait.gen.proto.Expression.Literal.DecimalH\x00R\x07\x64\x65\x63imal\x12^\n\x0eprecision_time\x18% \x01(\x0b\x32\x35.substrait.gen.proto.Expression.Literal.PrecisionTimeH\x00R\rprecisionTime\x12m\n\x13precision_timestamp\x18\" \x01(\x0b\x32:.substrait.gen.proto.Expression.Literal.PrecisionTimestampH\x00R\x12precisionTimestamp\x12r\n\x16precision_timestamp_tz\x18# \x01(\x0b\x32:.substrait.gen.proto.Expression.Literal.PrecisionTimestampH\x00R\x14precisionTimestampTz\x12H\n\x06struct\x18\x19 \x01(\x0b\x32..substrait.gen.proto.Expression.Literal.StructH\x00R\x06struct\x12?\n\x03map\x18\x1a \x01(\x0b\x32+.substrait.gen.proto.Expression.Literal.MapH\x00R\x03map\x12\'\n\x0ctimestamp_tz\x18\x1b \x01(\x03\x42\x02\x18\x01H\x00R\x0btimestampTz\x12\x14\n\x04uuid\x18\x1c \x01(\x0cH\x00R\x04uuid\x12/\n\x04null\x18\x1d \x01(\x0b\x32\x19.substrait.gen.proto.TypeH\x00R\x04null\x12\x42\n\x04list\x18\x1e \x01(\x0b\x32,.substrait.gen.proto.Expression.Literal.ListH\x00R\x04list\x12?\n\nempty_list\x18\x1f \x01(\x0b\x32\x1e.substrait.gen.proto.Type.ListH\x00R\temptyList\x12<\n\tempty_map\x18 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.MapH\x00R\x08\x65mptyMap\x12X\n\x0cuser_defined\x18! \x01(\x0b\x32\x33.substrait.gen.proto.Expression.Literal.UserDefinedH\x00R\x0buserDefined\x12\x1a\n\x08nullable\x18\x32 \x01(\x08R\x08nullable\x12\x38\n\x18type_variation_reference\x18\x33 \x01(\rR\x16typeVariationReference\x1a\x37\n\x07VarChar\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\x12\x16\n\x06length\x18\x02 \x01(\rR\x06length\x1aS\n\x07\x44\x65\x63imal\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x1c\n\tprecision\x18\x02 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x03 \x01(\x05R\x05scale\x1a\x43\n\rPrecisionTime\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value\x1aH\n\x12PrecisionTimestamp\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05value\x18\x02 \x01(\x03R\x05value\x1a\xe1\x01\n\x03Map\x12S\n\nkey_values\x18\x01 \x03(\x0b\x32\x34.substrait.gen.proto.Expression.Literal.Map.KeyValueR\tkeyValues\x1a\x84\x01\n\x08KeyValue\x12\x39\n\x03key\x18\x01 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x03key\x12=\n\x05value\x18\x02 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x05value\x1a\x43\n\x13IntervalYearToMonth\x12\x14\n\x05years\x18\x01 \x01(\x05R\x05years\x12\x16\n\x06months\x18\x02 \x01(\x05R\x06months\x1a\xbf\x01\n\x13IntervalDayToSecond\x12\x12\n\x04\x64\x61ys\x18\x01 \x01(\x05R\x04\x64\x61ys\x12\x18\n\x07seconds\x18\x02 \x01(\x05R\x07seconds\x12(\n\x0cmicroseconds\x18\x03 \x01(\x05\x42\x02\x18\x01H\x00R\x0cmicroseconds\x12\x1e\n\tprecision\x18\x04 \x01(\x05H\x00R\tprecision\x12\x1e\n\nsubseconds\x18\x05 \x01(\x03R\nsubsecondsB\x10\n\x0eprecision_mode\x1a\xf6\x01\n\x10IntervalCompound\x12p\n\x16interval_year_to_month\x18\x01 \x01(\x0b\x32;.substrait.gen.proto.Expression.Literal.IntervalYearToMonthR\x13intervalYearToMonth\x12p\n\x16interval_day_to_second\x18\x02 \x01(\x0b\x32;.substrait.gen.proto.Expression.Literal.IntervalDayToSecondR\x13intervalDayToSecond\x1aI\n\x06Struct\x12?\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x06\x66ields\x1aG\n\x04List\x12?\n\x06values\x18\x01 \x03(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x06values\x1a\x81\x02\n\x0bUserDefined\x12%\n\x0etype_reference\x18\x01 \x01(\rR\rtypeReference\x12L\n\x0ftype_parameters\x18\x03 \x03(\x0b\x32#.substrait.gen.proto.Type.ParameterR\x0etypeParameters\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00R\x05value\x12H\n\x06struct\x18\x04 \x01(\x0b\x32..substrait.gen.proto.Expression.Literal.StructH\x00R\x06structB\x05\n\x03valB\x0e\n\x0cliteral_type\x1a\x8f\x05\n\x06Nested\x12\x1a\n\x08nullable\x18\x01 \x01(\x08R\x08nullable\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x06struct\x18\x03 \x01(\x0b\x32-.substrait.gen.proto.Expression.Nested.StructH\x00R\x06struct\x12\x41\n\x04list\x18\x04 \x01(\x0b\x32+.substrait.gen.proto.Expression.Nested.ListH\x00R\x04list\x12>\n\x03map\x18\x05 \x01(\x0b\x32*.substrait.gen.proto.Expression.Nested.MapH\x00R\x03map\x1a\xcf\x01\n\x03Map\x12R\n\nkey_values\x18\x01 \x03(\x0b\x32\x33.substrait.gen.proto.Expression.Nested.Map.KeyValueR\tkeyValues\x1at\n\x08KeyValue\x12\x31\n\x03key\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x05value\x1a\x41\n\x06Struct\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x06\x66ields\x1a?\n\x04List\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x06valuesB\r\n\x0bnested_type\x1a\xb8\x02\n\x0eScalarFunction\x12-\n\x12\x66unction_reference\x18\x01 \x01(\rR\x11\x66unctionReference\x12\x43\n\targuments\x18\x04 \x03(\x0b\x32%.substrait.gen.proto.FunctionArgumentR\targuments\x12=\n\x07options\x18\x05 \x03(\x0b\x32#.substrait.gen.proto.FunctionOptionR\x07options\x12:\n\x0boutput_type\x18\x03 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\noutputType\x12\x37\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionB\x02\x18\x01R\x04\x61rgs\x1a\xa7\x0b\n\x0eWindowFunction\x12-\n\x12\x66unction_reference\x18\x01 \x01(\rR\x11\x66unctionReference\x12\x43\n\targuments\x18\t \x03(\x0b\x32%.substrait.gen.proto.FunctionArgumentR\targuments\x12=\n\x07options\x18\x0b \x03(\x0b\x32#.substrait.gen.proto.FunctionOptionR\x07options\x12:\n\x0boutput_type\x18\x07 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\noutputType\x12;\n\x05phase\x18\x06 \x01(\x0e\x32%.substrait.gen.proto.AggregationPhaseR\x05phase\x12\x34\n\x05sorts\x18\x03 \x03(\x0b\x32\x1e.substrait.gen.proto.SortFieldR\x05sorts\x12\\\n\ninvocation\x18\n \x01(\x0e\x32<.substrait.gen.proto.AggregateFunction.AggregationInvocationR\ninvocation\x12?\n\npartitions\x18\x02 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\npartitions\x12Z\n\x0b\x62ounds_type\x18\x0c \x01(\x0e\x32\x39.substrait.gen.proto.Expression.WindowFunction.BoundsTypeR\nboundsType\x12U\n\x0blower_bound\x18\x05 \x01(\x0b\x32\x34.substrait.gen.proto.Expression.WindowFunction.BoundR\nlowerBound\x12U\n\x0bupper_bound\x18\x04 \x01(\x0b\x32\x34.substrait.gen.proto.Expression.WindowFunction.BoundR\nupperBound\x12\x37\n\x04\x61rgs\x18\x08 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionB\x02\x18\x01R\x04\x61rgs\x1a\xf8\x03\n\x05\x42ound\x12^\n\tpreceding\x18\x01 \x01(\x0b\x32>.substrait.gen.proto.Expression.WindowFunction.Bound.PrecedingH\x00R\tpreceding\x12^\n\tfollowing\x18\x02 \x01(\x0b\x32>.substrait.gen.proto.Expression.WindowFunction.Bound.FollowingH\x00R\tfollowing\x12\x62\n\x0b\x63urrent_row\x18\x03 \x01(\x0b\x32?.substrait.gen.proto.Expression.WindowFunction.Bound.CurrentRowH\x00R\ncurrentRow\x12^\n\tunbounded\x18\x04 \x01(\x0b\x32>.substrait.gen.proto.Expression.WindowFunction.Bound.UnboundedH\x00R\tunbounded\x1a#\n\tPreceding\x12\x16\n\x06offset\x18\x01 \x01(\x03R\x06offset\x1a#\n\tFollowing\x12\x16\n\x06offset\x18\x01 \x01(\x03R\x06offset\x1a\x0c\n\nCurrentRow\x1a\x0b\n\tUnboundedB\x06\n\x04kind\"V\n\nBoundsType\x12\x1b\n\x17\x42OUNDS_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x42OUNDS_TYPE_ROWS\x10\x01\x12\x15\n\x11\x42OUNDS_TYPE_RANGE\x10\x02\x1a\xf2\x01\n\x06IfThen\x12\x41\n\x03ifs\x18\x01 \x03(\x0b\x32/.substrait.gen.proto.Expression.IfThen.IfClauseR\x03ifs\x12\x33\n\x04\x65lse\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04\x65lse\x1ap\n\x08IfClause\x12/\n\x02if\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x02if\x12\x33\n\x04then\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04then\x1a\xca\x02\n\x04\x43\x61st\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x04type\x12\x35\n\x05input\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x05input\x12_\n\x10\x66\x61ilure_behavior\x18\x03 \x01(\x0e\x32\x34.substrait.gen.proto.Expression.Cast.FailureBehaviorR\x0f\x66\x61ilureBehavior\"{\n\x0f\x46\x61ilureBehavior\x12 \n\x1c\x46\x41ILURE_BEHAVIOR_UNSPECIFIED\x10\x00\x12 \n\x1c\x46\x41ILURE_BEHAVIOR_RETURN_NULL\x10\x01\x12$\n FAILURE_BEHAVIOR_THROW_EXCEPTION\x10\x02\x1a\xc3\x02\n\x10SwitchExpression\x12\x35\n\x05match\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x05match\x12J\n\x03ifs\x18\x01 \x03(\x0b\x32\x38.substrait.gen.proto.Expression.SwitchExpression.IfValueR\x03ifs\x12\x33\n\x04\x65lse\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04\x65lse\x1aw\n\x07IfValue\x12\x37\n\x02if\x18\x01 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x02if\x12\x33\n\x04then\x18\x02 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04then\x1a\x82\x01\n\x0eSingularOrList\x12\x35\n\x05value\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x05value\x12\x39\n\x07options\x18\x02 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x07options\x1a\xd5\x01\n\x0bMultiOrList\x12\x35\n\x05value\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x05value\x12L\n\x07options\x18\x02 \x03(\x0b\x32\x32.substrait.gen.proto.Expression.MultiOrList.RecordR\x07options\x1a\x41\n\x06Record\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x06\x66ields\x1a\xbb\x04\n\x10\x45mbeddedFunction\x12=\n\targuments\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\targuments\x12:\n\x0boutput_type\x18\x02 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\noutputType\x12}\n\x16python_pickle_function\x18\x03 \x01(\x0b\x32\x45.substrait.gen.proto.Expression.EmbeddedFunction.PythonPickleFunctionH\x00R\x14pythonPickleFunction\x12z\n\x15web_assembly_function\x18\x04 \x01(\x0b\x32\x44.substrait.gen.proto.Expression.EmbeddedFunction.WebAssemblyFunctionH\x00R\x13webAssemblyFunction\x1aV\n\x14PythonPickleFunction\x12\x1a\n\x08\x66unction\x18\x01 \x01(\x0cR\x08\x66unction\x12\"\n\x0cprerequisite\x18\x02 \x03(\tR\x0cprerequisite\x1aQ\n\x13WebAssemblyFunction\x12\x16\n\x06script\x18\x01 \x01(\x0cR\x06script\x12\"\n\x0cprerequisite\x18\x02 \x03(\tR\x0cprerequisiteB\x06\n\x04kind\x1a\xaf\x05\n\x10ReferenceSegment\x12R\n\x07map_key\x18\x01 \x01(\x0b\x32\x37.substrait.gen.proto.Expression.ReferenceSegment.MapKeyH\x00R\x06mapKey\x12\x61\n\x0cstruct_field\x18\x02 \x01(\x0b\x32<.substrait.gen.proto.Expression.ReferenceSegment.StructFieldH\x00R\x0bstructField\x12\x61\n\x0clist_element\x18\x03 \x01(\x0b\x32<.substrait.gen.proto.Expression.ReferenceSegment.ListElementH\x00R\x0blistElement\x1a\x92\x01\n\x06MapKey\x12@\n\x07map_key\x18\x01 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x06mapKey\x12\x46\n\x05\x63hild\x18\x02 \x01(\x0b\x32\x30.substrait.gen.proto.Expression.ReferenceSegmentR\x05\x63hild\x1ak\n\x0bStructField\x12\x14\n\x05\x66ield\x18\x01 \x01(\x05R\x05\x66ield\x12\x46\n\x05\x63hild\x18\x02 \x01(\x0b\x32\x30.substrait.gen.proto.Expression.ReferenceSegmentR\x05\x63hild\x1am\n\x0bListElement\x12\x16\n\x06offset\x18\x01 \x01(\x05R\x06offset\x12\x46\n\x05\x63hild\x18\x02 \x01(\x0b\x32\x30.substrait.gen.proto.Expression.ReferenceSegmentR\x05\x63hildB\x10\n\x0ereference_type\x1a\xa4\x0c\n\x0eMaskExpression\x12S\n\x06select\x18\x01 \x01(\x0b\x32;.substrait.gen.proto.Expression.MaskExpression.StructSelectR\x06select\x12\x38\n\x18maintain_singular_struct\x18\x02 \x01(\x08R\x16maintainSingularStruct\x1a\x86\x02\n\x06Select\x12U\n\x06struct\x18\x01 \x01(\x0b\x32;.substrait.gen.proto.Expression.MaskExpression.StructSelectH\x00R\x06struct\x12O\n\x04list\x18\x02 \x01(\x0b\x32\x39.substrait.gen.proto.Expression.MaskExpression.ListSelectH\x00R\x04list\x12L\n\x03map\x18\x03 \x01(\x0b\x32\x38.substrait.gen.proto.Expression.MaskExpression.MapSelectH\x00R\x03mapB\x06\n\x04type\x1al\n\x0cStructSelect\x12\\\n\x0cstruct_items\x18\x01 \x03(\x0b\x32\x39.substrait.gen.proto.Expression.MaskExpression.StructItemR\x0bstructItems\x1ao\n\nStructItem\x12\x14\n\x05\x66ield\x18\x01 \x01(\x05R\x05\x66ield\x12K\n\x05\x63hild\x18\x02 \x01(\x0b\x32\x35.substrait.gen.proto.Expression.MaskExpression.SelectR\x05\x63hild\x1a\x8e\x04\n\nListSelect\x12\x66\n\tselection\x18\x01 \x03(\x0b\x32H.substrait.gen.proto.Expression.MaskExpression.ListSelect.ListSelectItemR\tselection\x12K\n\x05\x63hild\x18\x02 \x01(\x0b\x32\x35.substrait.gen.proto.Expression.MaskExpression.SelectR\x05\x63hild\x1a\xca\x02\n\x0eListSelectItem\x12j\n\x04item\x18\x01 \x01(\x0b\x32T.substrait.gen.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListElementH\x00R\x04item\x12j\n\x05slice\x18\x02 \x01(\x0b\x32R.substrait.gen.proto.Expression.MaskExpression.ListSelect.ListSelectItem.ListSliceH\x00R\x05slice\x1a#\n\x0bListElement\x12\x14\n\x05\x66ield\x18\x01 \x01(\x05R\x05\x66ield\x1a\x33\n\tListSlice\x12\x14\n\x05start\x18\x01 \x01(\x05R\x05start\x12\x10\n\x03\x65nd\x18\x02 \x01(\x05R\x03\x65ndB\x06\n\x04type\x1a\x89\x03\n\tMapSelect\x12S\n\x03key\x18\x01 \x01(\x0b\x32?.substrait.gen.proto.Expression.MaskExpression.MapSelect.MapKeyH\x00R\x03key\x12k\n\nexpression\x18\x02 \x01(\x0b\x32I.substrait.gen.proto.Expression.MaskExpression.MapSelect.MapKeyExpressionH\x00R\nexpression\x12K\n\x05\x63hild\x18\x03 \x01(\x0b\x32\x35.substrait.gen.proto.Expression.MaskExpression.SelectR\x05\x63hild\x1a!\n\x06MapKey\x12\x17\n\x07map_key\x18\x01 \x01(\tR\x06mapKey\x1a@\n\x10MapKeyExpression\x12,\n\x12map_key_expression\x18\x01 \x01(\tR\x10mapKeyExpressionB\x08\n\x06select\x1a\xbf\x04\n\x0e\x46ieldReference\x12]\n\x10\x64irect_reference\x18\x01 \x01(\x0b\x32\x30.substrait.gen.proto.Expression.ReferenceSegmentH\x00R\x0f\x64irectReference\x12[\n\x10masked_reference\x18\x02 \x01(\x0b\x32..substrait.gen.proto.Expression.MaskExpressionH\x00R\x0fmaskedReference\x12\x41\n\nexpression\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x01R\nexpression\x12\x65\n\x0eroot_reference\x18\x04 \x01(\x0b\x32<.substrait.gen.proto.Expression.FieldReference.RootReferenceH\x01R\rrootReference\x12h\n\x0fouter_reference\x18\x05 \x01(\x0b\x32=.substrait.gen.proto.Expression.FieldReference.OuterReferenceH\x01R\x0eouterReference\x1a\x0f\n\rRootReference\x1a-\n\x0eOuterReference\x12\x1b\n\tsteps_out\x18\x01 \x01(\rR\x08stepsOutB\x10\n\x0ereference_typeB\x0b\n\troot_type\x1a\x97\x0b\n\x08Subquery\x12I\n\x06scalar\x18\x01 \x01(\x0b\x32/.substrait.gen.proto.Expression.Subquery.ScalarH\x00R\x06scalar\x12Y\n\x0cin_predicate\x18\x02 \x01(\x0b\x32\x34.substrait.gen.proto.Expression.Subquery.InPredicateH\x00R\x0binPredicate\x12\\\n\rset_predicate\x18\x03 \x01(\x0b\x32\x35.substrait.gen.proto.Expression.Subquery.SetPredicateH\x00R\x0csetPredicate\x12_\n\x0eset_comparison\x18\x04 \x01(\x0b\x32\x36.substrait.gen.proto.Expression.Subquery.SetComparisonH\x00R\rsetComparison\x1a\x38\n\x06Scalar\x12.\n\x05input\x18\x01 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05input\x1a~\n\x0bInPredicate\x12\x39\n\x07needles\x18\x01 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x07needles\x12\x34\n\x08haystack\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x08haystack\x1a\x85\x02\n\x0cSetPredicate\x12\x64\n\x0cpredicate_op\x18\x01 \x01(\x0e\x32\x41.substrait.gen.proto.Expression.Subquery.SetPredicate.PredicateOpR\x0bpredicateOp\x12\x30\n\x06tuples\x18\x02 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x06tuples\"]\n\x0bPredicateOp\x12\x1c\n\x18PREDICATE_OP_UNSPECIFIED\x10\x00\x12\x17\n\x13PREDICATE_OP_EXISTS\x10\x01\x12\x17\n\x13PREDICATE_OP_UNIQUE\x10\x02\x1a\xd2\x04\n\rSetComparison\x12\x65\n\x0creduction_op\x18\x01 \x01(\x0e\x32\x42.substrait.gen.proto.Expression.Subquery.SetComparison.ReductionOpR\x0breductionOp\x12h\n\rcomparison_op\x18\x02 \x01(\x0e\x32\x43.substrait.gen.proto.Expression.Subquery.SetComparison.ComparisonOpR\x0c\x63omparisonOp\x12\x33\n\x04left\x18\x03 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04left\x12.\n\x05right\x18\x04 \x01(\x0b\x32\x18.substrait.gen.proto.RelR\x05right\"\xb1\x01\n\x0c\x43omparisonOp\x12\x1d\n\x19\x43OMPARISON_OP_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OMPARISON_OP_EQ\x10\x01\x12\x14\n\x10\x43OMPARISON_OP_NE\x10\x02\x12\x14\n\x10\x43OMPARISON_OP_LT\x10\x03\x12\x14\n\x10\x43OMPARISON_OP_GT\x10\x04\x12\x14\n\x10\x43OMPARISON_OP_LE\x10\x05\x12\x14\n\x10\x43OMPARISON_OP_GE\x10\x06\"W\n\x0bReductionOp\x12\x1c\n\x18REDUCTION_OP_UNSPECIFIED\x10\x00\x12\x14\n\x10REDUCTION_OP_ANY\x10\x01\x12\x14\n\x10REDUCTION_OP_ALL\x10\x02\x42\x0f\n\rsubquery_typeB\n\n\x08rex_type\"r\n\x10\x44ynamicParameter\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x04type\x12/\n\x13parameter_reference\x18\x02 \x01(\rR\x12parameterReference\"\xc1\x03\n\tSortField\x12\x33\n\x04\x65xpr\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionR\x04\x65xpr\x12L\n\tdirection\x18\x02 \x01(\x0e\x32,.substrait.gen.proto.SortField.SortDirectionH\x00R\tdirection\x12\x44\n\x1d\x63omparison_function_reference\x18\x03 \x01(\rH\x00R\x1b\x63omparisonFunctionReference\"\xdd\x01\n\rSortDirection\x12\x1e\n\x1aSORT_DIRECTION_UNSPECIFIED\x10\x00\x12\"\n\x1eSORT_DIRECTION_ASC_NULLS_FIRST\x10\x01\x12!\n\x1dSORT_DIRECTION_ASC_NULLS_LAST\x10\x02\x12#\n\x1fSORT_DIRECTION_DESC_NULLS_FIRST\x10\x03\x12\"\n\x1eSORT_DIRECTION_DESC_NULLS_LAST\x10\x04\x12\x1c\n\x18SORT_DIRECTION_CLUSTERED\x10\x05\x42\x0b\n\tsort_kind\"\x93\x05\n\x11\x41ggregateFunction\x12-\n\x12\x66unction_reference\x18\x01 \x01(\rR\x11\x66unctionReference\x12\x43\n\targuments\x18\x07 \x03(\x0b\x32%.substrait.gen.proto.FunctionArgumentR\targuments\x12=\n\x07options\x18\x08 \x03(\x0b\x32#.substrait.gen.proto.FunctionOptionR\x07options\x12:\n\x0boutput_type\x18\x05 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\noutputType\x12;\n\x05phase\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.AggregationPhaseR\x05phase\x12\x34\n\x05sorts\x18\x03 \x03(\x0b\x32\x1e.substrait.gen.proto.SortFieldR\x05sorts\x12\\\n\ninvocation\x18\x06 \x01(\x0e\x32<.substrait.gen.proto.AggregateFunction.AggregationInvocationR\ninvocation\x12\x37\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1f.substrait.gen.proto.ExpressionB\x02\x18\x01R\x04\x61rgs\"\x84\x01\n\x15\x41ggregationInvocation\x12&\n\"AGGREGATION_INVOCATION_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x41GGREGATION_INVOCATION_ALL\x10\x01\x12#\n\x1f\x41GGREGATION_INVOCATION_DISTINCT\x10\x02\"7\n\x0cReferenceRel\x12\'\n\x0fsubtree_ordinal\x18\x01 \x01(\x05R\x0esubtreeOrdinal*\xef\x01\n\x10\x41ggregationPhase\x12!\n\x1d\x41GGREGATION_PHASE_UNSPECIFIED\x10\x00\x12-\n)AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE\x10\x01\x12\x32\n.AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE\x10\x02\x12\'\n#AGGREGATION_PHASE_INITIAL_TO_RESULT\x10\x03\x12,\n(AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT\x10\x04\x42?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.algebra_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.algebra_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_READREL_VIRTUALTABLE'].fields_by_name['values']._loaded_options = None - _globals['_READREL_VIRTUALTABLE'].fields_by_name['values']._serialized_options = b'\x18\x01' - _globals['_FETCHREL'].fields_by_name['offset']._loaded_options = None - _globals['_FETCHREL'].fields_by_name['offset']._serialized_options = b'\x18\x01' - _globals['_FETCHREL'].fields_by_name['count']._loaded_options = None - _globals['_FETCHREL'].fields_by_name['count']._serialized_options = b'\x18\x01' - _globals['_AGGREGATEREL_GROUPING'].fields_by_name['grouping_expressions']._loaded_options = None - _globals['_AGGREGATEREL_GROUPING'].fields_by_name['grouping_expressions']._serialized_options = b'\x18\x01' - _globals['_HASHJOINREL'].fields_by_name['left_keys']._loaded_options = None - _globals['_HASHJOINREL'].fields_by_name['left_keys']._serialized_options = b'\x18\x01' - _globals['_HASHJOINREL'].fields_by_name['right_keys']._loaded_options = None - _globals['_HASHJOINREL'].fields_by_name['right_keys']._serialized_options = b'\x18\x01' - _globals['_MERGEJOINREL'].fields_by_name['left_keys']._loaded_options = None - _globals['_MERGEJOINREL'].fields_by_name['left_keys']._serialized_options = b'\x18\x01' - _globals['_MERGEJOINREL'].fields_by_name['right_keys']._loaded_options = None - _globals['_MERGEJOINREL'].fields_by_name['right_keys']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_ENUM_EMPTY']._loaded_options = None - _globals['_EXPRESSION_ENUM_EMPTY']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_ENUM']._loaded_options = None - _globals['_EXPRESSION_ENUM']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND'].fields_by_name['microseconds']._loaded_options = None - _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND'].fields_by_name['microseconds']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp']._loaded_options = None - _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp_tz']._loaded_options = None - _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp_tz']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_SCALARFUNCTION'].fields_by_name['args']._loaded_options = None - _globals['_EXPRESSION_SCALARFUNCTION'].fields_by_name['args']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION_WINDOWFUNCTION'].fields_by_name['args']._loaded_options = None - _globals['_EXPRESSION_WINDOWFUNCTION'].fields_by_name['args']._serialized_options = b'\x18\x01' - _globals['_EXPRESSION'].fields_by_name['enum']._loaded_options = None - _globals['_EXPRESSION'].fields_by_name['enum']._serialized_options = b'\x18\x01' - _globals['_AGGREGATEFUNCTION'].fields_by_name['args']._loaded_options = None - _globals['_AGGREGATEFUNCTION'].fields_by_name['args']._serialized_options = b'\x18\x01' - _globals['_AGGREGATIONPHASE']._serialized_start = 29447 - _globals['_AGGREGATIONPHASE']._serialized_end = 29686 - _globals['_RELCOMMON']._serialized_start = 111 - _globals['_RELCOMMON']._serialized_end = 1705 - _globals['_RELCOMMON_DIRECT']._serialized_start = 347 - _globals['_RELCOMMON_DIRECT']._serialized_end = 355 - _globals['_RELCOMMON_EMIT']._serialized_start = 357 - _globals['_RELCOMMON_EMIT']._serialized_end = 402 - _globals['_RELCOMMON_HINT']._serialized_start = 405 - _globals['_RELCOMMON_HINT']._serialized_end = 1692 - _globals['_RELCOMMON_HINT_STATS']._serialized_start = 856 - _globals['_RELCOMMON_HINT_STATS']._serialized_end = 1009 - _globals['_RELCOMMON_HINT_RUNTIMECONSTRAINT']._serialized_start = 1011 - _globals['_RELCOMMON_HINT_RUNTIMECONSTRAINT']._serialized_end = 1114 - _globals['_RELCOMMON_HINT_SAVEDCOMPUTATION']._serialized_start = 1117 - _globals['_RELCOMMON_HINT_SAVEDCOMPUTATION']._serialized_end = 1317 - _globals['_RELCOMMON_HINT_LOADEDCOMPUTATION']._serialized_start = 1320 - _globals['_RELCOMMON_HINT_LOADEDCOMPUTATION']._serialized_end = 1540 - _globals['_RELCOMMON_HINT_COMPUTATIONTYPE']._serialized_start = 1543 - _globals['_RELCOMMON_HINT_COMPUTATIONTYPE']._serialized_end = 1692 - _globals['_READREL']._serialized_start = 1708 - _globals['_READREL']._serialized_end = 4273 - _globals['_READREL_NAMEDTABLE']._serialized_start = 2406 - _globals['_READREL_NAMEDTABLE']._serialized_end = 2524 - _globals['_READREL_ICEBERGTABLE']._serialized_start = 2527 - _globals['_READREL_ICEBERGTABLE']._serialized_end = 2779 - _globals['_READREL_ICEBERGTABLE_METADATAFILEREAD']._serialized_start = 2616 - _globals['_READREL_ICEBERGTABLE_METADATAFILEREAD']._serialized_end = 2765 - _globals['_READREL_VIRTUALTABLE']._serialized_start = 2782 - _globals['_READREL_VIRTUALTABLE']._serialized_end = 2925 - _globals['_READREL_EXTENSIONTABLE']._serialized_start = 2927 - _globals['_READREL_EXTENSIONTABLE']._serialized_end = 2989 - _globals['_READREL_LOCALFILES']._serialized_start = 2992 - _globals['_READREL_LOCALFILES']._serialized_end = 4260 - _globals['_READREL_LOCALFILES_FILEORFILES']._serialized_start = 3152 - _globals['_READREL_LOCALFILES_FILEORFILES']._serialized_end = 4260 - _globals['_READREL_LOCALFILES_FILEORFILES_PARQUETREADOPTIONS']._serialized_start = 3849 - _globals['_READREL_LOCALFILES_FILEORFILES_PARQUETREADOPTIONS']._serialized_end = 3869 - _globals['_READREL_LOCALFILES_FILEORFILES_ARROWREADOPTIONS']._serialized_start = 3871 - _globals['_READREL_LOCALFILES_FILEORFILES_ARROWREADOPTIONS']._serialized_end = 3889 - _globals['_READREL_LOCALFILES_FILEORFILES_ORCREADOPTIONS']._serialized_start = 3891 - _globals['_READREL_LOCALFILES_FILEORFILES_ORCREADOPTIONS']._serialized_end = 3907 - _globals['_READREL_LOCALFILES_FILEORFILES_DWRFREADOPTIONS']._serialized_start = 3909 - _globals['_READREL_LOCALFILES_FILEORFILES_DWRFREADOPTIONS']._serialized_end = 3926 - _globals['_READREL_LOCALFILES_FILEORFILES_DELIMITERSEPARATEDTEXTREADOPTIONS']._serialized_start = 3929 - _globals['_READREL_LOCALFILES_FILEORFILES_DELIMITERSEPARATEDTEXTREADOPTIONS']._serialized_end = 4218 - _globals['_PROJECTREL']._serialized_start = 4276 - _globals['_PROJECTREL']._serialized_end = 4501 - _globals['_JOINREL']._serialized_start = 4504 - _globals['_JOINREL']._serialized_end = 5193 - _globals['_JOINREL_JOINTYPE']._serialized_start = 4865 - _globals['_JOINREL_JOINTYPE']._serialized_end = 5193 - _globals['_CROSSREL']._serialized_start = 5196 - _globals['_CROSSREL']._serialized_end = 5398 - _globals['_FETCHREL']._serialized_start = 5401 - _globals['_FETCHREL']._serialized_end = 5764 - _globals['_AGGREGATEREL']._serialized_start = 5767 - _globals['_AGGREGATEREL']._serialized_end = 6374 - _globals['_AGGREGATEREL_GROUPING']._serialized_start = 6131 - _globals['_AGGREGATEREL_GROUPING']._serialized_end = 6268 - _globals['_AGGREGATEREL_MEASURE']._serialized_start = 6270 - _globals['_AGGREGATEREL_MEASURE']._serialized_end = 6374 - _globals['_CONSISTENTPARTITIONWINDOWREL']._serialized_start = 6377 - _globals['_CONSISTENTPARTITIONWINDOWREL']._serialized_end = 7347 - _globals['_CONSISTENTPARTITIONWINDOWREL_WINDOWRELFUNCTION']._serialized_start = 6780 - _globals['_CONSISTENTPARTITIONWINDOWREL_WINDOWRELFUNCTION']._serialized_end = 7347 - _globals['_SORTREL']._serialized_start = 7350 - _globals['_SORTREL']._serialized_end = 7559 - _globals['_FILTERREL']._serialized_start = 7562 - _globals['_FILTERREL']._serialized_end = 7782 - _globals['_SETREL']._serialized_start = 7785 - _globals['_SETREL']._serialized_end = 8263 - _globals['_SETREL_SETOP']._serialized_start = 7995 - _globals['_SETREL_SETOP']._serialized_end = 8263 - _globals['_EXTENSIONSINGLEREL']._serialized_start = 8266 - _globals['_EXTENSIONSINGLEREL']._serialized_end = 8408 - _globals['_EXTENSIONLEAFREL']._serialized_start = 8410 - _globals['_EXTENSIONLEAFREL']._serialized_end = 8516 - _globals['_EXTENSIONMULTIREL']._serialized_start = 8519 - _globals['_EXTENSIONMULTIREL']._serialized_end = 8662 - _globals['_EXCHANGEREL']._serialized_start = 8665 - _globals['_EXCHANGEREL']._serialized_end = 9794 - _globals['_EXCHANGEREL_SCATTERFIELDS']._serialized_start = 9311 - _globals['_EXCHANGEREL_SCATTERFIELDS']._serialized_end = 9384 - _globals['_EXCHANGEREL_SINGLEBUCKETEXPRESSION']._serialized_start = 9386 - _globals['_EXCHANGEREL_SINGLEBUCKETEXPRESSION']._serialized_end = 9461 - _globals['_EXCHANGEREL_MULTIBUCKETEXPRESSION']._serialized_start = 9463 - _globals['_EXCHANGEREL_MULTIBUCKETEXPRESSION']._serialized_end = 9587 - _globals['_EXCHANGEREL_BROADCAST']._serialized_start = 9589 - _globals['_EXCHANGEREL_BROADCAST']._serialized_end = 9600 - _globals['_EXCHANGEREL_ROUNDROBIN']._serialized_start = 9602 - _globals['_EXCHANGEREL_ROUNDROBIN']._serialized_end = 9636 - _globals['_EXCHANGEREL_EXCHANGETARGET']._serialized_start = 9639 - _globals['_EXCHANGEREL_EXCHANGETARGET']._serialized_end = 9777 - _globals['_EXPANDREL']._serialized_start = 9797 - _globals['_EXPANDREL']._serialized_end = 10177 - _globals['_EXPANDREL_EXPANDFIELD']._serialized_start = 9941 - _globals['_EXPANDREL_EXPANDFIELD']._serialized_end = 10108 - _globals['_EXPANDREL_SWITCHINGFIELD']._serialized_start = 10110 - _globals['_EXPANDREL_SWITCHINGFIELD']._serialized_end = 10177 - _globals['_RELROOT']._serialized_start = 10179 - _globals['_RELROOT']._serialized_end = 10244 - _globals['_REL']._serialized_start = 10247 - _globals['_REL']._serialized_end = 11351 - _globals['_NAMEDOBJECTWRITE']._serialized_start = 11353 - _globals['_NAMEDOBJECTWRITE']._serialized_end = 11477 - _globals['_EXTENSIONOBJECT']._serialized_start = 11479 - _globals['_EXTENSIONOBJECT']._serialized_end = 11542 - _globals['_DDLREL']._serialized_start = 11545 - _globals['_DDLREL']._serialized_end = 12319 - _globals['_DDLREL_DDLOBJECT']._serialized_start = 12079 - _globals['_DDLREL_DDLOBJECT']._serialized_end = 12161 - _globals['_DDLREL_DDLOP']._serialized_start = 12164 - _globals['_DDLREL_DDLOP']._serialized_end = 12305 - _globals['_WRITEREL']._serialized_start = 12322 - _globals['_WRITEREL']._serialized_end = 13245 - _globals['_WRITEREL_WRITEOP']._serialized_start = 12830 - _globals['_WRITEREL_WRITEOP']._serialized_end = 12947 - _globals['_WRITEREL_CREATEMODE']._serialized_start = 12950 - _globals['_WRITEREL_CREATEMODE']._serialized_end = 13127 - _globals['_WRITEREL_OUTPUTMODE']._serialized_start = 13129 - _globals['_WRITEREL_OUTPUTMODE']._serialized_end = 13231 - _globals['_UPDATEREL']._serialized_start = 13248 - _globals['_UPDATEREL']._serialized_end = 13715 - _globals['_UPDATEREL_TRANSFORMEXPRESSION']._serialized_start = 13583 - _globals['_UPDATEREL_TRANSFORMEXPRESSION']._serialized_end = 13700 - _globals['_NAMEDTABLE']._serialized_start = 2406 - _globals['_NAMEDTABLE']._serialized_end = 2524 - _globals['_COMPARISONJOINKEY']._serialized_start = 13838 - _globals['_COMPARISONJOINKEY']._serialized_end = 14393 - _globals['_COMPARISONJOINKEY_COMPARISONTYPE']._serialized_start = 14043 - _globals['_COMPARISONJOINKEY_COMPARISONTYPE']._serialized_end = 14208 - _globals['_COMPARISONJOINKEY_SIMPLECOMPARISONTYPE']._serialized_start = 14211 - _globals['_COMPARISONJOINKEY_SIMPLECOMPARISONTYPE']._serialized_end = 14393 - _globals['_HASHJOINREL']._serialized_start = 14396 - _globals['_HASHJOINREL']._serialized_end = 15376 - _globals['_HASHJOINREL_JOINTYPE']._serialized_start = 14960 - _globals['_HASHJOINREL_JOINTYPE']._serialized_end = 15288 - _globals['_HASHJOINREL_BUILDINPUT']._serialized_start = 15290 - _globals['_HASHJOINREL_BUILDINPUT']._serialized_end = 15376 - _globals['_MERGEJOINREL']._serialized_start = 15379 - _globals['_MERGEJOINREL']._serialized_end = 16209 - _globals['_MERGEJOINREL_JOINTYPE']._serialized_start = 14960 - _globals['_MERGEJOINREL_JOINTYPE']._serialized_end = 15288 - _globals['_NESTEDLOOPJOINREL']._serialized_start = 16212 - _globals['_NESTEDLOOPJOINREL']._serialized_end = 16860 - _globals['_NESTEDLOOPJOINREL_JOINTYPE']._serialized_start = 14960 - _globals['_NESTEDLOOPJOINREL_JOINTYPE']._serialized_end = 15288 - _globals['_FUNCTIONARGUMENT']._serialized_start = 16863 - _globals['_FUNCTIONARGUMENT']._serialized_end = 16993 - _globals['_FUNCTIONOPTION']._serialized_start = 16995 - _globals['_FUNCTIONOPTION']._serialized_end = 17063 - _globals['_EXPRESSION']._serialized_start = 17066 - _globals['_EXPRESSION']._serialized_end = 28297 - _globals['_EXPRESSION_ENUM']._serialized_start = 17917 - _globals['_EXPRESSION_ENUM']._serialized_end = 18051 - _globals['_EXPRESSION_ENUM_EMPTY']._serialized_start = 18023 - _globals['_EXPRESSION_ENUM_EMPTY']._serialized_end = 18034 - _globals['_EXPRESSION_LITERAL']._serialized_start = 18054 - _globals['_EXPRESSION_LITERAL']._serialized_end = 20964 - _globals['_EXPRESSION_LITERAL_VARCHAR']._serialized_start = 19644 - _globals['_EXPRESSION_LITERAL_VARCHAR']._serialized_end = 19699 - _globals['_EXPRESSION_LITERAL_DECIMAL']._serialized_start = 19701 - _globals['_EXPRESSION_LITERAL_DECIMAL']._serialized_end = 19784 - _globals['_EXPRESSION_LITERAL_PRECISIONTIME']._serialized_start = 19786 - _globals['_EXPRESSION_LITERAL_PRECISIONTIME']._serialized_end = 19853 - _globals['_EXPRESSION_LITERAL_PRECISIONTIMESTAMP']._serialized_start = 19855 - _globals['_EXPRESSION_LITERAL_PRECISIONTIMESTAMP']._serialized_end = 19927 - _globals['_EXPRESSION_LITERAL_MAP']._serialized_start = 19930 - _globals['_EXPRESSION_LITERAL_MAP']._serialized_end = 20112 - _globals['_EXPRESSION_LITERAL_MAP_KEYVALUE']._serialized_start = 20008 - _globals['_EXPRESSION_LITERAL_MAP_KEYVALUE']._serialized_end = 20112 - _globals['_EXPRESSION_LITERAL_INTERVALYEARTOMONTH']._serialized_start = 20114 - _globals['_EXPRESSION_LITERAL_INTERVALYEARTOMONTH']._serialized_end = 20181 - _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND']._serialized_start = 20184 - _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND']._serialized_end = 20375 - _globals['_EXPRESSION_LITERAL_INTERVALCOMPOUND']._serialized_start = 20378 - _globals['_EXPRESSION_LITERAL_INTERVALCOMPOUND']._serialized_end = 20596 - _globals['_EXPRESSION_LITERAL_STRUCT']._serialized_start = 20598 - _globals['_EXPRESSION_LITERAL_STRUCT']._serialized_end = 20657 - _globals['_EXPRESSION_LITERAL_LIST']._serialized_start = 20659 - _globals['_EXPRESSION_LITERAL_LIST']._serialized_end = 20716 - _globals['_EXPRESSION_LITERAL_USERDEFINED']._serialized_start = 20719 - _globals['_EXPRESSION_LITERAL_USERDEFINED']._serialized_end = 20948 - _globals['_EXPRESSION_NESTED']._serialized_start = 20967 - _globals['_EXPRESSION_NESTED']._serialized_end = 21510 - _globals['_EXPRESSION_NESTED_MAP']._serialized_start = 21226 - _globals['_EXPRESSION_NESTED_MAP']._serialized_end = 21391 - _globals['_EXPRESSION_NESTED_MAP_KEYVALUE']._serialized_start = 21303 - _globals['_EXPRESSION_NESTED_MAP_KEYVALUE']._serialized_end = 21391 - _globals['_EXPRESSION_NESTED_STRUCT']._serialized_start = 21393 - _globals['_EXPRESSION_NESTED_STRUCT']._serialized_end = 21444 - _globals['_EXPRESSION_NESTED_LIST']._serialized_start = 21446 - _globals['_EXPRESSION_NESTED_LIST']._serialized_end = 21495 - _globals['_EXPRESSION_SCALARFUNCTION']._serialized_start = 21513 - _globals['_EXPRESSION_SCALARFUNCTION']._serialized_end = 21769 - _globals['_EXPRESSION_WINDOWFUNCTION']._serialized_start = 21772 - _globals['_EXPRESSION_WINDOWFUNCTION']._serialized_end = 23009 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND']._serialized_start = 22473 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND']._serialized_end = 22921 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_PRECEDING']._serialized_start = 22814 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_PRECEDING']._serialized_end = 22849 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_FOLLOWING']._serialized_start = 22851 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_FOLLOWING']._serialized_end = 22886 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_CURRENTROW']._serialized_start = 22888 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_CURRENTROW']._serialized_end = 22900 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_UNBOUNDED']._serialized_start = 22902 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_UNBOUNDED']._serialized_end = 22913 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUNDSTYPE']._serialized_start = 22923 - _globals['_EXPRESSION_WINDOWFUNCTION_BOUNDSTYPE']._serialized_end = 23009 - _globals['_EXPRESSION_IFTHEN']._serialized_start = 23012 - _globals['_EXPRESSION_IFTHEN']._serialized_end = 23198 - _globals['_EXPRESSION_IFTHEN_IFCLAUSE']._serialized_start = 23114 - _globals['_EXPRESSION_IFTHEN_IFCLAUSE']._serialized_end = 23198 - _globals['_EXPRESSION_CAST']._serialized_start = 23201 - _globals['_EXPRESSION_CAST']._serialized_end = 23489 - _globals['_EXPRESSION_CAST_FAILUREBEHAVIOR']._serialized_start = 23366 - _globals['_EXPRESSION_CAST_FAILUREBEHAVIOR']._serialized_end = 23489 - _globals['_EXPRESSION_SWITCHEXPRESSION']._serialized_start = 23492 - _globals['_EXPRESSION_SWITCHEXPRESSION']._serialized_end = 23745 - _globals['_EXPRESSION_SWITCHEXPRESSION_IFVALUE']._serialized_start = 23654 - _globals['_EXPRESSION_SWITCHEXPRESSION_IFVALUE']._serialized_end = 23745 - _globals['_EXPRESSION_SINGULARORLIST']._serialized_start = 23747 - _globals['_EXPRESSION_SINGULARORLIST']._serialized_end = 23849 - _globals['_EXPRESSION_MULTIORLIST']._serialized_start = 23852 - _globals['_EXPRESSION_MULTIORLIST']._serialized_end = 24023 - _globals['_EXPRESSION_MULTIORLIST_RECORD']._serialized_start = 23972 - _globals['_EXPRESSION_MULTIORLIST_RECORD']._serialized_end = 24023 - _globals['_EXPRESSION_EMBEDDEDFUNCTION']._serialized_start = 24026 - _globals['_EXPRESSION_EMBEDDEDFUNCTION']._serialized_end = 24541 - _globals['_EXPRESSION_EMBEDDEDFUNCTION_PYTHONPICKLEFUNCTION']._serialized_start = 24364 - _globals['_EXPRESSION_EMBEDDEDFUNCTION_PYTHONPICKLEFUNCTION']._serialized_end = 24450 - _globals['_EXPRESSION_EMBEDDEDFUNCTION_WEBASSEMBLYFUNCTION']._serialized_start = 24452 - _globals['_EXPRESSION_EMBEDDEDFUNCTION_WEBASSEMBLYFUNCTION']._serialized_end = 24533 - _globals['_EXPRESSION_REFERENCESEGMENT']._serialized_start = 24544 - _globals['_EXPRESSION_REFERENCESEGMENT']._serialized_end = 25132 - _globals['_EXPRESSION_REFERENCESEGMENT_MAPKEY']._serialized_start = 24804 - _globals['_EXPRESSION_REFERENCESEGMENT_MAPKEY']._serialized_end = 24922 - _globals['_EXPRESSION_REFERENCESEGMENT_STRUCTFIELD']._serialized_start = 24924 - _globals['_EXPRESSION_REFERENCESEGMENT_STRUCTFIELD']._serialized_end = 25017 - _globals['_EXPRESSION_REFERENCESEGMENT_LISTELEMENT']._serialized_start = 25019 - _globals['_EXPRESSION_REFERENCESEGMENT_LISTELEMENT']._serialized_end = 25114 - _globals['_EXPRESSION_MASKEXPRESSION']._serialized_start = 25135 - _globals['_EXPRESSION_MASKEXPRESSION']._serialized_end = 26525 - _globals['_EXPRESSION_MASKEXPRESSION_SELECT']._serialized_start = 25283 - _globals['_EXPRESSION_MASKEXPRESSION_SELECT']._serialized_end = 25503 - _globals['_EXPRESSION_MASKEXPRESSION_STRUCTSELECT']._serialized_start = 25505 - _globals['_EXPRESSION_MASKEXPRESSION_STRUCTSELECT']._serialized_end = 25599 - _globals['_EXPRESSION_MASKEXPRESSION_STRUCTITEM']._serialized_start = 25601 - _globals['_EXPRESSION_MASKEXPRESSION_STRUCTITEM']._serialized_end = 25698 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT']._serialized_start = 25701 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT']._serialized_end = 26171 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM']._serialized_start = 25869 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM']._serialized_end = 26171 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTELEMENT']._serialized_start = 26075 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTELEMENT']._serialized_end = 26110 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTSLICE']._serialized_start = 26112 - _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTSLICE']._serialized_end = 26163 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT']._serialized_start = 26174 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT']._serialized_end = 26525 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEY']._serialized_start = 26416 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEY']._serialized_end = 26449 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEYEXPRESSION']._serialized_start = 26451 - _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEYEXPRESSION']._serialized_end = 26515 - _globals['_EXPRESSION_FIELDREFERENCE']._serialized_start = 26528 - _globals['_EXPRESSION_FIELDREFERENCE']._serialized_end = 27033 - _globals['_EXPRESSION_FIELDREFERENCE_ROOTREFERENCE']._serialized_start = 26940 - _globals['_EXPRESSION_FIELDREFERENCE_ROOTREFERENCE']._serialized_end = 26955 - _globals['_EXPRESSION_FIELDREFERENCE_OUTERREFERENCE']._serialized_start = 26957 - _globals['_EXPRESSION_FIELDREFERENCE_OUTERREFERENCE']._serialized_end = 27002 - _globals['_EXPRESSION_SUBQUERY']._serialized_start = 27036 - _globals['_EXPRESSION_SUBQUERY']._serialized_end = 28285 - _globals['_EXPRESSION_SUBQUERY_SCALAR']._serialized_start = 27349 - _globals['_EXPRESSION_SUBQUERY_SCALAR']._serialized_end = 27391 - _globals['_EXPRESSION_SUBQUERY_INPREDICATE']._serialized_start = 27393 - _globals['_EXPRESSION_SUBQUERY_INPREDICATE']._serialized_end = 27491 - _globals['_EXPRESSION_SUBQUERY_SETPREDICATE']._serialized_start = 27494 - _globals['_EXPRESSION_SUBQUERY_SETPREDICATE']._serialized_end = 27727 - _globals['_EXPRESSION_SUBQUERY_SETPREDICATE_PREDICATEOP']._serialized_start = 27634 - _globals['_EXPRESSION_SUBQUERY_SETPREDICATE_PREDICATEOP']._serialized_end = 27727 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON']._serialized_start = 27730 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON']._serialized_end = 28268 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_COMPARISONOP']._serialized_start = 28002 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_COMPARISONOP']._serialized_end = 28179 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_REDUCTIONOP']._serialized_start = 28181 - _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_REDUCTIONOP']._serialized_end = 28268 - _globals['_DYNAMICPARAMETER']._serialized_start = 28299 - _globals['_DYNAMICPARAMETER']._serialized_end = 28399 - _globals['_SORTFIELD']._serialized_start = 28402 - _globals['_SORTFIELD']._serialized_end = 28823 - _globals['_SORTFIELD_SORTDIRECTION']._serialized_start = 28589 - _globals['_SORTFIELD_SORTDIRECTION']._serialized_end = 28810 - _globals['_AGGREGATEFUNCTION']._serialized_start = 28826 - _globals['_AGGREGATEFUNCTION']._serialized_end = 29387 - _globals['_AGGREGATEFUNCTION_AGGREGATIONINVOCATION']._serialized_start = 29255 - _globals['_AGGREGATEFUNCTION_AGGREGATIONINVOCATION']._serialized_end = 29387 - _globals['_REFERENCEREL']._serialized_start = 29389 - _globals['_REFERENCEREL']._serialized_end = 29444 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_READREL_VIRTUALTABLE'].fields_by_name['values']._loaded_options = None + _globals['_READREL_VIRTUALTABLE'].fields_by_name['values']._serialized_options = b'\030\001' + _globals['_FETCHREL'].fields_by_name['offset']._loaded_options = None + _globals['_FETCHREL'].fields_by_name['offset']._serialized_options = b'\030\001' + _globals['_FETCHREL'].fields_by_name['count']._loaded_options = None + _globals['_FETCHREL'].fields_by_name['count']._serialized_options = b'\030\001' + _globals['_AGGREGATEREL_GROUPING'].fields_by_name['grouping_expressions']._loaded_options = None + _globals['_AGGREGATEREL_GROUPING'].fields_by_name['grouping_expressions']._serialized_options = b'\030\001' + _globals['_HASHJOINREL'].fields_by_name['left_keys']._loaded_options = None + _globals['_HASHJOINREL'].fields_by_name['left_keys']._serialized_options = b'\030\001' + _globals['_HASHJOINREL'].fields_by_name['right_keys']._loaded_options = None + _globals['_HASHJOINREL'].fields_by_name['right_keys']._serialized_options = b'\030\001' + _globals['_MERGEJOINREL'].fields_by_name['left_keys']._loaded_options = None + _globals['_MERGEJOINREL'].fields_by_name['left_keys']._serialized_options = b'\030\001' + _globals['_MERGEJOINREL'].fields_by_name['right_keys']._loaded_options = None + _globals['_MERGEJOINREL'].fields_by_name['right_keys']._serialized_options = b'\030\001' + _globals['_EXPRESSION_ENUM_EMPTY']._loaded_options = None + _globals['_EXPRESSION_ENUM_EMPTY']._serialized_options = b'\030\001' + _globals['_EXPRESSION_ENUM']._loaded_options = None + _globals['_EXPRESSION_ENUM']._serialized_options = b'\030\001' + _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND'].fields_by_name['microseconds']._loaded_options = None + _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND'].fields_by_name['microseconds']._serialized_options = b'\030\001' + _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp']._loaded_options = None + _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp']._serialized_options = b'\030\001' + _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp_tz']._loaded_options = None + _globals['_EXPRESSION_LITERAL'].fields_by_name['timestamp_tz']._serialized_options = b'\030\001' + _globals['_EXPRESSION_SCALARFUNCTION'].fields_by_name['args']._loaded_options = None + _globals['_EXPRESSION_SCALARFUNCTION'].fields_by_name['args']._serialized_options = b'\030\001' + _globals['_EXPRESSION_WINDOWFUNCTION'].fields_by_name['args']._loaded_options = None + _globals['_EXPRESSION_WINDOWFUNCTION'].fields_by_name['args']._serialized_options = b'\030\001' + _globals['_EXPRESSION'].fields_by_name['enum']._loaded_options = None + _globals['_EXPRESSION'].fields_by_name['enum']._serialized_options = b'\030\001' + _globals['_AGGREGATEFUNCTION'].fields_by_name['args']._loaded_options = None + _globals['_AGGREGATEFUNCTION'].fields_by_name['args']._serialized_options = b'\030\001' + _globals['_AGGREGATIONPHASE']._serialized_start=34118 + _globals['_AGGREGATIONPHASE']._serialized_end=34357 + _globals['_RELCOMMON']._serialized_start=167 + _globals['_RELCOMMON']._serialized_end=1971 + _globals['_RELCOMMON_DIRECT']._serialized_start=459 + _globals['_RELCOMMON_DIRECT']._serialized_end=467 + _globals['_RELCOMMON_EMIT']._serialized_start=469 + _globals['_RELCOMMON_EMIT']._serialized_end=514 + _globals['_RELCOMMON_HINT']._serialized_start=517 + _globals['_RELCOMMON_HINT']._serialized_end=1958 + _globals['_RELCOMMON_HINT_STATS']._serialized_start=1038 + _globals['_RELCOMMON_HINT_STATS']._serialized_end=1205 + _globals['_RELCOMMON_HINT_RUNTIMECONSTRAINT']._serialized_start=1207 + _globals['_RELCOMMON_HINT_RUNTIMECONSTRAINT']._serialized_end=1324 + _globals['_RELCOMMON_HINT_SAVEDCOMPUTATION']._serialized_start=1327 + _globals['_RELCOMMON_HINT_SAVEDCOMPUTATION']._serialized_end=1555 + _globals['_RELCOMMON_HINT_LOADEDCOMPUTATION']._serialized_start=1558 + _globals['_RELCOMMON_HINT_LOADEDCOMPUTATION']._serialized_end=1806 + _globals['_RELCOMMON_HINT_COMPUTATIONTYPE']._serialized_start=1809 + _globals['_RELCOMMON_HINT_COMPUTATIONTYPE']._serialized_end=1958 + _globals['_READREL']._serialized_start=1974 + _globals['_READREL']._serialized_end=4848 + _globals['_READREL_NAMEDTABLE']._serialized_start=2827 + _globals['_READREL_NAMEDTABLE']._serialized_end=2959 + _globals['_READREL_ICEBERGTABLE']._serialized_start=2962 + _globals['_READREL_ICEBERGTABLE']._serialized_end=3228 + _globals['_READREL_ICEBERGTABLE_METADATAFILEREAD']._serialized_start=3065 + _globals['_READREL_ICEBERGTABLE_METADATAFILEREAD']._serialized_end=3214 + _globals['_READREL_VIRTUALTABLE']._serialized_start=3231 + _globals['_READREL_VIRTUALTABLE']._serialized_end=3402 + _globals['_READREL_EXTENSIONTABLE']._serialized_start=3404 + _globals['_READREL_EXTENSIONTABLE']._serialized_end=3466 + _globals['_READREL_LOCALFILES']._serialized_start=3469 + _globals['_READREL_LOCALFILES']._serialized_end=4835 + _globals['_READREL_LOCALFILES_FILEORFILES']._serialized_start=3657 + _globals['_READREL_LOCALFILES_FILEORFILES']._serialized_end=4835 + _globals['_READREL_LOCALFILES_FILEORFILES_PARQUETREADOPTIONS']._serialized_start=4424 + _globals['_READREL_LOCALFILES_FILEORFILES_PARQUETREADOPTIONS']._serialized_end=4444 + _globals['_READREL_LOCALFILES_FILEORFILES_ARROWREADOPTIONS']._serialized_start=4446 + _globals['_READREL_LOCALFILES_FILEORFILES_ARROWREADOPTIONS']._serialized_end=4464 + _globals['_READREL_LOCALFILES_FILEORFILES_ORCREADOPTIONS']._serialized_start=4466 + _globals['_READREL_LOCALFILES_FILEORFILES_ORCREADOPTIONS']._serialized_end=4482 + _globals['_READREL_LOCALFILES_FILEORFILES_DWRFREADOPTIONS']._serialized_start=4484 + _globals['_READREL_LOCALFILES_FILEORFILES_DWRFREADOPTIONS']._serialized_end=4501 + _globals['_READREL_LOCALFILES_FILEORFILES_DELIMITERSEPARATEDTEXTREADOPTIONS']._serialized_start=4504 + _globals['_READREL_LOCALFILES_FILEORFILES_DELIMITERSEPARATEDTEXTREADOPTIONS']._serialized_end=4793 + _globals['_PROJECTREL']._serialized_start=4851 + _globals['_PROJECTREL']._serialized_end=5132 + _globals['_JOINREL']._serialized_start=5135 + _globals['_JOINREL']._serialized_end=5922 + _globals['_JOINREL_JOINTYPE']._serialized_start=5594 + _globals['_JOINREL_JOINTYPE']._serialized_end=5922 + _globals['_CROSSREL']._serialized_start=5925 + _globals['_CROSSREL']._serialized_end=6183 + _globals['_FETCHREL']._serialized_start=6186 + _globals['_FETCHREL']._serialized_end=6619 + _globals['_AGGREGATEREL']._serialized_start=6622 + _globals['_AGGREGATEREL']._serialized_end=7356 + _globals['_AGGREGATEREL_GROUPING']._serialized_start=7070 + _globals['_AGGREGATEREL_GROUPING']._serialized_end=7221 + _globals['_AGGREGATEREL_MEASURE']._serialized_start=7224 + _globals['_AGGREGATEREL_MEASURE']._serialized_end=7356 + _globals['_CONSISTENTPARTITIONWINDOWREL']._serialized_start=7359 + _globals['_CONSISTENTPARTITIONWINDOWREL']._serialized_end=8525 + _globals['_CONSISTENTPARTITIONWINDOWREL_WINDOWRELFUNCTION']._serialized_start=7846 + _globals['_CONSISTENTPARTITIONWINDOWREL_WINDOWRELFUNCTION']._serialized_end=8525 + _globals['_SORTREL']._serialized_start=8528 + _globals['_SORTREL']._serialized_end=8793 + _globals['_FILTERREL']._serialized_start=8796 + _globals['_FILTERREL']._serialized_end=9072 + _globals['_SETREL']._serialized_start=9075 + _globals['_SETREL']._serialized_end=9609 + _globals['_SETREL_SETOP']._serialized_start=9341 + _globals['_SETREL_SETOP']._serialized_end=9609 + _globals['_EXTENSIONSINGLEREL']._serialized_start=9612 + _globals['_EXTENSIONSINGLEREL']._serialized_end=9782 + _globals['_EXTENSIONLEAFREL']._serialized_start=9784 + _globals['_EXTENSIONLEAFREL']._serialized_end=9904 + _globals['_EXTENSIONMULTIREL']._serialized_start=9907 + _globals['_EXTENSIONMULTIREL']._serialized_end=10078 + _globals['_EXCHANGEREL']._serialized_start=10081 + _globals['_EXCHANGEREL']._serialized_end=11379 + _globals['_EXCHANGEREL_SCATTERFIELDS']._serialized_start=10853 + _globals['_EXCHANGEREL_SCATTERFIELDS']._serialized_end=10940 + _globals['_EXCHANGEREL_SINGLEBUCKETEXPRESSION']._serialized_start=10942 + _globals['_EXCHANGEREL_SINGLEBUCKETEXPRESSION']._serialized_end=11031 + _globals['_EXCHANGEREL_MULTIBUCKETEXPRESSION']._serialized_start=11034 + _globals['_EXCHANGEREL_MULTIBUCKETEXPRESSION']._serialized_end=11172 + _globals['_EXCHANGEREL_BROADCAST']._serialized_start=11174 + _globals['_EXCHANGEREL_BROADCAST']._serialized_end=11185 + _globals['_EXCHANGEREL_ROUNDROBIN']._serialized_start=11187 + _globals['_EXCHANGEREL_ROUNDROBIN']._serialized_end=11221 + _globals['_EXCHANGEREL_EXCHANGETARGET']._serialized_start=11224 + _globals['_EXCHANGEREL_EXCHANGETARGET']._serialized_end=11362 + _globals['_EXPANDREL']._serialized_start=11382 + _globals['_EXPANDREL']._serialized_end=11846 + _globals['_EXPANDREL_EXPANDFIELD']._serialized_start=11568 + _globals['_EXPANDREL_EXPANDFIELD']._serialized_end=11763 + _globals['_EXPANDREL_SWITCHINGFIELD']._serialized_start=11765 + _globals['_EXPANDREL_SWITCHINGFIELD']._serialized_end=11846 + _globals['_RELROOT']._serialized_start=11848 + _globals['_RELROOT']._serialized_end=11927 + _globals['_REL']._serialized_start=11930 + _globals['_REL']._serialized_end=13342 + _globals['_NAMEDOBJECTWRITE']._serialized_start=13345 + _globals['_NAMEDOBJECTWRITE']._serialized_end=13483 + _globals['_EXTENSIONOBJECT']._serialized_start=13485 + _globals['_EXTENSIONOBJECT']._serialized_end=13548 + _globals['_DDLREL']._serialized_start=13551 + _globals['_DDLREL']._serialized_end=14451 + _globals['_DDLREL_DDLOBJECT']._serialized_start=14211 + _globals['_DDLREL_DDLOBJECT']._serialized_end=14293 + _globals['_DDLREL_DDLOP']._serialized_start=14296 + _globals['_DDLREL_DDLOP']._serialized_end=14437 + _globals['_WRITEREL']._serialized_start=14454 + _globals['_WRITEREL']._serialized_end=15503 + _globals['_WRITEREL_WRITEOP']._serialized_start=15088 + _globals['_WRITEREL_WRITEOP']._serialized_end=15205 + _globals['_WRITEREL_CREATEMODE']._serialized_start=15208 + _globals['_WRITEREL_CREATEMODE']._serialized_end=15385 + _globals['_WRITEREL_OUTPUTMODE']._serialized_start=15387 + _globals['_WRITEREL_OUTPUTMODE']._serialized_end=15489 + _globals['_UPDATEREL']._serialized_start=15506 + _globals['_UPDATEREL']._serialized_end=16058 + _globals['_UPDATEREL_TRANSFORMEXPRESSION']._serialized_start=15912 + _globals['_UPDATEREL_TRANSFORMEXPRESSION']._serialized_end=16043 + _globals['_NAMEDTABLE']._serialized_start=2827 + _globals['_NAMEDTABLE']._serialized_end=2959 + _globals['_COMPARISONJOINKEY']._serialized_start=16196 + _globals['_COMPARISONJOINKEY']._serialized_end=16807 + _globals['_COMPARISONJOINKEY_COMPARISONTYPE']._serialized_start=16443 + _globals['_COMPARISONJOINKEY_COMPARISONTYPE']._serialized_end=16622 + _globals['_COMPARISONJOINKEY_SIMPLECOMPARISONTYPE']._serialized_start=16625 + _globals['_COMPARISONJOINKEY_SIMPLECOMPARISONTYPE']._serialized_end=16807 + _globals['_HASHJOINREL']._serialized_start=16810 + _globals['_HASHJOINREL']._serialized_end=17930 + _globals['_HASHJOINREL_JOINTYPE']._serialized_start=17514 + _globals['_HASHJOINREL_JOINTYPE']._serialized_end=17842 + _globals['_HASHJOINREL_BUILDINPUT']._serialized_start=17844 + _globals['_HASHJOINREL_BUILDINPUT']._serialized_end=17930 + _globals['_MERGEJOINREL']._serialized_start=17933 + _globals['_MERGEJOINREL']._serialized_end=18889 + _globals['_MERGEJOINREL_JOINTYPE']._serialized_start=17514 + _globals['_MERGEJOINREL_JOINTYPE']._serialized_end=17842 + _globals['_NESTEDLOOPJOINREL']._serialized_start=18892 + _globals['_NESTEDLOOPJOINREL']._serialized_end=19624 + _globals['_NESTEDLOOPJOINREL_JOINTYPE']._serialized_start=17514 + _globals['_NESTEDLOOPJOINREL_JOINTYPE']._serialized_end=17842 + _globals['_FUNCTIONARGUMENT']._serialized_start=19627 + _globals['_FUNCTIONARGUMENT']._serialized_end=19785 + _globals['_FUNCTIONOPTION']._serialized_start=19787 + _globals['_FUNCTIONOPTION']._serialized_end=19855 + _globals['_EXPRESSION']._serialized_start=19858 + _globals['_EXPRESSION']._serialized_end=32828 + _globals['_EXPRESSION_ENUM']._serialized_start=20891 + _globals['_EXPRESSION_ENUM']._serialized_end=21039 + _globals['_EXPRESSION_ENUM_EMPTY']._serialized_start=21011 + _globals['_EXPRESSION_ENUM_EMPTY']._serialized_end=21022 + _globals['_EXPRESSION_LITERAL']._serialized_start=21042 + _globals['_EXPRESSION_LITERAL']._serialized_end=24289 + _globals['_EXPRESSION_LITERAL_VARCHAR']._serialized_start=22842 + _globals['_EXPRESSION_LITERAL_VARCHAR']._serialized_end=22897 + _globals['_EXPRESSION_LITERAL_DECIMAL']._serialized_start=22899 + _globals['_EXPRESSION_LITERAL_DECIMAL']._serialized_end=22982 + _globals['_EXPRESSION_LITERAL_PRECISIONTIME']._serialized_start=22984 + _globals['_EXPRESSION_LITERAL_PRECISIONTIME']._serialized_end=23051 + _globals['_EXPRESSION_LITERAL_PRECISIONTIMESTAMP']._serialized_start=23053 + _globals['_EXPRESSION_LITERAL_PRECISIONTIMESTAMP']._serialized_end=23125 + _globals['_EXPRESSION_LITERAL_MAP']._serialized_start=23128 + _globals['_EXPRESSION_LITERAL_MAP']._serialized_end=23353 + _globals['_EXPRESSION_LITERAL_MAP_KEYVALUE']._serialized_start=23221 + _globals['_EXPRESSION_LITERAL_MAP_KEYVALUE']._serialized_end=23353 + _globals['_EXPRESSION_LITERAL_INTERVALYEARTOMONTH']._serialized_start=23355 + _globals['_EXPRESSION_LITERAL_INTERVALYEARTOMONTH']._serialized_end=23422 + _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND']._serialized_start=23425 + _globals['_EXPRESSION_LITERAL_INTERVALDAYTOSECOND']._serialized_end=23616 + _globals['_EXPRESSION_LITERAL_INTERVALCOMPOUND']._serialized_start=23619 + _globals['_EXPRESSION_LITERAL_INTERVALCOMPOUND']._serialized_end=23865 + _globals['_EXPRESSION_LITERAL_STRUCT']._serialized_start=23867 + _globals['_EXPRESSION_LITERAL_STRUCT']._serialized_end=23940 + _globals['_EXPRESSION_LITERAL_LIST']._serialized_start=23942 + _globals['_EXPRESSION_LITERAL_LIST']._serialized_end=24013 + _globals['_EXPRESSION_LITERAL_USERDEFINED']._serialized_start=24016 + _globals['_EXPRESSION_LITERAL_USERDEFINED']._serialized_end=24273 + _globals['_EXPRESSION_NESTED']._serialized_start=24292 + _globals['_EXPRESSION_NESTED']._serialized_end=24947 + _globals['_EXPRESSION_NESTED_MAP']._serialized_start=24593 + _globals['_EXPRESSION_NESTED_MAP']._serialized_end=24800 + _globals['_EXPRESSION_NESTED_MAP_KEYVALUE']._serialized_start=24684 + _globals['_EXPRESSION_NESTED_MAP_KEYVALUE']._serialized_end=24800 + _globals['_EXPRESSION_NESTED_STRUCT']._serialized_start=24802 + _globals['_EXPRESSION_NESTED_STRUCT']._serialized_end=24867 + _globals['_EXPRESSION_NESTED_LIST']._serialized_start=24869 + _globals['_EXPRESSION_NESTED_LIST']._serialized_end=24932 + _globals['_EXPRESSION_SCALARFUNCTION']._serialized_start=24950 + _globals['_EXPRESSION_SCALARFUNCTION']._serialized_end=25262 + _globals['_EXPRESSION_WINDOWFUNCTION']._serialized_start=25265 + _globals['_EXPRESSION_WINDOWFUNCTION']._serialized_end=26712 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND']._serialized_start=26120 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND']._serialized_end=26624 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_PRECEDING']._serialized_start=26517 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_PRECEDING']._serialized_end=26552 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_FOLLOWING']._serialized_start=26554 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_FOLLOWING']._serialized_end=26589 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_CURRENTROW']._serialized_start=26591 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_CURRENTROW']._serialized_end=26603 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_UNBOUNDED']._serialized_start=26605 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUND_UNBOUNDED']._serialized_end=26616 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUNDSTYPE']._serialized_start=26626 + _globals['_EXPRESSION_WINDOWFUNCTION_BOUNDSTYPE']._serialized_end=26712 + _globals['_EXPRESSION_IFTHEN']._serialized_start=26715 + _globals['_EXPRESSION_IFTHEN']._serialized_end=26957 + _globals['_EXPRESSION_IFTHEN_IFCLAUSE']._serialized_start=26845 + _globals['_EXPRESSION_IFTHEN_IFCLAUSE']._serialized_end=26957 + _globals['_EXPRESSION_CAST']._serialized_start=26960 + _globals['_EXPRESSION_CAST']._serialized_end=27290 + _globals['_EXPRESSION_CAST_FAILUREBEHAVIOR']._serialized_start=27167 + _globals['_EXPRESSION_CAST_FAILUREBEHAVIOR']._serialized_end=27290 + _globals['_EXPRESSION_SWITCHEXPRESSION']._serialized_start=27293 + _globals['_EXPRESSION_SWITCHEXPRESSION']._serialized_end=27616 + _globals['_EXPRESSION_SWITCHEXPRESSION_IFVALUE']._serialized_start=27497 + _globals['_EXPRESSION_SWITCHEXPRESSION_IFVALUE']._serialized_end=27616 + _globals['_EXPRESSION_SINGULARORLIST']._serialized_start=27619 + _globals['_EXPRESSION_SINGULARORLIST']._serialized_end=27749 + _globals['_EXPRESSION_MULTIORLIST']._serialized_start=27752 + _globals['_EXPRESSION_MULTIORLIST']._serialized_end=27965 + _globals['_EXPRESSION_MULTIORLIST_RECORD']._serialized_start=27900 + _globals['_EXPRESSION_MULTIORLIST_RECORD']._serialized_end=27965 + _globals['_EXPRESSION_EMBEDDEDFUNCTION']._serialized_start=27968 + _globals['_EXPRESSION_EMBEDDEDFUNCTION']._serialized_end=28539 + _globals['_EXPRESSION_EMBEDDEDFUNCTION_PYTHONPICKLEFUNCTION']._serialized_start=28362 + _globals['_EXPRESSION_EMBEDDEDFUNCTION_PYTHONPICKLEFUNCTION']._serialized_end=28448 + _globals['_EXPRESSION_EMBEDDEDFUNCTION_WEBASSEMBLYFUNCTION']._serialized_start=28450 + _globals['_EXPRESSION_EMBEDDEDFUNCTION_WEBASSEMBLYFUNCTION']._serialized_end=28531 + _globals['_EXPRESSION_REFERENCESEGMENT']._serialized_start=28542 + _globals['_EXPRESSION_REFERENCESEGMENT']._serialized_end=29229 + _globals['_EXPRESSION_REFERENCESEGMENT_MAPKEY']._serialized_start=28845 + _globals['_EXPRESSION_REFERENCESEGMENT_MAPKEY']._serialized_end=28991 + _globals['_EXPRESSION_REFERENCESEGMENT_STRUCTFIELD']._serialized_start=28993 + _globals['_EXPRESSION_REFERENCESEGMENT_STRUCTFIELD']._serialized_end=29100 + _globals['_EXPRESSION_REFERENCESEGMENT_LISTELEMENT']._serialized_start=29102 + _globals['_EXPRESSION_REFERENCESEGMENT_LISTELEMENT']._serialized_end=29211 + _globals['_EXPRESSION_MASKEXPRESSION']._serialized_start=29232 + _globals['_EXPRESSION_MASKEXPRESSION']._serialized_end=30804 + _globals['_EXPRESSION_MASKEXPRESSION_SELECT']._serialized_start=29394 + _globals['_EXPRESSION_MASKEXPRESSION_SELECT']._serialized_end=29656 + _globals['_EXPRESSION_MASKEXPRESSION_STRUCTSELECT']._serialized_start=29658 + _globals['_EXPRESSION_MASKEXPRESSION_STRUCTSELECT']._serialized_end=29766 + _globals['_EXPRESSION_MASKEXPRESSION_STRUCTITEM']._serialized_start=29768 + _globals['_EXPRESSION_MASKEXPRESSION_STRUCTITEM']._serialized_end=29879 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT']._serialized_start=29882 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT']._serialized_end=30408 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM']._serialized_start=30078 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM']._serialized_end=30408 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTELEMENT']._serialized_start=30312 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTELEMENT']._serialized_end=30347 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTSLICE']._serialized_start=30349 + _globals['_EXPRESSION_MASKEXPRESSION_LISTSELECT_LISTSELECTITEM_LISTSLICE']._serialized_end=30400 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT']._serialized_start=30411 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT']._serialized_end=30804 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEY']._serialized_start=30695 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEY']._serialized_end=30728 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEYEXPRESSION']._serialized_start=30730 + _globals['_EXPRESSION_MASKEXPRESSION_MAPSELECT_MAPKEYEXPRESSION']._serialized_end=30794 + _globals['_EXPRESSION_FIELDREFERENCE']._serialized_start=30807 + _globals['_EXPRESSION_FIELDREFERENCE']._serialized_end=31382 + _globals['_EXPRESSION_FIELDREFERENCE_ROOTREFERENCE']._serialized_start=31289 + _globals['_EXPRESSION_FIELDREFERENCE_ROOTREFERENCE']._serialized_end=31304 + _globals['_EXPRESSION_FIELDREFERENCE_OUTERREFERENCE']._serialized_start=31306 + _globals['_EXPRESSION_FIELDREFERENCE_OUTERREFERENCE']._serialized_end=31351 + _globals['_EXPRESSION_SUBQUERY']._serialized_start=31385 + _globals['_EXPRESSION_SUBQUERY']._serialized_end=32816 + _globals['_EXPRESSION_SUBQUERY_SCALAR']._serialized_start=31754 + _globals['_EXPRESSION_SUBQUERY_SCALAR']._serialized_end=31810 + _globals['_EXPRESSION_SUBQUERY_INPREDICATE']._serialized_start=31812 + _globals['_EXPRESSION_SUBQUERY_INPREDICATE']._serialized_end=31938 + _globals['_EXPRESSION_SUBQUERY_SETPREDICATE']._serialized_start=31941 + _globals['_EXPRESSION_SUBQUERY_SETPREDICATE']._serialized_end=32202 + _globals['_EXPRESSION_SUBQUERY_SETPREDICATE_PREDICATEOP']._serialized_start=32109 + _globals['_EXPRESSION_SUBQUERY_SETPREDICATE_PREDICATEOP']._serialized_end=32202 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON']._serialized_start=32205 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON']._serialized_end=32799 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_COMPARISONOP']._serialized_start=32533 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_COMPARISONOP']._serialized_end=32710 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_REDUCTIONOP']._serialized_start=32712 + _globals['_EXPRESSION_SUBQUERY_SETCOMPARISON_REDUCTIONOP']._serialized_end=32799 + _globals['_DYNAMICPARAMETER']._serialized_start=32830 + _globals['_DYNAMICPARAMETER']._serialized_end=32944 + _globals['_SORTFIELD']._serialized_start=32947 + _globals['_SORTFIELD']._serialized_end=33396 + _globals['_SORTFIELD_SORTDIRECTION']._serialized_start=33162 + _globals['_SORTFIELD_SORTDIRECTION']._serialized_end=33383 + _globals['_AGGREGATEFUNCTION']._serialized_start=33399 + _globals['_AGGREGATEFUNCTION']._serialized_end=34058 + _globals['_AGGREGATEFUNCTION_AGGREGATIONINVOCATION']._serialized_start=33926 + _globals['_AGGREGATEFUNCTION_AGGREGATIONINVOCATION']._serialized_end=34058 + _globals['_REFERENCEREL']._serialized_start=34060 + _globals['_REFERENCEREL']._serialized_end=34115 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/algebra_pb2.pyi b/src/substrait/gen/proto/algebra_pb2.pyi index 04b9be3..dc636c4 100644 --- a/src/substrait/gen/proto/algebra_pb2.pyi +++ b/src/substrait/gen/proto/algebra_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.any_pb2 @@ -9,191 +10,253 @@ import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -from .. import proto +import substrait.gen.proto.extensions.extensions_pb2 +import substrait.gen.proto.type_pb2 import sys import typing + if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions + +if sys.version_info >= (3, 13): + from warnings import deprecated +else: + from typing_extensions import deprecated + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _AggregationPhase: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _AggregationPhaseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AggregationPhase.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - AGGREGATION_PHASE_UNSPECIFIED: _AggregationPhase.ValueType - 'Implies `INTERMEDIATE_TO_RESULT`.' - AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE: _AggregationPhase.ValueType - 'Specifies that the function should be run only up to the point of\n generating an intermediate value, to be further aggregated later using\n INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.\n ' - AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE: _AggregationPhase.ValueType - 'Specifies that the inputs of the aggregate or window function are the\n intermediate values of the function, and that the output should also be\n an intermediate value, to be further aggregated later using\n INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.\n ' - AGGREGATION_PHASE_INITIAL_TO_RESULT: _AggregationPhase.ValueType - 'A complete invocation: the function should aggregate the given set of\n inputs to yield a single return value. This style must be used for\n aggregate or window functions that are not decomposable.\n ' - AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT: _AggregationPhase.ValueType - 'Specifies that the inputs of the aggregate or window function are the\n intermediate values of the function, generated previously using\n INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls.\n This call should combine the intermediate values to yield the final\n return value.\n ' + AGGREGATION_PHASE_UNSPECIFIED: _AggregationPhase.ValueType # 0 + """Implies `INTERMEDIATE_TO_RESULT`.""" + AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE: _AggregationPhase.ValueType # 1 + """Specifies that the function should be run only up to the point of + generating an intermediate value, to be further aggregated later using + INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT. + """ + AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE: _AggregationPhase.ValueType # 2 + """Specifies that the inputs of the aggregate or window function are the + intermediate values of the function, and that the output should also be + an intermediate value, to be further aggregated later using + INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT. + """ + AGGREGATION_PHASE_INITIAL_TO_RESULT: _AggregationPhase.ValueType # 3 + """A complete invocation: the function should aggregate the given set of + inputs to yield a single return value. This style must be used for + aggregate or window functions that are not decomposable. + """ + AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT: _AggregationPhase.ValueType # 4 + """Specifies that the inputs of the aggregate or window function are the + intermediate values of the function, generated previously using + INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls. + This call should combine the intermediate values to yield the final + return value. + """ class AggregationPhase(_AggregationPhase, metaclass=_AggregationPhaseEnumTypeWrapper): """Describes which part of an aggregation or window function to perform within the context of distributed algorithms. """ -AGGREGATION_PHASE_UNSPECIFIED: AggregationPhase.ValueType -'Implies `INTERMEDIATE_TO_RESULT`.' -AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE: AggregationPhase.ValueType -'Specifies that the function should be run only up to the point of\ngenerating an intermediate value, to be further aggregated later using\nINTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.\n' -AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE: AggregationPhase.ValueType -'Specifies that the inputs of the aggregate or window function are the\nintermediate values of the function, and that the output should also be\nan intermediate value, to be further aggregated later using\nINTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.\n' -AGGREGATION_PHASE_INITIAL_TO_RESULT: AggregationPhase.ValueType -'A complete invocation: the function should aggregate the given set of\ninputs to yield a single return value. This style must be used for\naggregate or window functions that are not decomposable.\n' -AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT: AggregationPhase.ValueType -'Specifies that the inputs of the aggregate or window function are the\nintermediate values of the function, generated previously using\nINITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls.\nThis call should combine the intermediate values to yield the final\nreturn value.\n' -global___AggregationPhase = AggregationPhase + +AGGREGATION_PHASE_UNSPECIFIED: AggregationPhase.ValueType # 0 +"""Implies `INTERMEDIATE_TO_RESULT`.""" +AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE: AggregationPhase.ValueType # 1 +"""Specifies that the function should be run only up to the point of +generating an intermediate value, to be further aggregated later using +INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT. +""" +AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE: AggregationPhase.ValueType # 2 +"""Specifies that the inputs of the aggregate or window function are the +intermediate values of the function, and that the output should also be +an intermediate value, to be further aggregated later using +INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT. +""" +AGGREGATION_PHASE_INITIAL_TO_RESULT: AggregationPhase.ValueType # 3 +"""A complete invocation: the function should aggregate the given set of +inputs to yield a single return value. This style must be used for +aggregate or window functions that are not decomposable. +""" +AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT: AggregationPhase.ValueType # 4 +"""Specifies that the inputs of the aggregate or window function are the +intermediate values of the function, generated previously using +INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls. +This call should combine the intermediate values to yield the final +return value. +""" +Global___AggregationPhase: typing_extensions.TypeAlias = AggregationPhase @typing.final class RelCommon(google.protobuf.message.Message): """Common fields for all relational operators""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class Direct(google.protobuf.message.Message): """Direct indicates no change on presence and ordering of fields in the output""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class Emit(google.protobuf.message.Message): """Remap which fields are output and in which order""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - OUTPUT_MAPPING_FIELD_NUMBER: builtins.int + OUTPUT_MAPPING_FIELD_NUMBER: builtins.int @property - def output_mapping(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: - ... - - def __init__(self, *, output_mapping: collections.abc.Iterable[builtins.int] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['output_mapping', b'output_mapping']) -> None: - ... + def output_mapping(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__( + self, + *, + output_mapping: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["output_mapping", b"output_mapping"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Hint(google.protobuf.message.Message): """Changes to the operation that can influence efficiency/performance but should not impact correctness. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _ComputationType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _ComputationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[RelCommon.Hint._ComputationType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - COMPUTATION_TYPE_UNSPECIFIED: RelCommon.Hint._ComputationType.ValueType - COMPUTATION_TYPE_HASHTABLE: RelCommon.Hint._ComputationType.ValueType - COMPUTATION_TYPE_BLOOM_FILTER: RelCommon.Hint._ComputationType.ValueType - COMPUTATION_TYPE_UNKNOWN: RelCommon.Hint._ComputationType.ValueType - - class ComputationType(_ComputationType, metaclass=_ComputationTypeEnumTypeWrapper): - ... - COMPUTATION_TYPE_UNSPECIFIED: RelCommon.Hint.ComputationType.ValueType - COMPUTATION_TYPE_HASHTABLE: RelCommon.Hint.ComputationType.ValueType - COMPUTATION_TYPE_BLOOM_FILTER: RelCommon.Hint.ComputationType.ValueType - COMPUTATION_TYPE_UNKNOWN: RelCommon.Hint.ComputationType.ValueType + COMPUTATION_TYPE_UNSPECIFIED: RelCommon.Hint._ComputationType.ValueType # 0 + COMPUTATION_TYPE_HASHTABLE: RelCommon.Hint._ComputationType.ValueType # 1 + COMPUTATION_TYPE_BLOOM_FILTER: RelCommon.Hint._ComputationType.ValueType # 2 + COMPUTATION_TYPE_UNKNOWN: RelCommon.Hint._ComputationType.ValueType # 9999 + + class ComputationType(_ComputationType, metaclass=_ComputationTypeEnumTypeWrapper): ... + COMPUTATION_TYPE_UNSPECIFIED: RelCommon.Hint.ComputationType.ValueType # 0 + COMPUTATION_TYPE_HASHTABLE: RelCommon.Hint.ComputationType.ValueType # 1 + COMPUTATION_TYPE_BLOOM_FILTER: RelCommon.Hint.ComputationType.ValueType # 2 + COMPUTATION_TYPE_UNKNOWN: RelCommon.Hint.ComputationType.ValueType # 9999 @typing.final class Stats(google.protobuf.message.Message): """The statistics related to a hint (physical properties of records)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ROW_COUNT_FIELD_NUMBER: builtins.int RECORD_SIZE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int row_count: builtins.float record_size: builtins.float - @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, row_count: builtins.float=..., record_size: builtins.float=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'record_size', b'record_size', 'row_count', b'row_count']) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + row_count: builtins.float = ..., + record_size: builtins.float = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "record_size", b"record_size", "row_count", b"row_count"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class RuntimeConstraint(google.protobuf.message.Message): """TODO: nodes, cpu threads/%, memory, iops, etc.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int + ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SavedComputation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMPUTATION_ID_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int computation_id: builtins.int - 'The value corresponds to a plan unique number for that datastructure. Any particular\n computation may be saved only once but it may be loaded multiple times.\n ' - type: global___RelCommon.Hint.ComputationType.ValueType - 'The type of this computation. While a plan may use COMPUTATION_TYPE_UNKNOWN for all\n of its types it is recommended to use a more specific type so that the optimization\n is more portable. The consumer should be able to decide if an unknown type here\n matches the same unknown type at a different plan and ignore the optimization if they\n are mismatched.\n ' - + """The value corresponds to a plan unique number for that datastructure. Any particular + computation may be saved only once but it may be loaded multiple times. + """ + type: Global___RelCommon.Hint.ComputationType.ValueType + """The type of this computation. While a plan may use COMPUTATION_TYPE_UNKNOWN for all + of its types it is recommended to use a more specific type so that the optimization + is more portable. The consumer should be able to decide if an unknown type here + matches the same unknown type at a different plan and ignore the optimization if they + are mismatched. + """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, computation_id: builtins.int=..., type: global___RelCommon.Hint.ComputationType.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'computation_id', b'computation_id', 'type', b'type']) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + computation_id: builtins.int = ..., + type: Global___RelCommon.Hint.ComputationType.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "computation_id", b"computation_id", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class LoadedComputation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMPUTATION_ID_REFERENCE_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int computation_id_reference: builtins.int - 'The value corresponds to a plan unique number for that datastructure. Any particular\n computation may be saved only once but it may be loaded multiple times.\n ' - type: global___RelCommon.Hint.ComputationType.ValueType - 'The type of this computation. While a plan may use COMPUTATION_TYPE_UNKNOWN for all\n of its types it is recommended to use a more specific type so that the optimization\n is more portable. The consumer should be able to decide if an unknown type here\n matches the same unknown type at a different plan and ignore the optimization if they\n are mismatched.\n ' - + """The value corresponds to a plan unique number for that datastructure. Any particular + computation may be saved only once but it may be loaded multiple times. + """ + type: Global___RelCommon.Hint.ComputationType.ValueType + """The type of this computation. While a plan may use COMPUTATION_TYPE_UNKNOWN for all + of its types it is recommended to use a more specific type so that the optimization + is more portable. The consumer should be able to decide if an unknown type here + matches the same unknown type at a different plan and ignore the optimization if they + are mismatched. + """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, computation_id_reference: builtins.int=..., type: global___RelCommon.Hint.ComputationType.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + computation_id_reference: builtins.int = ..., + type: Global___RelCommon.Hint.ComputationType.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "computation_id_reference", b"computation_id_reference", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'computation_id_reference', b'computation_id_reference', 'type', b'type']) -> None: - ... STATS_FIELD_NUMBER: builtins.int CONSTRAINT_FIELD_NUMBER: builtins.int ALIAS_FIELD_NUMBER: builtins.int @@ -202,16 +265,13 @@ class RelCommon(google.protobuf.message.Message): SAVED_COMPUTATIONS_FIELD_NUMBER: builtins.int LOADED_COMPUTATIONS_FIELD_NUMBER: builtins.int alias: builtins.str - "Name (alias) for this relation. Can be used for e.g. qualifying the relation (see e.g.\n Spark's SubqueryAlias), or debugging.\n " - + """Name (alias) for this relation. Can be used for e.g. qualifying the relation (see e.g. + Spark's SubqueryAlias), or debugging. + """ @property - def stats(self) -> global___RelCommon.Hint.Stats: - ... - + def stats(self) -> Global___RelCommon.Hint.Stats: ... @property - def constraint(self) -> global___RelCommon.Hint.RuntimeConstraint: - ... - + def constraint(self) -> Global___RelCommon.Hint.RuntimeConstraint: ... @property def output_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Assigns alternative output field names for any relation. Equivalent to the names field @@ -219,65 +279,70 @@ class RelCommon(google.protobuf.message.Message): """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... @property - def saved_computations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RelCommon.Hint.SavedComputation]: + def saved_computations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___RelCommon.Hint.SavedComputation]: """Save or load a system-specific computation for use in optimizing a remote operation. The anchor refers to the source/destination of the computation. The computation type and number refer to the current relation. """ @property - def loaded_computations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RelCommon.Hint.LoadedComputation]: - ... - - def __init__(self, *, stats: global___RelCommon.Hint.Stats | None=..., constraint: global___RelCommon.Hint.RuntimeConstraint | None=..., alias: builtins.str=..., output_names: collections.abc.Iterable[builtins.str] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=..., saved_computations: collections.abc.Iterable[global___RelCommon.Hint.SavedComputation] | None=..., loaded_computations: collections.abc.Iterable[global___RelCommon.Hint.LoadedComputation] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'constraint', b'constraint', 'stats', b'stats']) -> builtins.bool: - ... + def loaded_computations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___RelCommon.Hint.LoadedComputation]: ... + def __init__( + self, + *, + stats: Global___RelCommon.Hint.Stats | None = ..., + constraint: Global___RelCommon.Hint.RuntimeConstraint | None = ..., + alias: builtins.str = ..., + output_names: collections.abc.Iterable[builtins.str] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + saved_computations: collections.abc.Iterable[Global___RelCommon.Hint.SavedComputation] | None = ..., + loaded_computations: collections.abc.Iterable[Global___RelCommon.Hint.LoadedComputation] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "constraint", b"constraint", "stats", b"stats"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "alias", b"alias", "constraint", b"constraint", "loaded_computations", b"loaded_computations", "output_names", b"output_names", "saved_computations", b"saved_computations", "stats", b"stats"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'alias', b'alias', 'constraint', b'constraint', 'loaded_computations', b'loaded_computations', 'output_names', b'output_names', 'saved_computations', b'saved_computations', 'stats', b'stats']) -> None: - ... DIRECT_FIELD_NUMBER: builtins.int EMIT_FIELD_NUMBER: builtins.int HINT_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def direct(self) -> global___RelCommon.Direct: + def direct(self) -> Global___RelCommon.Direct: """The underlying relation is output as is (no reordering or projection of columns)""" @property - def emit(self) -> global___RelCommon.Emit: + def emit(self) -> Global___RelCommon.Emit: """Allows to control for order and inclusion of fields""" @property - def hint(self) -> global___RelCommon.Hint: - ... - + def hint(self) -> Global___RelCommon.Hint: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, direct: global___RelCommon.Direct | None=..., emit: global___RelCommon.Emit | None=..., hint: global___RelCommon.Hint | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'direct', b'direct', 'emit', b'emit', 'emit_kind', b'emit_kind', 'hint', b'hint']) -> builtins.bool: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + direct: Global___RelCommon.Direct | None = ..., + emit: Global___RelCommon.Emit | None = ..., + hint: Global___RelCommon.Hint | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "direct", b"direct", "emit", b"emit", "emit_kind", b"emit_kind", "hint", b"hint"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "direct", b"direct", "emit", b"emit", "emit_kind", b"emit_kind", "hint", b"hint"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_emit_kind: typing_extensions.TypeAlias = typing.Literal["direct", "emit"] + _WhichOneofArgType_emit_kind: typing_extensions.TypeAlias = typing.Literal["emit_kind", b"emit_kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_emit_kind) -> _WhichOneofReturnType_emit_kind | None: ... - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'direct', b'direct', 'emit', b'emit', 'emit_kind', b'emit_kind', 'hint', b'hint']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['emit_kind', b'emit_kind']) -> typing.Literal['direct', 'emit'] | None: - ... -global___RelCommon = RelCommon +Global___RelCommon: typing_extensions.TypeAlias = RelCommon @typing.final class ReadRel(google.protobuf.message.Message): """The scan operator of base data (physical or virtual), including filtering and projection.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -285,120 +350,126 @@ class ReadRel(google.protobuf.message.Message): """A base table. The list of string is used to represent namespacing (e.g., mydb.mytable). This assumes shared catalog between systems exchanging a message. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'names', b'names']) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "names", b"names"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IcebergTable(google.protobuf.message.Message): """Read an Iceberg Table""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class MetadataFileRead(google.protobuf.message.Message): """Read an Iceberg table using a metadata file. Implicit assumption: required credentials are already known by plan consumer.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + METADATA_URI_FIELD_NUMBER: builtins.int SNAPSHOT_ID_FIELD_NUMBER: builtins.int SNAPSHOT_TIMESTAMP_FIELD_NUMBER: builtins.int metadata_uri: builtins.str - 'the specific uri of a metadata file (e.g. s3://mybucket/mytable/-.metadata.json)' + """the specific uri of a metadata file (e.g. s3://mybucket/mytable/-.metadata.json)""" snapshot_id: builtins.str - 'the snapshot id to read.' + """the snapshot id to read.""" snapshot_timestamp: builtins.int - 'the timestamp that should be used to select the snapshot (Time passed in microseconds since 1970-01-01 00:00:00.000000 in UTC)' - - def __init__(self, *, metadata_uri: builtins.str=..., snapshot_id: builtins.str=..., snapshot_timestamp: builtins.int=...) -> None: - ... + """the timestamp that should be used to select the snapshot (Time passed in microseconds since 1970-01-01 00:00:00.000000 in UTC)""" + def __init__( + self, + *, + metadata_uri: builtins.str = ..., + snapshot_id: builtins.str = ..., + snapshot_timestamp: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["snapshot", b"snapshot", "snapshot_id", b"snapshot_id", "snapshot_timestamp", b"snapshot_timestamp"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["metadata_uri", b"metadata_uri", "snapshot", b"snapshot", "snapshot_id", b"snapshot_id", "snapshot_timestamp", b"snapshot_timestamp"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_snapshot: typing_extensions.TypeAlias = typing.Literal["snapshot_id", "snapshot_timestamp"] + _WhichOneofArgType_snapshot: typing_extensions.TypeAlias = typing.Literal["snapshot", b"snapshot"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_snapshot) -> _WhichOneofReturnType_snapshot | None: ... - def HasField(self, field_name: typing.Literal['snapshot', b'snapshot', 'snapshot_id', b'snapshot_id', 'snapshot_timestamp', b'snapshot_timestamp']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['metadata_uri', b'metadata_uri', 'snapshot', b'snapshot', 'snapshot_id', b'snapshot_id', 'snapshot_timestamp', b'snapshot_timestamp']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['snapshot', b'snapshot']) -> typing.Literal['snapshot_id', 'snapshot_timestamp'] | None: - ... DIRECT_FIELD_NUMBER: builtins.int - @property - def direct(self) -> global___ReadRel.IcebergTable.MetadataFileRead: + def direct(self) -> Global___ReadRel.IcebergTable.MetadataFileRead: """future: add catalog table types (e.g. rest api, latest metadata in path, etc)""" - def __init__(self, *, direct: global___ReadRel.IcebergTable.MetadataFileRead | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['direct', b'direct', 'table_type', b'table_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['direct', b'direct', 'table_type', b'table_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['table_type', b'table_type']) -> typing.Literal['direct'] | None: - ... + def __init__( + self, + *, + direct: Global___ReadRel.IcebergTable.MetadataFileRead | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["direct", b"direct", "table_type", b"table_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["direct", b"direct", "table_type", b"table_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_table_type: typing_extensions.TypeAlias = typing.Literal["direct"] + _WhichOneofArgType_table_type: typing_extensions.TypeAlias = typing.Literal["table_type", b"table_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_table_type) -> _WhichOneofReturnType_table_type | None: ... @typing.final class VirtualTable(google.protobuf.message.Message): """A table composed of expressions.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int EXPRESSIONS_FIELD_NUMBER: builtins.int - @property - def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Literal.Struct]: - ... - + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Literal.Struct]: ... @property - def expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Nested.Struct]: - ... - - def __init__(self, *, values: collections.abc.Iterable[global___Expression.Literal.Struct] | None=..., expressions: collections.abc.Iterable[global___Expression.Nested.Struct] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['expressions', b'expressions', 'values', b'values']) -> None: - ... + def expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Nested.Struct]: ... + def __init__( + self, + *, + values: collections.abc.Iterable[Global___Expression.Literal.Struct] | None = ..., + expressions: collections.abc.Iterable[Global___Expression.Nested.Struct] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expressions", b"expressions", "values", b"values"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExtensionTable(google.protobuf.message.Message): """A stub type that can be used to extend/introduce new table types outside the specification. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - DETAIL_FIELD_NUMBER: builtins.int + DETAIL_FIELD_NUMBER: builtins.int @property - def detail(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, detail: google.protobuf.any_pb2.Any | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['detail', b'detail']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['detail', b'detail']) -> None: - ... + def detail(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + detail: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["detail", b"detail"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["detail", b"detail"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class LocalFiles(google.protobuf.message.Message): """Represents a list of files in input of a scan operation""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -409,42 +480,49 @@ class ReadRel(google.protobuf.message.Message): include the chunk in (e.g. include it in the slice that contains the midpoint of the chunk) """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class ParquetReadOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class ArrowReadOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class OrcReadOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class DwrfReadOptions(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class DelimiterSeparatedTextReadOptions(google.protobuf.message.Message): """Delimiter separated files may be compressed. The reader should autodetect this and decompress as needed. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELD_DELIMITER_FIELD_NUMBER: builtins.int MAX_LINE_SIZE_FIELD_NUMBER: builtins.int QUOTE_FIELD_NUMBER: builtins.int @@ -452,29 +530,49 @@ class ReadRel(google.protobuf.message.Message): ESCAPE_FIELD_NUMBER: builtins.int VALUE_TREATED_AS_NULL_FIELD_NUMBER: builtins.int field_delimiter: builtins.str - 'The character(s) used to separate fields. Common values are comma,\n tab, and pipe. Multiple characters are allowed.\n ' + """The character(s) used to separate fields. Common values are comma, + tab, and pipe. Multiple characters are allowed. + """ max_line_size: builtins.int - 'The maximum number of bytes to read from a single line. If a line\n exceeds this limit the resulting behavior is undefined.\n ' + """The maximum number of bytes to read from a single line. If a line + exceeds this limit the resulting behavior is undefined. + """ quote: builtins.str - 'The character(s) used to quote strings. Common values are single\n and double quotation marks.\n ' + """The character(s) used to quote strings. Common values are single + and double quotation marks. + """ header_lines_to_skip: builtins.int - 'The number of lines to skip at the beginning of the file.' + """The number of lines to skip at the beginning of the file.""" escape: builtins.str - 'The character used to escape characters in strings. Backslash is\n a common value. Note that a double quote mark can also be used as an\n escape character but the external quotes should be removed first.\n ' + """The character used to escape characters in strings. Backslash is + a common value. Note that a double quote mark can also be used as an + escape character but the external quotes should be removed first. + """ value_treated_as_null: builtins.str - 'If this value is encountered (including empty string), the resulting\n value is null instead. Leave unset to disable. If this value is\n provided, the effective schema of this file is comprised entirely of\n nullable strings. If not provided, the effective schema is instead\n made up of non-nullable strings.\n ' - - def __init__(self, *, field_delimiter: builtins.str=..., max_line_size: builtins.int=..., quote: builtins.str=..., header_lines_to_skip: builtins.int=..., escape: builtins.str=..., value_treated_as_null: builtins.str | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['_value_treated_as_null', b'_value_treated_as_null', 'value_treated_as_null', b'value_treated_as_null']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['_value_treated_as_null', b'_value_treated_as_null', 'escape', b'escape', 'field_delimiter', b'field_delimiter', 'header_lines_to_skip', b'header_lines_to_skip', 'max_line_size', b'max_line_size', 'quote', b'quote', 'value_treated_as_null', b'value_treated_as_null']) -> None: - ... + """If this value is encountered (including empty string), the resulting + value is null instead. Leave unset to disable. If this value is + provided, the effective schema of this file is comprised entirely of + nullable strings. If not provided, the effective schema is instead + made up of non-nullable strings. + """ + def __init__( + self, + *, + field_delimiter: builtins.str = ..., + max_line_size: builtins.int = ..., + quote: builtins.str = ..., + header_lines_to_skip: builtins.int = ..., + escape: builtins.str = ..., + value_treated_as_null: builtins.str | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_value_treated_as_null", b"_value_treated_as_null", "value_treated_as_null", b"value_treated_as_null"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_value_treated_as_null", b"_value_treated_as_null", "escape", b"escape", "field_delimiter", b"field_delimiter", "header_lines_to_skip", b"header_lines_to_skip", "max_line_size", b"max_line_size", "quote", b"quote", "value_treated_as_null", b"value_treated_as_null"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__value_treated_as_null: typing_extensions.TypeAlias = typing.Literal["value_treated_as_null"] + _WhichOneofArgType__value_treated_as_null: typing_extensions.TypeAlias = typing.Literal["_value_treated_as_null", b"_value_treated_as_null"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__value_treated_as_null) -> _WhichOneofReturnType__value_treated_as_null | None: ... - def WhichOneof(self, oneof_group: typing.Literal['_value_treated_as_null', b'_value_treated_as_null']) -> typing.Literal['value_treated_as_null'] | None: - ... URI_PATH_FIELD_NUMBER: builtins.int URI_PATH_GLOB_FIELD_NUMBER: builtins.int URI_FILE_FIELD_NUMBER: builtins.int @@ -489,79 +587,82 @@ class ReadRel(google.protobuf.message.Message): DWRF_FIELD_NUMBER: builtins.int TEXT_FIELD_NUMBER: builtins.int uri_path: builtins.str - 'A URI that can refer to either a single folder or a single file' + """A URI that can refer to either a single folder or a single file""" uri_path_glob: builtins.str - 'A URI where the path portion is a glob expression that can\n identify zero or more paths.\n Consumers should support the POSIX syntax. The recursive\n globstar (**) may not be supported.\n ' + """A URI where the path portion is a glob expression that can + identify zero or more paths. + Consumers should support the POSIX syntax. The recursive + globstar (**) may not be supported. + """ uri_file: builtins.str - 'A URI that refers to a single file' + """A URI that refers to a single file""" uri_folder: builtins.str - 'A URI that refers to a single folder' + """A URI that refers to a single folder""" partition_index: builtins.int - 'The index of the partition this item belongs to' + """The index of the partition this item belongs to""" start: builtins.int - 'The start position in byte to read from this item' + """The start position in byte to read from this item""" length: builtins.int - 'The length in byte to read from this item' - + """The length in byte to read from this item""" @property - def parquet(self) -> global___ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions: - ... - + def parquet(self) -> Global___ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions: ... @property - def arrow(self) -> global___ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions: - ... - + def arrow(self) -> Global___ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions: ... @property - def orc(self) -> global___ReadRel.LocalFiles.FileOrFiles.OrcReadOptions: - ... - + def orc(self) -> Global___ReadRel.LocalFiles.FileOrFiles.OrcReadOptions: ... @property - def extension(self) -> google.protobuf.any_pb2.Any: - ... - + def extension(self) -> google.protobuf.any_pb2.Any: ... @property - def dwrf(self) -> global___ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions: - ... - + def dwrf(self) -> Global___ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions: ... @property - def text(self) -> global___ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions: - ... - - def __init__(self, *, uri_path: builtins.str=..., uri_path_glob: builtins.str=..., uri_file: builtins.str=..., uri_folder: builtins.str=..., partition_index: builtins.int=..., start: builtins.int=..., length: builtins.int=..., parquet: global___ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions | None=..., arrow: global___ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions | None=..., orc: global___ReadRel.LocalFiles.FileOrFiles.OrcReadOptions | None=..., extension: google.protobuf.any_pb2.Any | None=..., dwrf: global___ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions | None=..., text: global___ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['arrow', b'arrow', 'dwrf', b'dwrf', 'extension', b'extension', 'file_format', b'file_format', 'orc', b'orc', 'parquet', b'parquet', 'path_type', b'path_type', 'text', b'text', 'uri_file', b'uri_file', 'uri_folder', b'uri_folder', 'uri_path', b'uri_path', 'uri_path_glob', b'uri_path_glob']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arrow', b'arrow', 'dwrf', b'dwrf', 'extension', b'extension', 'file_format', b'file_format', 'length', b'length', 'orc', b'orc', 'parquet', b'parquet', 'partition_index', b'partition_index', 'path_type', b'path_type', 'start', b'start', 'text', b'text', 'uri_file', b'uri_file', 'uri_folder', b'uri_folder', 'uri_path', b'uri_path', 'uri_path_glob', b'uri_path_glob']) -> None: - ... - + def text(self) -> Global___ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions: ... + def __init__( + self, + *, + uri_path: builtins.str = ..., + uri_path_glob: builtins.str = ..., + uri_file: builtins.str = ..., + uri_folder: builtins.str = ..., + partition_index: builtins.int = ..., + start: builtins.int = ..., + length: builtins.int = ..., + parquet: Global___ReadRel.LocalFiles.FileOrFiles.ParquetReadOptions | None = ..., + arrow: Global___ReadRel.LocalFiles.FileOrFiles.ArrowReadOptions | None = ..., + orc: Global___ReadRel.LocalFiles.FileOrFiles.OrcReadOptions | None = ..., + extension: google.protobuf.any_pb2.Any | None = ..., + dwrf: Global___ReadRel.LocalFiles.FileOrFiles.DwrfReadOptions | None = ..., + text: Global___ReadRel.LocalFiles.FileOrFiles.DelimiterSeparatedTextReadOptions | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["arrow", b"arrow", "dwrf", b"dwrf", "extension", b"extension", "file_format", b"file_format", "orc", b"orc", "parquet", b"parquet", "path_type", b"path_type", "text", b"text", "uri_file", b"uri_file", "uri_folder", b"uri_folder", "uri_path", b"uri_path", "uri_path_glob", b"uri_path_glob"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arrow", b"arrow", "dwrf", b"dwrf", "extension", b"extension", "file_format", b"file_format", "length", b"length", "orc", b"orc", "parquet", b"parquet", "partition_index", b"partition_index", "path_type", b"path_type", "start", b"start", "text", b"text", "uri_file", b"uri_file", "uri_folder", b"uri_folder", "uri_path", b"uri_path", "uri_path_glob", b"uri_path_glob"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_file_format: typing_extensions.TypeAlias = typing.Literal["parquet", "arrow", "orc", "extension", "dwrf", "text"] + _WhichOneofArgType_file_format: typing_extensions.TypeAlias = typing.Literal["file_format", b"file_format"] + _WhichOneofReturnType_path_type: typing_extensions.TypeAlias = typing.Literal["uri_path", "uri_path_glob", "uri_file", "uri_folder"] + _WhichOneofArgType_path_type: typing_extensions.TypeAlias = typing.Literal["path_type", b"path_type"] @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['file_format', b'file_format']) -> typing.Literal['parquet', 'arrow', 'orc', 'extension', 'dwrf', 'text'] | None: - ... - + def WhichOneof(self, oneof_group: _WhichOneofArgType_file_format) -> _WhichOneofReturnType_file_format | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['path_type', b'path_type']) -> typing.Literal['uri_path', 'uri_path_glob', 'uri_file', 'uri_folder'] | None: - ... + def WhichOneof(self, oneof_group: _WhichOneofArgType_path_type) -> _WhichOneofReturnType_path_type | None: ... + ITEMS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ReadRel.LocalFiles.FileOrFiles]: - ... - + def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ReadRel.LocalFiles.FileOrFiles]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, items: collections.abc.Iterable[global___ReadRel.LocalFiles.FileOrFiles] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + items: collections.abc.Iterable[Global___ReadRel.LocalFiles.FileOrFiles] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "items", b"items"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'items', b'items']) -> None: - ... COMMON_FIELD_NUMBER: builtins.int BASE_SCHEMA_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int @@ -573,139 +674,127 @@ class ReadRel(google.protobuf.message.Message): NAMED_TABLE_FIELD_NUMBER: builtins.int EXTENSION_TABLE_FIELD_NUMBER: builtins.int ICEBERG_TABLE_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def base_schema(self) -> proto.type_pb2.NamedStruct: - ... - + def base_schema(self) -> substrait.gen.proto.type_pb2.NamedStruct: ... @property - def filter(self) -> global___Expression: - ... - + def filter(self) -> Global___Expression: ... @property - def best_effort_filter(self) -> global___Expression: - ... - + def best_effort_filter(self) -> Global___Expression: ... @property - def projection(self) -> global___Expression.MaskExpression: - ... - + def projection(self) -> Global___Expression.MaskExpression: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... @property - def virtual_table(self) -> global___ReadRel.VirtualTable: - ... - + def virtual_table(self) -> Global___ReadRel.VirtualTable: ... @property - def local_files(self) -> global___ReadRel.LocalFiles: - ... - + def local_files(self) -> Global___ReadRel.LocalFiles: ... @property - def named_table(self) -> global___ReadRel.NamedTable: - ... - + def named_table(self) -> Global___ReadRel.NamedTable: ... @property - def extension_table(self) -> global___ReadRel.ExtensionTable: - ... - + def extension_table(self) -> Global___ReadRel.ExtensionTable: ... @property - def iceberg_table(self) -> global___ReadRel.IcebergTable: - ... + def iceberg_table(self) -> Global___ReadRel.IcebergTable: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + base_schema: substrait.gen.proto.type_pb2.NamedStruct | None = ..., + filter: Global___Expression | None = ..., + best_effort_filter: Global___Expression | None = ..., + projection: Global___Expression.MaskExpression | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + virtual_table: Global___ReadRel.VirtualTable | None = ..., + local_files: Global___ReadRel.LocalFiles | None = ..., + named_table: Global___ReadRel.NamedTable | None = ..., + extension_table: Global___ReadRel.ExtensionTable | None = ..., + iceberg_table: Global___ReadRel.IcebergTable | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "base_schema", b"base_schema", "best_effort_filter", b"best_effort_filter", "common", b"common", "extension_table", b"extension_table", "filter", b"filter", "iceberg_table", b"iceberg_table", "local_files", b"local_files", "named_table", b"named_table", "projection", b"projection", "read_type", b"read_type", "virtual_table", b"virtual_table"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "base_schema", b"base_schema", "best_effort_filter", b"best_effort_filter", "common", b"common", "extension_table", b"extension_table", "filter", b"filter", "iceberg_table", b"iceberg_table", "local_files", b"local_files", "named_table", b"named_table", "projection", b"projection", "read_type", b"read_type", "virtual_table", b"virtual_table"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_read_type: typing_extensions.TypeAlias = typing.Literal["virtual_table", "local_files", "named_table", "extension_table", "iceberg_table"] + _WhichOneofArgType_read_type: typing_extensions.TypeAlias = typing.Literal["read_type", b"read_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_read_type) -> _WhichOneofReturnType_read_type | None: ... - def __init__(self, *, common: global___RelCommon | None=..., base_schema: proto.type_pb2.NamedStruct | None=..., filter: global___Expression | None=..., best_effort_filter: global___Expression | None=..., projection: global___Expression.MaskExpression | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=..., virtual_table: global___ReadRel.VirtualTable | None=..., local_files: global___ReadRel.LocalFiles | None=..., named_table: global___ReadRel.NamedTable | None=..., extension_table: global___ReadRel.ExtensionTable | None=..., iceberg_table: global___ReadRel.IcebergTable | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'base_schema', b'base_schema', 'best_effort_filter', b'best_effort_filter', 'common', b'common', 'extension_table', b'extension_table', 'filter', b'filter', 'iceberg_table', b'iceberg_table', 'local_files', b'local_files', 'named_table', b'named_table', 'projection', b'projection', 'read_type', b'read_type', 'virtual_table', b'virtual_table']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'base_schema', b'base_schema', 'best_effort_filter', b'best_effort_filter', 'common', b'common', 'extension_table', b'extension_table', 'filter', b'filter', 'iceberg_table', b'iceberg_table', 'local_files', b'local_files', 'named_table', b'named_table', 'projection', b'projection', 'read_type', b'read_type', 'virtual_table', b'virtual_table']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['read_type', b'read_type']) -> typing.Literal['virtual_table', 'local_files', 'named_table', 'extension_table', 'iceberg_table'] | None: - ... -global___ReadRel = ReadRel +Global___ReadRel: typing_extensions.TypeAlias = ReadRel @typing.final class ProjectRel(google.protobuf.message.Message): """This operator allows to represent calculated expressions of fields (e.g., a+b). Direct/Emit are used to represent classical relational projections""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int EXPRESSIONS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - + def expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + expressions: collections.abc.Iterable[Global___Expression] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "expressions", b"expressions", "input", b"input"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., expressions: collections.abc.Iterable[global___Expression] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'expressions', b'expressions', 'input', b'input']) -> None: - ... -global___ProjectRel = ProjectRel +Global___ProjectRel: typing_extensions.TypeAlias = ProjectRel @typing.final class JoinRel(google.protobuf.message.Message): """The binary JOIN relational operator left-join-right, including various join types, a join condition and post_join_filter expression""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _JoinType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _JoinTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[JoinRel._JoinType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - JOIN_TYPE_UNSPECIFIED: JoinRel._JoinType.ValueType - JOIN_TYPE_INNER: JoinRel._JoinType.ValueType - JOIN_TYPE_OUTER: JoinRel._JoinType.ValueType - JOIN_TYPE_LEFT: JoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT: JoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: JoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: JoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: JoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: JoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: JoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: JoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_MARK: JoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: JoinRel._JoinType.ValueType - - class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): - ... - JOIN_TYPE_UNSPECIFIED: JoinRel.JoinType.ValueType - JOIN_TYPE_INNER: JoinRel.JoinType.ValueType - JOIN_TYPE_OUTER: JoinRel.JoinType.ValueType - JOIN_TYPE_LEFT: JoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT: JoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: JoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: JoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: JoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: JoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: JoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: JoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_MARK: JoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: JoinRel.JoinType.ValueType + JOIN_TYPE_UNSPECIFIED: JoinRel._JoinType.ValueType # 0 + JOIN_TYPE_INNER: JoinRel._JoinType.ValueType # 1 + JOIN_TYPE_OUTER: JoinRel._JoinType.ValueType # 2 + JOIN_TYPE_LEFT: JoinRel._JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: JoinRel._JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: JoinRel._JoinType.ValueType # 5 + JOIN_TYPE_LEFT_ANTI: JoinRel._JoinType.ValueType # 6 + JOIN_TYPE_LEFT_SINGLE: JoinRel._JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_SEMI: JoinRel._JoinType.ValueType # 8 + JOIN_TYPE_RIGHT_ANTI: JoinRel._JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: JoinRel._JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: JoinRel._JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: JoinRel._JoinType.ValueType # 12 + + class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): ... + JOIN_TYPE_UNSPECIFIED: JoinRel.JoinType.ValueType # 0 + JOIN_TYPE_INNER: JoinRel.JoinType.ValueType # 1 + JOIN_TYPE_OUTER: JoinRel.JoinType.ValueType # 2 + JOIN_TYPE_LEFT: JoinRel.JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: JoinRel.JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: JoinRel.JoinType.ValueType # 5 + JOIN_TYPE_LEFT_ANTI: JoinRel.JoinType.ValueType # 6 + JOIN_TYPE_LEFT_SINGLE: JoinRel.JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_SEMI: JoinRel.JoinType.ValueType # 8 + JOIN_TYPE_RIGHT_ANTI: JoinRel.JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: JoinRel.JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: JoinRel.JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: JoinRel.JoinType.ValueType # 12 + COMMON_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int @@ -713,81 +802,76 @@ class JoinRel(google.protobuf.message.Message): POST_JOIN_FILTER_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - type: global___JoinRel.JoinType.ValueType - + type: Global___JoinRel.JoinType.ValueType @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def left(self) -> global___Rel: - ... - + def left(self) -> Global___Rel: ... @property - def right(self) -> global___Rel: - ... - + def right(self) -> Global___Rel: ... @property - def expression(self) -> global___Expression: - ... - + def expression(self) -> Global___Expression: ... @property - def post_join_filter(self) -> global___Expression: - ... - + def post_join_filter(self) -> Global___Expression: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., left: global___Rel | None=..., right: global___Rel | None=..., expression: global___Expression | None=..., post_join_filter: global___Expression | None=..., type: global___JoinRel.JoinType.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'expression', b'expression', 'left', b'left', 'post_join_filter', b'post_join_filter', 'right', b'right']) -> builtins.bool: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + left: Global___Rel | None = ..., + right: Global___Rel | None = ..., + expression: Global___Expression | None = ..., + post_join_filter: Global___Expression | None = ..., + type: Global___JoinRel.JoinType.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "expression", b"expression", "left", b"left", "post_join_filter", b"post_join_filter", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "expression", b"expression", "left", b"left", "post_join_filter", b"post_join_filter", "right", b"right", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'expression', b'expression', 'left', b'left', 'post_join_filter', b'post_join_filter', 'right', b'right', 'type', b'type']) -> None: - ... -global___JoinRel = JoinRel +Global___JoinRel: typing_extensions.TypeAlias = JoinRel @typing.final class CrossRel(google.protobuf.message.Message): """Cartesian product relational operator of two tables (left and right)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def left(self) -> global___Rel: - ... - + def left(self) -> Global___Rel: ... @property - def right(self) -> global___Rel: - ... - + def right(self) -> Global___Rel: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., left: global___Rel | None=..., right: global___Rel | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + left: Global___Rel | None = ..., + right: Global___Rel | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "left", b"left", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "left", b"left", "right", b"right"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'left', b'left', 'right', b'right']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'left', b'left', 'right', b'right']) -> None: - ... -global___CrossRel = CrossRel +Global___CrossRel: typing_extensions.TypeAlias = CrossRel @typing.final class FetchRel(google.protobuf.message.Message): """The relational operator representing LIMIT/OFFSET or TOP type semantics.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int OFFSET_FIELD_NUMBER: builtins.int @@ -796,20 +880,20 @@ class FetchRel(google.protobuf.message.Message): COUNT_EXPR_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int offset: builtins.int - 'the offset expressed in number of records\n Deprecated: use `offset_expr` instead\n ' + """the offset expressed in number of records + Deprecated: use `offset_expr` instead + """ count: builtins.int - 'the amount of records to return\n use -1 to signal that ALL records should be returned\n Deprecated: use `count_expr` instead\n ' - + """the amount of records to return + use -1 to signal that ALL records should be returned + Deprecated: use `count_expr` instead + """ @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def offset_expr(self) -> global___Expression: + def offset_expr(self) -> Global___Expression: """Expression evaluated into a non-negative integer specifying the number of records to skip. An expression evaluating to null is treated as 0. Evaluating to a negative integer should result in an error. @@ -817,7 +901,7 @@ class FetchRel(google.protobuf.message.Message): """ @property - def count_expr(self) -> global___Expression: + def count_expr(self) -> Global___Expression: """Expression evaluated into a non-negative integer specifying the number of records to return. An expression evaluating to null signals that ALL records should be returned. @@ -826,40 +910,47 @@ class FetchRel(google.protobuf.message.Message): """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., offset: builtins.int=..., offset_expr: global___Expression | None=..., count: builtins.int=..., count_expr: global___Expression | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'count', b'count', 'count_expr', b'count_expr', 'count_mode', b'count_mode', 'input', b'input', 'offset', b'offset', 'offset_expr', b'offset_expr', 'offset_mode', b'offset_mode']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'count', b'count', 'count_expr', b'count_expr', 'count_mode', b'count_mode', 'input', b'input', 'offset', b'offset', 'offset_expr', b'offset_expr', 'offset_mode', b'offset_mode']) -> None: - ... - + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + offset: builtins.int = ..., + offset_expr: Global___Expression | None = ..., + count: builtins.int = ..., + count_expr: Global___Expression | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "count", b"count", "count_expr", b"count_expr", "count_mode", b"count_mode", "input", b"input", "offset", b"offset", "offset_expr", b"offset_expr", "offset_mode", b"offset_mode"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "count", b"count", "count_expr", b"count_expr", "count_mode", b"count_mode", "input", b"input", "offset", b"offset", "offset_expr", b"offset_expr", "offset_mode", b"offset_mode"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_count_mode: typing_extensions.TypeAlias = typing.Literal["count", "count_expr"] + _WhichOneofArgType_count_mode: typing_extensions.TypeAlias = typing.Literal["count_mode", b"count_mode"] + _WhichOneofReturnType_offset_mode: typing_extensions.TypeAlias = typing.Literal["offset", "offset_expr"] + _WhichOneofArgType_offset_mode: typing_extensions.TypeAlias = typing.Literal["offset_mode", b"offset_mode"] @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['count_mode', b'count_mode']) -> typing.Literal['count', 'count_expr'] | None: - ... - + def WhichOneof(self, oneof_group: _WhichOneofArgType_count_mode) -> _WhichOneofReturnType_count_mode | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['offset_mode', b'offset_mode']) -> typing.Literal['offset', 'offset_expr'] | None: - ... -global___FetchRel = FetchRel + def WhichOneof(self, oneof_group: _WhichOneofArgType_offset_mode) -> _WhichOneofReturnType_offset_mode | None: ... + +Global___FetchRel: typing_extensions.TypeAlias = FetchRel @typing.final class AggregateRel(google.protobuf.message.Message): """The relational operator representing a GROUP BY Aggregate""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class Grouping(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + GROUPING_EXPRESSIONS_FIELD_NUMBER: builtins.int EXPRESSION_REFERENCES_FIELD_NUMBER: builtins.int - @property - def grouping_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def grouping_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """Deprecated in favor of `expression_references` below.""" @property @@ -868,68 +959,69 @@ class AggregateRel(google.protobuf.message.Message): into the `grouping_expression` list. """ - def __init__(self, *, grouping_expressions: collections.abc.Iterable[global___Expression] | None=..., expression_references: collections.abc.Iterable[builtins.int] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['expression_references', b'expression_references', 'grouping_expressions', b'grouping_expressions']) -> None: - ... + def __init__( + self, + *, + grouping_expressions: collections.abc.Iterable[Global___Expression] | None = ..., + expression_references: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression_references", b"expression_references", "grouping_expressions", b"grouping_expressions"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Measure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MEASURE_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int - @property - def measure(self) -> global___AggregateFunction: - ... - + def measure(self) -> Global___AggregateFunction: ... @property - def filter(self) -> global___Expression: + def filter(self) -> Global___Expression: """An optional boolean expression that acts to filter which records are included in the measure. True means include this record for calculation within the measure. Helps to support SUM() FILTER(WHERE...) syntax without masking opportunities for optimization """ - def __init__(self, *, measure: global___AggregateFunction | None=..., filter: global___Expression | None=...) -> None: - ... + def __init__( + self, + *, + measure: Global___AggregateFunction | None = ..., + filter: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["filter", b"filter", "measure", b"measure"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["filter", b"filter", "measure", b"measure"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['filter', b'filter', 'measure', b'measure']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['filter', b'filter', 'measure', b'measure']) -> None: - ... COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int GROUPINGS_FIELD_NUMBER: builtins.int MEASURES_FIELD_NUMBER: builtins.int GROUPING_EXPRESSIONS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: + def input(self) -> Global___Rel: """Input of the aggregation""" @property - def groupings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AggregateRel.Grouping]: + def groupings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___AggregateRel.Grouping]: """A list of zero or more grouping sets that the aggregation measures should be calculated for. There must be at least one grouping set if there are no measures (but it can be the empty grouping set). """ @property - def measures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AggregateRel.Measure]: + def measures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___AggregateRel.Measure]: """A list of one or more aggregate expressions along with an optional filter. Required if there are no groupings. """ @property - def grouping_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def grouping_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """A list of zero or more grouping expressions that grouping sets (i.e., `Grouping` messages in the `groupings` field) can reference. Each expression in this list must be referred to by at least one @@ -937,18 +1029,23 @@ class AggregateRel(google.protobuf.message.Message): """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., groupings: collections.abc.Iterable[global___AggregateRel.Grouping] | None=..., measures: collections.abc.Iterable[global___AggregateRel.Measure] | None=..., grouping_expressions: collections.abc.Iterable[global___Expression] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'grouping_expressions', b'grouping_expressions', 'groupings', b'groupings', 'input', b'input', 'measures', b'measures']) -> None: - ... -global___AggregateRel = AggregateRel + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + groupings: collections.abc.Iterable[Global___AggregateRel.Grouping] | None = ..., + measures: collections.abc.Iterable[Global___AggregateRel.Measure] | None = ..., + grouping_expressions: collections.abc.Iterable[Global___Expression] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "grouping_expressions", b"grouping_expressions", "groupings", b"groupings", "input", b"input", "measures", b"measures"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___AggregateRel: typing_extensions.TypeAlias = AggregateRel @typing.final class ConsistentPartitionWindowRel(google.protobuf.message.Message): @@ -956,6 +1053,7 @@ class ConsistentPartitionWindowRel(google.protobuf.message.Message): that are related to the current query row. It can be used to execute window functions where all the windows share the same partitioning and ordering. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -964,7 +1062,9 @@ class ConsistentPartitionWindowRel(google.protobuf.message.Message): sorts, and bounds, since those must be consistent across the various functions in this rel. Refer to the `WindowFunction` message for a description of these fields. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int ARGUMENTS_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int @@ -975,387 +1075,385 @@ class ConsistentPartitionWindowRel(google.protobuf.message.Message): UPPER_BOUND_FIELD_NUMBER: builtins.int BOUNDS_TYPE_FIELD_NUMBER: builtins.int function_reference: builtins.int - phase: global___AggregationPhase.ValueType - invocation: global___AggregateFunction.AggregationInvocation.ValueType - bounds_type: global___Expression.WindowFunction.BoundsType.ValueType - + phase: Global___AggregationPhase.ValueType + invocation: Global___AggregateFunction.AggregationInvocation.ValueType + bounds_type: Global___Expression.WindowFunction.BoundsType.ValueType @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionArgument]: - ... - + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionArgument]: ... @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionOption]: - ... - + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionOption]: ... @property - def output_type(self) -> proto.type_pb2.Type: - ... - + def output_type(self) -> substrait.gen.proto.type_pb2.Type: ... @property - def lower_bound(self) -> global___Expression.WindowFunction.Bound: - ... - + def lower_bound(self) -> Global___Expression.WindowFunction.Bound: ... @property - def upper_bound(self) -> global___Expression.WindowFunction.Bound: - ... + def upper_bound(self) -> Global___Expression.WindowFunction.Bound: ... + def __init__( + self, + *, + function_reference: builtins.int = ..., + arguments: collections.abc.Iterable[Global___FunctionArgument] | None = ..., + options: collections.abc.Iterable[Global___FunctionOption] | None = ..., + output_type: substrait.gen.proto.type_pb2.Type | None = ..., + phase: Global___AggregationPhase.ValueType = ..., + invocation: Global___AggregateFunction.AggregationInvocation.ValueType = ..., + lower_bound: Global___Expression.WindowFunction.Bound | None = ..., + upper_bound: Global___Expression.WindowFunction.Bound | None = ..., + bounds_type: Global___Expression.WindowFunction.BoundsType.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["lower_bound", b"lower_bound", "output_type", b"output_type", "upper_bound", b"upper_bound"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "bounds_type", b"bounds_type", "function_reference", b"function_reference", "invocation", b"invocation", "lower_bound", b"lower_bound", "options", b"options", "output_type", b"output_type", "phase", b"phase", "upper_bound", b"upper_bound"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, function_reference: builtins.int=..., arguments: collections.abc.Iterable[global___FunctionArgument] | None=..., options: collections.abc.Iterable[global___FunctionOption] | None=..., output_type: proto.type_pb2.Type | None=..., phase: global___AggregationPhase.ValueType=..., invocation: global___AggregateFunction.AggregationInvocation.ValueType=..., lower_bound: global___Expression.WindowFunction.Bound | None=..., upper_bound: global___Expression.WindowFunction.Bound | None=..., bounds_type: global___Expression.WindowFunction.BoundsType.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['lower_bound', b'lower_bound', 'output_type', b'output_type', 'upper_bound', b'upper_bound']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arguments', b'arguments', 'bounds_type', b'bounds_type', 'function_reference', b'function_reference', 'invocation', b'invocation', 'lower_bound', b'lower_bound', 'options', b'options', 'output_type', b'output_type', 'phase', b'phase', 'upper_bound', b'upper_bound']) -> None: - ... COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int WINDOW_FUNCTIONS_FIELD_NUMBER: builtins.int PARTITION_EXPRESSIONS_FIELD_NUMBER: builtins.int SORTS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def window_functions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConsistentPartitionWindowRel.WindowRelFunction]: - ... - + def window_functions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ConsistentPartitionWindowRel.WindowRelFunction]: ... @property - def partition_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - + def partition_expressions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... @property - def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SortField]: - ... - + def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SortField]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + window_functions: collections.abc.Iterable[Global___ConsistentPartitionWindowRel.WindowRelFunction] | None = ..., + partition_expressions: collections.abc.Iterable[Global___Expression] | None = ..., + sorts: collections.abc.Iterable[Global___SortField] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input", "partition_expressions", b"partition_expressions", "sorts", b"sorts", "window_functions", b"window_functions"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., window_functions: collections.abc.Iterable[global___ConsistentPartitionWindowRel.WindowRelFunction] | None=..., partition_expressions: collections.abc.Iterable[global___Expression] | None=..., sorts: collections.abc.Iterable[global___SortField] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input', 'partition_expressions', b'partition_expressions', 'sorts', b'sorts', 'window_functions', b'window_functions']) -> None: - ... -global___ConsistentPartitionWindowRel = ConsistentPartitionWindowRel +Global___ConsistentPartitionWindowRel: typing_extensions.TypeAlias = ConsistentPartitionWindowRel @typing.final class SortRel(google.protobuf.message.Message): """The ORDERY BY (or sorting) relational operator. Beside describing a base relation, it includes a list of fields to sort on""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int SORTS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SortField]: - ... - + def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SortField]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., sorts: collections.abc.Iterable[global___SortField] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + sorts: collections.abc.Iterable[Global___SortField] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "input", b"input", "sorts", b"sorts"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'input', b'input', 'sorts', b'sorts']) -> None: - ... -global___SortRel = SortRel +Global___SortRel: typing_extensions.TypeAlias = SortRel @typing.final class FilterRel(google.protobuf.message.Message): """The relational operator capturing simple FILTERs (as in the WHERE clause of SQL)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int CONDITION_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def condition(self) -> global___Expression: - ... - + def condition(self) -> Global___Expression: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., condition: global___Expression | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + condition: Global___Expression | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "condition", b"condition", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "condition", b"condition", "input", b"input"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'condition', b'condition', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'condition', b'condition', 'input', b'input']) -> None: - ... -global___FilterRel = FilterRel +Global___FilterRel: typing_extensions.TypeAlias = FilterRel @typing.final class SetRel(google.protobuf.message.Message): """The relational set operators (intersection/union/etc..)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _SetOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _SetOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SetRel._SetOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SET_OP_UNSPECIFIED: SetRel._SetOp.ValueType - SET_OP_MINUS_PRIMARY: SetRel._SetOp.ValueType - SET_OP_MINUS_PRIMARY_ALL: SetRel._SetOp.ValueType - SET_OP_MINUS_MULTISET: SetRel._SetOp.ValueType - SET_OP_INTERSECTION_PRIMARY: SetRel._SetOp.ValueType - SET_OP_INTERSECTION_MULTISET: SetRel._SetOp.ValueType - SET_OP_INTERSECTION_MULTISET_ALL: SetRel._SetOp.ValueType - SET_OP_UNION_DISTINCT: SetRel._SetOp.ValueType - SET_OP_UNION_ALL: SetRel._SetOp.ValueType - - class SetOp(_SetOp, metaclass=_SetOpEnumTypeWrapper): - ... - SET_OP_UNSPECIFIED: SetRel.SetOp.ValueType - SET_OP_MINUS_PRIMARY: SetRel.SetOp.ValueType - SET_OP_MINUS_PRIMARY_ALL: SetRel.SetOp.ValueType - SET_OP_MINUS_MULTISET: SetRel.SetOp.ValueType - SET_OP_INTERSECTION_PRIMARY: SetRel.SetOp.ValueType - SET_OP_INTERSECTION_MULTISET: SetRel.SetOp.ValueType - SET_OP_INTERSECTION_MULTISET_ALL: SetRel.SetOp.ValueType - SET_OP_UNION_DISTINCT: SetRel.SetOp.ValueType - SET_OP_UNION_ALL: SetRel.SetOp.ValueType + SET_OP_UNSPECIFIED: SetRel._SetOp.ValueType # 0 + SET_OP_MINUS_PRIMARY: SetRel._SetOp.ValueType # 1 + SET_OP_MINUS_PRIMARY_ALL: SetRel._SetOp.ValueType # 7 + SET_OP_MINUS_MULTISET: SetRel._SetOp.ValueType # 2 + SET_OP_INTERSECTION_PRIMARY: SetRel._SetOp.ValueType # 3 + SET_OP_INTERSECTION_MULTISET: SetRel._SetOp.ValueType # 4 + SET_OP_INTERSECTION_MULTISET_ALL: SetRel._SetOp.ValueType # 8 + SET_OP_UNION_DISTINCT: SetRel._SetOp.ValueType # 5 + SET_OP_UNION_ALL: SetRel._SetOp.ValueType # 6 + + class SetOp(_SetOp, metaclass=_SetOpEnumTypeWrapper): ... + SET_OP_UNSPECIFIED: SetRel.SetOp.ValueType # 0 + SET_OP_MINUS_PRIMARY: SetRel.SetOp.ValueType # 1 + SET_OP_MINUS_PRIMARY_ALL: SetRel.SetOp.ValueType # 7 + SET_OP_MINUS_MULTISET: SetRel.SetOp.ValueType # 2 + SET_OP_INTERSECTION_PRIMARY: SetRel.SetOp.ValueType # 3 + SET_OP_INTERSECTION_MULTISET: SetRel.SetOp.ValueType # 4 + SET_OP_INTERSECTION_MULTISET_ALL: SetRel.SetOp.ValueType # 8 + SET_OP_UNION_DISTINCT: SetRel.SetOp.ValueType # 5 + SET_OP_UNION_ALL: SetRel.SetOp.ValueType # 6 + COMMON_FIELD_NUMBER: builtins.int INPUTS_FIELD_NUMBER: builtins.int OP_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - op: global___SetRel.SetOp.ValueType - + op: Global___SetRel.SetOp.ValueType @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rel]: + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Rel]: """The first input is the primary input, the remaining are secondary inputs. There must be at least two inputs. """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + inputs: collections.abc.Iterable[Global___Rel] | None = ..., + op: Global___SetRel.SetOp.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "inputs", b"inputs", "op", b"op"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, common: global___RelCommon | None=..., inputs: collections.abc.Iterable[global___Rel] | None=..., op: global___SetRel.SetOp.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'inputs', b'inputs', 'op', b'op']) -> None: - ... -global___SetRel = SetRel +Global___SetRel: typing_extensions.TypeAlias = SetRel @typing.final class ExtensionSingleRel(google.protobuf.message.Message): """Stub to support extension with a single input""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int DETAIL_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def detail(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., detail: google.protobuf.any_pb2.Any | None=...) -> None: - ... + def detail(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + detail: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail", "input", b"input"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail', 'input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail', 'input', b'input']) -> None: - ... -global___ExtensionSingleRel = ExtensionSingleRel +Global___ExtensionSingleRel: typing_extensions.TypeAlias = ExtensionSingleRel @typing.final class ExtensionLeafRel(google.protobuf.message.Message): """Stub to support extension with a zero inputs""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int DETAIL_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def detail(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, common: global___RelCommon | None=..., detail: google.protobuf.any_pb2.Any | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail']) -> builtins.bool: - ... + def detail(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + detail: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail']) -> None: - ... -global___ExtensionLeafRel = ExtensionLeafRel +Global___ExtensionLeafRel: typing_extensions.TypeAlias = ExtensionLeafRel @typing.final class ExtensionMultiRel(google.protobuf.message.Message): """Stub to support extension with multiple inputs""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMON_FIELD_NUMBER: builtins.int INPUTS_FIELD_NUMBER: builtins.int DETAIL_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rel]: - ... - + def inputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Rel]: ... @property - def detail(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, common: global___RelCommon | None=..., inputs: collections.abc.Iterable[global___Rel] | None=..., detail: google.protobuf.any_pb2.Any | None=...) -> None: - ... + def detail(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + inputs: collections.abc.Iterable[Global___Rel] | None = ..., + detail: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "detail", b"detail", "inputs", b"inputs"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['common', b'common', 'detail', b'detail', 'inputs', b'inputs']) -> None: - ... -global___ExtensionMultiRel = ExtensionMultiRel +Global___ExtensionMultiRel: typing_extensions.TypeAlias = ExtensionMultiRel @typing.final class ExchangeRel(google.protobuf.message.Message): """A redistribution operation""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class ScatterFields(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - FIELDS_FIELD_NUMBER: builtins.int + FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.FieldReference]: - ... - - def __init__(self, *, fields: collections.abc.Iterable[global___Expression.FieldReference] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['fields', b'fields']) -> None: - ... + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.FieldReference]: ... + def __init__( + self, + *, + fields: collections.abc.Iterable[Global___Expression.FieldReference] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["fields", b"fields"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SingleBucketExpression(google.protobuf.message.Message): """Returns a single bucket number per record.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - EXPRESSION_FIELD_NUMBER: builtins.int + EXPRESSION_FIELD_NUMBER: builtins.int @property - def expression(self) -> global___Expression: - ... - - def __init__(self, *, expression: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['expression', b'expression']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['expression', b'expression']) -> None: - ... + def expression(self) -> Global___Expression: ... + def __init__( + self, + *, + expression: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression", b"expression"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression", b"expression"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class MultiBucketExpression(google.protobuf.message.Message): """Returns zero or more bucket numbers per record""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXPRESSION_FIELD_NUMBER: builtins.int CONSTRAINED_TO_COUNT_FIELD_NUMBER: builtins.int constrained_to_count: builtins.bool - @property - def expression(self) -> global___Expression: - ... - - def __init__(self, *, expression: global___Expression | None=..., constrained_to_count: builtins.bool=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['expression', b'expression']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['constrained_to_count', b'constrained_to_count', 'expression', b'expression']) -> None: - ... + def expression(self) -> Global___Expression: ... + def __init__( + self, + *, + expression: Global___Expression | None = ..., + constrained_to_count: builtins.bool = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression", b"expression"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["constrained_to_count", b"constrained_to_count", "expression", b"expression"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Broadcast(google.protobuf.message.Message): """Send all data to every target.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class RoundRobin(google.protobuf.message.Message): """Route approximately""" - DESCRIPTOR: google.protobuf.descriptor.Descriptor - EXACT_FIELD_NUMBER: builtins.int - exact: builtins.bool - 'whether the round robin behavior is required to exact (per record) or\n approximate. Defaults to approximate.\n ' - def __init__(self, *, exact: builtins.bool=...) -> None: - ... + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def ClearField(self, field_name: typing.Literal['exact', b'exact']) -> None: - ... + EXACT_FIELD_NUMBER: builtins.int + exact: builtins.bool + """whether the round robin behavior is required to exact (per record) or + approximate. Defaults to approximate. + """ + def __init__( + self, + *, + exact: builtins.bool = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["exact", b"exact"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExchangeTarget(google.protobuf.message.Message): """The message to describe partition targets of an exchange""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTITION_ID_FIELD_NUMBER: builtins.int URI_FIELD_NUMBER: builtins.int EXTENDED_FIELD_NUMBER: builtins.int uri: builtins.str - @property def partition_id(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """Describes the partition id(s) to send. If this is empty, all data is sent @@ -1363,20 +1461,22 @@ class ExchangeRel(google.protobuf.message.Message): """ @property - def extended(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, partition_id: collections.abc.Iterable[builtins.int] | None=..., uri: builtins.str=..., extended: google.protobuf.any_pb2.Any | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['extended', b'extended', 'target_type', b'target_type', 'uri', b'uri']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['extended', b'extended', 'partition_id', b'partition_id', 'target_type', b'target_type', 'uri', b'uri']) -> None: - ... + def extended(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + partition_id: collections.abc.Iterable[builtins.int] | None = ..., + uri: builtins.str = ..., + extended: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["extended", b"extended", "target_type", b"target_type", "uri", b"uri"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extended", b"extended", "partition_id", b"partition_id", "target_type", b"target_type", "uri", b"uri"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_target_type: typing_extensions.TypeAlias = typing.Literal["uri", "extended"] + _WhichOneofArgType_target_type: typing_extensions.TypeAlias = typing.Literal["target_type", b"target_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_target_type) -> _WhichOneofReturnType_target_type | None: ... - def WhichOneof(self, oneof_group: typing.Literal['target_type', b'target_type']) -> typing.Literal['uri', 'extended'] | None: - ... COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int PARTITION_COUNT_FIELD_NUMBER: builtins.int @@ -1388,55 +1488,47 @@ class ExchangeRel(google.protobuf.message.Message): BROADCAST_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int partition_count: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def targets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExchangeRel.ExchangeTarget]: - ... - + def targets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ExchangeRel.ExchangeTarget]: ... @property - def scatter_by_fields(self) -> global___ExchangeRel.ScatterFields: - ... - + def scatter_by_fields(self) -> Global___ExchangeRel.ScatterFields: ... @property - def single_target(self) -> global___ExchangeRel.SingleBucketExpression: - ... - + def single_target(self) -> Global___ExchangeRel.SingleBucketExpression: ... @property - def multi_target(self) -> global___ExchangeRel.MultiBucketExpression: - ... - + def multi_target(self) -> Global___ExchangeRel.MultiBucketExpression: ... @property - def round_robin(self) -> global___ExchangeRel.RoundRobin: - ... - + def round_robin(self) -> Global___ExchangeRel.RoundRobin: ... @property - def broadcast(self) -> global___ExchangeRel.Broadcast: - ... - + def broadcast(self) -> Global___ExchangeRel.Broadcast: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., partition_count: builtins.int=..., targets: collections.abc.Iterable[global___ExchangeRel.ExchangeTarget] | None=..., scatter_by_fields: global___ExchangeRel.ScatterFields | None=..., single_target: global___ExchangeRel.SingleBucketExpression | None=..., multi_target: global___ExchangeRel.MultiBucketExpression | None=..., round_robin: global___ExchangeRel.RoundRobin | None=..., broadcast: global___ExchangeRel.Broadcast | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'broadcast', b'broadcast', 'common', b'common', 'exchange_kind', b'exchange_kind', 'input', b'input', 'multi_target', b'multi_target', 'round_robin', b'round_robin', 'scatter_by_fields', b'scatter_by_fields', 'single_target', b'single_target']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'broadcast', b'broadcast', 'common', b'common', 'exchange_kind', b'exchange_kind', 'input', b'input', 'multi_target', b'multi_target', 'partition_count', b'partition_count', 'round_robin', b'round_robin', 'scatter_by_fields', b'scatter_by_fields', 'single_target', b'single_target', 'targets', b'targets']) -> None: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + partition_count: builtins.int = ..., + targets: collections.abc.Iterable[Global___ExchangeRel.ExchangeTarget] | None = ..., + scatter_by_fields: Global___ExchangeRel.ScatterFields | None = ..., + single_target: Global___ExchangeRel.SingleBucketExpression | None = ..., + multi_target: Global___ExchangeRel.MultiBucketExpression | None = ..., + round_robin: Global___ExchangeRel.RoundRobin | None = ..., + broadcast: Global___ExchangeRel.Broadcast | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "broadcast", b"broadcast", "common", b"common", "exchange_kind", b"exchange_kind", "input", b"input", "multi_target", b"multi_target", "round_robin", b"round_robin", "scatter_by_fields", b"scatter_by_fields", "single_target", b"single_target"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "broadcast", b"broadcast", "common", b"common", "exchange_kind", b"exchange_kind", "input", b"input", "multi_target", b"multi_target", "partition_count", b"partition_count", "round_robin", b"round_robin", "scatter_by_fields", b"scatter_by_fields", "single_target", b"single_target", "targets", b"targets"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_exchange_kind: typing_extensions.TypeAlias = typing.Literal["scatter_by_fields", "single_target", "multi_target", "round_robin", "broadcast"] + _WhichOneofArgType_exchange_kind: typing_extensions.TypeAlias = typing.Literal["exchange_kind", b"exchange_kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_exchange_kind) -> _WhichOneofReturnType_exchange_kind | None: ... - def WhichOneof(self, oneof_group: typing.Literal['exchange_kind', b'exchange_kind']) -> typing.Literal['scatter_by_fields', 'single_target', 'multi_target', 'round_robin', 'broadcast'] | None: - ... -global___ExchangeRel = ExchangeRel +Global___ExchangeRel: typing_extensions.TypeAlias = ExchangeRel @typing.final class ExpandRel(google.protobuf.message.Message): @@ -1446,16 +1538,17 @@ class ExpandRel(google.protobuf.message.Message): In addition to a field being emitted per input field an extra int64 field is emitted which contains a zero-indexed ordinal corresponding to the duplicate definition. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class ExpandField(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SWITCHING_FIELD_FIELD_NUMBER: builtins.int CONSISTENT_FIELD_FIELD_NUMBER: builtins.int - @property - def switching_field(self) -> global___ExpandRel.SwitchingField: + def switching_field(self) -> Global___ExpandRel.SwitchingField: """Field that switches output based on which duplicate is being output. Every switching_field should contain the same number of duplicates (so that the output rows are of consistent size and type). If there are not enough switching field definitions @@ -1463,67 +1556,71 @@ class ExpandRel(google.protobuf.message.Message): """ @property - def consistent_field(self) -> global___Expression: + def consistent_field(self) -> Global___Expression: """Field that outputs the same value no matter which duplicate is being output. Equivalent to a switching_field that lists the same expression multiple times. """ - def __init__(self, *, switching_field: global___ExpandRel.SwitchingField | None=..., consistent_field: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['consistent_field', b'consistent_field', 'field_type', b'field_type', 'switching_field', b'switching_field']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['consistent_field', b'consistent_field', 'field_type', b'field_type', 'switching_field', b'switching_field']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['field_type', b'field_type']) -> typing.Literal['switching_field', 'consistent_field'] | None: - ... + def __init__( + self, + *, + switching_field: Global___ExpandRel.SwitchingField | None = ..., + consistent_field: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["consistent_field", b"consistent_field", "field_type", b"field_type", "switching_field", b"switching_field"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["consistent_field", b"consistent_field", "field_type", b"field_type", "switching_field", b"switching_field"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_field_type: typing_extensions.TypeAlias = typing.Literal["switching_field", "consistent_field"] + _WhichOneofArgType_field_type: typing_extensions.TypeAlias = typing.Literal["field_type", b"field_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_field_type) -> _WhichOneofReturnType_field_type | None: ... @typing.final class SwitchingField(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - DUPLICATES_FIELD_NUMBER: builtins.int + DUPLICATES_FIELD_NUMBER: builtins.int @property - def duplicates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def duplicates(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """All duplicates must return the same type class but may differ in nullability. The effective type of the output field will be nullable if any of the duplicate expressions are nullable. """ - def __init__(self, *, duplicates: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... + def __init__( + self, + *, + duplicates: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["duplicates", b"duplicates"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['duplicates', b'duplicates']) -> None: - ... COMMON_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int FIELDS_FIELD_NUMBER: builtins.int - @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def input(self) -> global___Rel: - ... - + def input(self) -> Global___Rel: ... @property - def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExpandRel.ExpandField]: + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ExpandRel.ExpandField]: """There should be one definition here for each input field. Any fields beyond the provided definitions will be emitted as is (as if a consistent_field record with an identity expression was provided). """ - def __init__(self, *, common: global___RelCommon | None=..., input: global___Rel | None=..., fields: collections.abc.Iterable[global___ExpandRel.ExpandField] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['common', b'common', 'input', b'input']) -> builtins.bool: - ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + input: Global___Rel | None = ..., + fields: collections.abc.Iterable[Global___ExpandRel.ExpandField] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["common", b"common", "fields", b"fields", "input", b"input"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['common', b'common', 'fields', b'fields', 'input', b'input']) -> None: - ... -global___ExpandRel = ExpandRel +Global___ExpandRel: typing_extensions.TypeAlias = ExpandRel @typing.final class RelRoot(google.protobuf.message.Message): @@ -1531,32 +1628,38 @@ class RelRoot(google.protobuf.message.Message): This is for use at the root of a `Rel` tree. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + INPUT_FIELD_NUMBER: builtins.int NAMES_FIELD_NUMBER: builtins.int - @property - def input(self) -> global___Rel: + def input(self) -> Global___Rel: """A relation""" @property def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Field names in depth-first order""" - def __init__(self, *, input: global___Rel | None=..., names: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['input', b'input']) -> builtins.bool: - ... + def __init__( + self, + *, + input: Global___Rel | None = ..., + names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input", "names", b"names"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['input', b'input', 'names', b'names']) -> None: - ... -global___RelRoot = RelRoot +Global___RelRoot: typing_extensions.TypeAlias = RelRoot @typing.final class Rel(google.protobuf.message.Message): """A relation (used internally in a plan)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + READ_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int FETCH_FIELD_NUMBER: builtins.int @@ -1579,115 +1682,96 @@ class Rel(google.protobuf.message.Message): WINDOW_FIELD_NUMBER: builtins.int EXCHANGE_FIELD_NUMBER: builtins.int EXPAND_FIELD_NUMBER: builtins.int - @property - def read(self) -> global___ReadRel: - ... - + def read(self) -> Global___ReadRel: ... @property - def filter(self) -> global___FilterRel: - ... - + def filter(self) -> Global___FilterRel: ... @property - def fetch(self) -> global___FetchRel: - ... - + def fetch(self) -> Global___FetchRel: ... @property - def aggregate(self) -> global___AggregateRel: - ... - + def aggregate(self) -> Global___AggregateRel: ... @property - def sort(self) -> global___SortRel: - ... - + def sort(self) -> Global___SortRel: ... @property - def join(self) -> global___JoinRel: - ... - + def join(self) -> Global___JoinRel: ... @property - def project(self) -> global___ProjectRel: - ... - + def project(self) -> Global___ProjectRel: ... @property - def set(self) -> global___SetRel: - ... - + def set(self) -> Global___SetRel: ... @property - def extension_single(self) -> global___ExtensionSingleRel: - ... - + def extension_single(self) -> Global___ExtensionSingleRel: ... @property - def extension_multi(self) -> global___ExtensionMultiRel: - ... - + def extension_multi(self) -> Global___ExtensionMultiRel: ... @property - def extension_leaf(self) -> global___ExtensionLeafRel: - ... - + def extension_leaf(self) -> Global___ExtensionLeafRel: ... @property - def cross(self) -> global___CrossRel: - ... - + def cross(self) -> Global___CrossRel: ... @property - def reference(self) -> global___ReferenceRel: - ... - + def reference(self) -> Global___ReferenceRel: ... @property - def write(self) -> global___WriteRel: - ... - + def write(self) -> Global___WriteRel: ... @property - def ddl(self) -> global___DdlRel: - ... - + def ddl(self) -> Global___DdlRel: ... @property - def update(self) -> global___UpdateRel: - ... - + def update(self) -> Global___UpdateRel: ... @property - def hash_join(self) -> global___HashJoinRel: + def hash_join(self) -> Global___HashJoinRel: """Physical relations""" @property - def merge_join(self) -> global___MergeJoinRel: - ... - - @property - def nested_loop_join(self) -> global___NestedLoopJoinRel: - ... - - @property - def window(self) -> global___ConsistentPartitionWindowRel: - ... - - @property - def exchange(self) -> global___ExchangeRel: - ... - - @property - def expand(self) -> global___ExpandRel: - ... - - def __init__(self, *, read: global___ReadRel | None=..., filter: global___FilterRel | None=..., fetch: global___FetchRel | None=..., aggregate: global___AggregateRel | None=..., sort: global___SortRel | None=..., join: global___JoinRel | None=..., project: global___ProjectRel | None=..., set: global___SetRel | None=..., extension_single: global___ExtensionSingleRel | None=..., extension_multi: global___ExtensionMultiRel | None=..., extension_leaf: global___ExtensionLeafRel | None=..., cross: global___CrossRel | None=..., reference: global___ReferenceRel | None=..., write: global___WriteRel | None=..., ddl: global___DdlRel | None=..., update: global___UpdateRel | None=..., hash_join: global___HashJoinRel | None=..., merge_join: global___MergeJoinRel | None=..., nested_loop_join: global___NestedLoopJoinRel | None=..., window: global___ConsistentPartitionWindowRel | None=..., exchange: global___ExchangeRel | None=..., expand: global___ExpandRel | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['aggregate', b'aggregate', 'cross', b'cross', 'ddl', b'ddl', 'exchange', b'exchange', 'expand', b'expand', 'extension_leaf', b'extension_leaf', 'extension_multi', b'extension_multi', 'extension_single', b'extension_single', 'fetch', b'fetch', 'filter', b'filter', 'hash_join', b'hash_join', 'join', b'join', 'merge_join', b'merge_join', 'nested_loop_join', b'nested_loop_join', 'project', b'project', 'read', b'read', 'reference', b'reference', 'rel_type', b'rel_type', 'set', b'set', 'sort', b'sort', 'update', b'update', 'window', b'window', 'write', b'write']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['aggregate', b'aggregate', 'cross', b'cross', 'ddl', b'ddl', 'exchange', b'exchange', 'expand', b'expand', 'extension_leaf', b'extension_leaf', 'extension_multi', b'extension_multi', 'extension_single', b'extension_single', 'fetch', b'fetch', 'filter', b'filter', 'hash_join', b'hash_join', 'join', b'join', 'merge_join', b'merge_join', 'nested_loop_join', b'nested_loop_join', 'project', b'project', 'read', b'read', 'reference', b'reference', 'rel_type', b'rel_type', 'set', b'set', 'sort', b'sort', 'update', b'update', 'window', b'window', 'write', b'write']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['rel_type', b'rel_type']) -> typing.Literal['read', 'filter', 'fetch', 'aggregate', 'sort', 'join', 'project', 'set', 'extension_single', 'extension_multi', 'extension_leaf', 'cross', 'reference', 'write', 'ddl', 'update', 'hash_join', 'merge_join', 'nested_loop_join', 'window', 'exchange', 'expand'] | None: - ... -global___Rel = Rel + def merge_join(self) -> Global___MergeJoinRel: ... + @property + def nested_loop_join(self) -> Global___NestedLoopJoinRel: ... + @property + def window(self) -> Global___ConsistentPartitionWindowRel: ... + @property + def exchange(self) -> Global___ExchangeRel: ... + @property + def expand(self) -> Global___ExpandRel: ... + def __init__( + self, + *, + read: Global___ReadRel | None = ..., + filter: Global___FilterRel | None = ..., + fetch: Global___FetchRel | None = ..., + aggregate: Global___AggregateRel | None = ..., + sort: Global___SortRel | None = ..., + join: Global___JoinRel | None = ..., + project: Global___ProjectRel | None = ..., + set: Global___SetRel | None = ..., + extension_single: Global___ExtensionSingleRel | None = ..., + extension_multi: Global___ExtensionMultiRel | None = ..., + extension_leaf: Global___ExtensionLeafRel | None = ..., + cross: Global___CrossRel | None = ..., + reference: Global___ReferenceRel | None = ..., + write: Global___WriteRel | None = ..., + ddl: Global___DdlRel | None = ..., + update: Global___UpdateRel | None = ..., + hash_join: Global___HashJoinRel | None = ..., + merge_join: Global___MergeJoinRel | None = ..., + nested_loop_join: Global___NestedLoopJoinRel | None = ..., + window: Global___ConsistentPartitionWindowRel | None = ..., + exchange: Global___ExchangeRel | None = ..., + expand: Global___ExpandRel | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["aggregate", b"aggregate", "cross", b"cross", "ddl", b"ddl", "exchange", b"exchange", "expand", b"expand", "extension_leaf", b"extension_leaf", "extension_multi", b"extension_multi", "extension_single", b"extension_single", "fetch", b"fetch", "filter", b"filter", "hash_join", b"hash_join", "join", b"join", "merge_join", b"merge_join", "nested_loop_join", b"nested_loop_join", "project", b"project", "read", b"read", "reference", b"reference", "rel_type", b"rel_type", "set", b"set", "sort", b"sort", "update", b"update", "window", b"window", "write", b"write"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["aggregate", b"aggregate", "cross", b"cross", "ddl", b"ddl", "exchange", b"exchange", "expand", b"expand", "extension_leaf", b"extension_leaf", "extension_multi", b"extension_multi", "extension_single", b"extension_single", "fetch", b"fetch", "filter", b"filter", "hash_join", b"hash_join", "join", b"join", "merge_join", b"merge_join", "nested_loop_join", b"nested_loop_join", "project", b"project", "read", b"read", "reference", b"reference", "rel_type", b"rel_type", "set", b"set", "sort", b"sort", "update", b"update", "window", b"window", "write", b"write"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_rel_type: typing_extensions.TypeAlias = typing.Literal["read", "filter", "fetch", "aggregate", "sort", "join", "project", "set", "extension_single", "extension_multi", "extension_leaf", "cross", "reference", "write", "ddl", "update", "hash_join", "merge_join", "nested_loop_join", "window", "exchange", "expand"] + _WhichOneofArgType_rel_type: typing_extensions.TypeAlias = typing.Literal["rel_type", b"rel_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_rel_type) -> _WhichOneofReturnType_rel_type | None: ... + +Global___Rel: typing_extensions.TypeAlias = Rel @typing.final class NamedObjectWrite(google.protobuf.message.Message): """A base object for writing (e.g., a table or a view).""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """The list of string is used to represent namespacing (e.g., mydb.mytable). @@ -1695,96 +1779,97 @@ class NamedObjectWrite(google.protobuf.message.Message): """ @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "names", b"names"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'names', b'names']) -> None: - ... -global___NamedObjectWrite = NamedObjectWrite +Global___NamedObjectWrite: typing_extensions.TypeAlias = NamedObjectWrite @typing.final class ExtensionObject(google.protobuf.message.Message): """A stub type that can be used to extend/introduce new table types outside the specification. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - DETAIL_FIELD_NUMBER: builtins.int + DETAIL_FIELD_NUMBER: builtins.int @property - def detail(self) -> google.protobuf.any_pb2.Any: - ... - - def __init__(self, *, detail: google.protobuf.any_pb2.Any | None=...) -> None: - ... + def detail(self) -> google.protobuf.any_pb2.Any: ... + def __init__( + self, + *, + detail: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["detail", b"detail"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["detail", b"detail"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['detail', b'detail']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['detail', b'detail']) -> None: - ... -global___ExtensionObject = ExtensionObject +Global___ExtensionObject: typing_extensions.TypeAlias = ExtensionObject @typing.final class DdlRel(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _DdlObject: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _DdlObjectEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DdlRel._DdlObject.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DDL_OBJECT_UNSPECIFIED: DdlRel._DdlObject.ValueType - DDL_OBJECT_TABLE: DdlRel._DdlObject.ValueType - 'A Table object in the system' - DDL_OBJECT_VIEW: DdlRel._DdlObject.ValueType - 'A View object in the system' - - class DdlObject(_DdlObject, metaclass=_DdlObjectEnumTypeWrapper): - ... - DDL_OBJECT_UNSPECIFIED: DdlRel.DdlObject.ValueType - DDL_OBJECT_TABLE: DdlRel.DdlObject.ValueType - 'A Table object in the system' - DDL_OBJECT_VIEW: DdlRel.DdlObject.ValueType - 'A View object in the system' + DDL_OBJECT_UNSPECIFIED: DdlRel._DdlObject.ValueType # 0 + DDL_OBJECT_TABLE: DdlRel._DdlObject.ValueType # 1 + """A Table object in the system""" + DDL_OBJECT_VIEW: DdlRel._DdlObject.ValueType # 2 + """A View object in the system""" + + class DdlObject(_DdlObject, metaclass=_DdlObjectEnumTypeWrapper): ... + DDL_OBJECT_UNSPECIFIED: DdlRel.DdlObject.ValueType # 0 + DDL_OBJECT_TABLE: DdlRel.DdlObject.ValueType # 1 + """A Table object in the system""" + DDL_OBJECT_VIEW: DdlRel.DdlObject.ValueType # 2 + """A View object in the system""" class _DdlOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _DdlOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DdlRel._DdlOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DDL_OP_UNSPECIFIED: DdlRel._DdlOp.ValueType - DDL_OP_CREATE: DdlRel._DdlOp.ValueType - 'A create operation (for any object)' - DDL_OP_CREATE_OR_REPLACE: DdlRel._DdlOp.ValueType - 'A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists' - DDL_OP_ALTER: DdlRel._DdlOp.ValueType - 'An operation that modifies the schema (e.g., column names, types, default values) for the target object' - DDL_OP_DROP: DdlRel._DdlOp.ValueType - 'An operation that removes an object from the system' - DDL_OP_DROP_IF_EXIST: DdlRel._DdlOp.ValueType - 'An operation that removes an object from the system (without throwing an exception if the object did not exist)' - - class DdlOp(_DdlOp, metaclass=_DdlOpEnumTypeWrapper): - ... - DDL_OP_UNSPECIFIED: DdlRel.DdlOp.ValueType - DDL_OP_CREATE: DdlRel.DdlOp.ValueType - 'A create operation (for any object)' - DDL_OP_CREATE_OR_REPLACE: DdlRel.DdlOp.ValueType - 'A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists' - DDL_OP_ALTER: DdlRel.DdlOp.ValueType - 'An operation that modifies the schema (e.g., column names, types, default values) for the target object' - DDL_OP_DROP: DdlRel.DdlOp.ValueType - 'An operation that removes an object from the system' - DDL_OP_DROP_IF_EXIST: DdlRel.DdlOp.ValueType - 'An operation that removes an object from the system (without throwing an exception if the object did not exist)' + DDL_OP_UNSPECIFIED: DdlRel._DdlOp.ValueType # 0 + DDL_OP_CREATE: DdlRel._DdlOp.ValueType # 1 + """A create operation (for any object)""" + DDL_OP_CREATE_OR_REPLACE: DdlRel._DdlOp.ValueType # 2 + """A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists""" + DDL_OP_ALTER: DdlRel._DdlOp.ValueType # 3 + """An operation that modifies the schema (e.g., column names, types, default values) for the target object""" + DDL_OP_DROP: DdlRel._DdlOp.ValueType # 4 + """An operation that removes an object from the system""" + DDL_OP_DROP_IF_EXIST: DdlRel._DdlOp.ValueType # 5 + """An operation that removes an object from the system (without throwing an exception if the object did not exist)""" + + class DdlOp(_DdlOp, metaclass=_DdlOpEnumTypeWrapper): ... + DDL_OP_UNSPECIFIED: DdlRel.DdlOp.ValueType # 0 + DDL_OP_CREATE: DdlRel.DdlOp.ValueType # 1 + """A create operation (for any object)""" + DDL_OP_CREATE_OR_REPLACE: DdlRel.DdlOp.ValueType # 2 + """A create operation if the object does not exist, or replaces it (equivalent to a DROP + CREATE) if the object already exists""" + DDL_OP_ALTER: DdlRel.DdlOp.ValueType # 3 + """An operation that modifies the schema (e.g., column names, types, default values) for the target object""" + DDL_OP_DROP: DdlRel.DdlOp.ValueType # 4 + """An operation that removes an object from the system""" + DDL_OP_DROP_IF_EXIST: DdlRel.DdlOp.ValueType # 5 + """An operation that removes an object from the system (without throwing an exception if the object did not exist)""" + NAMED_OBJECT_FIELD_NUMBER: builtins.int EXTENSION_OBJECT_FIELD_NUMBER: builtins.int TABLE_SCHEMA_FIELD_NUMBER: builtins.int @@ -1794,25 +1879,20 @@ class DdlRel(google.protobuf.message.Message): VIEW_DEFINITION_FIELD_NUMBER: builtins.int COMMON_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - object: global___DdlRel.DdlObject.ValueType - 'Which type of object we operate on' - op: global___DdlRel.DdlOp.ValueType - 'The type of operation to perform' - + object: Global___DdlRel.DdlObject.ValueType + """Which type of object we operate on""" + op: Global___DdlRel.DdlOp.ValueType + """The type of operation to perform""" @property - def named_object(self) -> global___NamedObjectWrite: - ... - + def named_object(self) -> Global___NamedObjectWrite: ... @property - def extension_object(self) -> global___ExtensionObject: - ... - + def extension_object(self) -> Global___ExtensionObject: ... @property - def table_schema(self) -> proto.type_pb2.NamedStruct: + def table_schema(self) -> substrait.gen.proto.type_pb2.NamedStruct: """The columns that will be modified (representing after-image of a schema change)""" @property - def table_defaults(self) -> global___Expression.Literal.Struct: + def table_defaults(self) -> Global___Expression.Literal.Struct: """The default values for the columns (representing after-image of a schema change) E.g., in case of an ALTER TABLE that changes some of the column default values, we expect the table_defaults Struct to report a full list of default values reflecting the result of applying @@ -1820,112 +1900,127 @@ class DdlRel(google.protobuf.message.Message): """ @property - def view_definition(self) -> global___Rel: + def view_definition(self) -> Global___Rel: """The body of the CREATE VIEW""" @property - def common(self) -> global___RelCommon: - ... - - @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, named_object: global___NamedObjectWrite | None=..., extension_object: global___ExtensionObject | None=..., table_schema: proto.type_pb2.NamedStruct | None=..., table_defaults: global___Expression.Literal.Struct | None=..., object: global___DdlRel.DdlObject.ValueType=..., op: global___DdlRel.DdlOp.ValueType=..., view_definition: global___Rel | None=..., common: global___RelCommon | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'extension_object', b'extension_object', 'named_object', b'named_object', 'table_defaults', b'table_defaults', 'table_schema', b'table_schema', 'view_definition', b'view_definition', 'write_type', b'write_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'extension_object', b'extension_object', 'named_object', b'named_object', 'object', b'object', 'op', b'op', 'table_defaults', b'table_defaults', 'table_schema', b'table_schema', 'view_definition', b'view_definition', 'write_type', b'write_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['write_type', b'write_type']) -> typing.Literal['named_object', 'extension_object'] | None: - ... -global___DdlRel = DdlRel + def common(self) -> Global___RelCommon: ... + @property + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + named_object: Global___NamedObjectWrite | None = ..., + extension_object: Global___ExtensionObject | None = ..., + table_schema: substrait.gen.proto.type_pb2.NamedStruct | None = ..., + table_defaults: Global___Expression.Literal.Struct | None = ..., + object: Global___DdlRel.DdlObject.ValueType = ..., + op: Global___DdlRel.DdlOp.ValueType = ..., + view_definition: Global___Rel | None = ..., + common: Global___RelCommon | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "extension_object", b"extension_object", "named_object", b"named_object", "table_defaults", b"table_defaults", "table_schema", b"table_schema", "view_definition", b"view_definition", "write_type", b"write_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "extension_object", b"extension_object", "named_object", b"named_object", "object", b"object", "op", b"op", "table_defaults", b"table_defaults", "table_schema", b"table_schema", "view_definition", b"view_definition", "write_type", b"write_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_write_type: typing_extensions.TypeAlias = typing.Literal["named_object", "extension_object"] + _WhichOneofArgType_write_type: typing_extensions.TypeAlias = typing.Literal["write_type", b"write_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_write_type) -> _WhichOneofReturnType_write_type | None: ... + +Global___DdlRel: typing_extensions.TypeAlias = DdlRel @typing.final class WriteRel(google.protobuf.message.Message): """The operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be based on joining of multiple tables). """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _WriteOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _WriteOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WriteRel._WriteOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - WRITE_OP_UNSPECIFIED: WriteRel._WriteOp.ValueType - WRITE_OP_INSERT: WriteRel._WriteOp.ValueType - 'The insert of new records in a table' - WRITE_OP_DELETE: WriteRel._WriteOp.ValueType - 'The removal of records from a table' - WRITE_OP_UPDATE: WriteRel._WriteOp.ValueType - 'The modification of existing records within a table' - WRITE_OP_CTAS: WriteRel._WriteOp.ValueType - 'The Creation of a new table, and the insert of new records in the table' - - class WriteOp(_WriteOp, metaclass=_WriteOpEnumTypeWrapper): - ... - WRITE_OP_UNSPECIFIED: WriteRel.WriteOp.ValueType - WRITE_OP_INSERT: WriteRel.WriteOp.ValueType - 'The insert of new records in a table' - WRITE_OP_DELETE: WriteRel.WriteOp.ValueType - 'The removal of records from a table' - WRITE_OP_UPDATE: WriteRel.WriteOp.ValueType - 'The modification of existing records within a table' - WRITE_OP_CTAS: WriteRel.WriteOp.ValueType - 'The Creation of a new table, and the insert of new records in the table' + WRITE_OP_UNSPECIFIED: WriteRel._WriteOp.ValueType # 0 + WRITE_OP_INSERT: WriteRel._WriteOp.ValueType # 1 + """The insert of new records in a table""" + WRITE_OP_DELETE: WriteRel._WriteOp.ValueType # 2 + """The removal of records from a table""" + WRITE_OP_UPDATE: WriteRel._WriteOp.ValueType # 3 + """The modification of existing records within a table""" + WRITE_OP_CTAS: WriteRel._WriteOp.ValueType # 4 + """The Creation of a new table, and the insert of new records in the table""" + + class WriteOp(_WriteOp, metaclass=_WriteOpEnumTypeWrapper): ... + WRITE_OP_UNSPECIFIED: WriteRel.WriteOp.ValueType # 0 + WRITE_OP_INSERT: WriteRel.WriteOp.ValueType # 1 + """The insert of new records in a table""" + WRITE_OP_DELETE: WriteRel.WriteOp.ValueType # 2 + """The removal of records from a table""" + WRITE_OP_UPDATE: WriteRel.WriteOp.ValueType # 3 + """The modification of existing records within a table""" + WRITE_OP_CTAS: WriteRel.WriteOp.ValueType # 4 + """The Creation of a new table, and the insert of new records in the table""" class _CreateMode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _CreateModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WriteRel._CreateMode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - CREATE_MODE_UNSPECIFIED: WriteRel._CreateMode.ValueType - CREATE_MODE_APPEND_IF_EXISTS: WriteRel._CreateMode.ValueType - 'Append the data to the table if it already exists' - CREATE_MODE_REPLACE_IF_EXISTS: WriteRel._CreateMode.ValueType - 'Replace the table if it already exists ("OR REPLACE")' - CREATE_MODE_IGNORE_IF_EXISTS: WriteRel._CreateMode.ValueType - 'Ignore the request if the table already exists ("IF NOT EXISTS")' - CREATE_MODE_ERROR_IF_EXISTS: WriteRel._CreateMode.ValueType - 'Throw an error if the table already exists (default behavior)' - - class CreateMode(_CreateMode, metaclass=_CreateModeEnumTypeWrapper): - ... - CREATE_MODE_UNSPECIFIED: WriteRel.CreateMode.ValueType - CREATE_MODE_APPEND_IF_EXISTS: WriteRel.CreateMode.ValueType - 'Append the data to the table if it already exists' - CREATE_MODE_REPLACE_IF_EXISTS: WriteRel.CreateMode.ValueType - 'Replace the table if it already exists ("OR REPLACE")' - CREATE_MODE_IGNORE_IF_EXISTS: WriteRel.CreateMode.ValueType - 'Ignore the request if the table already exists ("IF NOT EXISTS")' - CREATE_MODE_ERROR_IF_EXISTS: WriteRel.CreateMode.ValueType - 'Throw an error if the table already exists (default behavior)' + CREATE_MODE_UNSPECIFIED: WriteRel._CreateMode.ValueType # 0 + CREATE_MODE_APPEND_IF_EXISTS: WriteRel._CreateMode.ValueType # 1 + """Append the data to the table if it already exists""" + CREATE_MODE_REPLACE_IF_EXISTS: WriteRel._CreateMode.ValueType # 2 + """Replace the table if it already exists ("OR REPLACE")""" + CREATE_MODE_IGNORE_IF_EXISTS: WriteRel._CreateMode.ValueType # 3 + """Ignore the request if the table already exists ("IF NOT EXISTS")""" + CREATE_MODE_ERROR_IF_EXISTS: WriteRel._CreateMode.ValueType # 4 + """Throw an error if the table already exists (default behavior)""" + + class CreateMode(_CreateMode, metaclass=_CreateModeEnumTypeWrapper): ... + CREATE_MODE_UNSPECIFIED: WriteRel.CreateMode.ValueType # 0 + CREATE_MODE_APPEND_IF_EXISTS: WriteRel.CreateMode.ValueType # 1 + """Append the data to the table if it already exists""" + CREATE_MODE_REPLACE_IF_EXISTS: WriteRel.CreateMode.ValueType # 2 + """Replace the table if it already exists ("OR REPLACE")""" + CREATE_MODE_IGNORE_IF_EXISTS: WriteRel.CreateMode.ValueType # 3 + """Ignore the request if the table already exists ("IF NOT EXISTS")""" + CREATE_MODE_ERROR_IF_EXISTS: WriteRel.CreateMode.ValueType # 4 + """Throw an error if the table already exists (default behavior)""" class _OutputMode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _OutputModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WriteRel._OutputMode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - OUTPUT_MODE_UNSPECIFIED: WriteRel._OutputMode.ValueType - OUTPUT_MODE_NO_OUTPUT: WriteRel._OutputMode.ValueType - 'return no records at all' - OUTPUT_MODE_MODIFIED_RECORDS: WriteRel._OutputMode.ValueType - 'this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator.\n The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams\n (e.g., retunring the typical "count of modified records").\n For scenarios in which the BEFORE image is required, the user must implement a spool (via references to\n subplans in the body of the Rel input) and return those with anounter PlanRel.relations.\n ' - - class OutputMode(_OutputMode, metaclass=_OutputModeEnumTypeWrapper): - ... - OUTPUT_MODE_UNSPECIFIED: WriteRel.OutputMode.ValueType - OUTPUT_MODE_NO_OUTPUT: WriteRel.OutputMode.ValueType - 'return no records at all' - OUTPUT_MODE_MODIFIED_RECORDS: WriteRel.OutputMode.ValueType - 'this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator.\n The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams\n (e.g., retunring the typical "count of modified records").\n For scenarios in which the BEFORE image is required, the user must implement a spool (via references to\n subplans in the body of the Rel input) and return those with anounter PlanRel.relations.\n ' + OUTPUT_MODE_UNSPECIFIED: WriteRel._OutputMode.ValueType # 0 + OUTPUT_MODE_NO_OUTPUT: WriteRel._OutputMode.ValueType # 1 + """return no records at all""" + OUTPUT_MODE_MODIFIED_RECORDS: WriteRel._OutputMode.ValueType # 2 + """this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator. + The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams + (e.g., retunring the typical "count of modified records"). + For scenarios in which the BEFORE image is required, the user must implement a spool (via references to + subplans in the body of the Rel input) and return those with anounter PlanRel.relations. + """ + + class OutputMode(_OutputMode, metaclass=_OutputModeEnumTypeWrapper): ... + OUTPUT_MODE_UNSPECIFIED: WriteRel.OutputMode.ValueType # 0 + OUTPUT_MODE_NO_OUTPUT: WriteRel.OutputMode.ValueType # 1 + """return no records at all""" + OUTPUT_MODE_MODIFIED_RECORDS: WriteRel.OutputMode.ValueType # 2 + """this mode makes the operator return all the record INSERTED/DELETED/UPDATED by the operator. + The operator returns the AFTER-image of any change. This can be further manipulated by operators upstreams + (e.g., retunring the typical "count of modified records"). + For scenarios in which the BEFORE image is required, the user must implement a spool (via references to + subplans in the body of the Rel input) and return those with anounter PlanRel.relations. + """ + NAMED_TABLE_FIELD_NUMBER: builtins.int EXTENSION_TABLE_FIELD_NUMBER: builtins.int TABLE_SCHEMA_FIELD_NUMBER: builtins.int @@ -1935,27 +2030,22 @@ class WriteRel(google.protobuf.message.Message): OUTPUT_FIELD_NUMBER: builtins.int COMMON_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - op: global___WriteRel.WriteOp.ValueType - 'The type of operation to perform' - create_mode: global___WriteRel.CreateMode.ValueType - 'Used with CTAS to determine what to do if the table already exists' - output: global___WriteRel.OutputMode.ValueType - 'Output mode determines what is the output of executing this rel' - + op: Global___WriteRel.WriteOp.ValueType + """The type of operation to perform""" + create_mode: Global___WriteRel.CreateMode.ValueType + """Used with CTAS to determine what to do if the table already exists""" + output: Global___WriteRel.OutputMode.ValueType + """Output mode determines what is the output of executing this rel""" @property - def named_table(self) -> global___NamedObjectWrite: - ... - + def named_table(self) -> Global___NamedObjectWrite: ... @property - def extension_table(self) -> global___ExtensionObject: - ... - + def extension_table(self) -> Global___ExtensionObject: ... @property - def table_schema(self) -> proto.type_pb2.NamedStruct: + def table_schema(self) -> substrait.gen.proto.type_pb2.NamedStruct: """The schema of the table (must align with Rel input (e.g., number of leaf fields must match))""" @property - def input(self) -> global___Rel: + def input(self) -> Global___Rel: """The relation that determines the records to add/remove/modify the schema must match with table_schema. Default values must be explicitly stated in a ProjectRel at the top of the input. The match must also @@ -1963,116 +2053,127 @@ class WriteRel(google.protobuf.message.Message): """ @property - def common(self) -> global___RelCommon: - ... - - @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, named_table: global___NamedObjectWrite | None=..., extension_table: global___ExtensionObject | None=..., table_schema: proto.type_pb2.NamedStruct | None=..., op: global___WriteRel.WriteOp.ValueType=..., input: global___Rel | None=..., create_mode: global___WriteRel.CreateMode.ValueType=..., output: global___WriteRel.OutputMode.ValueType=..., common: global___RelCommon | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'extension_table', b'extension_table', 'input', b'input', 'named_table', b'named_table', 'table_schema', b'table_schema', 'write_type', b'write_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'create_mode', b'create_mode', 'extension_table', b'extension_table', 'input', b'input', 'named_table', b'named_table', 'op', b'op', 'output', b'output', 'table_schema', b'table_schema', 'write_type', b'write_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['write_type', b'write_type']) -> typing.Literal['named_table', 'extension_table'] | None: - ... -global___WriteRel = WriteRel + def common(self) -> Global___RelCommon: ... + @property + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + named_table: Global___NamedObjectWrite | None = ..., + extension_table: Global___ExtensionObject | None = ..., + table_schema: substrait.gen.proto.type_pb2.NamedStruct | None = ..., + op: Global___WriteRel.WriteOp.ValueType = ..., + input: Global___Rel | None = ..., + create_mode: Global___WriteRel.CreateMode.ValueType = ..., + output: Global___WriteRel.OutputMode.ValueType = ..., + common: Global___RelCommon | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "extension_table", b"extension_table", "input", b"input", "named_table", b"named_table", "table_schema", b"table_schema", "write_type", b"write_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "create_mode", b"create_mode", "extension_table", b"extension_table", "input", b"input", "named_table", b"named_table", "op", b"op", "output", b"output", "table_schema", b"table_schema", "write_type", b"write_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_write_type: typing_extensions.TypeAlias = typing.Literal["named_table", "extension_table"] + _WhichOneofArgType_write_type: typing_extensions.TypeAlias = typing.Literal["write_type", b"write_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_write_type) -> _WhichOneofReturnType_write_type | None: ... + +Global___WriteRel: typing_extensions.TypeAlias = WriteRel @typing.final class UpdateRel(google.protobuf.message.Message): """The operator that modifies the columns of a table""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class TransformExpression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TRANSFORMATION_FIELD_NUMBER: builtins.int COLUMN_TARGET_FIELD_NUMBER: builtins.int column_target: builtins.int - 'index of the column to apply the transformation to' - + """index of the column to apply the transformation to""" @property - def transformation(self) -> global___Expression: + def transformation(self) -> Global___Expression: """the transformation to apply""" - def __init__(self, *, transformation: global___Expression | None=..., column_target: builtins.int=...) -> None: - ... + def __init__( + self, + *, + transformation: Global___Expression | None = ..., + column_target: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["transformation", b"transformation"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["column_target", b"column_target", "transformation", b"transformation"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['transformation', b'transformation']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['column_target', b'column_target', 'transformation', b'transformation']) -> None: - ... NAMED_TABLE_FIELD_NUMBER: builtins.int TABLE_SCHEMA_FIELD_NUMBER: builtins.int CONDITION_FIELD_NUMBER: builtins.int TRANSFORMATIONS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def named_table(self) -> global___NamedTable: - ... - + def named_table(self) -> Global___NamedTable: ... @property - def table_schema(self) -> proto.type_pb2.NamedStruct: + def table_schema(self) -> substrait.gen.proto.type_pb2.NamedStruct: """The full schema of the named_table""" @property - def condition(self) -> global___Expression: + def condition(self) -> Global___Expression: """condition to be met for the update to be applied on a record""" @property - def transformations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UpdateRel.TransformExpression]: + def transformations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___UpdateRel.TransformExpression]: """The list of transformations to apply to the columns of the named_table""" @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, named_table: global___NamedTable | None=..., table_schema: proto.type_pb2.NamedStruct | None=..., condition: global___Expression | None=..., transformations: collections.abc.Iterable[global___UpdateRel.TransformExpression] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'condition', b'condition', 'named_table', b'named_table', 'table_schema', b'table_schema', 'update_type', b'update_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'condition', b'condition', 'named_table', b'named_table', 'table_schema', b'table_schema', 'transformations', b'transformations', 'update_type', b'update_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['update_type', b'update_type']) -> typing.Literal['named_table'] | None: - ... -global___UpdateRel = UpdateRel + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + named_table: Global___NamedTable | None = ..., + table_schema: substrait.gen.proto.type_pb2.NamedStruct | None = ..., + condition: Global___Expression | None = ..., + transformations: collections.abc.Iterable[Global___UpdateRel.TransformExpression] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "condition", b"condition", "named_table", b"named_table", "table_schema", b"table_schema", "update_type", b"update_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "condition", b"condition", "named_table", b"named_table", "table_schema", b"table_schema", "transformations", b"transformations", "update_type", b"update_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_update_type: typing_extensions.TypeAlias = typing.Literal["named_table"] + _WhichOneofArgType_update_type: typing_extensions.TypeAlias = typing.Literal["update_type", b"update_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_update_type) -> _WhichOneofReturnType_update_type | None: ... + +Global___UpdateRel: typing_extensions.TypeAlias = UpdateRel @typing.final class NamedTable(google.protobuf.message.Message): """A base table. The list of string is used to represent namespacing (e.g., mydb.mytable). This assumes shared catalog between systems exchanging a message. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - @property - def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "names", b"names"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'names', b'names']) -> None: - ... -global___NamedTable = NamedTable +Global___NamedTable: typing_extensions.TypeAlias = NamedTable @typing.final class ComparisonJoinKey(google.protobuf.message.Message): @@ -2080,81 +2181,112 @@ class ComparisonJoinKey(google.protobuf.message.Message): expression is an series of comparisons between fields that are ANDed together. The behavior of this comparison is flexible """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _SimpleComparisonType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _SimpleComparisonTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ComparisonJoinKey._SimpleComparisonType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SIMPLE_COMPARISON_TYPE_UNSPECIFIED: ComparisonJoinKey._SimpleComparisonType.ValueType - SIMPLE_COMPARISON_TYPE_EQ: ComparisonJoinKey._SimpleComparisonType.ValueType - 'Returns true only if both values are equal and not null' - SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM: ComparisonJoinKey._SimpleComparisonType.ValueType - 'Returns true if both values are equal and not null\n Returns true if both values are null\n Returns false if one value is null and the other value is not null\n\n This can be expressed as a = b OR (isnull(a) AND isnull(b))\n ' - SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL: ComparisonJoinKey._SimpleComparisonType.ValueType - 'Returns true if both values are equal and not null\n Returns true if either value is null\n\n This can be expressed as a = b OR isnull(a = b)\n ' + SIMPLE_COMPARISON_TYPE_UNSPECIFIED: ComparisonJoinKey._SimpleComparisonType.ValueType # 0 + SIMPLE_COMPARISON_TYPE_EQ: ComparisonJoinKey._SimpleComparisonType.ValueType # 1 + """Returns true only if both values are equal and not null""" + SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM: ComparisonJoinKey._SimpleComparisonType.ValueType # 2 + """Returns true if both values are equal and not null + Returns true if both values are null + Returns false if one value is null and the other value is not null + + This can be expressed as a = b OR (isnull(a) AND isnull(b)) + """ + SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL: ComparisonJoinKey._SimpleComparisonType.ValueType # 3 + """Returns true if both values are equal and not null + Returns true if either value is null + + This can be expressed as a = b OR isnull(a = b) + """ class SimpleComparisonType(_SimpleComparisonType, metaclass=_SimpleComparisonTypeEnumTypeWrapper): """Most joins will use one of the following behaviors. To avoid the complexity of a function lookup we define the common behaviors here """ - SIMPLE_COMPARISON_TYPE_UNSPECIFIED: ComparisonJoinKey.SimpleComparisonType.ValueType - SIMPLE_COMPARISON_TYPE_EQ: ComparisonJoinKey.SimpleComparisonType.ValueType - 'Returns true only if both values are equal and not null' - SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM: ComparisonJoinKey.SimpleComparisonType.ValueType - 'Returns true if both values are equal and not null\n Returns true if both values are null\n Returns false if one value is null and the other value is not null\n\n This can be expressed as a = b OR (isnull(a) AND isnull(b))\n ' - SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL: ComparisonJoinKey.SimpleComparisonType.ValueType - 'Returns true if both values are equal and not null\n Returns true if either value is null\n\n This can be expressed as a = b OR isnull(a = b)\n ' + + SIMPLE_COMPARISON_TYPE_UNSPECIFIED: ComparisonJoinKey.SimpleComparisonType.ValueType # 0 + SIMPLE_COMPARISON_TYPE_EQ: ComparisonJoinKey.SimpleComparisonType.ValueType # 1 + """Returns true only if both values are equal and not null""" + SIMPLE_COMPARISON_TYPE_IS_NOT_DISTINCT_FROM: ComparisonJoinKey.SimpleComparisonType.ValueType # 2 + """Returns true if both values are equal and not null + Returns true if both values are null + Returns false if one value is null and the other value is not null + + This can be expressed as a = b OR (isnull(a) AND isnull(b)) + """ + SIMPLE_COMPARISON_TYPE_MIGHT_EQUAL: ComparisonJoinKey.SimpleComparisonType.ValueType # 3 + """Returns true if both values are equal and not null + Returns true if either value is null + + This can be expressed as a = b OR isnull(a = b) + """ @typing.final class ComparisonType(google.protobuf.message.Message): """Describes how the relation should consider if two rows are a match""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SIMPLE_FIELD_NUMBER: builtins.int CUSTOM_FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int - simple: global___ComparisonJoinKey.SimpleComparisonType.ValueType - 'One of the simple comparison behaviors is used' + simple: Global___ComparisonJoinKey.SimpleComparisonType.ValueType + """One of the simple comparison behaviors is used""" custom_function_reference: builtins.int - 'A custom comparison behavior is used. This can happen, for example, when using\n collations, where we might want to do something like a case-insensitive comparison.\n\n This must be a binary function with a boolean return type\n ' - - def __init__(self, *, simple: global___ComparisonJoinKey.SimpleComparisonType.ValueType=..., custom_function_reference: builtins.int=...) -> None: - ... + """A custom comparison behavior is used. This can happen, for example, when using + collations, where we might want to do something like a case-insensitive comparison. - def HasField(self, field_name: typing.Literal['custom_function_reference', b'custom_function_reference', 'inner_type', b'inner_type', 'simple', b'simple']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['custom_function_reference', b'custom_function_reference', 'inner_type', b'inner_type', 'simple', b'simple']) -> None: - ... + This must be a binary function with a boolean return type + """ + def __init__( + self, + *, + simple: Global___ComparisonJoinKey.SimpleComparisonType.ValueType = ..., + custom_function_reference: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["custom_function_reference", b"custom_function_reference", "inner_type", b"inner_type", "simple", b"simple"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["custom_function_reference", b"custom_function_reference", "inner_type", b"inner_type", "simple", b"simple"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_inner_type: typing_extensions.TypeAlias = typing.Literal["simple", "custom_function_reference"] + _WhichOneofArgType_inner_type: typing_extensions.TypeAlias = typing.Literal["inner_type", b"inner_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_inner_type) -> _WhichOneofReturnType_inner_type | None: ... - def WhichOneof(self, oneof_group: typing.Literal['inner_type', b'inner_type']) -> typing.Literal['simple', 'custom_function_reference'] | None: - ... LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int COMPARISON_FIELD_NUMBER: builtins.int - @property - def left(self) -> global___Expression.FieldReference: + def left(self) -> Global___Expression.FieldReference: """The key to compare from the left table""" @property - def right(self) -> global___Expression.FieldReference: + def right(self) -> Global___Expression.FieldReference: """The key to compare from the right table""" @property - def comparison(self) -> global___ComparisonJoinKey.ComparisonType: + def comparison(self) -> Global___ComparisonJoinKey.ComparisonType: """Describes how to compare the two keys""" - def __init__(self, *, left: global___Expression.FieldReference | None=..., right: global___Expression.FieldReference | None=..., comparison: global___ComparisonJoinKey.ComparisonType | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['comparison', b'comparison', 'left', b'left', 'right', b'right']) -> builtins.bool: - ... + def __init__( + self, + *, + left: Global___Expression.FieldReference | None = ..., + right: Global___Expression.FieldReference | None = ..., + comparison: Global___ComparisonJoinKey.ComparisonType | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["comparison", b"comparison", "left", b"left", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["comparison", b"comparison", "left", b"left", "right", b"right"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['comparison', b'comparison', 'left', b'left', 'right', b'right']) -> None: - ... -global___ComparisonJoinKey = ComparisonJoinKey +Global___ComparisonJoinKey: typing_extensions.TypeAlias = ComparisonJoinKey @typing.final class HashJoinRel(google.protobuf.message.Message): @@ -2163,59 +2295,59 @@ class HashJoinRel(google.protobuf.message.Message): Two rows are a match if the comparison function returns true for all keys """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _JoinType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _JoinTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HashJoinRel._JoinType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - JOIN_TYPE_UNSPECIFIED: HashJoinRel._JoinType.ValueType - JOIN_TYPE_INNER: HashJoinRel._JoinType.ValueType - JOIN_TYPE_OUTER: HashJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT: HashJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT: HashJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: HashJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: HashJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: HashJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: HashJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: HashJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: HashJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_MARK: HashJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: HashJoinRel._JoinType.ValueType - - class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): - ... - JOIN_TYPE_UNSPECIFIED: HashJoinRel.JoinType.ValueType - JOIN_TYPE_INNER: HashJoinRel.JoinType.ValueType - JOIN_TYPE_OUTER: HashJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT: HashJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT: HashJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: HashJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: HashJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: HashJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: HashJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: HashJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: HashJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_MARK: HashJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: HashJoinRel.JoinType.ValueType + JOIN_TYPE_UNSPECIFIED: HashJoinRel._JoinType.ValueType # 0 + JOIN_TYPE_INNER: HashJoinRel._JoinType.ValueType # 1 + JOIN_TYPE_OUTER: HashJoinRel._JoinType.ValueType # 2 + JOIN_TYPE_LEFT: HashJoinRel._JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: HashJoinRel._JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: HashJoinRel._JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: HashJoinRel._JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: HashJoinRel._JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: HashJoinRel._JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: HashJoinRel._JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: HashJoinRel._JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: HashJoinRel._JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: HashJoinRel._JoinType.ValueType # 12 + + class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): ... + JOIN_TYPE_UNSPECIFIED: HashJoinRel.JoinType.ValueType # 0 + JOIN_TYPE_INNER: HashJoinRel.JoinType.ValueType # 1 + JOIN_TYPE_OUTER: HashJoinRel.JoinType.ValueType # 2 + JOIN_TYPE_LEFT: HashJoinRel.JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: HashJoinRel.JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: HashJoinRel.JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: HashJoinRel.JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: HashJoinRel.JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: HashJoinRel.JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: HashJoinRel.JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: HashJoinRel.JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: HashJoinRel.JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: HashJoinRel.JoinType.ValueType # 12 class _BuildInput: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _BuildInputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HashJoinRel._BuildInput.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - BUILD_INPUT_UNSPECIFIED: HashJoinRel._BuildInput.ValueType - BUILD_INPUT_LEFT: HashJoinRel._BuildInput.ValueType - BUILD_INPUT_RIGHT: HashJoinRel._BuildInput.ValueType - - class BuildInput(_BuildInput, metaclass=_BuildInputEnumTypeWrapper): - ... - BUILD_INPUT_UNSPECIFIED: HashJoinRel.BuildInput.ValueType - BUILD_INPUT_LEFT: HashJoinRel.BuildInput.ValueType - BUILD_INPUT_RIGHT: HashJoinRel.BuildInput.ValueType + BUILD_INPUT_UNSPECIFIED: HashJoinRel._BuildInput.ValueType # 0 + BUILD_INPUT_LEFT: HashJoinRel._BuildInput.ValueType # 1 + BUILD_INPUT_RIGHT: HashJoinRel._BuildInput.ValueType # 2 + + class BuildInput(_BuildInput, metaclass=_BuildInputEnumTypeWrapper): ... + BUILD_INPUT_UNSPECIFIED: HashJoinRel.BuildInput.ValueType # 0 + BUILD_INPUT_LEFT: HashJoinRel.BuildInput.ValueType # 1 + BUILD_INPUT_RIGHT: HashJoinRel.BuildInput.ValueType # 2 + COMMON_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int @@ -2226,35 +2358,26 @@ class HashJoinRel(google.protobuf.message.Message): TYPE_FIELD_NUMBER: builtins.int BUILD_INPUT_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - type: global___HashJoinRel.JoinType.ValueType - build_input: global___HashJoinRel.BuildInput.ValueType - 'Specifies which side of input to build the hash table for this hash join. Default is `BUILD_INPUT_RIGHT`.' - + type: Global___HashJoinRel.JoinType.ValueType + build_input: Global___HashJoinRel.BuildInput.ValueType + """Specifies which side of input to build the hash table for this hash join. Default is `BUILD_INPUT_RIGHT`.""" @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def left(self) -> global___Rel: - ... - + def left(self) -> Global___Rel: ... @property - def right(self) -> global___Rel: - ... - + def right(self) -> Global___Rel: ... @property - def left_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.FieldReference]: + def left_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.FieldReference]: """These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ """ @property - def right_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.FieldReference]: - ... - + def right_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.FieldReference]: ... @property - def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ComparisonJoinKey]: + def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ComparisonJoinKey]: """One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). @@ -2271,65 +2394,73 @@ class HashJoinRel(google.protobuf.message.Message): """ @property - def post_join_filter(self) -> global___Expression: - ... - - @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., left: global___Rel | None=..., right: global___Rel | None=..., left_keys: collections.abc.Iterable[global___Expression.FieldReference] | None=..., right_keys: collections.abc.Iterable[global___Expression.FieldReference] | None=..., keys: collections.abc.Iterable[global___ComparisonJoinKey] | None=..., post_join_filter: global___Expression | None=..., type: global___HashJoinRel.JoinType.ValueType=..., build_input: global___HashJoinRel.BuildInput.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'left', b'left', 'post_join_filter', b'post_join_filter', 'right', b'right']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'build_input', b'build_input', 'common', b'common', 'keys', b'keys', 'left', b'left', 'left_keys', b'left_keys', 'post_join_filter', b'post_join_filter', 'right', b'right', 'right_keys', b'right_keys', 'type', b'type']) -> None: - ... -global___HashJoinRel = HashJoinRel + def post_join_filter(self) -> Global___Expression: ... + @property + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + left: Global___Rel | None = ..., + right: Global___Rel | None = ..., + left_keys: collections.abc.Iterable[Global___Expression.FieldReference] | None = ..., + right_keys: collections.abc.Iterable[Global___Expression.FieldReference] | None = ..., + keys: collections.abc.Iterable[Global___ComparisonJoinKey] | None = ..., + post_join_filter: Global___Expression | None = ..., + type: Global___HashJoinRel.JoinType.ValueType = ..., + build_input: Global___HashJoinRel.BuildInput.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "left", b"left", "post_join_filter", b"post_join_filter", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "build_input", b"build_input", "common", b"common", "keys", b"keys", "left", b"left", "left_keys", b"left_keys", "post_join_filter", b"post_join_filter", "right", b"right", "right_keys", b"right_keys", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___HashJoinRel: typing_extensions.TypeAlias = HashJoinRel @typing.final class MergeJoinRel(google.protobuf.message.Message): """The merge equijoin does a join by taking advantage of two sets that are sorted on the join keys. This allows the join operation to be done in a streaming fashion. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _JoinType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _JoinTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[MergeJoinRel._JoinType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - JOIN_TYPE_UNSPECIFIED: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_INNER: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_OUTER: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_MARK: MergeJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: MergeJoinRel._JoinType.ValueType - - class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): - ... - JOIN_TYPE_UNSPECIFIED: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_INNER: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_OUTER: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_MARK: MergeJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: MergeJoinRel.JoinType.ValueType + JOIN_TYPE_UNSPECIFIED: MergeJoinRel._JoinType.ValueType # 0 + JOIN_TYPE_INNER: MergeJoinRel._JoinType.ValueType # 1 + JOIN_TYPE_OUTER: MergeJoinRel._JoinType.ValueType # 2 + JOIN_TYPE_LEFT: MergeJoinRel._JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: MergeJoinRel._JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: MergeJoinRel._JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: MergeJoinRel._JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: MergeJoinRel._JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: MergeJoinRel._JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: MergeJoinRel._JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: MergeJoinRel._JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: MergeJoinRel._JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: MergeJoinRel._JoinType.ValueType # 12 + + class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): ... + JOIN_TYPE_UNSPECIFIED: MergeJoinRel.JoinType.ValueType # 0 + JOIN_TYPE_INNER: MergeJoinRel.JoinType.ValueType # 1 + JOIN_TYPE_OUTER: MergeJoinRel.JoinType.ValueType # 2 + JOIN_TYPE_LEFT: MergeJoinRel.JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: MergeJoinRel.JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: MergeJoinRel.JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: MergeJoinRel.JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: MergeJoinRel.JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: MergeJoinRel.JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: MergeJoinRel.JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: MergeJoinRel.JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: MergeJoinRel.JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: MergeJoinRel.JoinType.ValueType # 12 + COMMON_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int @@ -2339,33 +2470,24 @@ class MergeJoinRel(google.protobuf.message.Message): POST_JOIN_FILTER_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - type: global___MergeJoinRel.JoinType.ValueType - + type: Global___MergeJoinRel.JoinType.ValueType @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def left(self) -> global___Rel: - ... - + def left(self) -> Global___Rel: ... @property - def right(self) -> global___Rel: - ... - + def right(self) -> Global___Rel: ... @property - def left_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.FieldReference]: + def left_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.FieldReference]: """These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ """ @property - def right_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.FieldReference]: - ... - + def right_keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.FieldReference]: ... @property - def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ComparisonJoinKey]: + def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ComparisonJoinKey]: """One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). @@ -2384,144 +2506,154 @@ class MergeJoinRel(google.protobuf.message.Message): """ @property - def post_join_filter(self) -> global___Expression: - ... - - @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., left: global___Rel | None=..., right: global___Rel | None=..., left_keys: collections.abc.Iterable[global___Expression.FieldReference] | None=..., right_keys: collections.abc.Iterable[global___Expression.FieldReference] | None=..., keys: collections.abc.Iterable[global___ComparisonJoinKey] | None=..., post_join_filter: global___Expression | None=..., type: global___MergeJoinRel.JoinType.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'left', b'left', 'post_join_filter', b'post_join_filter', 'right', b'right']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'keys', b'keys', 'left', b'left', 'left_keys', b'left_keys', 'post_join_filter', b'post_join_filter', 'right', b'right', 'right_keys', b'right_keys', 'type', b'type']) -> None: - ... -global___MergeJoinRel = MergeJoinRel + def post_join_filter(self) -> Global___Expression: ... + @property + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + left: Global___Rel | None = ..., + right: Global___Rel | None = ..., + left_keys: collections.abc.Iterable[Global___Expression.FieldReference] | None = ..., + right_keys: collections.abc.Iterable[Global___Expression.FieldReference] | None = ..., + keys: collections.abc.Iterable[Global___ComparisonJoinKey] | None = ..., + post_join_filter: Global___Expression | None = ..., + type: Global___MergeJoinRel.JoinType.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "left", b"left", "post_join_filter", b"post_join_filter", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "keys", b"keys", "left", b"left", "left_keys", b"left_keys", "post_join_filter", b"post_join_filter", "right", b"right", "right_keys", b"right_keys", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___MergeJoinRel: typing_extensions.TypeAlias = MergeJoinRel @typing.final class NestedLoopJoinRel(google.protobuf.message.Message): """The nested loop join (NLJ) operator will hold the entire right input and iterate over it using the left input, evaluating the join expression on the Cartesian product of all rows. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _JoinType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _JoinTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NestedLoopJoinRel._JoinType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - JOIN_TYPE_UNSPECIFIED: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_INNER: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_OUTER: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_LEFT_MARK: NestedLoopJoinRel._JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: NestedLoopJoinRel._JoinType.ValueType - - class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): - ... - JOIN_TYPE_UNSPECIFIED: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_INNER: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_OUTER: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SEMI: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SEMI: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_ANTI: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_ANTI: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_SINGLE: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_SINGLE: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_LEFT_MARK: NestedLoopJoinRel.JoinType.ValueType - JOIN_TYPE_RIGHT_MARK: NestedLoopJoinRel.JoinType.ValueType + JOIN_TYPE_UNSPECIFIED: NestedLoopJoinRel._JoinType.ValueType # 0 + JOIN_TYPE_INNER: NestedLoopJoinRel._JoinType.ValueType # 1 + JOIN_TYPE_OUTER: NestedLoopJoinRel._JoinType.ValueType # 2 + JOIN_TYPE_LEFT: NestedLoopJoinRel._JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: NestedLoopJoinRel._JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: NestedLoopJoinRel._JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: NestedLoopJoinRel._JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: NestedLoopJoinRel._JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: NestedLoopJoinRel._JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: NestedLoopJoinRel._JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: NestedLoopJoinRel._JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: NestedLoopJoinRel._JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: NestedLoopJoinRel._JoinType.ValueType # 12 + + class JoinType(_JoinType, metaclass=_JoinTypeEnumTypeWrapper): ... + JOIN_TYPE_UNSPECIFIED: NestedLoopJoinRel.JoinType.ValueType # 0 + JOIN_TYPE_INNER: NestedLoopJoinRel.JoinType.ValueType # 1 + JOIN_TYPE_OUTER: NestedLoopJoinRel.JoinType.ValueType # 2 + JOIN_TYPE_LEFT: NestedLoopJoinRel.JoinType.ValueType # 3 + JOIN_TYPE_RIGHT: NestedLoopJoinRel.JoinType.ValueType # 4 + JOIN_TYPE_LEFT_SEMI: NestedLoopJoinRel.JoinType.ValueType # 5 + JOIN_TYPE_RIGHT_SEMI: NestedLoopJoinRel.JoinType.ValueType # 6 + JOIN_TYPE_LEFT_ANTI: NestedLoopJoinRel.JoinType.ValueType # 7 + JOIN_TYPE_RIGHT_ANTI: NestedLoopJoinRel.JoinType.ValueType # 8 + JOIN_TYPE_LEFT_SINGLE: NestedLoopJoinRel.JoinType.ValueType # 9 + JOIN_TYPE_RIGHT_SINGLE: NestedLoopJoinRel.JoinType.ValueType # 10 + JOIN_TYPE_LEFT_MARK: NestedLoopJoinRel.JoinType.ValueType # 11 + JOIN_TYPE_RIGHT_MARK: NestedLoopJoinRel.JoinType.ValueType # 12 + COMMON_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int EXPRESSION_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_FIELD_NUMBER: builtins.int - type: global___NestedLoopJoinRel.JoinType.ValueType - + type: Global___NestedLoopJoinRel.JoinType.ValueType @property - def common(self) -> global___RelCommon: - ... - + def common(self) -> Global___RelCommon: ... @property - def left(self) -> global___Rel: - ... - + def left(self) -> Global___Rel: ... @property - def right(self) -> global___Rel: - ... - + def right(self) -> Global___Rel: ... @property - def expression(self) -> global___Expression: + def expression(self) -> Global___Expression: """optional, defaults to true (a cartesian join)""" @property - def advanced_extension(self) -> proto.extensions.extensions_pb2.AdvancedExtension: - ... - - def __init__(self, *, common: global___RelCommon | None=..., left: global___Rel | None=..., right: global___Rel | None=..., expression: global___Expression | None=..., type: global___NestedLoopJoinRel.JoinType.ValueType=..., advanced_extension: proto.extensions.extensions_pb2.AdvancedExtension | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'expression', b'expression', 'left', b'left', 'right', b'right']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extension', b'advanced_extension', 'common', b'common', 'expression', b'expression', 'left', b'left', 'right', b'right', 'type', b'type']) -> None: - ... -global___NestedLoopJoinRel = NestedLoopJoinRel + def advanced_extension(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: ... + def __init__( + self, + *, + common: Global___RelCommon | None = ..., + left: Global___Rel | None = ..., + right: Global___Rel | None = ..., + expression: Global___Expression | None = ..., + type: Global___NestedLoopJoinRel.JoinType.ValueType = ..., + advanced_extension: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "expression", b"expression", "left", b"left", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension", b"advanced_extension", "common", b"common", "expression", b"expression", "left", b"left", "right", b"right", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___NestedLoopJoinRel: typing_extensions.TypeAlias = NestedLoopJoinRel @typing.final class FunctionArgument(google.protobuf.message.Message): """The argument of a function""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ENUM_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int enum: builtins.str - - @property - def type(self) -> proto.type_pb2.Type: - ... - @property - def value(self) -> global___Expression: - ... - - def __init__(self, *, enum: builtins.str=..., type: proto.type_pb2.Type | None=..., value: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['arg_type', b'arg_type', 'enum', b'enum', 'type', b'type', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arg_type', b'arg_type', 'enum', b'enum', 'type', b'type', 'value', b'value']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['arg_type', b'arg_type']) -> typing.Literal['enum', 'type', 'value'] | None: - ... -global___FunctionArgument = FunctionArgument + def type(self) -> substrait.gen.proto.type_pb2.Type: ... + @property + def value(self) -> Global___Expression: ... + def __init__( + self, + *, + enum: builtins.str = ..., + type: substrait.gen.proto.type_pb2.Type | None = ..., + value: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg_type", b"arg_type", "enum", b"enum", "type", b"type", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg_type", b"arg_type", "enum", b"enum", "type", b"type", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_arg_type: typing_extensions.TypeAlias = typing.Literal["enum", "type", "value"] + _WhichOneofArgType_arg_type: typing_extensions.TypeAlias = typing.Literal["arg_type", b"arg_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_arg_type) -> _WhichOneofReturnType_arg_type | None: ... + +Global___FunctionArgument: typing_extensions.TypeAlias = FunctionArgument @typing.final class FunctionOption(google.protobuf.message.Message): """An optional function argument. Typically used for specifying behavior in invalid or corner cases. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int PREFERENCE_FIELD_NUMBER: builtins.int name: builtins.str - 'Name of the option to set. If the consumer does not recognize the\n option, it must reject the plan. The name is matched case-insensitively\n with option names defined for the function.\n ' - + """Name of the option to set. If the consumer does not recognize the + option, it must reject the plan. The name is matched case-insensitively + with option names defined for the function. + """ @property def preference(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of behavior options allowed by the producer. At least one must be @@ -2532,46 +2664,53 @@ class FunctionOption(google.protobuf.message.Message): match one of the option values defined for the option. """ - def __init__(self, *, name: builtins.str=..., preference: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... + def __init__( + self, + *, + name: builtins.str = ..., + preference: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name", "preference", b"preference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['name', b'name', 'preference', b'preference']) -> None: - ... -global___FunctionOption = FunctionOption +Global___FunctionOption: typing_extensions.TypeAlias = FunctionOption @typing.final class Expression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @deprecated("""This message has been marked as deprecated using proto message options.""") @typing.final class Enum(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + @deprecated("""This message has been marked as deprecated using proto message options.""") @typing.final class Empty(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... + SPECIFIED_FIELD_NUMBER: builtins.int UNSPECIFIED_FIELD_NUMBER: builtins.int specified: builtins.str - @property - def unspecified(self) -> global___Expression.Enum.Empty: - ... - - def __init__(self, *, specified: builtins.str=..., unspecified: global___Expression.Enum.Empty | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['enum_kind', b'enum_kind', 'specified', b'specified', 'unspecified', b'unspecified']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['enum_kind', b'enum_kind', 'specified', b'specified', 'unspecified', b'unspecified']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['enum_kind', b'enum_kind']) -> typing.Literal['specified', 'unspecified'] | None: - ... + def unspecified(self) -> Global___Expression.Enum.Empty: ... + def __init__( + self, + *, + specified: builtins.str = ..., + unspecified: Global___Expression.Enum.Empty | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["enum_kind", b"enum_kind", "specified", b"specified", "unspecified", b"unspecified"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["enum_kind", b"enum_kind", "specified", b"specified", "unspecified", b"unspecified"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_enum_kind: typing_extensions.TypeAlias = typing.Literal["specified", "unspecified"] + _WhichOneofArgType_enum_kind: typing_extensions.TypeAlias = typing.Literal["enum_kind", b"enum_kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_enum_kind) -> _WhichOneofReturnType_enum_kind | None: ... @typing.final class Literal(google.protobuf.message.Message): @@ -2580,67 +2719,84 @@ class Expression(google.protobuf.message.Message): @typing.final class VarChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int LENGTH_FIELD_NUMBER: builtins.int value: builtins.str length: builtins.int - - def __init__(self, *, value: builtins.str=..., length: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'value', b'value']) -> None: - ... + def __init__( + self, + *, + value: builtins.str = ..., + length: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Decimal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int SCALE_FIELD_NUMBER: builtins.int value: builtins.bytes - 'little-endian twos-complement integer representation of complete value\n (ignoring precision) Always 16 bytes in length\n ' + """little-endian twos-complement integer representation of complete value + (ignoring precision) Always 16 bytes in length + """ precision: builtins.int - 'The maximum number of digits allowed in the value.\n the maximum precision is 38.\n ' + """The maximum number of digits allowed in the value. + the maximum precision is 38. + """ scale: builtins.int - 'declared scale of decimal literal' - - def __init__(self, *, value: builtins.bytes=..., precision: builtins.int=..., scale: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['precision', b'precision', 'scale', b'scale', 'value', b'value']) -> None: - ... + """declared scale of decimal literal""" + def __init__( + self, + *, + value: builtins.bytes = ..., + precision: builtins.int = ..., + scale: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision", "scale", b"scale", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class PrecisionTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds""" value: builtins.int - 'Time passed since midnight in precision units.' - - def __init__(self, *, precision: builtins.int=..., value: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['precision', b'precision', 'value', b'value']) -> None: - ... + """Time passed since midnight in precision units.""" + def __init__( + self, + *, + precision: builtins.int = ..., + value: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class PrecisionTimestamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds""" value: builtins.int - 'Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp' - - def __init__(self, *, precision: builtins.int=..., value: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['precision', b'precision', 'value', b'value']) -> None: - ... + """Time passed since 1970-01-01 00:00:00.000000 in UTC for PrecisionTimestampTZ and unspecified timezone for PrecisionTimestamp""" + def __init__( + self, + *, + precision: builtins.int = ..., + value: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Map(google.protobuf.message.Message): @@ -2649,54 +2805,56 @@ class Expression(google.protobuf.message.Message): @typing.final class KeyValue(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___Expression.Literal: - ... - + def key(self) -> Global___Expression.Literal: ... @property - def value(self) -> global___Expression.Literal: - ... + def value(self) -> Global___Expression.Literal: ... + def __init__( + self, + *, + key: Global___Expression.Literal | None = ..., + value: Global___Expression.Literal | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, key: global___Expression.Literal | None=..., value: global___Expression.Literal | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None: - ... KEY_VALUES_FIELD_NUMBER: builtins.int - @property - def key_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Literal.Map.KeyValue]: - ... - - def __init__(self, *, key_values: collections.abc.Iterable[global___Expression.Literal.Map.KeyValue] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['key_values', b'key_values']) -> None: - ... + def key_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Literal.Map.KeyValue]: ... + def __init__( + self, + *, + key_values: collections.abc.Iterable[Global___Expression.Literal.Map.KeyValue] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key_values", b"key_values"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntervalYearToMonth(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + YEARS_FIELD_NUMBER: builtins.int MONTHS_FIELD_NUMBER: builtins.int years: builtins.int months: builtins.int - - def __init__(self, *, years: builtins.int=..., months: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['months', b'months', 'years', b'years']) -> None: - ... + def __init__( + self, + *, + years: builtins.int = ..., + months: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["months", b"months", "years", b"years"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntervalDayToSecond(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + DAYS_FIELD_NUMBER: builtins.int SECONDS_FIELD_NUMBER: builtins.int MICROSECONDS_FIELD_NUMBER: builtins.int @@ -2705,89 +2863,95 @@ class Expression(google.protobuf.message.Message): days: builtins.int seconds: builtins.int microseconds: builtins.int - 'use precision and subseconds below, they cover and replace microseconds.' + """use precision and subseconds below, they cover and replace microseconds.""" precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds. Should be used with subseconds below.""" subseconds: builtins.int - 'the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.' - - def __init__(self, *, days: builtins.int=..., seconds: builtins.int=..., microseconds: builtins.int=..., precision: builtins.int=..., subseconds: builtins.int=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['microseconds', b'microseconds', 'precision', b'precision', 'precision_mode', b'precision_mode']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['days', b'days', 'microseconds', b'microseconds', 'precision', b'precision', 'precision_mode', b'precision_mode', 'seconds', b'seconds', 'subseconds', b'subseconds']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['precision_mode', b'precision_mode']) -> typing.Literal['microseconds', 'precision'] | None: - ... + """the number of fractional seconds using 1e(-precision) units. Should only be used with precision field, not microseconds.""" + def __init__( + self, + *, + days: builtins.int = ..., + seconds: builtins.int = ..., + microseconds: builtins.int = ..., + precision: builtins.int = ..., + subseconds: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["microseconds", b"microseconds", "precision", b"precision", "precision_mode", b"precision_mode"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["days", b"days", "microseconds", b"microseconds", "precision", b"precision", "precision_mode", b"precision_mode", "seconds", b"seconds", "subseconds", b"subseconds"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_precision_mode: typing_extensions.TypeAlias = typing.Literal["microseconds", "precision"] + _WhichOneofArgType_precision_mode: typing_extensions.TypeAlias = typing.Literal["precision_mode", b"precision_mode"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_precision_mode) -> _WhichOneofReturnType_precision_mode | None: ... @typing.final class IntervalCompound(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + INTERVAL_YEAR_TO_MONTH_FIELD_NUMBER: builtins.int INTERVAL_DAY_TO_SECOND_FIELD_NUMBER: builtins.int - @property - def interval_year_to_month(self) -> global___Expression.Literal.IntervalYearToMonth: - ... - + def interval_year_to_month(self) -> Global___Expression.Literal.IntervalYearToMonth: ... @property - def interval_day_to_second(self) -> global___Expression.Literal.IntervalDayToSecond: - ... - - def __init__(self, *, interval_year_to_month: global___Expression.Literal.IntervalYearToMonth | None=..., interval_day_to_second: global___Expression.Literal.IntervalDayToSecond | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['interval_day_to_second', b'interval_day_to_second', 'interval_year_to_month', b'interval_year_to_month']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['interval_day_to_second', b'interval_day_to_second', 'interval_year_to_month', b'interval_year_to_month']) -> None: - ... + def interval_day_to_second(self) -> Global___Expression.Literal.IntervalDayToSecond: ... + def __init__( + self, + *, + interval_year_to_month: Global___Expression.Literal.IntervalYearToMonth | None = ..., + interval_day_to_second: Global___Expression.Literal.IntervalDayToSecond | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["interval_day_to_second", b"interval_day_to_second", "interval_year_to_month", b"interval_year_to_month"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["interval_day_to_second", b"interval_day_to_second", "interval_year_to_month", b"interval_year_to_month"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Struct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - FIELDS_FIELD_NUMBER: builtins.int + FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Literal]: + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Literal]: """A possibly heterogeneously typed list of literals""" - def __init__(self, *, fields: collections.abc.Iterable[global___Expression.Literal] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['fields', b'fields']) -> None: - ... + def __init__( + self, + *, + fields: collections.abc.Iterable[Global___Expression.Literal] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["fields", b"fields"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class List(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - VALUES_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Literal]: + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Literal]: """A homogeneously typed list of literals""" - def __init__(self, *, values: collections.abc.Iterable[global___Expression.Literal] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['values', b'values']) -> None: - ... + def __init__( + self, + *, + values: collections.abc.Iterable[Global___Expression.Literal] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["values", b"values"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class UserDefined(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_REFERENCE_FIELD_NUMBER: builtins.int TYPE_PARAMETERS_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int STRUCT_FIELD_NUMBER: builtins.int type_reference: builtins.int - 'points to a type_anchor defined in this plan' - + """points to a type_anchor defined in this plan""" @property - def type_parameters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.type_pb2.Type.Parameter]: + def type_parameters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.type_pb2.Type.Parameter]: """The parameters to be bound to the type class, if the type class is parameterizable. """ @@ -2797,20 +2961,25 @@ class Expression(google.protobuf.message.Message): """the value of the literal, serialized using some type-specific protobuf message""" @property - def struct(self) -> global___Expression.Literal.Struct: + def struct(self) -> Global___Expression.Literal.Struct: """the value of the literal, serialized using the structure definition in its declaration""" - def __init__(self, *, type_reference: builtins.int=..., type_parameters: collections.abc.Iterable[proto.type_pb2.Type.Parameter] | None=..., value: google.protobuf.any_pb2.Any | None=..., struct: global___Expression.Literal.Struct | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['struct', b'struct', 'val', b'val', 'value', b'value']) -> builtins.bool: - ... + def __init__( + self, + *, + type_reference: builtins.int = ..., + type_parameters: collections.abc.Iterable[substrait.gen.proto.type_pb2.Type.Parameter] | None = ..., + value: google.protobuf.any_pb2.Any | None = ..., + struct: Global___Expression.Literal.Struct | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct", b"struct", "val", b"val", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct", b"struct", "type_parameters", b"type_parameters", "type_reference", b"type_reference", "val", b"val", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_val: typing_extensions.TypeAlias = typing.Literal["value", "struct"] + _WhichOneofArgType_val: typing_extensions.TypeAlias = typing.Literal["val", b"val"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_val) -> _WhichOneofReturnType_val | None: ... - def ClearField(self, field_name: typing.Literal['struct', b'struct', 'type_parameters', b'type_parameters', 'type_reference', b'type_reference', 'val', b'val', 'value', b'value']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['val', b'val']) -> typing.Literal['value', 'struct'] | None: - ... BOOLEAN_FIELD_NUMBER: builtins.int I8_FIELD_NUMBER: builtins.int I16_FIELD_NUMBER: builtins.int @@ -2854,96 +3023,117 @@ class Expression(google.protobuf.message.Message): string: builtins.str binary: builtins.bytes timestamp: builtins.int - 'Timestamp in units of microseconds since the UNIX epoch.\n Deprecated in favor of `precision_timestamp`.\n ' + """Timestamp in units of microseconds since the UNIX epoch. + Deprecated in favor of `precision_timestamp`. + """ date: builtins.int - 'Date in units of days since the UNIX epoch.' + """Date in units of days since the UNIX epoch.""" time: builtins.int - 'Time in units of microseconds past midnight.\n Deprecated in favor of `precision_time`.\n ' + """Time in units of microseconds past midnight. + Deprecated in favor of `precision_time`. + """ fixed_char: builtins.str fixed_binary: builtins.bytes timestamp_tz: builtins.int - 'Timestamp in units of microseconds since the UNIX epoch.\n Deprecated in favor of `precision_timestamp_tz`\n ' + """Timestamp in units of microseconds since the UNIX epoch. + Deprecated in favor of `precision_timestamp_tz` + """ uuid: builtins.bytes nullable: builtins.bool - 'Whether the literal_type above should be treated as a nullable type.\n Applies to all members of the literal_type oneof EXCEPT:\n * Type null (must be nullable by definition)\n * Type.List empty_list (use Type.List::nullability)\n * Type.Map empty_map (use Type.Map::nullability)\n ' + """Whether the literal_type above should be treated as a nullable type. + Applies to all members of the literal_type oneof EXCEPT: + * Type null (must be nullable by definition) + * Type.List empty_list (use Type.List::nullability) + * Type.Map empty_map (use Type.Map::nullability) + """ type_variation_reference: builtins.int - 'optionally points to a type_variation_anchor defined in this plan.\n Applies to all members of union other than the Typed null (which should\n directly declare the type variation).\n ' - + """optionally points to a type_variation_anchor defined in this plan. + Applies to all members of union other than the Typed null (which should + directly declare the type variation). + """ @property - def interval_year_to_month(self) -> global___Expression.Literal.IntervalYearToMonth: - ... - + def interval_year_to_month(self) -> Global___Expression.Literal.IntervalYearToMonth: ... @property - def interval_day_to_second(self) -> global___Expression.Literal.IntervalDayToSecond: - ... - + def interval_day_to_second(self) -> Global___Expression.Literal.IntervalDayToSecond: ... @property - def interval_compound(self) -> global___Expression.Literal.IntervalCompound: - ... - + def interval_compound(self) -> Global___Expression.Literal.IntervalCompound: ... @property - def var_char(self) -> global___Expression.Literal.VarChar: - ... - + def var_char(self) -> Global___Expression.Literal.VarChar: ... @property - def decimal(self) -> global___Expression.Literal.Decimal: - ... - + def decimal(self) -> Global___Expression.Literal.Decimal: ... @property - def precision_time(self) -> global___Expression.Literal.PrecisionTime: + def precision_time(self) -> Global___Expression.Literal.PrecisionTime: """Time in precision units past midnight.""" @property - def precision_timestamp(self) -> global___Expression.Literal.PrecisionTimestamp: - ... - + def precision_timestamp(self) -> Global___Expression.Literal.PrecisionTimestamp: ... @property - def precision_timestamp_tz(self) -> global___Expression.Literal.PrecisionTimestamp: - ... - + def precision_timestamp_tz(self) -> Global___Expression.Literal.PrecisionTimestamp: ... @property - def struct(self) -> global___Expression.Literal.Struct: - ... - + def struct(self) -> Global___Expression.Literal.Struct: ... @property - def map(self) -> global___Expression.Literal.Map: - ... - + def map(self) -> Global___Expression.Literal.Map: ... @property - def null(self) -> proto.type_pb2.Type: + def null(self) -> substrait.gen.proto.type_pb2.Type: """a typed null literal""" @property - def list(self) -> global___Expression.Literal.List: - ... - + def list(self) -> Global___Expression.Literal.List: ... @property - def empty_list(self) -> proto.type_pb2.Type.List: - ... - + def empty_list(self) -> substrait.gen.proto.type_pb2.Type.List: ... @property - def empty_map(self) -> proto.type_pb2.Type.Map: - ... - + def empty_map(self) -> substrait.gen.proto.type_pb2.Type.Map: ... @property - def user_defined(self) -> global___Expression.Literal.UserDefined: - ... - - def __init__(self, *, boolean: builtins.bool=..., i8: builtins.int=..., i16: builtins.int=..., i32: builtins.int=..., i64: builtins.int=..., fp32: builtins.float=..., fp64: builtins.float=..., string: builtins.str=..., binary: builtins.bytes=..., timestamp: builtins.int=..., date: builtins.int=..., time: builtins.int=..., interval_year_to_month: global___Expression.Literal.IntervalYearToMonth | None=..., interval_day_to_second: global___Expression.Literal.IntervalDayToSecond | None=..., interval_compound: global___Expression.Literal.IntervalCompound | None=..., fixed_char: builtins.str=..., var_char: global___Expression.Literal.VarChar | None=..., fixed_binary: builtins.bytes=..., decimal: global___Expression.Literal.Decimal | None=..., precision_time: global___Expression.Literal.PrecisionTime | None=..., precision_timestamp: global___Expression.Literal.PrecisionTimestamp | None=..., precision_timestamp_tz: global___Expression.Literal.PrecisionTimestamp | None=..., struct: global___Expression.Literal.Struct | None=..., map: global___Expression.Literal.Map | None=..., timestamp_tz: builtins.int=..., uuid: builtins.bytes=..., null: proto.type_pb2.Type | None=..., list: global___Expression.Literal.List | None=..., empty_list: proto.type_pb2.Type.List | None=..., empty_map: proto.type_pb2.Type.Map | None=..., user_defined: global___Expression.Literal.UserDefined | None=..., nullable: builtins.bool=..., type_variation_reference: builtins.int=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['binary', b'binary', 'boolean', b'boolean', 'date', b'date', 'decimal', b'decimal', 'empty_list', b'empty_list', 'empty_map', b'empty_map', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day_to_second', b'interval_day_to_second', 'interval_year_to_month', b'interval_year_to_month', 'list', b'list', 'literal_type', b'literal_type', 'map', b'map', 'null', b'null', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'user_defined', b'user_defined', 'uuid', b'uuid', 'var_char', b'var_char']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['binary', b'binary', 'boolean', b'boolean', 'date', b'date', 'decimal', b'decimal', 'empty_list', b'empty_list', 'empty_map', b'empty_map', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day_to_second', b'interval_day_to_second', 'interval_year_to_month', b'interval_year_to_month', 'list', b'list', 'literal_type', b'literal_type', 'map', b'map', 'null', b'null', 'nullable', b'nullable', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'type_variation_reference', b'type_variation_reference', 'user_defined', b'user_defined', 'uuid', b'uuid', 'var_char', b'var_char']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['literal_type', b'literal_type']) -> typing.Literal['boolean', 'i8', 'i16', 'i32', 'i64', 'fp32', 'fp64', 'string', 'binary', 'timestamp', 'date', 'time', 'interval_year_to_month', 'interval_day_to_second', 'interval_compound', 'fixed_char', 'var_char', 'fixed_binary', 'decimal', 'precision_time', 'precision_timestamp', 'precision_timestamp_tz', 'struct', 'map', 'timestamp_tz', 'uuid', 'null', 'list', 'empty_list', 'empty_map', 'user_defined'] | None: - ... + def user_defined(self) -> Global___Expression.Literal.UserDefined: ... + def __init__( + self, + *, + boolean: builtins.bool = ..., + i8: builtins.int = ..., + i16: builtins.int = ..., + i32: builtins.int = ..., + i64: builtins.int = ..., + fp32: builtins.float = ..., + fp64: builtins.float = ..., + string: builtins.str = ..., + binary: builtins.bytes = ..., + timestamp: builtins.int = ..., + date: builtins.int = ..., + time: builtins.int = ..., + interval_year_to_month: Global___Expression.Literal.IntervalYearToMonth | None = ..., + interval_day_to_second: Global___Expression.Literal.IntervalDayToSecond | None = ..., + interval_compound: Global___Expression.Literal.IntervalCompound | None = ..., + fixed_char: builtins.str = ..., + var_char: Global___Expression.Literal.VarChar | None = ..., + fixed_binary: builtins.bytes = ..., + decimal: Global___Expression.Literal.Decimal | None = ..., + precision_time: Global___Expression.Literal.PrecisionTime | None = ..., + precision_timestamp: Global___Expression.Literal.PrecisionTimestamp | None = ..., + precision_timestamp_tz: Global___Expression.Literal.PrecisionTimestamp | None = ..., + struct: Global___Expression.Literal.Struct | None = ..., + map: Global___Expression.Literal.Map | None = ..., + timestamp_tz: builtins.int = ..., + uuid: builtins.bytes = ..., + null: substrait.gen.proto.type_pb2.Type | None = ..., + list: Global___Expression.Literal.List | None = ..., + empty_list: substrait.gen.proto.type_pb2.Type.List | None = ..., + empty_map: substrait.gen.proto.type_pb2.Type.Map | None = ..., + user_defined: Global___Expression.Literal.UserDefined | None = ..., + nullable: builtins.bool = ..., + type_variation_reference: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "boolean", b"boolean", "date", b"date", "decimal", b"decimal", "empty_list", b"empty_list", "empty_map", b"empty_map", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day_to_second", b"interval_day_to_second", "interval_year_to_month", b"interval_year_to_month", "list", b"list", "literal_type", b"literal_type", "map", b"map", "null", b"null", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "user_defined", b"user_defined", "uuid", b"uuid", "var_char", b"var_char"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "boolean", b"boolean", "date", b"date", "decimal", b"decimal", "empty_list", b"empty_list", "empty_map", b"empty_map", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day_to_second", b"interval_day_to_second", "interval_year_to_month", b"interval_year_to_month", "list", b"list", "literal_type", b"literal_type", "map", b"map", "null", b"null", "nullable", b"nullable", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "type_variation_reference", b"type_variation_reference", "user_defined", b"user_defined", "uuid", b"uuid", "var_char", b"var_char"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_literal_type: typing_extensions.TypeAlias = typing.Literal["boolean", "i8", "i16", "i32", "i64", "fp32", "fp64", "string", "binary", "timestamp", "date", "time", "interval_year_to_month", "interval_day_to_second", "interval_compound", "fixed_char", "var_char", "fixed_binary", "decimal", "precision_time", "precision_timestamp", "precision_timestamp_tz", "struct", "map", "timestamp_tz", "uuid", "null", "list", "empty_list", "empty_map", "user_defined"] + _WhichOneofArgType_literal_type: typing_extensions.TypeAlias = typing.Literal["literal_type", b"literal_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_literal_type) -> _WhichOneofReturnType_literal_type | None: ... @typing.final class Nested(google.protobuf.message.Message): """Expression to dynamically construct nested types.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -2953,121 +3143,132 @@ class Expression(google.protobuf.message.Message): @typing.final class KeyValue(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___Expression: + def key(self) -> Global___Expression: """Mandatory key/value expressions.""" @property - def value(self) -> global___Expression: - ... - - def __init__(self, *, key: global___Expression | None=..., value: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> builtins.bool: - ... + def value(self) -> Global___Expression: ... + def __init__( + self, + *, + key: Global___Expression | None = ..., + value: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None: - ... KEY_VALUES_FIELD_NUMBER: builtins.int - @property - def key_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.Nested.Map.KeyValue]: + def key_values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.Nested.Map.KeyValue]: """One or more key-value pairs. To specify an empty map, use Literal.empty_map (otherwise type information would be missing). """ - def __init__(self, *, key_values: collections.abc.Iterable[global___Expression.Nested.Map.KeyValue] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['key_values', b'key_values']) -> None: - ... + def __init__( + self, + *, + key_values: collections.abc.Iterable[Global___Expression.Nested.Map.KeyValue] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key_values", b"key_values"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Struct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - FIELDS_FIELD_NUMBER: builtins.int + FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """Zero or more possibly heterogeneously-typed list of expressions that form the struct fields. """ - def __init__(self, *, fields: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['fields', b'fields']) -> None: - ... + def __init__( + self, + *, + fields: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["fields", b"fields"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class List(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - VALUES_FIELD_NUMBER: builtins.int + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """A homogeneously-typed list of one or more expressions that form the list entries. To specify an empty list, use Literal.empty_list (otherwise type information would be missing). """ - def __init__(self, *, values: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... + def __init__( + self, + *, + values: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["values", b"values"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['values', b'values']) -> None: - ... NULLABLE_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int STRUCT_FIELD_NUMBER: builtins.int LIST_FIELD_NUMBER: builtins.int MAP_FIELD_NUMBER: builtins.int nullable: builtins.bool - 'Whether the returned nested type is nullable.' + """Whether the returned nested type is nullable.""" type_variation_reference: builtins.int - 'Optionally points to a type_variation_anchor defined in this plan for\n the returned nested type.\n ' - + """Optionally points to a type_variation_anchor defined in this plan for + the returned nested type. + """ @property - def struct(self) -> global___Expression.Nested.Struct: - ... - + def struct(self) -> Global___Expression.Nested.Struct: ... @property - def list(self) -> global___Expression.Nested.List: - ... - + def list(self) -> Global___Expression.Nested.List: ... @property - def map(self) -> global___Expression.Nested.Map: - ... - - def __init__(self, *, nullable: builtins.bool=..., type_variation_reference: builtins.int=..., struct: global___Expression.Nested.Struct | None=..., list: global___Expression.Nested.List | None=..., map: global___Expression.Nested.Map | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['list', b'list', 'map', b'map', 'nested_type', b'nested_type', 'struct', b'struct']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['list', b'list', 'map', b'map', 'nested_type', b'nested_type', 'nullable', b'nullable', 'struct', b'struct', 'type_variation_reference', b'type_variation_reference']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['nested_type', b'nested_type']) -> typing.Literal['struct', 'list', 'map'] | None: - ... + def map(self) -> Global___Expression.Nested.Map: ... + def __init__( + self, + *, + nullable: builtins.bool = ..., + type_variation_reference: builtins.int = ..., + struct: Global___Expression.Nested.Struct | None = ..., + list: Global___Expression.Nested.List | None = ..., + map: Global___Expression.Nested.Map | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["list", b"list", "map", b"map", "nested_type", b"nested_type", "struct", b"struct"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["list", b"list", "map", b"map", "nested_type", b"nested_type", "nullable", b"nullable", "struct", b"struct", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_nested_type: typing_extensions.TypeAlias = typing.Literal["struct", "list", "map"] + _WhichOneofArgType_nested_type: typing_extensions.TypeAlias = typing.Literal["nested_type", b"nested_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_nested_type) -> _WhichOneofReturnType_nested_type | None: ... @typing.final class ScalarFunction(google.protobuf.message.Message): """A scalar function call.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int ARGUMENTS_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int OUTPUT_TYPE_FIELD_NUMBER: builtins.int ARGS_FIELD_NUMBER: builtins.int function_reference: builtins.int - 'Points to a function_anchor defined in this plan, which must refer\n to a scalar function in the associated YAML file. Required; avoid\n using anchor/reference zero.\n ' - + """Points to a function_anchor defined in this plan, which must refer + to a scalar function in the associated YAML file. Required; avoid + using anchor/reference zero. + """ @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionArgument]: + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionArgument]: """The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: @@ -3082,96 +3283,128 @@ class Expression(google.protobuf.message.Message): """ @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionOption]: + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionOption]: """Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases. """ @property - def output_type(self) -> proto.type_pb2.Type: + def output_type(self) -> substrait.gen.proto.type_pb2.Type: """Must be set to the return type of the function, exactly as derived using the declaration in the extension. """ @property - def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """Deprecated; use arguments instead.""" - def __init__(self, *, function_reference: builtins.int=..., arguments: collections.abc.Iterable[global___FunctionArgument] | None=..., options: collections.abc.Iterable[global___FunctionOption] | None=..., output_type: proto.type_pb2.Type | None=..., args: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['output_type', b'output_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['args', b'args', 'arguments', b'arguments', 'function_reference', b'function_reference', 'options', b'options', 'output_type', b'output_type']) -> None: - ... + def __init__( + self, + *, + function_reference: builtins.int = ..., + arguments: collections.abc.Iterable[Global___FunctionArgument] | None = ..., + options: collections.abc.Iterable[Global___FunctionOption] | None = ..., + output_type: substrait.gen.proto.type_pb2.Type | None = ..., + args: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["output_type", b"output_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["args", b"args", "arguments", b"arguments", "function_reference", b"function_reference", "options", b"options", "output_type", b"output_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class WindowFunction(google.protobuf.message.Message): """A window function call.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _BoundsType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _BoundsTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Expression.WindowFunction._BoundsType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - BOUNDS_TYPE_UNSPECIFIED: Expression.WindowFunction._BoundsType.ValueType - BOUNDS_TYPE_ROWS: Expression.WindowFunction._BoundsType.ValueType - 'The lower and upper bound specify how many rows before and after the current row\n the window should extend.\n ' - BOUNDS_TYPE_RANGE: Expression.WindowFunction._BoundsType.ValueType - 'The lower and upper bound describe a range of values. The window should include all rows\n where the value of the ordering column is greater than or equal to (current_value - lower bound)\n and less than or equal to (current_value + upper bound). This bounds type is only valid if there\n is a single ordering column.\n ' - - class BoundsType(_BoundsType, metaclass=_BoundsTypeEnumTypeWrapper): - ... - BOUNDS_TYPE_UNSPECIFIED: Expression.WindowFunction.BoundsType.ValueType - BOUNDS_TYPE_ROWS: Expression.WindowFunction.BoundsType.ValueType - 'The lower and upper bound specify how many rows before and after the current row\n the window should extend.\n ' - BOUNDS_TYPE_RANGE: Expression.WindowFunction.BoundsType.ValueType - 'The lower and upper bound describe a range of values. The window should include all rows\n where the value of the ordering column is greater than or equal to (current_value - lower bound)\n and less than or equal to (current_value + upper bound). This bounds type is only valid if there\n is a single ordering column.\n ' + BOUNDS_TYPE_UNSPECIFIED: Expression.WindowFunction._BoundsType.ValueType # 0 + BOUNDS_TYPE_ROWS: Expression.WindowFunction._BoundsType.ValueType # 1 + """The lower and upper bound specify how many rows before and after the current row + the window should extend. + """ + BOUNDS_TYPE_RANGE: Expression.WindowFunction._BoundsType.ValueType # 2 + """The lower and upper bound describe a range of values. The window should include all rows + where the value of the ordering column is greater than or equal to (current_value - lower bound) + and less than or equal to (current_value + upper bound). This bounds type is only valid if there + is a single ordering column. + """ + + class BoundsType(_BoundsType, metaclass=_BoundsTypeEnumTypeWrapper): ... + BOUNDS_TYPE_UNSPECIFIED: Expression.WindowFunction.BoundsType.ValueType # 0 + BOUNDS_TYPE_ROWS: Expression.WindowFunction.BoundsType.ValueType # 1 + """The lower and upper bound specify how many rows before and after the current row + the window should extend. + """ + BOUNDS_TYPE_RANGE: Expression.WindowFunction.BoundsType.ValueType # 2 + """The lower and upper bound describe a range of values. The window should include all rows + where the value of the ordering column is greater than or equal to (current_value - lower bound) + and less than or equal to (current_value + upper bound). This bounds type is only valid if there + is a single ordering column. + """ @typing.final class Bound(google.protobuf.message.Message): """Defines one of the two boundaries for the window of a window function.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class Preceding(google.protobuf.message.Message): """Defines that the bound extends this far back from the current record.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + OFFSET_FIELD_NUMBER: builtins.int offset: builtins.int - 'A strictly positive integer specifying the number of records that\n the window extends back from the current record. Required. Use\n CurrentRow for offset zero and Following for negative offsets.\n ' - - def __init__(self, *, offset: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['offset', b'offset']) -> None: - ... + """A strictly positive integer specifying the number of records that + the window extends back from the current record. Required. Use + CurrentRow for offset zero and Following for negative offsets. + """ + def __init__( + self, + *, + offset: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["offset", b"offset"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Following(google.protobuf.message.Message): """Defines that the bound extends this far ahead of the current record.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + OFFSET_FIELD_NUMBER: builtins.int offset: builtins.int - 'A strictly positive integer specifying the number of records that\n the window extends ahead of the current record. Required. Use\n CurrentRow for offset zero and Preceding for negative offsets.\n ' - - def __init__(self, *, offset: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['offset', b'offset']) -> None: - ... + """A strictly positive integer specifying the number of records that + the window extends ahead of the current record. Required. Use + CurrentRow for offset zero and Preceding for negative offsets. + """ + def __init__( + self, + *, + offset: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["offset", b"offset"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class CurrentRow(google.protobuf.message.Message): """Defines that the bound extends to or from the current record.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class Unbounded(google.protobuf.message.Message): @@ -3179,47 +3412,54 @@ class Expression(google.protobuf.message.Message): of the partition, and for upper bounds this means the end of the partition. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... + PRECEDING_FIELD_NUMBER: builtins.int FOLLOWING_FIELD_NUMBER: builtins.int CURRENT_ROW_FIELD_NUMBER: builtins.int UNBOUNDED_FIELD_NUMBER: builtins.int - @property - def preceding(self) -> global___Expression.WindowFunction.Bound.Preceding: + def preceding(self) -> Global___Expression.WindowFunction.Bound.Preceding: """The bound extends some number of records behind the current record.""" @property - def following(self) -> global___Expression.WindowFunction.Bound.Following: + def following(self) -> Global___Expression.WindowFunction.Bound.Following: """The bound extends some number of records ahead of the current record. """ @property - def current_row(self) -> global___Expression.WindowFunction.Bound.CurrentRow: + def current_row(self) -> Global___Expression.WindowFunction.Bound.CurrentRow: """The bound extends to the current record.""" @property - def unbounded(self) -> global___Expression.WindowFunction.Bound.Unbounded: + def unbounded(self) -> Global___Expression.WindowFunction.Bound.Unbounded: """The bound extends to the start of the partition or the end of the partition, depending on whether this represents the upper or lower bound. """ - def __init__(self, *, preceding: global___Expression.WindowFunction.Bound.Preceding | None=..., following: global___Expression.WindowFunction.Bound.Following | None=..., current_row: global___Expression.WindowFunction.Bound.CurrentRow | None=..., unbounded: global___Expression.WindowFunction.Bound.Unbounded | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['current_row', b'current_row', 'following', b'following', 'kind', b'kind', 'preceding', b'preceding', 'unbounded', b'unbounded']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['current_row', b'current_row', 'following', b'following', 'kind', b'kind', 'preceding', b'preceding', 'unbounded', b'unbounded']) -> None: - ... + def __init__( + self, + *, + preceding: Global___Expression.WindowFunction.Bound.Preceding | None = ..., + following: Global___Expression.WindowFunction.Bound.Following | None = ..., + current_row: Global___Expression.WindowFunction.Bound.CurrentRow | None = ..., + unbounded: Global___Expression.WindowFunction.Bound.Unbounded | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["current_row", b"current_row", "following", b"following", "kind", b"kind", "preceding", b"preceding", "unbounded", b"unbounded"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["current_row", b"current_row", "following", b"following", "kind", b"kind", "preceding", b"preceding", "unbounded", b"unbounded"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: typing_extensions.TypeAlias = typing.Literal["preceding", "following", "current_row", "unbounded"] + _WhichOneofArgType_kind: typing_extensions.TypeAlias = typing.Literal["kind", b"kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... - def WhichOneof(self, oneof_group: typing.Literal['kind', b'kind']) -> typing.Literal['preceding', 'following', 'current_row', 'unbounded'] | None: - ... FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int ARGUMENTS_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int @@ -3233,16 +3473,28 @@ class Expression(google.protobuf.message.Message): UPPER_BOUND_FIELD_NUMBER: builtins.int ARGS_FIELD_NUMBER: builtins.int function_reference: builtins.int - 'Points to a function_anchor defined in this plan. The function must be:\n - a window function\n - an aggregate function\n\n An aggregate function referenced here should be treated as a window\n function with Window Type STREAMING\n\n Required; 0 is considered to be a valid anchor/reference.\n ' - phase: global___AggregationPhase.ValueType - 'Describes which part of the window function to perform within the\n context of distributed algorithms. Required. Must be set to\n INITIAL_TO_RESULT for window functions that are not decomposable.\n ' - invocation: global___AggregateFunction.AggregationInvocation.ValueType - 'Specifies whether equivalent records are merged before being aggregated.\n Optional, defaults to AGGREGATION_INVOCATION_ALL.\n ' - bounds_type: global___Expression.WindowFunction.BoundsType.ValueType - 'Defines the bounds type: ROWS, RANGE' + """Points to a function_anchor defined in this plan. The function must be: + - a window function + - an aggregate function + An aggregate function referenced here should be treated as a window + function with Window Type STREAMING + + Required; 0 is considered to be a valid anchor/reference. + """ + phase: Global___AggregationPhase.ValueType + """Describes which part of the window function to perform within the + context of distributed algorithms. Required. Must be set to + INITIAL_TO_RESULT for window functions that are not decomposable. + """ + invocation: Global___AggregateFunction.AggregationInvocation.ValueType + """Specifies whether equivalent records are merged before being aggregated. + Optional, defaults to AGGREGATION_INVOCATION_ALL. + """ + bounds_type: Global___Expression.WindowFunction.BoundsType.ValueType + """Defines the bounds type: ROWS, RANGE""" @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionArgument]: + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionArgument]: """The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: @@ -3258,20 +3510,20 @@ class Expression(google.protobuf.message.Message): """ @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionOption]: + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionOption]: """Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases. """ @property - def output_type(self) -> proto.type_pb2.Type: + def output_type(self) -> substrait.gen.proto.type_pb2.Type: """Must be set to the return type of the function, exactly as derived using the declaration in the extension. """ @property - def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SortField]: + def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SortField]: """If specified, the records that are part of the window defined by upper_bound and lower_bound are ordered according to this list before they are aggregated. The first sort field has the highest @@ -3281,7 +3533,7 @@ class Expression(google.protobuf.message.Message): """ @property - def partitions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def partitions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """When one or more partition expressions are specified, two records are considered to be in the same partition if and only if these expressions yield an equal record of values for both. When computing the window @@ -3290,7 +3542,7 @@ class Expression(google.protobuf.message.Message): """ @property - def lower_bound(self) -> global___Expression.WindowFunction.Bound: + def lower_bound(self) -> Global___Expression.WindowFunction.Bound: """Defines the record relative to the current record from which the window extends. The bound is inclusive. If the lower bound indexes a record greater than the upper bound, TODO (null range/no records passed? @@ -3299,7 +3551,7 @@ class Expression(google.protobuf.message.Message): """ @property - def upper_bound(self) -> global___Expression.WindowFunction.Bound: + def upper_bound(self) -> Global___Expression.WindowFunction.Bound: """Defines the record relative to the current record up to which the window extends. The bound is inclusive. If the upper bound indexes a record less than the lower bound, TODO (null range/no records passed? @@ -3308,17 +3560,29 @@ class Expression(google.protobuf.message.Message): """ @property - def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """Deprecated; use arguments instead.""" - def __init__(self, *, function_reference: builtins.int=..., arguments: collections.abc.Iterable[global___FunctionArgument] | None=..., options: collections.abc.Iterable[global___FunctionOption] | None=..., output_type: proto.type_pb2.Type | None=..., phase: global___AggregationPhase.ValueType=..., sorts: collections.abc.Iterable[global___SortField] | None=..., invocation: global___AggregateFunction.AggregationInvocation.ValueType=..., partitions: collections.abc.Iterable[global___Expression] | None=..., bounds_type: global___Expression.WindowFunction.BoundsType.ValueType=..., lower_bound: global___Expression.WindowFunction.Bound | None=..., upper_bound: global___Expression.WindowFunction.Bound | None=..., args: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['lower_bound', b'lower_bound', 'output_type', b'output_type', 'upper_bound', b'upper_bound']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['args', b'args', 'arguments', b'arguments', 'bounds_type', b'bounds_type', 'function_reference', b'function_reference', 'invocation', b'invocation', 'lower_bound', b'lower_bound', 'options', b'options', 'output_type', b'output_type', 'partitions', b'partitions', 'phase', b'phase', 'sorts', b'sorts', 'upper_bound', b'upper_bound']) -> None: - ... + def __init__( + self, + *, + function_reference: builtins.int = ..., + arguments: collections.abc.Iterable[Global___FunctionArgument] | None = ..., + options: collections.abc.Iterable[Global___FunctionOption] | None = ..., + output_type: substrait.gen.proto.type_pb2.Type | None = ..., + phase: Global___AggregationPhase.ValueType = ..., + sorts: collections.abc.Iterable[Global___SortField] | None = ..., + invocation: Global___AggregateFunction.AggregationInvocation.ValueType = ..., + partitions: collections.abc.Iterable[Global___Expression] | None = ..., + bounds_type: Global___Expression.WindowFunction.BoundsType.ValueType = ..., + lower_bound: Global___Expression.WindowFunction.Bound | None = ..., + upper_bound: Global___Expression.WindowFunction.Bound | None = ..., + args: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["lower_bound", b"lower_bound", "output_type", b"output_type", "upper_bound", b"upper_bound"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["args", b"args", "arguments", b"arguments", "bounds_type", b"bounds_type", "function_reference", b"function_reference", "invocation", b"invocation", "lower_bound", b"lower_bound", "options", b"options", "output_type", b"output_type", "partitions", b"partitions", "phase", b"phase", "sorts", b"sorts", "upper_bound", b"upper_bound"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IfThen(google.protobuf.message.Message): @@ -3327,77 +3591,75 @@ class Expression(google.protobuf.message.Message): @typing.final class IfClause(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IF_FIELD_NUMBER: builtins.int THEN_FIELD_NUMBER: builtins.int - @property - def then(self) -> global___Expression: - ... + def then(self) -> Global___Expression: ... + def __init__( + self, + *, + then: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["if", b"if", "then", b"then"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["if", b"if", "then", b"then"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, then: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['if', b'if', 'then', b'then']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['if', b'if', 'then', b'then']) -> None: - ... IFS_FIELD_NUMBER: builtins.int ELSE_FIELD_NUMBER: builtins.int - @property - def ifs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.IfThen.IfClause]: + def ifs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.IfThen.IfClause]: """A list of one or more IfClauses""" - def __init__(self, *, ifs: collections.abc.Iterable[global___Expression.IfThen.IfClause] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['else', b'else']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['else', b'else', 'ifs', b'ifs']) -> None: - ... + def __init__( + self, + *, + ifs: collections.abc.Iterable[Global___Expression.IfThen.IfClause] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["else", b"else"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["else", b"else", "ifs", b"ifs"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Cast(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _FailureBehavior: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _FailureBehaviorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Expression.Cast._FailureBehavior.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - FAILURE_BEHAVIOR_UNSPECIFIED: Expression.Cast._FailureBehavior.ValueType - FAILURE_BEHAVIOR_RETURN_NULL: Expression.Cast._FailureBehavior.ValueType - FAILURE_BEHAVIOR_THROW_EXCEPTION: Expression.Cast._FailureBehavior.ValueType - - class FailureBehavior(_FailureBehavior, metaclass=_FailureBehaviorEnumTypeWrapper): - ... - FAILURE_BEHAVIOR_UNSPECIFIED: Expression.Cast.FailureBehavior.ValueType - FAILURE_BEHAVIOR_RETURN_NULL: Expression.Cast.FailureBehavior.ValueType - FAILURE_BEHAVIOR_THROW_EXCEPTION: Expression.Cast.FailureBehavior.ValueType + FAILURE_BEHAVIOR_UNSPECIFIED: Expression.Cast._FailureBehavior.ValueType # 0 + FAILURE_BEHAVIOR_RETURN_NULL: Expression.Cast._FailureBehavior.ValueType # 1 + FAILURE_BEHAVIOR_THROW_EXCEPTION: Expression.Cast._FailureBehavior.ValueType # 2 + + class FailureBehavior(_FailureBehavior, metaclass=_FailureBehaviorEnumTypeWrapper): ... + FAILURE_BEHAVIOR_UNSPECIFIED: Expression.Cast.FailureBehavior.ValueType # 0 + FAILURE_BEHAVIOR_RETURN_NULL: Expression.Cast.FailureBehavior.ValueType # 1 + FAILURE_BEHAVIOR_THROW_EXCEPTION: Expression.Cast.FailureBehavior.ValueType # 2 + TYPE_FIELD_NUMBER: builtins.int INPUT_FIELD_NUMBER: builtins.int FAILURE_BEHAVIOR_FIELD_NUMBER: builtins.int - failure_behavior: global___Expression.Cast.FailureBehavior.ValueType - + failure_behavior: Global___Expression.Cast.FailureBehavior.ValueType @property - def type(self) -> proto.type_pb2.Type: - ... - + def type(self) -> substrait.gen.proto.type_pb2.Type: ... @property - def input(self) -> global___Expression: - ... - - def __init__(self, *, type: proto.type_pb2.Type | None=..., input: global___Expression | None=..., failure_behavior: global___Expression.Cast.FailureBehavior.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['input', b'input', 'type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['failure_behavior', b'failure_behavior', 'input', b'input', 'type', b'type']) -> None: - ... + def input(self) -> Global___Expression: ... + def __init__( + self, + *, + type: substrait.gen.proto.type_pb2.Type | None = ..., + input: Global___Expression | None = ..., + failure_behavior: Global___Expression.Cast.FailureBehavior.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input", "type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["failure_behavior", b"failure_behavior", "input", b"input", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SwitchExpression(google.protobuf.message.Message): @@ -3406,64 +3668,59 @@ class Expression(google.protobuf.message.Message): @typing.final class IfValue(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IF_FIELD_NUMBER: builtins.int THEN_FIELD_NUMBER: builtins.int - @property - def then(self) -> global___Expression: - ... - - def __init__(self, *, then: global___Expression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['if', b'if', 'then', b'then']) -> builtins.bool: - ... + def then(self) -> Global___Expression: ... + def __init__( + self, + *, + then: Global___Expression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["if", b"if", "then", b"then"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["if", b"if", "then", b"then"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['if', b'if', 'then', b'then']) -> None: - ... MATCH_FIELD_NUMBER: builtins.int IFS_FIELD_NUMBER: builtins.int ELSE_FIELD_NUMBER: builtins.int - @property - def match(self) -> global___Expression: - ... - + def match(self) -> Global___Expression: ... @property - def ifs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.SwitchExpression.IfValue]: - ... - - def __init__(self, *, match: global___Expression | None=..., ifs: collections.abc.Iterable[global___Expression.SwitchExpression.IfValue] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['else', b'else', 'match', b'match']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['else', b'else', 'ifs', b'ifs', 'match', b'match']) -> None: - ... + def ifs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.SwitchExpression.IfValue]: ... + def __init__( + self, + *, + match: Global___Expression | None = ..., + ifs: collections.abc.Iterable[Global___Expression.SwitchExpression.IfValue] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["else", b"else", "match", b"match"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["else", b"else", "ifs", b"ifs", "match", b"match"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SingularOrList(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - @property - def value(self) -> global___Expression: - ... - + def value(self) -> Global___Expression: ... @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - - def __init__(self, *, value: global___Expression | None=..., options: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['options', b'options', 'value', b'value']) -> None: - ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... + def __init__( + self, + *, + value: Global___Expression | None = ..., + options: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class MultiOrList(google.protobuf.message.Message): @@ -3472,33 +3729,32 @@ class Expression(google.protobuf.message.Message): @typing.final class Record(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - FIELDS_FIELD_NUMBER: builtins.int + FIELDS_FIELD_NUMBER: builtins.int @property - def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - - def __init__(self, *, fields: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... + def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... + def __init__( + self, + *, + fields: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["fields", b"fields"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['fields', b'fields']) -> None: - ... VALUE_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int - @property - def value(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - + def value(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.MultiOrList.Record]: - ... - - def __init__(self, *, value: collections.abc.Iterable[global___Expression] | None=..., options: collections.abc.Iterable[global___Expression.MultiOrList.Record] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['options', b'options', 'value', b'value']) -> None: - ... + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.MultiOrList.Record]: ... + def __init__( + self, + *, + value: collections.abc.Iterable[Global___Expression] | None = ..., + options: collections.abc.Iterable[Global___Expression.MultiOrList.Record] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["options", b"options", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class EmbeddedFunction(google.protobuf.message.Message): @@ -3507,68 +3763,66 @@ class Expression(google.protobuf.message.Message): @typing.final class PythonPickleFunction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FUNCTION_FIELD_NUMBER: builtins.int PREREQUISITE_FIELD_NUMBER: builtins.int function: builtins.bytes - @property - def prerequisite(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - - def __init__(self, *, function: builtins.bytes=..., prerequisite: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['function', b'function', 'prerequisite', b'prerequisite']) -> None: - ... + def prerequisite(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + function: builtins.bytes = ..., + prerequisite: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["function", b"function", "prerequisite", b"prerequisite"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class WebAssemblyFunction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SCRIPT_FIELD_NUMBER: builtins.int PREREQUISITE_FIELD_NUMBER: builtins.int script: builtins.bytes - @property - def prerequisite(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... + def prerequisite(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + script: builtins.bytes = ..., + prerequisite: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["prerequisite", b"prerequisite", "script", b"script"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, script: builtins.bytes=..., prerequisite: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['prerequisite', b'prerequisite', 'script', b'script']) -> None: - ... ARGUMENTS_FIELD_NUMBER: builtins.int OUTPUT_TYPE_FIELD_NUMBER: builtins.int PYTHON_PICKLE_FUNCTION_FIELD_NUMBER: builtins.int WEB_ASSEMBLY_FUNCTION_FIELD_NUMBER: builtins.int - @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... @property - def output_type(self) -> proto.type_pb2.Type: - ... - + def output_type(self) -> substrait.gen.proto.type_pb2.Type: ... @property - def python_pickle_function(self) -> global___Expression.EmbeddedFunction.PythonPickleFunction: - ... - + def python_pickle_function(self) -> Global___Expression.EmbeddedFunction.PythonPickleFunction: ... @property - def web_assembly_function(self) -> global___Expression.EmbeddedFunction.WebAssemblyFunction: - ... - - def __init__(self, *, arguments: collections.abc.Iterable[global___Expression] | None=..., output_type: proto.type_pb2.Type | None=..., python_pickle_function: global___Expression.EmbeddedFunction.PythonPickleFunction | None=..., web_assembly_function: global___Expression.EmbeddedFunction.WebAssemblyFunction | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['kind', b'kind', 'output_type', b'output_type', 'python_pickle_function', b'python_pickle_function', 'web_assembly_function', b'web_assembly_function']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arguments', b'arguments', 'kind', b'kind', 'output_type', b'output_type', 'python_pickle_function', b'python_pickle_function', 'web_assembly_function', b'web_assembly_function']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['kind', b'kind']) -> typing.Literal['python_pickle_function', 'web_assembly_function'] | None: - ... + def web_assembly_function(self) -> Global___Expression.EmbeddedFunction.WebAssemblyFunction: ... + def __init__( + self, + *, + arguments: collections.abc.Iterable[Global___Expression] | None = ..., + output_type: substrait.gen.proto.type_pb2.Type | None = ..., + python_pickle_function: Global___Expression.EmbeddedFunction.PythonPickleFunction | None = ..., + web_assembly_function: Global___Expression.EmbeddedFunction.WebAssemblyFunction | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["kind", b"kind", "output_type", b"output_type", "python_pickle_function", b"python_pickle_function", "web_assembly_function", b"web_assembly_function"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "kind", b"kind", "output_type", b"output_type", "python_pickle_function", b"python_pickle_function", "web_assembly_function", b"web_assembly_function"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: typing_extensions.TypeAlias = typing.Literal["python_pickle_function", "web_assembly_function"] + _WhichOneofArgType_kind: typing_extensions.TypeAlias = typing.Literal["kind", b"kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... @typing.final class ReferenceSegment(google.protobuf.message.Message): @@ -3580,99 +3834,103 @@ class Expression(google.protobuf.message.Message): (ordinalized in the internal representation here), [2] is a list offset and ['my_map_key'] is a reference into a map field. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class MapKey(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MAP_KEY_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int - @property - def map_key(self) -> global___Expression.Literal: + def map_key(self) -> Global___Expression.Literal: """literal based reference to specific possible value in map.""" @property - def child(self) -> global___Expression.ReferenceSegment: + def child(self) -> Global___Expression.ReferenceSegment: """Optional child segment""" - def __init__(self, *, map_key: global___Expression.Literal | None=..., child: global___Expression.ReferenceSegment | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['child', b'child', 'map_key', b'map_key']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'map_key', b'map_key']) -> None: - ... + def __init__( + self, + *, + map_key: Global___Expression.Literal | None = ..., + child: Global___Expression.ReferenceSegment | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "map_key", b"map_key"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "map_key", b"map_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class StructField(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELD_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int field: builtins.int - 'zero-indexed ordinal position of field in struct' - + """zero-indexed ordinal position of field in struct""" @property - def child(self) -> global___Expression.ReferenceSegment: + def child(self) -> Global___Expression.ReferenceSegment: """Optional child segment""" - def __init__(self, *, field: builtins.int=..., child: global___Expression.ReferenceSegment | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['child', b'child']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'field', b'field']) -> None: - ... + def __init__( + self, + *, + field: builtins.int = ..., + child: Global___Expression.ReferenceSegment | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "field", b"field"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ListElement(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + OFFSET_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int offset: builtins.int - 'zero-indexed ordinal position of element in list' - + """zero-indexed ordinal position of element in list""" @property - def child(self) -> global___Expression.ReferenceSegment: + def child(self) -> Global___Expression.ReferenceSegment: """Optional child segment""" - def __init__(self, *, offset: builtins.int=..., child: global___Expression.ReferenceSegment | None=...) -> None: - ... + def __init__( + self, + *, + offset: builtins.int = ..., + child: Global___Expression.ReferenceSegment | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "offset", b"offset"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['child', b'child']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'offset', b'offset']) -> None: - ... MAP_KEY_FIELD_NUMBER: builtins.int STRUCT_FIELD_FIELD_NUMBER: builtins.int LIST_ELEMENT_FIELD_NUMBER: builtins.int - @property - def map_key(self) -> global___Expression.ReferenceSegment.MapKey: - ... - + def map_key(self) -> Global___Expression.ReferenceSegment.MapKey: ... @property - def struct_field(self) -> global___Expression.ReferenceSegment.StructField: - ... - + def struct_field(self) -> Global___Expression.ReferenceSegment.StructField: ... @property - def list_element(self) -> global___Expression.ReferenceSegment.ListElement: - ... - - def __init__(self, *, map_key: global___Expression.ReferenceSegment.MapKey | None=..., struct_field: global___Expression.ReferenceSegment.StructField | None=..., list_element: global___Expression.ReferenceSegment.ListElement | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['list_element', b'list_element', 'map_key', b'map_key', 'reference_type', b'reference_type', 'struct_field', b'struct_field']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['list_element', b'list_element', 'map_key', b'map_key', 'reference_type', b'reference_type', 'struct_field', b'struct_field']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['reference_type', b'reference_type']) -> typing.Literal['map_key', 'struct_field', 'list_element'] | None: - ... + def list_element(self) -> Global___Expression.ReferenceSegment.ListElement: ... + def __init__( + self, + *, + map_key: Global___Expression.ReferenceSegment.MapKey | None = ..., + struct_field: Global___Expression.ReferenceSegment.StructField | None = ..., + list_element: Global___Expression.ReferenceSegment.ListElement | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["list_element", b"list_element", "map_key", b"map_key", "reference_type", b"reference_type", "struct_field", b"struct_field"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["list_element", b"list_element", "map_key", b"map_key", "reference_type", b"reference_type", "struct_field", b"struct_field"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_reference_type: typing_extensions.TypeAlias = typing.Literal["map_key", "struct_field", "list_element"] + _WhichOneofArgType_reference_type: typing_extensions.TypeAlias = typing.Literal["reference_type", b"reference_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_reference_type) -> _WhichOneofReturnType_reference_type | None: ... @typing.final class MaskExpression(google.protobuf.message.Message): @@ -3686,73 +3944,71 @@ class Expression(google.protobuf.message.Message): Note that this does not fundamentally alter the structure of data beyond the elimination of unnecessary elements. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class Select(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + STRUCT_FIELD_NUMBER: builtins.int LIST_FIELD_NUMBER: builtins.int MAP_FIELD_NUMBER: builtins.int - @property - def struct(self) -> global___Expression.MaskExpression.StructSelect: - ... - + def struct(self) -> Global___Expression.MaskExpression.StructSelect: ... @property - def list(self) -> global___Expression.MaskExpression.ListSelect: - ... - + def list(self) -> Global___Expression.MaskExpression.ListSelect: ... @property - def map(self) -> global___Expression.MaskExpression.MapSelect: - ... - - def __init__(self, *, struct: global___Expression.MaskExpression.StructSelect | None=..., list: global___Expression.MaskExpression.ListSelect | None=..., map: global___Expression.MaskExpression.MapSelect | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['list', b'list', 'map', b'map', 'struct', b'struct', 'type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['list', b'list', 'map', b'map', 'struct', b'struct', 'type', b'type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['type', b'type']) -> typing.Literal['struct', 'list', 'map'] | None: - ... + def map(self) -> Global___Expression.MaskExpression.MapSelect: ... + def __init__( + self, + *, + struct: Global___Expression.MaskExpression.StructSelect | None = ..., + list: Global___Expression.MaskExpression.ListSelect | None = ..., + map: Global___Expression.MaskExpression.MapSelect | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["list", b"list", "map", b"map", "struct", b"struct", "type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["list", b"list", "map", b"map", "struct", b"struct", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_type: typing_extensions.TypeAlias = typing.Literal["struct", "list", "map"] + _WhichOneofArgType_type: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_type) -> _WhichOneofReturnType_type | None: ... @typing.final class StructSelect(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - STRUCT_ITEMS_FIELD_NUMBER: builtins.int + STRUCT_ITEMS_FIELD_NUMBER: builtins.int @property - def struct_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.MaskExpression.StructItem]: - ... - - def __init__(self, *, struct_items: collections.abc.Iterable[global___Expression.MaskExpression.StructItem] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['struct_items', b'struct_items']) -> None: - ... + def struct_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.MaskExpression.StructItem]: ... + def __init__( + self, + *, + struct_items: collections.abc.Iterable[Global___Expression.MaskExpression.StructItem] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct_items", b"struct_items"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class StructItem(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELD_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int field: builtins.int - @property - def child(self) -> global___Expression.MaskExpression.Select: - ... - - def __init__(self, *, field: builtins.int=..., child: global___Expression.MaskExpression.Select | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['child', b'child']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'field', b'field']) -> None: - ... + def child(self) -> Global___Expression.MaskExpression.Select: ... + def __init__( + self, + *, + field: builtins.int = ..., + child: Global___Expression.MaskExpression.Select | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "field", b"field"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ListSelect(google.protobuf.message.Message): @@ -3765,69 +4021,70 @@ class Expression(google.protobuf.message.Message): @typing.final class ListElement(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELD_FIELD_NUMBER: builtins.int field: builtins.int - - def __init__(self, *, field: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['field', b'field']) -> None: - ... + def __init__( + self, + *, + field: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["field", b"field"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ListSlice(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int start: builtins.int end: builtins.int + def __init__( + self, + *, + start: builtins.int = ..., + end: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["end", b"end", "start", b"start"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, start: builtins.int=..., end: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['end', b'end', 'start', b'start']) -> None: - ... ITEM_FIELD_NUMBER: builtins.int SLICE_FIELD_NUMBER: builtins.int - @property - def item(self) -> global___Expression.MaskExpression.ListSelect.ListSelectItem.ListElement: - ... - + def item(self) -> Global___Expression.MaskExpression.ListSelect.ListSelectItem.ListElement: ... @property - def slice(self) -> global___Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice: - ... - - def __init__(self, *, item: global___Expression.MaskExpression.ListSelect.ListSelectItem.ListElement | None=..., slice: global___Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['item', b'item', 'slice', b'slice', 'type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['item', b'item', 'slice', b'slice', 'type', b'type']) -> None: - ... + def slice(self) -> Global___Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice: ... + def __init__( + self, + *, + item: Global___Expression.MaskExpression.ListSelect.ListSelectItem.ListElement | None = ..., + slice: Global___Expression.MaskExpression.ListSelect.ListSelectItem.ListSlice | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["item", b"item", "slice", b"slice", "type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["item", b"item", "slice", b"slice", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_type: typing_extensions.TypeAlias = typing.Literal["item", "slice"] + _WhichOneofArgType_type: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_type) -> _WhichOneofReturnType_type | None: ... - def WhichOneof(self, oneof_group: typing.Literal['type', b'type']) -> typing.Literal['item', 'slice'] | None: - ... SELECTION_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int - @property - def selection(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression.MaskExpression.ListSelect.ListSelectItem]: - ... - + def selection(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression.MaskExpression.ListSelect.ListSelectItem]: ... @property - def child(self) -> global___Expression.MaskExpression.Select: - ... - - def __init__(self, *, selection: collections.abc.Iterable[global___Expression.MaskExpression.ListSelect.ListSelectItem] | None=..., child: global___Expression.MaskExpression.Select | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['child', b'child']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'selection', b'selection']) -> None: - ... + def child(self) -> Global___Expression.MaskExpression.Select: ... + def __init__( + self, + *, + selection: collections.abc.Iterable[Global___Expression.MaskExpression.ListSelect.ListSelectItem] | None = ..., + child: Global___Expression.MaskExpression.Select | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "selection", b"selection"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class MapSelect(google.protobuf.message.Message): @@ -3836,75 +4093,77 @@ class Expression(google.protobuf.message.Message): @typing.final class MapKey(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MAP_KEY_FIELD_NUMBER: builtins.int map_key: builtins.str - - def __init__(self, *, map_key: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['map_key', b'map_key']) -> None: - ... + def __init__( + self, + *, + map_key: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["map_key", b"map_key"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class MapKeyExpression(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MAP_KEY_EXPRESSION_FIELD_NUMBER: builtins.int map_key_expression: builtins.str + def __init__( + self, + *, + map_key_expression: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["map_key_expression", b"map_key_expression"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, map_key_expression: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['map_key_expression', b'map_key_expression']) -> None: - ... KEY_FIELD_NUMBER: builtins.int EXPRESSION_FIELD_NUMBER: builtins.int CHILD_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___Expression.MaskExpression.MapSelect.MapKey: - ... - + def key(self) -> Global___Expression.MaskExpression.MapSelect.MapKey: ... @property - def expression(self) -> global___Expression.MaskExpression.MapSelect.MapKeyExpression: - ... - + def expression(self) -> Global___Expression.MaskExpression.MapSelect.MapKeyExpression: ... @property - def child(self) -> global___Expression.MaskExpression.Select: - ... - - def __init__(self, *, key: global___Expression.MaskExpression.MapSelect.MapKey | None=..., expression: global___Expression.MaskExpression.MapSelect.MapKeyExpression | None=..., child: global___Expression.MaskExpression.Select | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['child', b'child', 'expression', b'expression', 'key', b'key', 'select', b'select']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['child', b'child', 'expression', b'expression', 'key', b'key', 'select', b'select']) -> None: - ... + def child(self) -> Global___Expression.MaskExpression.Select: ... + def __init__( + self, + *, + key: Global___Expression.MaskExpression.MapSelect.MapKey | None = ..., + expression: Global___Expression.MaskExpression.MapSelect.MapKeyExpression | None = ..., + child: Global___Expression.MaskExpression.Select | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "expression", b"expression", "key", b"key", "select", b"select"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["child", b"child", "expression", b"expression", "key", b"key", "select", b"select"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_select: typing_extensions.TypeAlias = typing.Literal["key", "expression"] + _WhichOneofArgType_select: typing_extensions.TypeAlias = typing.Literal["select", b"select"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_select) -> _WhichOneofReturnType_select | None: ... - def WhichOneof(self, oneof_group: typing.Literal['select', b'select']) -> typing.Literal['key', 'expression'] | None: - ... SELECT_FIELD_NUMBER: builtins.int MAINTAIN_SINGULAR_STRUCT_FIELD_NUMBER: builtins.int maintain_singular_struct: builtins.bool - @property - def select(self) -> global___Expression.MaskExpression.StructSelect: - ... - - def __init__(self, *, select: global___Expression.MaskExpression.StructSelect | None=..., maintain_singular_struct: builtins.bool=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['select', b'select']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['maintain_singular_struct', b'maintain_singular_struct', 'select', b'select']) -> None: - ... + def select(self) -> Global___Expression.MaskExpression.StructSelect: ... + def __init__( + self, + *, + select: Global___Expression.MaskExpression.StructSelect | None = ..., + maintain_singular_struct: builtins.bool = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["select", b"select"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["maintain_singular_struct", b"maintain_singular_struct", "select", b"select"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FieldReference(google.protobuf.message.Message): """A reference to an inner part of a complex object. Can reference reference a single element or a masked version of elements """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -3912,70 +4171,74 @@ class Expression(google.protobuf.message.Message): """Singleton that expresses this FieldReference is rooted off the root incoming record type """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class OuterReference(google.protobuf.message.Message): """A root reference for the outer relation's subquery""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + STEPS_OUT_FIELD_NUMBER: builtins.int steps_out: builtins.int - "number of subquery boundaries to traverse up for this field's reference\n\n This value must be >= 1\n " + """number of subquery boundaries to traverse up for this field's reference - def __init__(self, *, steps_out: builtins.int=...) -> None: - ... + This value must be >= 1 + """ + def __init__( + self, + *, + steps_out: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["steps_out", b"steps_out"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['steps_out', b'steps_out']) -> None: - ... DIRECT_REFERENCE_FIELD_NUMBER: builtins.int MASKED_REFERENCE_FIELD_NUMBER: builtins.int EXPRESSION_FIELD_NUMBER: builtins.int ROOT_REFERENCE_FIELD_NUMBER: builtins.int OUTER_REFERENCE_FIELD_NUMBER: builtins.int - @property - def direct_reference(self) -> global___Expression.ReferenceSegment: - ... - + def direct_reference(self) -> Global___Expression.ReferenceSegment: ... @property - def masked_reference(self) -> global___Expression.MaskExpression: - ... - + def masked_reference(self) -> Global___Expression.MaskExpression: ... @property - def expression(self) -> global___Expression: - ... - + def expression(self) -> Global___Expression: ... @property - def root_reference(self) -> global___Expression.FieldReference.RootReference: - ... - + def root_reference(self) -> Global___Expression.FieldReference.RootReference: ... @property - def outer_reference(self) -> global___Expression.FieldReference.OuterReference: - ... - - def __init__(self, *, direct_reference: global___Expression.ReferenceSegment | None=..., masked_reference: global___Expression.MaskExpression | None=..., expression: global___Expression | None=..., root_reference: global___Expression.FieldReference.RootReference | None=..., outer_reference: global___Expression.FieldReference.OuterReference | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['direct_reference', b'direct_reference', 'expression', b'expression', 'masked_reference', b'masked_reference', 'outer_reference', b'outer_reference', 'reference_type', b'reference_type', 'root_reference', b'root_reference', 'root_type', b'root_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['direct_reference', b'direct_reference', 'expression', b'expression', 'masked_reference', b'masked_reference', 'outer_reference', b'outer_reference', 'reference_type', b'reference_type', 'root_reference', b'root_reference', 'root_type', b'root_type']) -> None: - ... - + def outer_reference(self) -> Global___Expression.FieldReference.OuterReference: ... + def __init__( + self, + *, + direct_reference: Global___Expression.ReferenceSegment | None = ..., + masked_reference: Global___Expression.MaskExpression | None = ..., + expression: Global___Expression | None = ..., + root_reference: Global___Expression.FieldReference.RootReference | None = ..., + outer_reference: Global___Expression.FieldReference.OuterReference | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["direct_reference", b"direct_reference", "expression", b"expression", "masked_reference", b"masked_reference", "outer_reference", b"outer_reference", "reference_type", b"reference_type", "root_reference", b"root_reference", "root_type", b"root_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["direct_reference", b"direct_reference", "expression", b"expression", "masked_reference", b"masked_reference", "outer_reference", b"outer_reference", "reference_type", b"reference_type", "root_reference", b"root_reference", "root_type", b"root_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_reference_type: typing_extensions.TypeAlias = typing.Literal["direct_reference", "masked_reference"] + _WhichOneofArgType_reference_type: typing_extensions.TypeAlias = typing.Literal["reference_type", b"reference_type"] + _WhichOneofReturnType_root_type: typing_extensions.TypeAlias = typing.Literal["expression", "root_reference", "outer_reference"] + _WhichOneofArgType_root_type: typing_extensions.TypeAlias = typing.Literal["root_type", b"root_type"] @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['reference_type', b'reference_type']) -> typing.Literal['direct_reference', 'masked_reference'] | None: - ... - + def WhichOneof(self, oneof_group: _WhichOneofArgType_reference_type) -> _WhichOneofReturnType_reference_type | None: ... @typing.overload - def WhichOneof(self, oneof_group: typing.Literal['root_type', b'root_type']) -> typing.Literal['expression', 'root_reference', 'outer_reference'] | None: - ... + def WhichOneof(self, oneof_group: _WhichOneofArgType_root_type) -> _WhichOneofReturnType_root_type | None: ... @typing.final class Subquery(google.protobuf.message.Message): """Subquery relation expression""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -3983,21 +4246,21 @@ class Expression(google.protobuf.message.Message): """A subquery with one row and one column. This is often an aggregate though not required to be. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - INPUT_FIELD_NUMBER: builtins.int + INPUT_FIELD_NUMBER: builtins.int @property - def input(self) -> global___Rel: - ... - - def __init__(self, *, input: global___Rel | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['input', b'input']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['input', b'input']) -> None: - ... + def input(self) -> Global___Rel: ... + def __init__( + self, + *, + input: Global___Rel | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["input", b"input"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class InPredicate(google.protobuf.message.Message): @@ -4009,66 +4272,65 @@ class Expression(google.protobuf.message.Message): x IN (SELECT * FROM t) (x, y) IN (SELECT a, b FROM t) """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NEEDLES_FIELD_NUMBER: builtins.int HAYSTACK_FIELD_NUMBER: builtins.int - @property - def needles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: - ... - + def needles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: ... @property - def haystack(self) -> global___Rel: - ... - - def __init__(self, *, needles: collections.abc.Iterable[global___Expression] | None=..., haystack: global___Rel | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['haystack', b'haystack']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['haystack', b'haystack', 'needles', b'needles']) -> None: - ... + def haystack(self) -> Global___Rel: ... + def __init__( + self, + *, + needles: collections.abc.Iterable[Global___Expression] | None = ..., + haystack: Global___Rel | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["haystack", b"haystack"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["haystack", b"haystack", "needles", b"needles"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SetPredicate(google.protobuf.message.Message): """A predicate over a set of rows in the form of a subquery EXISTS and UNIQUE are common SQL forms of this operation. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _PredicateOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _PredicateOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Expression.Subquery.SetPredicate._PredicateOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PREDICATE_OP_UNSPECIFIED: Expression.Subquery.SetPredicate._PredicateOp.ValueType - PREDICATE_OP_EXISTS: Expression.Subquery.SetPredicate._PredicateOp.ValueType - PREDICATE_OP_UNIQUE: Expression.Subquery.SetPredicate._PredicateOp.ValueType - - class PredicateOp(_PredicateOp, metaclass=_PredicateOpEnumTypeWrapper): - ... - PREDICATE_OP_UNSPECIFIED: Expression.Subquery.SetPredicate.PredicateOp.ValueType - PREDICATE_OP_EXISTS: Expression.Subquery.SetPredicate.PredicateOp.ValueType - PREDICATE_OP_UNIQUE: Expression.Subquery.SetPredicate.PredicateOp.ValueType + PREDICATE_OP_UNSPECIFIED: Expression.Subquery.SetPredicate._PredicateOp.ValueType # 0 + PREDICATE_OP_EXISTS: Expression.Subquery.SetPredicate._PredicateOp.ValueType # 1 + PREDICATE_OP_UNIQUE: Expression.Subquery.SetPredicate._PredicateOp.ValueType # 2 + + class PredicateOp(_PredicateOp, metaclass=_PredicateOpEnumTypeWrapper): ... + PREDICATE_OP_UNSPECIFIED: Expression.Subquery.SetPredicate.PredicateOp.ValueType # 0 + PREDICATE_OP_EXISTS: Expression.Subquery.SetPredicate.PredicateOp.ValueType # 1 + PREDICATE_OP_UNIQUE: Expression.Subquery.SetPredicate.PredicateOp.ValueType # 2 + PREDICATE_OP_FIELD_NUMBER: builtins.int TUPLES_FIELD_NUMBER: builtins.int - predicate_op: global___Expression.Subquery.SetPredicate.PredicateOp.ValueType - 'TODO: should allow expressions' - + predicate_op: Global___Expression.Subquery.SetPredicate.PredicateOp.ValueType + """TODO: should allow expressions""" @property - def tuples(self) -> global___Rel: - ... - - def __init__(self, *, predicate_op: global___Expression.Subquery.SetPredicate.PredicateOp.ValueType=..., tuples: global___Rel | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['tuples', b'tuples']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['predicate_op', b'predicate_op', 'tuples', b'tuples']) -> None: - ... + def tuples(self) -> Global___Rel: ... + def __init__( + self, + *, + predicate_op: Global___Expression.Subquery.SetPredicate.PredicateOp.ValueType = ..., + tuples: Global___Rel | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["tuples", b"tuples"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["predicate_op", b"predicate_op", "tuples", b"tuples"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class SetComparison(google.protobuf.message.Message): @@ -4079,104 +4341,112 @@ class Expression(google.protobuf.message.Message): FROM t1 WHERE x < ANY(SELECT y from t2) """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _ComparisonOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _ComparisonOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Expression.Subquery.SetComparison._ComparisonOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - COMPARISON_OP_UNSPECIFIED: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_EQ: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_NE: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_LT: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_GT: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_LE: Expression.Subquery.SetComparison._ComparisonOp.ValueType - COMPARISON_OP_GE: Expression.Subquery.SetComparison._ComparisonOp.ValueType - - class ComparisonOp(_ComparisonOp, metaclass=_ComparisonOpEnumTypeWrapper): - ... - COMPARISON_OP_UNSPECIFIED: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_EQ: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_NE: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_LT: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_GT: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_LE: Expression.Subquery.SetComparison.ComparisonOp.ValueType - COMPARISON_OP_GE: Expression.Subquery.SetComparison.ComparisonOp.ValueType + COMPARISON_OP_UNSPECIFIED: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 0 + COMPARISON_OP_EQ: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 1 + COMPARISON_OP_NE: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 2 + COMPARISON_OP_LT: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 3 + COMPARISON_OP_GT: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 4 + COMPARISON_OP_LE: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 5 + COMPARISON_OP_GE: Expression.Subquery.SetComparison._ComparisonOp.ValueType # 6 + + class ComparisonOp(_ComparisonOp, metaclass=_ComparisonOpEnumTypeWrapper): ... + COMPARISON_OP_UNSPECIFIED: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 0 + COMPARISON_OP_EQ: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 1 + COMPARISON_OP_NE: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 2 + COMPARISON_OP_LT: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 3 + COMPARISON_OP_GT: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 4 + COMPARISON_OP_LE: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 5 + COMPARISON_OP_GE: Expression.Subquery.SetComparison.ComparisonOp.ValueType # 6 class _ReductionOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _ReductionOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Expression.Subquery.SetComparison._ReductionOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - REDUCTION_OP_UNSPECIFIED: Expression.Subquery.SetComparison._ReductionOp.ValueType - REDUCTION_OP_ANY: Expression.Subquery.SetComparison._ReductionOp.ValueType - REDUCTION_OP_ALL: Expression.Subquery.SetComparison._ReductionOp.ValueType - - class ReductionOp(_ReductionOp, metaclass=_ReductionOpEnumTypeWrapper): - ... - REDUCTION_OP_UNSPECIFIED: Expression.Subquery.SetComparison.ReductionOp.ValueType - REDUCTION_OP_ANY: Expression.Subquery.SetComparison.ReductionOp.ValueType - REDUCTION_OP_ALL: Expression.Subquery.SetComparison.ReductionOp.ValueType + REDUCTION_OP_UNSPECIFIED: Expression.Subquery.SetComparison._ReductionOp.ValueType # 0 + REDUCTION_OP_ANY: Expression.Subquery.SetComparison._ReductionOp.ValueType # 1 + REDUCTION_OP_ALL: Expression.Subquery.SetComparison._ReductionOp.ValueType # 2 + + class ReductionOp(_ReductionOp, metaclass=_ReductionOpEnumTypeWrapper): ... + REDUCTION_OP_UNSPECIFIED: Expression.Subquery.SetComparison.ReductionOp.ValueType # 0 + REDUCTION_OP_ANY: Expression.Subquery.SetComparison.ReductionOp.ValueType # 1 + REDUCTION_OP_ALL: Expression.Subquery.SetComparison.ReductionOp.ValueType # 2 + REDUCTION_OP_FIELD_NUMBER: builtins.int COMPARISON_OP_FIELD_NUMBER: builtins.int LEFT_FIELD_NUMBER: builtins.int RIGHT_FIELD_NUMBER: builtins.int - reduction_op: global___Expression.Subquery.SetComparison.ReductionOp.ValueType - 'ANY or ALL' - comparison_op: global___Expression.Subquery.SetComparison.ComparisonOp.ValueType - 'A comparison operator' - + reduction_op: Global___Expression.Subquery.SetComparison.ReductionOp.ValueType + """ANY or ALL""" + comparison_op: Global___Expression.Subquery.SetComparison.ComparisonOp.ValueType + """A comparison operator""" @property - def left(self) -> global___Expression: + def left(self) -> Global___Expression: """left side of the expression""" @property - def right(self) -> global___Rel: + def right(self) -> Global___Rel: """right side of the expression""" - def __init__(self, *, reduction_op: global___Expression.Subquery.SetComparison.ReductionOp.ValueType=..., comparison_op: global___Expression.Subquery.SetComparison.ComparisonOp.ValueType=..., left: global___Expression | None=..., right: global___Rel | None=...) -> None: - ... + def __init__( + self, + *, + reduction_op: Global___Expression.Subquery.SetComparison.ReductionOp.ValueType = ..., + comparison_op: Global___Expression.Subquery.SetComparison.ComparisonOp.ValueType = ..., + left: Global___Expression | None = ..., + right: Global___Rel | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["left", b"left", "right", b"right"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["comparison_op", b"comparison_op", "left", b"left", "reduction_op", b"reduction_op", "right", b"right"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['left', b'left', 'right', b'right']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['comparison_op', b'comparison_op', 'left', b'left', 'reduction_op', b'reduction_op', 'right', b'right']) -> None: - ... SCALAR_FIELD_NUMBER: builtins.int IN_PREDICATE_FIELD_NUMBER: builtins.int SET_PREDICATE_FIELD_NUMBER: builtins.int SET_COMPARISON_FIELD_NUMBER: builtins.int - @property - def scalar(self) -> global___Expression.Subquery.Scalar: + def scalar(self) -> Global___Expression.Subquery.Scalar: """Scalar subquery""" @property - def in_predicate(self) -> global___Expression.Subquery.InPredicate: + def in_predicate(self) -> Global___Expression.Subquery.InPredicate: """x IN y predicate""" @property - def set_predicate(self) -> global___Expression.Subquery.SetPredicate: + def set_predicate(self) -> Global___Expression.Subquery.SetPredicate: """EXISTS/UNIQUE predicate""" @property - def set_comparison(self) -> global___Expression.Subquery.SetComparison: + def set_comparison(self) -> Global___Expression.Subquery.SetComparison: """ANY/ALL predicate""" - def __init__(self, *, scalar: global___Expression.Subquery.Scalar | None=..., in_predicate: global___Expression.Subquery.InPredicate | None=..., set_predicate: global___Expression.Subquery.SetPredicate | None=..., set_comparison: global___Expression.Subquery.SetComparison | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['in_predicate', b'in_predicate', 'scalar', b'scalar', 'set_comparison', b'set_comparison', 'set_predicate', b'set_predicate', 'subquery_type', b'subquery_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['in_predicate', b'in_predicate', 'scalar', b'scalar', 'set_comparison', b'set_comparison', 'set_predicate', b'set_predicate', 'subquery_type', b'subquery_type']) -> None: - ... + def __init__( + self, + *, + scalar: Global___Expression.Subquery.Scalar | None = ..., + in_predicate: Global___Expression.Subquery.InPredicate | None = ..., + set_predicate: Global___Expression.Subquery.SetPredicate | None = ..., + set_comparison: Global___Expression.Subquery.SetComparison | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["in_predicate", b"in_predicate", "scalar", b"scalar", "set_comparison", b"set_comparison", "set_predicate", b"set_predicate", "subquery_type", b"subquery_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["in_predicate", b"in_predicate", "scalar", b"scalar", "set_comparison", b"set_comparison", "set_predicate", b"set_predicate", "subquery_type", b"subquery_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_subquery_type: typing_extensions.TypeAlias = typing.Literal["scalar", "in_predicate", "set_predicate", "set_comparison"] + _WhichOneofArgType_subquery_type: typing_extensions.TypeAlias = typing.Literal["subquery_type", b"subquery_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_subquery_type) -> _WhichOneofReturnType_subquery_type | None: ... - def WhichOneof(self, oneof_group: typing.Literal['subquery_type', b'subquery_type']) -> typing.Literal['scalar', 'in_predicate', 'set_predicate', 'set_comparison'] | None: - ... LITERAL_FIELD_NUMBER: builtins.int SELECTION_FIELD_NUMBER: builtins.int SCALAR_FUNCTION_FIELD_NUMBER: builtins.int @@ -4190,175 +4460,173 @@ class Expression(google.protobuf.message.Message): NESTED_FIELD_NUMBER: builtins.int DYNAMIC_PARAMETER_FIELD_NUMBER: builtins.int ENUM_FIELD_NUMBER: builtins.int - @property - def literal(self) -> global___Expression.Literal: - ... - + def literal(self) -> Global___Expression.Literal: ... @property - def selection(self) -> global___Expression.FieldReference: - ... - + def selection(self) -> Global___Expression.FieldReference: ... @property - def scalar_function(self) -> global___Expression.ScalarFunction: - ... - + def scalar_function(self) -> Global___Expression.ScalarFunction: ... @property - def window_function(self) -> global___Expression.WindowFunction: - ... - + def window_function(self) -> Global___Expression.WindowFunction: ... @property - def if_then(self) -> global___Expression.IfThen: - ... - + def if_then(self) -> Global___Expression.IfThen: ... @property - def switch_expression(self) -> global___Expression.SwitchExpression: - ... - + def switch_expression(self) -> Global___Expression.SwitchExpression: ... @property - def singular_or_list(self) -> global___Expression.SingularOrList: - ... - + def singular_or_list(self) -> Global___Expression.SingularOrList: ... @property - def multi_or_list(self) -> global___Expression.MultiOrList: - ... - + def multi_or_list(self) -> Global___Expression.MultiOrList: ... @property - def cast(self) -> global___Expression.Cast: - ... - + def cast(self) -> Global___Expression.Cast: ... @property - def subquery(self) -> global___Expression.Subquery: - ... - + def subquery(self) -> Global___Expression.Subquery: ... @property - def nested(self) -> global___Expression.Nested: - ... - + def nested(self) -> Global___Expression.Nested: ... @property - def dynamic_parameter(self) -> global___DynamicParameter: - ... - + def dynamic_parameter(self) -> Global___DynamicParameter: ... @property - def enum(self) -> global___Expression.Enum: + def enum(self) -> Global___Expression.Enum: """deprecated: enum literals are only sensible in the context of function arguments, for which FunctionArgument should now be used """ - def __init__(self, *, literal: global___Expression.Literal | None=..., selection: global___Expression.FieldReference | None=..., scalar_function: global___Expression.ScalarFunction | None=..., window_function: global___Expression.WindowFunction | None=..., if_then: global___Expression.IfThen | None=..., switch_expression: global___Expression.SwitchExpression | None=..., singular_or_list: global___Expression.SingularOrList | None=..., multi_or_list: global___Expression.MultiOrList | None=..., cast: global___Expression.Cast | None=..., subquery: global___Expression.Subquery | None=..., nested: global___Expression.Nested | None=..., dynamic_parameter: global___DynamicParameter | None=..., enum: global___Expression.Enum | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['cast', b'cast', 'dynamic_parameter', b'dynamic_parameter', 'enum', b'enum', 'if_then', b'if_then', 'literal', b'literal', 'multi_or_list', b'multi_or_list', 'nested', b'nested', 'rex_type', b'rex_type', 'scalar_function', b'scalar_function', 'selection', b'selection', 'singular_or_list', b'singular_or_list', 'subquery', b'subquery', 'switch_expression', b'switch_expression', 'window_function', b'window_function']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['cast', b'cast', 'dynamic_parameter', b'dynamic_parameter', 'enum', b'enum', 'if_then', b'if_then', 'literal', b'literal', 'multi_or_list', b'multi_or_list', 'nested', b'nested', 'rex_type', b'rex_type', 'scalar_function', b'scalar_function', 'selection', b'selection', 'singular_or_list', b'singular_or_list', 'subquery', b'subquery', 'switch_expression', b'switch_expression', 'window_function', b'window_function']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['rex_type', b'rex_type']) -> typing.Literal['literal', 'selection', 'scalar_function', 'window_function', 'if_then', 'switch_expression', 'singular_or_list', 'multi_or_list', 'cast', 'subquery', 'nested', 'dynamic_parameter', 'enum'] | None: - ... -global___Expression = Expression + def __init__( + self, + *, + literal: Global___Expression.Literal | None = ..., + selection: Global___Expression.FieldReference | None = ..., + scalar_function: Global___Expression.ScalarFunction | None = ..., + window_function: Global___Expression.WindowFunction | None = ..., + if_then: Global___Expression.IfThen | None = ..., + switch_expression: Global___Expression.SwitchExpression | None = ..., + singular_or_list: Global___Expression.SingularOrList | None = ..., + multi_or_list: Global___Expression.MultiOrList | None = ..., + cast: Global___Expression.Cast | None = ..., + subquery: Global___Expression.Subquery | None = ..., + nested: Global___Expression.Nested | None = ..., + dynamic_parameter: Global___DynamicParameter | None = ..., + enum: Global___Expression.Enum | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["cast", b"cast", "dynamic_parameter", b"dynamic_parameter", "enum", b"enum", "if_then", b"if_then", "literal", b"literal", "multi_or_list", b"multi_or_list", "nested", b"nested", "rex_type", b"rex_type", "scalar_function", b"scalar_function", "selection", b"selection", "singular_or_list", b"singular_or_list", "subquery", b"subquery", "switch_expression", b"switch_expression", "window_function", b"window_function"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["cast", b"cast", "dynamic_parameter", b"dynamic_parameter", "enum", b"enum", "if_then", b"if_then", "literal", b"literal", "multi_or_list", b"multi_or_list", "nested", b"nested", "rex_type", b"rex_type", "scalar_function", b"scalar_function", "selection", b"selection", "singular_or_list", b"singular_or_list", "subquery", b"subquery", "switch_expression", b"switch_expression", "window_function", b"window_function"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_rex_type: typing_extensions.TypeAlias = typing.Literal["literal", "selection", "scalar_function", "window_function", "if_then", "switch_expression", "singular_or_list", "multi_or_list", "cast", "subquery", "nested", "dynamic_parameter", "enum"] + _WhichOneofArgType_rex_type: typing_extensions.TypeAlias = typing.Literal["rex_type", b"rex_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_rex_type) -> _WhichOneofReturnType_rex_type | None: ... + +Global___Expression: typing_extensions.TypeAlias = Expression @typing.final class DynamicParameter(google.protobuf.message.Message): """Expression that represents a dynamic parameter. Dynamic parameters are identified by a surrogate key within a plan. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int PARAMETER_REFERENCE_FIELD_NUMBER: builtins.int parameter_reference: builtins.int - 'The surrogate key used within a plan to reference a specific parameter binding.' - + """The surrogate key used within a plan to reference a specific parameter binding.""" @property - def type(self) -> proto.type_pb2.Type: + def type(self) -> substrait.gen.proto.type_pb2.Type: """The type of the dynamic parameter.""" - def __init__(self, *, type: proto.type_pb2.Type | None=..., parameter_reference: builtins.int=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... + def __init__( + self, + *, + type: substrait.gen.proto.type_pb2.Type | None = ..., + parameter_reference: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["parameter_reference", b"parameter_reference", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['parameter_reference', b'parameter_reference', 'type', b'type']) -> None: - ... -global___DynamicParameter = DynamicParameter +Global___DynamicParameter: typing_extensions.TypeAlias = DynamicParameter @typing.final class SortField(google.protobuf.message.Message): """The description of a field to sort on (including the direction of sorting and null semantics)""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _SortDirection: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _SortDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SortField._SortDirection.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SORT_DIRECTION_UNSPECIFIED: SortField._SortDirection.ValueType - SORT_DIRECTION_ASC_NULLS_FIRST: SortField._SortDirection.ValueType - SORT_DIRECTION_ASC_NULLS_LAST: SortField._SortDirection.ValueType - SORT_DIRECTION_DESC_NULLS_FIRST: SortField._SortDirection.ValueType - SORT_DIRECTION_DESC_NULLS_LAST: SortField._SortDirection.ValueType - SORT_DIRECTION_CLUSTERED: SortField._SortDirection.ValueType - - class SortDirection(_SortDirection, metaclass=_SortDirectionEnumTypeWrapper): - ... - SORT_DIRECTION_UNSPECIFIED: SortField.SortDirection.ValueType - SORT_DIRECTION_ASC_NULLS_FIRST: SortField.SortDirection.ValueType - SORT_DIRECTION_ASC_NULLS_LAST: SortField.SortDirection.ValueType - SORT_DIRECTION_DESC_NULLS_FIRST: SortField.SortDirection.ValueType - SORT_DIRECTION_DESC_NULLS_LAST: SortField.SortDirection.ValueType - SORT_DIRECTION_CLUSTERED: SortField.SortDirection.ValueType + SORT_DIRECTION_UNSPECIFIED: SortField._SortDirection.ValueType # 0 + SORT_DIRECTION_ASC_NULLS_FIRST: SortField._SortDirection.ValueType # 1 + SORT_DIRECTION_ASC_NULLS_LAST: SortField._SortDirection.ValueType # 2 + SORT_DIRECTION_DESC_NULLS_FIRST: SortField._SortDirection.ValueType # 3 + SORT_DIRECTION_DESC_NULLS_LAST: SortField._SortDirection.ValueType # 4 + SORT_DIRECTION_CLUSTERED: SortField._SortDirection.ValueType # 5 + + class SortDirection(_SortDirection, metaclass=_SortDirectionEnumTypeWrapper): ... + SORT_DIRECTION_UNSPECIFIED: SortField.SortDirection.ValueType # 0 + SORT_DIRECTION_ASC_NULLS_FIRST: SortField.SortDirection.ValueType # 1 + SORT_DIRECTION_ASC_NULLS_LAST: SortField.SortDirection.ValueType # 2 + SORT_DIRECTION_DESC_NULLS_FIRST: SortField.SortDirection.ValueType # 3 + SORT_DIRECTION_DESC_NULLS_LAST: SortField.SortDirection.ValueType # 4 + SORT_DIRECTION_CLUSTERED: SortField.SortDirection.ValueType # 5 + EXPR_FIELD_NUMBER: builtins.int DIRECTION_FIELD_NUMBER: builtins.int COMPARISON_FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int - direction: global___SortField.SortDirection.ValueType + direction: Global___SortField.SortDirection.ValueType comparison_function_reference: builtins.int - @property - def expr(self) -> global___Expression: - ... - - def __init__(self, *, expr: global___Expression | None=..., direction: global___SortField.SortDirection.ValueType=..., comparison_function_reference: builtins.int=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['comparison_function_reference', b'comparison_function_reference', 'direction', b'direction', 'expr', b'expr', 'sort_kind', b'sort_kind']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['comparison_function_reference', b'comparison_function_reference', 'direction', b'direction', 'expr', b'expr', 'sort_kind', b'sort_kind']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['sort_kind', b'sort_kind']) -> typing.Literal['direction', 'comparison_function_reference'] | None: - ... -global___SortField = SortField + def expr(self) -> Global___Expression: ... + def __init__( + self, + *, + expr: Global___Expression | None = ..., + direction: Global___SortField.SortDirection.ValueType = ..., + comparison_function_reference: builtins.int = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["comparison_function_reference", b"comparison_function_reference", "direction", b"direction", "expr", b"expr", "sort_kind", b"sort_kind"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["comparison_function_reference", b"comparison_function_reference", "direction", b"direction", "expr", b"expr", "sort_kind", b"sort_kind"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_sort_kind: typing_extensions.TypeAlias = typing.Literal["direction", "comparison_function_reference"] + _WhichOneofArgType_sort_kind: typing_extensions.TypeAlias = typing.Literal["sort_kind", b"sort_kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_sort_kind) -> _WhichOneofReturnType_sort_kind | None: ... + +Global___SortField: typing_extensions.TypeAlias = SortField @typing.final class AggregateFunction(google.protobuf.message.Message): """An aggregate function.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class _AggregationInvocation: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _AggregationInvocationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[AggregateFunction._AggregationInvocation.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - AGGREGATION_INVOCATION_UNSPECIFIED: AggregateFunction._AggregationInvocation.ValueType - 'This default value implies AGGREGATION_INVOCATION_ALL.' - AGGREGATION_INVOCATION_ALL: AggregateFunction._AggregationInvocation.ValueType - 'Use all values in the aggregation calculation.' - AGGREGATION_INVOCATION_DISTINCT: AggregateFunction._AggregationInvocation.ValueType - 'Use only distinct values in the aggregation calculation.' + AGGREGATION_INVOCATION_UNSPECIFIED: AggregateFunction._AggregationInvocation.ValueType # 0 + """This default value implies AGGREGATION_INVOCATION_ALL.""" + AGGREGATION_INVOCATION_ALL: AggregateFunction._AggregationInvocation.ValueType # 1 + """Use all values in the aggregation calculation.""" + AGGREGATION_INVOCATION_DISTINCT: AggregateFunction._AggregationInvocation.ValueType # 2 + """Use only distinct values in the aggregation calculation.""" class AggregationInvocation(_AggregationInvocation, metaclass=_AggregationInvocationEnumTypeWrapper): """Method in which equivalent records are merged before being aggregated.""" - AGGREGATION_INVOCATION_UNSPECIFIED: AggregateFunction.AggregationInvocation.ValueType - 'This default value implies AGGREGATION_INVOCATION_ALL.' - AGGREGATION_INVOCATION_ALL: AggregateFunction.AggregationInvocation.ValueType - 'Use all values in the aggregation calculation.' - AGGREGATION_INVOCATION_DISTINCT: AggregateFunction.AggregationInvocation.ValueType - 'Use only distinct values in the aggregation calculation.' + + AGGREGATION_INVOCATION_UNSPECIFIED: AggregateFunction.AggregationInvocation.ValueType # 0 + """This default value implies AGGREGATION_INVOCATION_ALL.""" + AGGREGATION_INVOCATION_ALL: AggregateFunction.AggregationInvocation.ValueType # 1 + """Use all values in the aggregation calculation.""" + AGGREGATION_INVOCATION_DISTINCT: AggregateFunction.AggregationInvocation.ValueType # 2 + """Use only distinct values in the aggregation calculation.""" + FUNCTION_REFERENCE_FIELD_NUMBER: builtins.int ARGUMENTS_FIELD_NUMBER: builtins.int OPTIONS_FIELD_NUMBER: builtins.int @@ -4368,14 +4636,21 @@ class AggregateFunction(google.protobuf.message.Message): INVOCATION_FIELD_NUMBER: builtins.int ARGS_FIELD_NUMBER: builtins.int function_reference: builtins.int - 'Points to a function_anchor defined in this plan, which must refer\n to an aggregate function in the associated YAML file. Required; 0 is\n considered to be a valid anchor/reference.\n ' - phase: global___AggregationPhase.ValueType - 'Describes which part of the aggregation to perform within the context of\n distributed algorithms. Required. Must be set to INITIAL_TO_RESULT for\n aggregate functions that are not decomposable.\n ' - invocation: global___AggregateFunction.AggregationInvocation.ValueType - 'Specifies whether equivalent records are merged before being aggregated.\n Optional, defaults to AGGREGATION_INVOCATION_ALL.\n ' - + """Points to a function_anchor defined in this plan, which must refer + to an aggregate function in the associated YAML file. Required; 0 is + considered to be a valid anchor/reference. + """ + phase: Global___AggregationPhase.ValueType + """Describes which part of the aggregation to perform within the context of + distributed algorithms. Required. Must be set to INITIAL_TO_RESULT for + aggregate functions that are not decomposable. + """ + invocation: Global___AggregateFunction.AggregationInvocation.ValueType + """Specifies whether equivalent records are merged before being aggregated. + Optional, defaults to AGGREGATION_INVOCATION_ALL. + """ @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionArgument]: + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionArgument]: """The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: @@ -4394,20 +4669,20 @@ class AggregateFunction(google.protobuf.message.Message): """ @property - def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionOption]: + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionOption]: """Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases. """ @property - def output_type(self) -> proto.type_pb2.Type: + def output_type(self) -> substrait.gen.proto.type_pb2.Type: """Must be set to the return type of the function, exactly as derived using the declaration in the extension. """ @property - def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SortField]: + def sorts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SortField]: """If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is @@ -4415,31 +4690,44 @@ class AggregateFunction(google.protobuf.message.Message): """ @property - def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Expression]: + def args(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expression]: """deprecated; use arguments instead""" - def __init__(self, *, function_reference: builtins.int=..., arguments: collections.abc.Iterable[global___FunctionArgument] | None=..., options: collections.abc.Iterable[global___FunctionOption] | None=..., output_type: proto.type_pb2.Type | None=..., phase: global___AggregationPhase.ValueType=..., sorts: collections.abc.Iterable[global___SortField] | None=..., invocation: global___AggregateFunction.AggregationInvocation.ValueType=..., args: collections.abc.Iterable[global___Expression] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['output_type', b'output_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['args', b'args', 'arguments', b'arguments', 'function_reference', b'function_reference', 'invocation', b'invocation', 'options', b'options', 'output_type', b'output_type', 'phase', b'phase', 'sorts', b'sorts']) -> None: - ... -global___AggregateFunction = AggregateFunction + def __init__( + self, + *, + function_reference: builtins.int = ..., + arguments: collections.abc.Iterable[Global___FunctionArgument] | None = ..., + options: collections.abc.Iterable[Global___FunctionOption] | None = ..., + output_type: substrait.gen.proto.type_pb2.Type | None = ..., + phase: Global___AggregationPhase.ValueType = ..., + sorts: collections.abc.Iterable[Global___SortField] | None = ..., + invocation: Global___AggregateFunction.AggregationInvocation.ValueType = ..., + args: collections.abc.Iterable[Global___Expression] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["output_type", b"output_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["args", b"args", "arguments", b"arguments", "function_reference", b"function_reference", "invocation", b"invocation", "options", b"options", "output_type", b"output_type", "phase", b"phase", "sorts", b"sorts"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___AggregateFunction: typing_extensions.TypeAlias = AggregateFunction @typing.final class ReferenceRel(google.protobuf.message.Message): """This rel is used to create references, in case we refer to a RelRoot field names will be ignored """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUBTREE_ORDINAL_FIELD_NUMBER: builtins.int subtree_ordinal: builtins.int - - def __init__(self, *, subtree_ordinal: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['subtree_ordinal', b'subtree_ordinal']) -> None: - ... -global___ReferenceRel = ReferenceRel \ No newline at end of file + def __init__( + self, + *, + subtree_ordinal: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["subtree_ordinal", b"subtree_ordinal"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ReferenceRel: typing_extensions.TypeAlias = ReferenceRel diff --git a/src/substrait/gen/proto/capabilities_pb2.py b/src/substrait/gen/proto/capabilities_pb2.py index 3fb01ca..ed43520 100644 --- a/src/substrait/gen/proto/capabilities_pb2.py +++ b/src/substrait/gen/proto/capabilities_pb2.py @@ -1,19 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/capabilities.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/capabilities.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/capabilities.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18proto/capabilities.proto\x12\x05proto"\xe8\x02\n\x0cCapabilities\x12-\n\x12substrait_versions\x18\x01 \x03(\tR\x11substraitVersions\x12?\n\x1cadvanced_extension_type_urls\x18\x02 \x03(\tR\x19advancedExtensionTypeUrls\x12P\n\x11simple_extensions\x18\x03 \x03(\x0b2#.proto.Capabilities.SimpleExtensionR\x10simpleExtensions\x1a\x95\x01\n\x0fSimpleExtension\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12#\n\rfunction_keys\x18\x02 \x03(\tR\x0cfunctionKeys\x12\x1b\n\ttype_keys\x18\x03 \x03(\tR\x08typeKeys\x12.\n\x13type_variation_keys\x18\x04 \x03(\tR\x11typeVariationKeysB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&substrait/gen/proto/capabilities.proto\x12\x13substrait.gen.proto\"\xf6\x02\n\x0c\x43\x61pabilities\x12-\n\x12substrait_versions\x18\x01 \x03(\tR\x11substraitVersions\x12?\n\x1c\x61\x64vanced_extension_type_urls\x18\x02 \x03(\tR\x19\x61\x64vancedExtensionTypeUrls\x12^\n\x11simple_extensions\x18\x03 \x03(\x0b\x32\x31.substrait.gen.proto.Capabilities.SimpleExtensionR\x10simpleExtensions\x1a\x95\x01\n\x0fSimpleExtension\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12#\n\rfunction_keys\x18\x02 \x03(\tR\x0c\x66unctionKeys\x12\x1b\n\ttype_keys\x18\x03 \x03(\tR\x08typeKeys\x12.\n\x13type_variation_keys\x18\x04 \x03(\tR\x11typeVariationKeysB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.capabilities_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.capabilities_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_CAPABILITIES']._serialized_start = 36 - _globals['_CAPABILITIES']._serialized_end = 396 - _globals['_CAPABILITIES_SIMPLEEXTENSION']._serialized_start = 247 - _globals['_CAPABILITIES_SIMPLEEXTENSION']._serialized_end = 396 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_CAPABILITIES']._serialized_start=64 + _globals['_CAPABILITIES']._serialized_end=438 + _globals['_CAPABILITIES_SIMPLEEXTENSION']._serialized_start=289 + _globals['_CAPABILITIES_SIMPLEEXTENSION']._serialized_end=438 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/capabilities_pb2.pyi b/src/substrait/gen/proto/capabilities_pb2.pyi index 48419e9..22be5b2 100644 --- a/src/substrait/gen/proto/capabilities_pb2.pyi +++ b/src/substrait/gen/proto/capabilities_pb2.pyi @@ -2,49 +2,57 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final class Capabilities(google.protobuf.message.Message): """Defines a set of Capabilities that a system (producer or consumer) supports.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class SimpleExtension(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + URI_FIELD_NUMBER: builtins.int FUNCTION_KEYS_FIELD_NUMBER: builtins.int TYPE_KEYS_FIELD_NUMBER: builtins.int TYPE_VARIATION_KEYS_FIELD_NUMBER: builtins.int uri: builtins.str - @property - def function_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def function_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def type_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def type_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def type_variation_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... + def type_variation_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + uri: builtins.str = ..., + function_keys: collections.abc.Iterable[builtins.str] | None = ..., + type_keys: collections.abc.Iterable[builtins.str] | None = ..., + type_variation_keys: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["function_keys", b"function_keys", "type_keys", b"type_keys", "type_variation_keys", b"type_variation_keys", "uri", b"uri"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, uri: builtins.str=..., function_keys: collections.abc.Iterable[builtins.str] | None=..., type_keys: collections.abc.Iterable[builtins.str] | None=..., type_variation_keys: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['function_keys', b'function_keys', 'type_keys', b'type_keys', 'type_variation_keys', b'type_variation_keys', 'uri', b'uri']) -> None: - ... SUBSTRAIT_VERSIONS_FIELD_NUMBER: builtins.int ADVANCED_EXTENSION_TYPE_URLS_FIELD_NUMBER: builtins.int SIMPLE_EXTENSIONS_FIELD_NUMBER: builtins.int - @property def substrait_versions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """List of Substrait versions this system supports""" @@ -56,12 +64,17 @@ class Capabilities(google.protobuf.message.Message): """ @property - def simple_extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Capabilities.SimpleExtension]: + def simple_extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Capabilities.SimpleExtension]: """list of simple extensions this system supports.""" - def __init__(self, *, substrait_versions: collections.abc.Iterable[builtins.str] | None=..., advanced_extension_type_urls: collections.abc.Iterable[builtins.str] | None=..., simple_extensions: collections.abc.Iterable[global___Capabilities.SimpleExtension] | None=...) -> None: - ... + def __init__( + self, + *, + substrait_versions: collections.abc.Iterable[builtins.str] | None = ..., + advanced_extension_type_urls: collections.abc.Iterable[builtins.str] | None = ..., + simple_extensions: collections.abc.Iterable[Global___Capabilities.SimpleExtension] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extension_type_urls", b"advanced_extension_type_urls", "simple_extensions", b"simple_extensions", "substrait_versions", b"substrait_versions"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['advanced_extension_type_urls', b'advanced_extension_type_urls', 'simple_extensions', b'simple_extensions', 'substrait_versions', b'substrait_versions']) -> None: - ... -global___Capabilities = Capabilities \ No newline at end of file +Global___Capabilities: typing_extensions.TypeAlias = Capabilities diff --git a/src/substrait/gen/proto/extended_expression_pb2.py b/src/substrait/gen/proto/extended_expression_pb2.py index cc612b9..414ce85 100644 --- a/src/substrait/gen/proto/extended_expression_pb2.py +++ b/src/substrait/gen/proto/extended_expression_pb2.py @@ -1,25 +1,45 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/extended_expression.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/extended_expression.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/extended_expression.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -from ..proto import algebra_pb2 as proto_dot_algebra__pb2 -from ..proto.extensions import extensions_pb2 as proto_dot_extensions_dot_extensions__pb2 -from ..proto import plan_pb2 as proto_dot_plan__pb2 -from ..proto import type_pb2 as proto_dot_type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproto/extended_expression.proto\x12\x05proto\x1a\x13proto/algebra.proto\x1a!proto/extensions/extensions.proto\x1a\x10proto/plan.proto\x1a\x10proto/type.proto"\xb0\x01\n\x13ExpressionReference\x123\n\nexpression\x18\x01 \x01(\x0b2\x11.proto.ExpressionH\x00R\nexpression\x124\n\x07measure\x18\x02 \x01(\x0b2\x18.proto.AggregateFunctionH\x00R\x07measure\x12!\n\x0coutput_names\x18\x03 \x03(\tR\x0boutputNamesB\x0b\n\texpr_type"\xa4\x04\n\x12ExtendedExpression\x12(\n\x07version\x18\x07 \x01(\x0b2\x0e.proto.VersionR\x07version\x12O\n\x0eextension_uris\x18\x01 \x03(\x0b2$.proto.extensions.SimpleExtensionURIB\x02\x18\x01R\rextensionUris\x12K\n\x0eextension_urns\x18\x08 \x03(\x0b2$.proto.extensions.SimpleExtensionURNR\rextensionUrns\x12L\n\nextensions\x18\x02 \x03(\x0b2,.proto.extensions.SimpleExtensionDeclarationR\nextensions\x12?\n\rreferred_expr\x18\x03 \x03(\x0b2\x1a.proto.ExpressionReferenceR\x0creferredExpr\x123\n\x0bbase_schema\x18\x04 \x01(\x0b2\x12.proto.NamedStructR\nbaseSchema\x12T\n\x13advanced_extensions\x18\x05 \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x12advancedExtensions\x12,\n\x12expected_type_urls\x18\x06 \x03(\tR\x10expectedTypeUrlsB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +from substrait.gen.proto import algebra_pb2 as substrait_dot_gen_dot_proto_dot_algebra__pb2 +from substrait.gen.proto.extensions import extensions_pb2 as substrait_dot_gen_dot_proto_dot_extensions_dot_extensions__pb2 +from substrait.gen.proto import plan_pb2 as substrait_dot_gen_dot_proto_dot_plan__pb2 +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-substrait/gen/proto/extended_expression.proto\x12\x13substrait.gen.proto\x1a!substrait/gen/proto/algebra.proto\x1a/substrait/gen/proto/extensions/extensions.proto\x1a\x1esubstrait/gen/proto/plan.proto\x1a\x1esubstrait/gen/proto/type.proto\"\xcc\x01\n\x13\x45xpressionReference\x12\x41\n\nexpression\x18\x01 \x01(\x0b\x32\x1f.substrait.gen.proto.ExpressionH\x00R\nexpression\x12\x42\n\x07measure\x18\x02 \x01(\x0b\x32&.substrait.gen.proto.AggregateFunctionH\x00R\x07measure\x12!\n\x0coutput_names\x18\x03 \x03(\tR\x0boutputNamesB\x0b\n\texpr_type\"\x86\x05\n\x12\x45xtendedExpression\x12\x36\n\x07version\x18\x07 \x01(\x0b\x32\x1c.substrait.gen.proto.VersionR\x07version\x12]\n\x0e\x65xtension_uris\x18\x01 \x03(\x0b\x32\x32.substrait.gen.proto.extensions.SimpleExtensionURIB\x02\x18\x01R\rextensionUris\x12Y\n\x0e\x65xtension_urns\x18\x08 \x03(\x0b\x32\x32.substrait.gen.proto.extensions.SimpleExtensionURNR\rextensionUrns\x12Z\n\nextensions\x18\x02 \x03(\x0b\x32:.substrait.gen.proto.extensions.SimpleExtensionDeclarationR\nextensions\x12M\n\rreferred_expr\x18\x03 \x03(\x0b\x32(.substrait.gen.proto.ExpressionReferenceR\x0creferredExpr\x12\x41\n\x0b\x62\x61se_schema\x18\x04 \x01(\x0b\x32 .substrait.gen.proto.NamedStructR\nbaseSchema\x12\x62\n\x13\x61\x64vanced_extensions\x18\x05 \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x12\x61\x64vancedExtensions\x12,\n\x12\x65xpected_type_urls\x18\x06 \x03(\tR\x10\x65xpectedTypeUrlsB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.extended_expression_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.extended_expression_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_EXTENDEDEXPRESSION'].fields_by_name['extension_uris']._loaded_options = None - _globals['_EXTENDEDEXPRESSION'].fields_by_name['extension_uris']._serialized_options = b'\x18\x01' - _globals['_EXPRESSIONREFERENCE']._serialized_start = 135 - _globals['_EXPRESSIONREFERENCE']._serialized_end = 311 - _globals['_EXTENDEDEXPRESSION']._serialized_start = 314 - _globals['_EXTENDEDEXPRESSION']._serialized_end = 862 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_EXTENDEDEXPRESSION'].fields_by_name['extension_uris']._loaded_options = None + _globals['_EXTENDEDEXPRESSION'].fields_by_name['extension_uris']._serialized_options = b'\030\001' + _globals['_EXPRESSIONREFERENCE']._serialized_start=219 + _globals['_EXPRESSIONREFERENCE']._serialized_end=423 + _globals['_EXTENDEDEXPRESSION']._serialized_start=426 + _globals['_EXTENDEDEXPRESSION']._serialized_end=1072 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/extended_expression_pb2.pyi b/src/substrait/gen/proto/extended_expression_pb2.pyi index 27829c8..2d4873c 100644 --- a/src/substrait/gen/proto/extended_expression_pb2.pyi +++ b/src/substrait/gen/proto/extended_expression_pb2.pyi @@ -2,53 +2,66 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -from .. import proto +import substrait.gen.proto.algebra_pb2 +import substrait.gen.proto.extensions.extensions_pb2 +import substrait.gen.proto.plan_pb2 +import substrait.gen.proto.type_pb2 +import sys import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final class ExpressionReference(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXPRESSION_FIELD_NUMBER: builtins.int MEASURE_FIELD_NUMBER: builtins.int OUTPUT_NAMES_FIELD_NUMBER: builtins.int - @property - def expression(self) -> proto.algebra_pb2.Expression: - ... - + def expression(self) -> substrait.gen.proto.algebra_pb2.Expression: ... @property - def measure(self) -> proto.algebra_pb2.AggregateFunction: - ... - + def measure(self) -> substrait.gen.proto.algebra_pb2.AggregateFunction: ... @property def output_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """Field names in depth-first order""" - def __init__(self, *, expression: proto.algebra_pb2.Expression | None=..., measure: proto.algebra_pb2.AggregateFunction | None=..., output_names: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['expr_type', b'expr_type', 'expression', b'expression', 'measure', b'measure']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['expr_type', b'expr_type', 'expression', b'expression', 'measure', b'measure', 'output_names', b'output_names']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['expr_type', b'expr_type']) -> typing.Literal['expression', 'measure'] | None: - ... -global___ExpressionReference = ExpressionReference + def __init__( + self, + *, + expression: substrait.gen.proto.algebra_pb2.Expression | None = ..., + measure: substrait.gen.proto.algebra_pb2.AggregateFunction | None = ..., + output_names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["expr_type", b"expr_type", "expression", b"expression", "measure", b"measure"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expr_type", b"expr_type", "expression", b"expression", "measure", b"measure", "output_names", b"output_names"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_expr_type: typing_extensions.TypeAlias = typing.Literal["expression", "measure"] + _WhichOneofArgType_expr_type: typing_extensions.TypeAlias = typing.Literal["expr_type", b"expr_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_expr_type) -> _WhichOneofReturnType_expr_type | None: ... + +Global___ExpressionReference: typing_extensions.TypeAlias = ExpressionReference @typing.final class ExtendedExpression(google.protobuf.message.Message): """Describe a set of operations to complete. For compactness sake, identifiers are normalized at the plan level. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int EXTENSION_URIS_FIELD_NUMBER: builtins.int EXTENSION_URNS_FIELD_NUMBER: builtins.int @@ -57,39 +70,36 @@ class ExtendedExpression(google.protobuf.message.Message): BASE_SCHEMA_FIELD_NUMBER: builtins.int ADVANCED_EXTENSIONS_FIELD_NUMBER: builtins.int EXPECTED_TYPE_URLS_FIELD_NUMBER: builtins.int - @property - def version(self) -> proto.plan_pb2.Version: + def version(self) -> substrait.gen.proto.plan_pb2.Version: """Substrait version of the expression. Optional up to 0.17.0, required for later versions. """ @property - def extension_uris(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionURI]: + def extension_uris(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURI]: """a list of yaml specifications this expression may depend on this is now deprecated and extension_urns should be used instead. """ @property - def extension_urns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionURN]: + def extension_urns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURN]: """a list of extension specifications this expression may depend on, referenced by Extension URN """ @property - def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionDeclaration]: + def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionDeclaration]: """a list of extensions this expression may depend on""" @property - def referred_expr(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExpressionReference]: + def referred_expr(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ExpressionReference]: """one or more expression trees with same order in plan rel""" @property - def base_schema(self) -> proto.type_pb2.NamedStruct: - ... - + def base_schema(self) -> substrait.gen.proto.type_pb2.NamedStruct: ... @property - def advanced_extensions(self) -> proto.extensions.extensions_pb2.AdvancedExtension: + def advanced_extensions(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: """additional extensions associated with this expression.""" @property @@ -101,12 +111,21 @@ class ExtendedExpression(google.protobuf.message.Message): one or more message types defined here are unknown. """ - def __init__(self, *, version: proto.plan_pb2.Version | None=..., extension_uris: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionURI] | None=..., extension_urns: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionURN] | None=..., extensions: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionDeclaration] | None=..., referred_expr: collections.abc.Iterable[global___ExpressionReference] | None=..., base_schema: proto.type_pb2.NamedStruct | None=..., advanced_extensions: proto.extensions.extensions_pb2.AdvancedExtension | None=..., expected_type_urls: collections.abc.Iterable[builtins.str] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extensions', b'advanced_extensions', 'base_schema', b'base_schema', 'version', b'version']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extensions', b'advanced_extensions', 'base_schema', b'base_schema', 'expected_type_urls', b'expected_type_urls', 'extension_uris', b'extension_uris', 'extension_urns', b'extension_urns', 'extensions', b'extensions', 'referred_expr', b'referred_expr', 'version', b'version']) -> None: - ... -global___ExtendedExpression = ExtendedExpression \ No newline at end of file + def __init__( + self, + *, + version: substrait.gen.proto.plan_pb2.Version | None = ..., + extension_uris: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURI] | None = ..., + extension_urns: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURN] | None = ..., + extensions: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionDeclaration] | None = ..., + referred_expr: collections.abc.Iterable[Global___ExpressionReference] | None = ..., + base_schema: substrait.gen.proto.type_pb2.NamedStruct | None = ..., + advanced_extensions: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + expected_type_urls: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extensions", b"advanced_extensions", "base_schema", b"base_schema", "version", b"version"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extensions", b"advanced_extensions", "base_schema", b"base_schema", "expected_type_urls", b"expected_type_urls", "extension_uris", b"extension_uris", "extension_urns", b"extension_urns", "extensions", b"extensions", "referred_expr", b"referred_expr", "version", b"version"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___ExtendedExpression: typing_extensions.TypeAlias = ExtendedExpression diff --git a/src/substrait/gen/proto/extensions/__init__.pyi b/src/substrait/gen/proto/extensions/__init__.pyi deleted file mode 100644 index 296a60a..0000000 --- a/src/substrait/gen/proto/extensions/__init__.pyi +++ /dev/null @@ -1 +0,0 @@ -from . import extensions_pb2 diff --git a/src/substrait/gen/proto/extensions/extensions_pb2.py b/src/substrait/gen/proto/extensions/extensions_pb2.py index cd74ec8..94daadb 100644 --- a/src/substrait/gen/proto/extensions/extensions_pb2.py +++ b/src/substrait/gen/proto/extensions/extensions_pb2.py @@ -1,38 +1,58 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/extensions/extensions.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/extensions/extensions.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/extensions/extensions.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() + + from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!proto/extensions/extensions.proto\x12\x10proto.extensions\x1a\x19google/protobuf/any.proto"\\\n\x12SimpleExtensionURI\x120\n\x14extension_uri_anchor\x18\x01 \x01(\rR\x12extensionUriAnchor\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri:\x02\x18\x01"X\n\x12SimpleExtensionURN\x120\n\x14extension_urn_anchor\x18\x01 \x01(\rR\x12extensionUrnAnchor\x12\x10\n\x03urn\x18\x02 \x01(\tR\x03urn"\xdc\x07\n\x1aSimpleExtensionDeclaration\x12c\n\x0eextension_type\x18\x01 \x01(\x0b2:.proto.extensions.SimpleExtensionDeclaration.ExtensionTypeH\x00R\rextensionType\x12\x7f\n\x18extension_type_variation\x18\x02 \x01(\x0b2C.proto.extensions.SimpleExtensionDeclaration.ExtensionTypeVariationH\x00R\x16extensionTypeVariation\x12o\n\x12extension_function\x18\x03 \x01(\x0b2>.proto.extensions.SimpleExtensionDeclaration.ExtensionFunctionH\x00R\x11extensionFunction\x1a\xb8\x01\n\rExtensionType\x12:\n\x17extension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15extensionUriReference\x126\n\x17extension_urn_reference\x18\x04 \x01(\rR\x15extensionUrnReference\x12\x1f\n\x0btype_anchor\x18\x02 \x01(\rR\ntypeAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x1a\xd4\x01\n\x16ExtensionTypeVariation\x12:\n\x17extension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15extensionUriReference\x126\n\x17extension_urn_reference\x18\x04 \x01(\rR\x15extensionUrnReference\x122\n\x15type_variation_anchor\x18\x02 \x01(\rR\x13typeVariationAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x1a\xc4\x01\n\x11ExtensionFunction\x12:\n\x17extension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15extensionUriReference\x126\n\x17extension_urn_reference\x18\x04 \x01(\rR\x15extensionUrnReference\x12\'\n\x0ffunction_anchor\x18\x02 \x01(\rR\x0efunctionAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04nameB\x0e\n\x0cmapping_type"\x85\x01\n\x11AdvancedExtension\x128\n\x0coptimization\x18\x01 \x03(\x0b2\x14.google.protobuf.AnyR\x0coptimization\x126\n\x0benhancement\x18\x02 \x01(\x0b2\x14.google.protobuf.AnyR\x0benhancementB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/substrait/gen/proto/extensions/extensions.proto\x12\x1esubstrait.gen.proto.extensions\x1a\x19google/protobuf/any.proto\"\\\n\x12SimpleExtensionURI\x12\x30\n\x14\x65xtension_uri_anchor\x18\x01 \x01(\rR\x12\x65xtensionUriAnchor\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri:\x02\x18\x01\"X\n\x12SimpleExtensionURN\x12\x30\n\x14\x65xtension_urn_anchor\x18\x01 \x01(\rR\x12\x65xtensionUrnAnchor\x12\x10\n\x03urn\x18\x02 \x01(\tR\x03urn\"\x87\x08\n\x1aSimpleExtensionDeclaration\x12q\n\x0e\x65xtension_type\x18\x01 \x01(\x0b\x32H.substrait.gen.proto.extensions.SimpleExtensionDeclaration.ExtensionTypeH\x00R\rextensionType\x12\x8d\x01\n\x18\x65xtension_type_variation\x18\x02 \x01(\x0b\x32Q.substrait.gen.proto.extensions.SimpleExtensionDeclaration.ExtensionTypeVariationH\x00R\x16\x65xtensionTypeVariation\x12}\n\x12\x65xtension_function\x18\x03 \x01(\x0b\x32L.substrait.gen.proto.extensions.SimpleExtensionDeclaration.ExtensionFunctionH\x00R\x11\x65xtensionFunction\x1a\xb8\x01\n\rExtensionType\x12:\n\x17\x65xtension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15\x65xtensionUriReference\x12\x36\n\x17\x65xtension_urn_reference\x18\x04 \x01(\rR\x15\x65xtensionUrnReference\x12\x1f\n\x0btype_anchor\x18\x02 \x01(\rR\ntypeAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x1a\xd4\x01\n\x16\x45xtensionTypeVariation\x12:\n\x17\x65xtension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15\x65xtensionUriReference\x12\x36\n\x17\x65xtension_urn_reference\x18\x04 \x01(\rR\x15\x65xtensionUrnReference\x12\x32\n\x15type_variation_anchor\x18\x02 \x01(\rR\x13typeVariationAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x1a\xc4\x01\n\x11\x45xtensionFunction\x12:\n\x17\x65xtension_uri_reference\x18\x01 \x01(\rB\x02\x18\x01R\x15\x65xtensionUriReference\x12\x36\n\x17\x65xtension_urn_reference\x18\x04 \x01(\rR\x15\x65xtensionUrnReference\x12\'\n\x0f\x66unction_anchor\x18\x02 \x01(\rR\x0e\x66unctionAnchor\x12\x12\n\x04name\x18\x03 \x01(\tR\x04nameB\x0e\n\x0cmapping_type\"\x85\x01\n\x11\x41\x64vancedExtension\x12\x38\n\x0coptimization\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x0coptimization\x12\x36\n\x0b\x65nhancement\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x0b\x65nhancementB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.extensions.extensions_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.extensions.extensions_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_SIMPLEEXTENSIONURI']._loaded_options = None - _globals['_SIMPLEEXTENSIONURI']._serialized_options = b'\x18\x01' - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE'].fields_by_name['extension_uri_reference']._loaded_options = None - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE'].fields_by_name['extension_uri_reference']._serialized_options = b'\x18\x01' - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION'].fields_by_name['extension_uri_reference']._loaded_options = None - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION'].fields_by_name['extension_uri_reference']._serialized_options = b'\x18\x01' - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION'].fields_by_name['extension_uri_reference']._loaded_options = None - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION'].fields_by_name['extension_uri_reference']._serialized_options = b'\x18\x01' - _globals['_SIMPLEEXTENSIONURI']._serialized_start = 82 - _globals['_SIMPLEEXTENSIONURI']._serialized_end = 174 - _globals['_SIMPLEEXTENSIONURN']._serialized_start = 176 - _globals['_SIMPLEEXTENSIONURN']._serialized_end = 264 - _globals['_SIMPLEEXTENSIONDECLARATION']._serialized_start = 267 - _globals['_SIMPLEEXTENSIONDECLARATION']._serialized_end = 1255 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE']._serialized_start = 641 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE']._serialized_end = 825 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION']._serialized_start = 828 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION']._serialized_end = 1040 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION']._serialized_start = 1043 - _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION']._serialized_end = 1239 - _globals['_ADVANCEDEXTENSION']._serialized_start = 1258 - _globals['_ADVANCEDEXTENSION']._serialized_end = 1391 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_SIMPLEEXTENSIONURI']._loaded_options = None + _globals['_SIMPLEEXTENSIONURI']._serialized_options = b'\030\001' + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE'].fields_by_name['extension_uri_reference']._loaded_options = None + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE'].fields_by_name['extension_uri_reference']._serialized_options = b'\030\001' + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION'].fields_by_name['extension_uri_reference']._loaded_options = None + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION'].fields_by_name['extension_uri_reference']._serialized_options = b'\030\001' + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION'].fields_by_name['extension_uri_reference']._loaded_options = None + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION'].fields_by_name['extension_uri_reference']._serialized_options = b'\030\001' + _globals['_SIMPLEEXTENSIONURI']._serialized_start=110 + _globals['_SIMPLEEXTENSIONURI']._serialized_end=202 + _globals['_SIMPLEEXTENSIONURN']._serialized_start=204 + _globals['_SIMPLEEXTENSIONURN']._serialized_end=292 + _globals['_SIMPLEEXTENSIONDECLARATION']._serialized_start=295 + _globals['_SIMPLEEXTENSIONDECLARATION']._serialized_end=1326 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE']._serialized_start=712 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPE']._serialized_end=896 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION']._serialized_start=899 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONTYPEVARIATION']._serialized_end=1111 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION']._serialized_start=1114 + _globals['_SIMPLEEXTENSIONDECLARATION_EXTENSIONFUNCTION']._serialized_end=1310 + _globals['_ADVANCEDEXTENSION']._serialized_start=1329 + _globals['_ADVANCEDEXTENSION']._serialized_end=1462 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/extensions/extensions_pb2.pyi b/src/substrait/gen/proto/extensions/extensions_pb2.pyi index 5b1765c..95a2ad2 100644 --- a/src/substrait/gen/proto/extensions/extensions_pb2.pyi +++ b/src/substrait/gen/proto/extensions/extensions_pb2.pyi @@ -2,161 +2,229 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message +import sys import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +if sys.version_info >= (3, 13): + from warnings import deprecated +else: + from typing_extensions import deprecated + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@deprecated("""This message has been marked as deprecated using proto message options.""") @typing.final class SimpleExtensionURI(google.protobuf.message.Message): """This message is deprecated, use SimpleExtensionURN moving forwards""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTENSION_URI_ANCHOR_FIELD_NUMBER: builtins.int URI_FIELD_NUMBER: builtins.int extension_uri_anchor: builtins.int - 'A surrogate key used in the context of a single plan used to reference the\n URI associated with an extension.\n ' + """A surrogate key used in the context of a single plan used to reference the + URI associated with an extension. + """ uri: builtins.str - 'The URI where this extension YAML can be retrieved. This is the "namespace"\n of this extension.\n ' - - def __init__(self, *, extension_uri_anchor: builtins.int=..., uri: builtins.str=...) -> None: - ... + """The URI where this extension YAML can be retrieved. This is the "namespace" + of this extension. + """ + def __init__( + self, + *, + extension_uri_anchor: builtins.int = ..., + uri: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_uri_anchor", b"extension_uri_anchor", "uri", b"uri"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['extension_uri_anchor', b'extension_uri_anchor', 'uri', b'uri']) -> None: - ... -global___SimpleExtensionURI = SimpleExtensionURI +Global___SimpleExtensionURI: typing_extensions.TypeAlias = SimpleExtensionURI @typing.final class SimpleExtensionURN(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTENSION_URN_ANCHOR_FIELD_NUMBER: builtins.int URN_FIELD_NUMBER: builtins.int extension_urn_anchor: builtins.int - 'A surrogate key used in the context of a single plan used to reference the\n URN associated with an extension.\n ' + """A surrogate key used in the context of a single plan used to reference the + URN associated with an extension. + """ urn: builtins.str - 'The extension URN that uniquely identifies this extension. This must follow the\n format extension:: and serves as the "namespace" of this extension.\n ' - - def __init__(self, *, extension_urn_anchor: builtins.int=..., urn: builtins.str=...) -> None: - ... + """The extension URN that uniquely identifies this extension. This must follow the + format extension:: and serves as the "namespace" of this extension. + """ + def __init__( + self, + *, + extension_urn_anchor: builtins.int = ..., + urn: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_urn_anchor", b"extension_urn_anchor", "urn", b"urn"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['extension_urn_anchor', b'extension_urn_anchor', 'urn', b'urn']) -> None: - ... -global___SimpleExtensionURN = SimpleExtensionURN +Global___SimpleExtensionURN: typing_extensions.TypeAlias = SimpleExtensionURN @typing.final class SimpleExtensionDeclaration(google.protobuf.message.Message): """Describes a mapping between a specific extension entity and the uri/urn where that extension can be found. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final class ExtensionType(google.protobuf.message.Message): """Describes a Type""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTENSION_URI_REFERENCE_FIELD_NUMBER: builtins.int EXTENSION_URN_REFERENCE_FIELD_NUMBER: builtins.int TYPE_ANCHOR_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int extension_uri_reference: builtins.int - 'references the extension_uri_anchor defined for a specific extension URI.\n this is now deprecated and extension_urn_reference should be used instead.\n ' + """references the extension_uri_anchor defined for a specific extension URI. + this is now deprecated and extension_urn_reference should be used instead. + """ extension_urn_reference: builtins.int - 'references the extension_urn_anchor defined for a specific extension URN.\n If both extension_urn_reference and extension_uri_reference are present,\n extension_urn_reference takes precedence.\n ' + """references the extension_urn_anchor defined for a specific extension URN. + If both extension_urn_reference and extension_uri_reference are present, + extension_urn_reference takes precedence. + """ type_anchor: builtins.int - 'A surrogate key used in the context of a single plan to reference a\n specific extension type\n ' + """A surrogate key used in the context of a single plan to reference a + specific extension type + """ name: builtins.str - 'the name of the type in the defined extension YAML.' - - def __init__(self, *, extension_uri_reference: builtins.int=..., extension_urn_reference: builtins.int=..., type_anchor: builtins.int=..., name: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['extension_uri_reference', b'extension_uri_reference', 'extension_urn_reference', b'extension_urn_reference', 'name', b'name', 'type_anchor', b'type_anchor']) -> None: - ... + """the name of the type in the defined extension YAML.""" + def __init__( + self, + *, + extension_uri_reference: builtins.int = ..., + extension_urn_reference: builtins.int = ..., + type_anchor: builtins.int = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_uri_reference", b"extension_uri_reference", "extension_urn_reference", b"extension_urn_reference", "name", b"name", "type_anchor", b"type_anchor"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExtensionTypeVariation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTENSION_URI_REFERENCE_FIELD_NUMBER: builtins.int EXTENSION_URN_REFERENCE_FIELD_NUMBER: builtins.int TYPE_VARIATION_ANCHOR_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int extension_uri_reference: builtins.int - 'references the extension_uri_anchor defined for a specific extension URI.\n this is now deprecated and extension_urn_reference should be used instead.\n ' + """references the extension_uri_anchor defined for a specific extension URI. + this is now deprecated and extension_urn_reference should be used instead. + """ extension_urn_reference: builtins.int - 'references the extension_urn_anchor defined for a specific extension URN.\n If both extension_urn_reference and extension_uri_reference are present,\n extension_urn_reference takes precedence.\n ' + """references the extension_urn_anchor defined for a specific extension URN. + If both extension_urn_reference and extension_uri_reference are present, + extension_urn_reference takes precedence. + """ type_variation_anchor: builtins.int - 'A surrogate key used in the context of a single plan to reference a\n specific type variation\n ' + """A surrogate key used in the context of a single plan to reference a + specific type variation + """ name: builtins.str - 'the name of the type in the defined extension YAML.' - - def __init__(self, *, extension_uri_reference: builtins.int=..., extension_urn_reference: builtins.int=..., type_variation_anchor: builtins.int=..., name: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['extension_uri_reference', b'extension_uri_reference', 'extension_urn_reference', b'extension_urn_reference', 'name', b'name', 'type_variation_anchor', b'type_variation_anchor']) -> None: - ... + """the name of the type in the defined extension YAML.""" + def __init__( + self, + *, + extension_uri_reference: builtins.int = ..., + extension_urn_reference: builtins.int = ..., + type_variation_anchor: builtins.int = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_uri_reference", b"extension_uri_reference", "extension_urn_reference", b"extension_urn_reference", "name", b"name", "type_variation_anchor", b"type_variation_anchor"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExtensionFunction(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + EXTENSION_URI_REFERENCE_FIELD_NUMBER: builtins.int EXTENSION_URN_REFERENCE_FIELD_NUMBER: builtins.int FUNCTION_ANCHOR_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int extension_uri_reference: builtins.int - 'references the extension_uri_anchor defined for a specific extension URI.\n this is now deprecated and extension_urn_reference should be used instead.\n ' + """references the extension_uri_anchor defined for a specific extension URI. + this is now deprecated and extension_urn_reference should be used instead. + """ extension_urn_reference: builtins.int - 'references the extension_urn_anchor defined for a specific extension URN.\n If both extension_urn_reference and extension_uri_reference are present,\n extension_urn_reference takes precedence.\n ' + """references the extension_urn_anchor defined for a specific extension URN. + If both extension_urn_reference and extension_uri_reference are present, + extension_urn_reference takes precedence. + """ function_anchor: builtins.int - 'A surrogate key used in the context of a single plan to reference a\n specific function\n ' + """A surrogate key used in the context of a single plan to reference a + specific function + """ name: builtins.str - 'A function signature compound name' + """A function signature compound name""" + def __init__( + self, + *, + extension_uri_reference: builtins.int = ..., + extension_urn_reference: builtins.int = ..., + function_anchor: builtins.int = ..., + name: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_uri_reference", b"extension_uri_reference", "extension_urn_reference", b"extension_urn_reference", "function_anchor", b"function_anchor", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, extension_uri_reference: builtins.int=..., extension_urn_reference: builtins.int=..., function_anchor: builtins.int=..., name: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['extension_uri_reference', b'extension_uri_reference', 'extension_urn_reference', b'extension_urn_reference', 'function_anchor', b'function_anchor', 'name', b'name']) -> None: - ... EXTENSION_TYPE_FIELD_NUMBER: builtins.int EXTENSION_TYPE_VARIATION_FIELD_NUMBER: builtins.int EXTENSION_FUNCTION_FIELD_NUMBER: builtins.int - @property - def extension_type(self) -> global___SimpleExtensionDeclaration.ExtensionType: - ... - + def extension_type(self) -> Global___SimpleExtensionDeclaration.ExtensionType: ... @property - def extension_type_variation(self) -> global___SimpleExtensionDeclaration.ExtensionTypeVariation: - ... - + def extension_type_variation(self) -> Global___SimpleExtensionDeclaration.ExtensionTypeVariation: ... @property - def extension_function(self) -> global___SimpleExtensionDeclaration.ExtensionFunction: - ... - - def __init__(self, *, extension_type: global___SimpleExtensionDeclaration.ExtensionType | None=..., extension_type_variation: global___SimpleExtensionDeclaration.ExtensionTypeVariation | None=..., extension_function: global___SimpleExtensionDeclaration.ExtensionFunction | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['extension_function', b'extension_function', 'extension_type', b'extension_type', 'extension_type_variation', b'extension_type_variation', 'mapping_type', b'mapping_type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['extension_function', b'extension_function', 'extension_type', b'extension_type', 'extension_type_variation', b'extension_type_variation', 'mapping_type', b'mapping_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['mapping_type', b'mapping_type']) -> typing.Literal['extension_type', 'extension_type_variation', 'extension_function'] | None: - ... -global___SimpleExtensionDeclaration = SimpleExtensionDeclaration + def extension_function(self) -> Global___SimpleExtensionDeclaration.ExtensionFunction: ... + def __init__( + self, + *, + extension_type: Global___SimpleExtensionDeclaration.ExtensionType | None = ..., + extension_type_variation: Global___SimpleExtensionDeclaration.ExtensionTypeVariation | None = ..., + extension_function: Global___SimpleExtensionDeclaration.ExtensionFunction | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_function", b"extension_function", "extension_type", b"extension_type", "extension_type_variation", b"extension_type_variation", "mapping_type", b"mapping_type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["extension_function", b"extension_function", "extension_type", b"extension_type", "extension_type_variation", b"extension_type_variation", "mapping_type", b"mapping_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_mapping_type: typing_extensions.TypeAlias = typing.Literal["extension_type", "extension_type_variation", "extension_function"] + _WhichOneofArgType_mapping_type: typing_extensions.TypeAlias = typing.Literal["mapping_type", b"mapping_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_mapping_type) -> _WhichOneofReturnType_mapping_type | None: ... + +Global___SimpleExtensionDeclaration: typing_extensions.TypeAlias = SimpleExtensionDeclaration @typing.final class AdvancedExtension(google.protobuf.message.Message): """A generic object that can be used to embed additional extension information into the serialized substrait plan. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + OPTIMIZATION_FIELD_NUMBER: builtins.int ENHANCEMENT_FIELD_NUMBER: builtins.int - @property def optimization(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: """An optimization is helpful information that don't influence semantics. May @@ -167,12 +235,15 @@ class AdvancedExtension(google.protobuf.message.Message): def enhancement(self) -> google.protobuf.any_pb2.Any: """An enhancement alter semantics. Cannot be ignored by a consumer.""" - def __init__(self, *, optimization: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None=..., enhancement: google.protobuf.any_pb2.Any | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['enhancement', b'enhancement']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['enhancement', b'enhancement', 'optimization', b'optimization']) -> None: - ... -global___AdvancedExtension = AdvancedExtension \ No newline at end of file + def __init__( + self, + *, + optimization: collections.abc.Iterable[google.protobuf.any_pb2.Any] | None = ..., + enhancement: google.protobuf.any_pb2.Any | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["enhancement", b"enhancement"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["enhancement", b"enhancement", "optimization", b"optimization"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___AdvancedExtension: typing_extensions.TypeAlias = AdvancedExtension diff --git a/src/substrait/gen/proto/function_pb2.py b/src/substrait/gen/proto/function_pb2.py index 7c656e0..2c8de55 100644 --- a/src/substrait/gen/proto/function_pb2.py +++ b/src/substrait/gen/proto/function_pb2.py @@ -1,48 +1,68 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/function.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/function.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/function.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -from ..proto import parameterized_types_pb2 as proto_dot_parameterized__types__pb2 -from ..proto import type_pb2 as proto_dot_type__pb2 -from ..proto import type_expressions_pb2 as proto_dot_type__expressions__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14proto/function.proto\x12\x05proto\x1a\x1fproto/parameterized_types.proto\x1a\x10proto/type.proto\x1a\x1cproto/type_expressions.proto"\xe9\x18\n\x11FunctionSignature\x1a\xb8\x02\n\x10FinalArgVariadic\x12\x19\n\x08min_args\x18\x01 \x01(\x03R\x07minArgs\x12\x19\n\x08max_args\x18\x02 \x01(\x03R\x07maxArgs\x12`\n\x0bconsistency\x18\x03 \x01(\x0e2>.proto.FunctionSignature.FinalArgVariadic.ParameterConsistencyR\x0bconsistency"\x8b\x01\n\x14ParameterConsistency\x12%\n!PARAMETER_CONSISTENCY_UNSPECIFIED\x10\x00\x12$\n PARAMETER_CONSISTENCY_CONSISTENT\x10\x01\x12&\n"PARAMETER_CONSISTENCY_INCONSISTENT\x10\x02\x1a\x10\n\x0eFinalArgNormal\x1a\xb0\x04\n\x06Scalar\x12?\n\targuments\x18\x02 \x03(\x0b2!.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x03(\tR\x04name\x12F\n\x0bdescription\x18\x04 \x01(\x0b2$.proto.FunctionSignature.DescriptionR\x0bdescription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12<\n\x0boutput_type\x18\t \x01(\x0b2\x1b.proto.DerivationExpressionR\noutputType\x12G\n\x08variadic\x18\n \x01(\x0b2).proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12A\n\x06normal\x18\x0b \x01(\x0b2\'.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12Q\n\x0fimplementations\x18\x0c \x03(\x0b2\'.proto.FunctionSignature.ImplementationR\x0fimplementationsB\x19\n\x17final_variable_behavior\x1a\xa0\x05\n\tAggregate\x12?\n\targuments\x18\x02 \x03(\x0b2!.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12F\n\x0bdescription\x18\x04 \x01(\x0b2$.proto.FunctionSignature.DescriptionR\x0bdescription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12<\n\x0boutput_type\x18\t \x01(\x0b2\x1b.proto.DerivationExpressionR\noutputType\x12G\n\x08variadic\x18\n \x01(\x0b2).proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12A\n\x06normal\x18\x0b \x01(\x0b2\'.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12\x18\n\x07ordered\x18\x0e \x01(\x08R\x07ordered\x12\x17\n\x07max_set\x18\x0c \x01(\x04R\x06maxSet\x128\n\x11intermediate_type\x18\r \x01(\x0b2\x0b.proto.TypeR\x10intermediateType\x12Q\n\x0fimplementations\x18\x0f \x03(\x0b2\'.proto.FunctionSignature.ImplementationR\x0fimplementationsB\x19\n\x17final_variable_behavior\x1a\xdb\x06\n\x06Window\x12?\n\targuments\x18\x02 \x03(\x0b2!.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x03(\tR\x04name\x12F\n\x0bdescription\x18\x04 \x01(\x0b2$.proto.FunctionSignature.DescriptionR\x0bdescription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12H\n\x11intermediate_type\x18\t \x01(\x0b2\x1b.proto.DerivationExpressionR\x10intermediateType\x12<\n\x0boutput_type\x18\n \x01(\x0b2\x1b.proto.DerivationExpressionR\noutputType\x12G\n\x08variadic\x18\x10 \x01(\x0b2).proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12A\n\x06normal\x18\x11 \x01(\x0b2\'.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12\x18\n\x07ordered\x18\x0b \x01(\x08R\x07ordered\x12\x17\n\x07max_set\x18\x0c \x01(\x04R\x06maxSet\x12K\n\x0bwindow_type\x18\x0e \x01(\x0e2*.proto.FunctionSignature.Window.WindowTypeR\nwindowType\x12Q\n\x0fimplementations\x18\x0f \x03(\x0b2\'.proto.FunctionSignature.ImplementationR\x0fimplementations"_\n\nWindowType\x12\x1b\n\x17WINDOW_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15WINDOW_TYPE_STREAMING\x10\x01\x12\x19\n\x15WINDOW_TYPE_PARTITION\x10\x02B\x19\n\x17final_variable_behavior\x1a=\n\x0bDescription\x12\x1a\n\x08language\x18\x01 \x01(\tR\x08language\x12\x12\n\x04body\x18\x02 \x01(\tR\x04body\x1a\xad\x01\n\x0eImplementation\x12@\n\x04type\x18\x01 \x01(\x0e2,.proto.FunctionSignature.Implementation.TypeR\x04type\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri"G\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11TYPE_WEB_ASSEMBLY\x10\x01\x12\x12\n\x0eTYPE_TRINO_JAR\x10\x02\x1a\xe3\x03\n\x08Argument\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12G\n\x05value\x18\x02 \x01(\x0b2/.proto.FunctionSignature.Argument.ValueArgumentH\x00R\x05value\x12D\n\x04type\x18\x03 \x01(\x0b2..proto.FunctionSignature.Argument.TypeArgumentH\x00R\x04type\x12D\n\x04enum\x18\x04 \x01(\x0b2..proto.FunctionSignature.Argument.EnumArgumentH\x00R\x04enum\x1aY\n\rValueArgument\x12,\n\x04type\x18\x01 \x01(\x0b2\x18.proto.ParameterizedTypeR\x04type\x12\x1a\n\x08constant\x18\x02 \x01(\x08R\x08constant\x1a<\n\x0cTypeArgument\x12,\n\x04type\x18\x01 \x01(\x0b2\x18.proto.ParameterizedTypeR\x04type\x1aD\n\x0cEnumArgument\x12\x18\n\x07options\x18\x01 \x03(\tR\x07options\x12\x1a\n\x08optional\x18\x02 \x01(\x08R\x08optionalB\x0f\n\rargument_kindB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +from substrait.gen.proto import parameterized_types_pb2 as substrait_dot_gen_dot_proto_dot_parameterized__types__pb2 +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 +from substrait.gen.proto import type_expressions_pb2 as substrait_dot_gen_dot_proto_dot_type__expressions__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"substrait/gen/proto/function.proto\x12\x13substrait.gen.proto\x1a-substrait/gen/proto/parameterized_types.proto\x1a\x1esubstrait/gen/proto/type.proto\x1a*substrait/gen/proto/type_expressions.proto\"\xf1\x1b\n\x11\x46unctionSignature\x1a\xc6\x02\n\x10\x46inalArgVariadic\x12\x19\n\x08min_args\x18\x01 \x01(\x03R\x07minArgs\x12\x19\n\x08max_args\x18\x02 \x01(\x03R\x07maxArgs\x12n\n\x0b\x63onsistency\x18\x03 \x01(\x0e\x32L.substrait.gen.proto.FunctionSignature.FinalArgVariadic.ParameterConsistencyR\x0b\x63onsistency\"\x8b\x01\n\x14ParameterConsistency\x12%\n!PARAMETER_CONSISTENCY_UNSPECIFIED\x10\x00\x12$\n PARAMETER_CONSISTENCY_CONSISTENT\x10\x01\x12&\n\"PARAMETER_CONSISTENCY_INCONSISTENT\x10\x02\x1a\x10\n\x0e\x46inalArgNormal\x1a\x84\x05\n\x06Scalar\x12M\n\targuments\x18\x02 \x03(\x0b\x32/.substrait.gen.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x03(\tR\x04name\x12T\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x32.substrait.gen.proto.FunctionSignature.DescriptionR\x0b\x64\x65scription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12J\n\x0boutput_type\x18\t \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\noutputType\x12U\n\x08variadic\x18\n \x01(\x0b\x32\x37.substrait.gen.proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12O\n\x06normal\x18\x0b \x01(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12_\n\x0fimplementations\x18\x0c \x03(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.ImplementationR\x0fimplementationsB\x19\n\x17\x66inal_variable_behavior\x1a\x82\x06\n\tAggregate\x12M\n\targuments\x18\x02 \x03(\x0b\x32/.substrait.gen.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12T\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x32.substrait.gen.proto.FunctionSignature.DescriptionR\x0b\x64\x65scription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12J\n\x0boutput_type\x18\t \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\noutputType\x12U\n\x08variadic\x18\n \x01(\x0b\x32\x37.substrait.gen.proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12O\n\x06normal\x18\x0b \x01(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12\x18\n\x07ordered\x18\x0e \x01(\x08R\x07ordered\x12\x17\n\x07max_set\x18\x0c \x01(\x04R\x06maxSet\x12\x46\n\x11intermediate_type\x18\r \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x10intermediateType\x12_\n\x0fimplementations\x18\x0f \x03(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.ImplementationR\x0fimplementationsB\x19\n\x17\x66inal_variable_behavior\x1a\xcb\x07\n\x06Window\x12M\n\targuments\x18\x02 \x03(\x0b\x32/.substrait.gen.proto.FunctionSignature.ArgumentR\targuments\x12\x12\n\x04name\x18\x03 \x03(\tR\x04name\x12T\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x32.substrait.gen.proto.FunctionSignature.DescriptionR\x0b\x64\x65scription\x12$\n\rdeterministic\x18\x07 \x01(\x08R\rdeterministic\x12+\n\x11session_dependent\x18\x08 \x01(\x08R\x10sessionDependent\x12V\n\x11intermediate_type\x18\t \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x10intermediateType\x12J\n\x0boutput_type\x18\n \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\noutputType\x12U\n\x08variadic\x18\x10 \x01(\x0b\x32\x37.substrait.gen.proto.FunctionSignature.FinalArgVariadicH\x00R\x08variadic\x12O\n\x06normal\x18\x11 \x01(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.FinalArgNormalH\x00R\x06normal\x12\x18\n\x07ordered\x18\x0b \x01(\x08R\x07ordered\x12\x17\n\x07max_set\x18\x0c \x01(\x04R\x06maxSet\x12Y\n\x0bwindow_type\x18\x0e \x01(\x0e\x32\x38.substrait.gen.proto.FunctionSignature.Window.WindowTypeR\nwindowType\x12_\n\x0fimplementations\x18\x0f \x03(\x0b\x32\x35.substrait.gen.proto.FunctionSignature.ImplementationR\x0fimplementations\"_\n\nWindowType\x12\x1b\n\x17WINDOW_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15WINDOW_TYPE_STREAMING\x10\x01\x12\x19\n\x15WINDOW_TYPE_PARTITION\x10\x02\x42\x19\n\x17\x66inal_variable_behavior\x1a=\n\x0b\x44\x65scription\x12\x1a\n\x08language\x18\x01 \x01(\tR\x08language\x12\x12\n\x04\x62ody\x18\x02 \x01(\tR\x04\x62ody\x1a\xbb\x01\n\x0eImplementation\x12N\n\x04type\x18\x01 \x01(\x0e\x32:.substrait.gen.proto.FunctionSignature.Implementation.TypeR\x04type\x12\x10\n\x03uri\x18\x02 \x01(\tR\x03uri\"G\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11TYPE_WEB_ASSEMBLY\x10\x01\x12\x12\n\x0eTYPE_TRINO_JAR\x10\x02\x1a\xa9\x04\n\x08\x41rgument\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12U\n\x05value\x18\x02 \x01(\x0b\x32=.substrait.gen.proto.FunctionSignature.Argument.ValueArgumentH\x00R\x05value\x12R\n\x04type\x18\x03 \x01(\x0b\x32<.substrait.gen.proto.FunctionSignature.Argument.TypeArgumentH\x00R\x04type\x12R\n\x04\x65num\x18\x04 \x01(\x0b\x32<.substrait.gen.proto.FunctionSignature.Argument.EnumArgumentH\x00R\x04\x65num\x1ag\n\rValueArgument\x12:\n\x04type\x18\x01 \x01(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x04type\x12\x1a\n\x08\x63onstant\x18\x02 \x01(\x08R\x08\x63onstant\x1aJ\n\x0cTypeArgument\x12:\n\x04type\x18\x01 \x01(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x04type\x1a\x44\n\x0c\x45numArgument\x12\x18\n\x07options\x18\x01 \x03(\tR\x07options\x12\x1a\n\x08optional\x18\x02 \x01(\x08R\x08optionalB\x0f\n\rargument_kindB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.function_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.function_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_FUNCTIONSIGNATURE']._serialized_start = 113 - _globals['_FUNCTIONSIGNATURE']._serialized_end = 3290 - _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC']._serialized_start = 135 - _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC']._serialized_end = 447 - _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC_PARAMETERCONSISTENCY']._serialized_start = 308 - _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC_PARAMETERCONSISTENCY']._serialized_end = 447 - _globals['_FUNCTIONSIGNATURE_FINALARGNORMAL']._serialized_start = 449 - _globals['_FUNCTIONSIGNATURE_FINALARGNORMAL']._serialized_end = 465 - _globals['_FUNCTIONSIGNATURE_SCALAR']._serialized_start = 468 - _globals['_FUNCTIONSIGNATURE_SCALAR']._serialized_end = 1028 - _globals['_FUNCTIONSIGNATURE_AGGREGATE']._serialized_start = 1031 - _globals['_FUNCTIONSIGNATURE_AGGREGATE']._serialized_end = 1703 - _globals['_FUNCTIONSIGNATURE_WINDOW']._serialized_start = 1706 - _globals['_FUNCTIONSIGNATURE_WINDOW']._serialized_end = 2565 - _globals['_FUNCTIONSIGNATURE_WINDOW_WINDOWTYPE']._serialized_start = 2443 - _globals['_FUNCTIONSIGNATURE_WINDOW_WINDOWTYPE']._serialized_end = 2538 - _globals['_FUNCTIONSIGNATURE_DESCRIPTION']._serialized_start = 2567 - _globals['_FUNCTIONSIGNATURE_DESCRIPTION']._serialized_end = 2628 - _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION']._serialized_start = 2631 - _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION']._serialized_end = 2804 - _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION_TYPE']._serialized_start = 2733 - _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION_TYPE']._serialized_end = 2804 - _globals['_FUNCTIONSIGNATURE_ARGUMENT']._serialized_start = 2807 - _globals['_FUNCTIONSIGNATURE_ARGUMENT']._serialized_end = 3290 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_VALUEARGUMENT']._serialized_start = 3052 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_VALUEARGUMENT']._serialized_end = 3141 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_TYPEARGUMENT']._serialized_start = 3143 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_TYPEARGUMENT']._serialized_end = 3203 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_ENUMARGUMENT']._serialized_start = 3205 - _globals['_FUNCTIONSIGNATURE_ARGUMENT_ENUMARGUMENT']._serialized_end = 3273 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_FUNCTIONSIGNATURE']._serialized_start=183 + _globals['_FUNCTIONSIGNATURE']._serialized_end=3752 + _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC']._serialized_start=205 + _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC']._serialized_end=531 + _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC_PARAMETERCONSISTENCY']._serialized_start=392 + _globals['_FUNCTIONSIGNATURE_FINALARGVARIADIC_PARAMETERCONSISTENCY']._serialized_end=531 + _globals['_FUNCTIONSIGNATURE_FINALARGNORMAL']._serialized_start=533 + _globals['_FUNCTIONSIGNATURE_FINALARGNORMAL']._serialized_end=549 + _globals['_FUNCTIONSIGNATURE_SCALAR']._serialized_start=552 + _globals['_FUNCTIONSIGNATURE_SCALAR']._serialized_end=1196 + _globals['_FUNCTIONSIGNATURE_AGGREGATE']._serialized_start=1199 + _globals['_FUNCTIONSIGNATURE_AGGREGATE']._serialized_end=1969 + _globals['_FUNCTIONSIGNATURE_WINDOW']._serialized_start=1972 + _globals['_FUNCTIONSIGNATURE_WINDOW']._serialized_end=2943 + _globals['_FUNCTIONSIGNATURE_WINDOW_WINDOWTYPE']._serialized_start=2821 + _globals['_FUNCTIONSIGNATURE_WINDOW_WINDOWTYPE']._serialized_end=2916 + _globals['_FUNCTIONSIGNATURE_DESCRIPTION']._serialized_start=2945 + _globals['_FUNCTIONSIGNATURE_DESCRIPTION']._serialized_end=3006 + _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION']._serialized_start=3009 + _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION']._serialized_end=3196 + _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION_TYPE']._serialized_start=3125 + _globals['_FUNCTIONSIGNATURE_IMPLEMENTATION_TYPE']._serialized_end=3196 + _globals['_FUNCTIONSIGNATURE_ARGUMENT']._serialized_start=3199 + _globals['_FUNCTIONSIGNATURE_ARGUMENT']._serialized_end=3752 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_VALUEARGUMENT']._serialized_start=3486 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_VALUEARGUMENT']._serialized_end=3589 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_TYPEARGUMENT']._serialized_start=3591 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_TYPEARGUMENT']._serialized_end=3665 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_ENUMARGUMENT']._serialized_start=3667 + _globals['_FUNCTIONSIGNATURE_ARGUMENT_ENUMARGUMENT']._serialized_end=3735 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/function_pb2.pyi b/src/substrait/gen/proto/function_pb2.pyi index 7ab4c5f..f450395 100644 --- a/src/substrait/gen/proto/function_pb2.pyi +++ b/src/substrait/gen/proto/function_pb2.pyi @@ -2,24 +2,30 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -from .. import proto +import substrait.gen.proto.parameterized_types_pb2 +import substrait.gen.proto.type_expressions_pb2 +import substrait.gen.proto.type_pb2 import sys import typing + if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final class FunctionSignature(google.protobuf.message.Message): """List of function signatures available.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor @typing.final @@ -27,50 +33,63 @@ class FunctionSignature(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _ParameterConsistency: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _ParameterConsistencyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PARAMETER_CONSISTENCY_UNSPECIFIED: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType - PARAMETER_CONSISTENCY_CONSISTENT: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType - 'All argument must be the same concrete type.' - PARAMETER_CONSISTENCY_INCONSISTENT: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType - 'Each argument can be any possible concrete type afforded by the bounds\n of any parameter defined in the arguments specification.\n ' - - class ParameterConsistency(_ParameterConsistency, metaclass=_ParameterConsistencyEnumTypeWrapper): - ... - PARAMETER_CONSISTENCY_UNSPECIFIED: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType - PARAMETER_CONSISTENCY_CONSISTENT: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType - 'All argument must be the same concrete type.' - PARAMETER_CONSISTENCY_INCONSISTENT: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType - 'Each argument can be any possible concrete type afforded by the bounds\n of any parameter defined in the arguments specification.\n ' + PARAMETER_CONSISTENCY_UNSPECIFIED: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType # 0 + PARAMETER_CONSISTENCY_CONSISTENT: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType # 1 + """All argument must be the same concrete type.""" + PARAMETER_CONSISTENCY_INCONSISTENT: FunctionSignature.FinalArgVariadic._ParameterConsistency.ValueType # 2 + """Each argument can be any possible concrete type afforded by the bounds + of any parameter defined in the arguments specification. + """ + + class ParameterConsistency(_ParameterConsistency, metaclass=_ParameterConsistencyEnumTypeWrapper): ... + PARAMETER_CONSISTENCY_UNSPECIFIED: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType # 0 + PARAMETER_CONSISTENCY_CONSISTENT: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType # 1 + """All argument must be the same concrete type.""" + PARAMETER_CONSISTENCY_INCONSISTENT: FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType # 2 + """Each argument can be any possible concrete type afforded by the bounds + of any parameter defined in the arguments specification. + """ + MIN_ARGS_FIELD_NUMBER: builtins.int MAX_ARGS_FIELD_NUMBER: builtins.int CONSISTENCY_FIELD_NUMBER: builtins.int min_args: builtins.int - 'the minimum number of arguments allowed for the list of final arguments\n (inclusive).\n ' + """the minimum number of arguments allowed for the list of final arguments + (inclusive). + """ max_args: builtins.int - 'the maximum number of arguments allowed for the list of final arguments\n (exclusive)\n ' - consistency: global___FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType - 'the type of parameterized type consistency' - - def __init__(self, *, min_args: builtins.int=..., max_args: builtins.int=..., consistency: global___FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['consistency', b'consistency', 'max_args', b'max_args', 'min_args', b'min_args']) -> None: - ... + """the maximum number of arguments allowed for the list of final arguments + (exclusive) + """ + consistency: Global___FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType + """the type of parameterized type consistency""" + def __init__( + self, + *, + min_args: builtins.int = ..., + max_args: builtins.int = ..., + consistency: Global___FunctionSignature.FinalArgVariadic.ParameterConsistency.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["consistency", b"consistency", "max_args", b"max_args", "min_args", b"min_args"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FinalArgNormal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self) -> None: - ... + def __init__( + self, + ) -> None: ... @typing.final class Scalar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ARGUMENTS_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -82,50 +101,45 @@ class FunctionSignature(google.protobuf.message.Message): IMPLEMENTATIONS_FIELD_NUMBER: builtins.int deterministic: builtins.bool session_dependent: builtins.bool - @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Argument]: - ... - + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Argument]: ... @property - def name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def description(self) -> global___FunctionSignature.Description: - ... - + def description(self) -> Global___FunctionSignature.Description: ... @property - def output_type(self) -> proto.type_expressions_pb2.DerivationExpression: - ... - + def output_type(self) -> substrait.gen.proto.type_expressions_pb2.DerivationExpression: ... @property - def variadic(self) -> global___FunctionSignature.FinalArgVariadic: - ... - + def variadic(self) -> Global___FunctionSignature.FinalArgVariadic: ... @property - def normal(self) -> global___FunctionSignature.FinalArgNormal: - ... - + def normal(self) -> Global___FunctionSignature.FinalArgNormal: ... @property - def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Implementation]: - ... - - def __init__(self, *, arguments: collections.abc.Iterable[global___FunctionSignature.Argument] | None=..., name: collections.abc.Iterable[builtins.str] | None=..., description: global___FunctionSignature.Description | None=..., deterministic: builtins.bool=..., session_dependent: builtins.bool=..., output_type: proto.type_expressions_pb2.DerivationExpression | None=..., variadic: global___FunctionSignature.FinalArgVariadic | None=..., normal: global___FunctionSignature.FinalArgNormal | None=..., implementations: collections.abc.Iterable[global___FunctionSignature.Implementation] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['description', b'description', 'final_variable_behavior', b'final_variable_behavior', 'normal', b'normal', 'output_type', b'output_type', 'variadic', b'variadic']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arguments', b'arguments', 'description', b'description', 'deterministic', b'deterministic', 'final_variable_behavior', b'final_variable_behavior', 'implementations', b'implementations', 'name', b'name', 'normal', b'normal', 'output_type', b'output_type', 'session_dependent', b'session_dependent', 'variadic', b'variadic']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['final_variable_behavior', b'final_variable_behavior']) -> typing.Literal['variadic', 'normal'] | None: - ... + def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Implementation]: ... + def __init__( + self, + *, + arguments: collections.abc.Iterable[Global___FunctionSignature.Argument] | None = ..., + name: collections.abc.Iterable[builtins.str] | None = ..., + description: Global___FunctionSignature.Description | None = ..., + deterministic: builtins.bool = ..., + session_dependent: builtins.bool = ..., + output_type: substrait.gen.proto.type_expressions_pb2.DerivationExpression | None = ..., + variadic: Global___FunctionSignature.FinalArgVariadic | None = ..., + normal: Global___FunctionSignature.FinalArgNormal | None = ..., + implementations: collections.abc.Iterable[Global___FunctionSignature.Implementation] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["description", b"description", "final_variable_behavior", b"final_variable_behavior", "normal", b"normal", "output_type", b"output_type", "variadic", b"variadic"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "description", b"description", "deterministic", b"deterministic", "final_variable_behavior", b"final_variable_behavior", "implementations", b"implementations", "name", b"name", "normal", b"normal", "output_type", b"output_type", "session_dependent", b"session_dependent", "variadic", b"variadic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["variadic", "normal"] + _WhichOneofArgType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["final_variable_behavior", b"final_variable_behavior"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_final_variable_behavior) -> _WhichOneofReturnType_final_variable_behavior | None: ... @typing.final class Aggregate(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + ARGUMENTS_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -143,66 +157,63 @@ class FunctionSignature(google.protobuf.message.Message): session_dependent: builtins.bool ordered: builtins.bool max_set: builtins.int - @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Argument]: - ... - + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Argument]: ... @property - def description(self) -> global___FunctionSignature.Description: - ... - + def description(self) -> Global___FunctionSignature.Description: ... @property - def output_type(self) -> proto.type_expressions_pb2.DerivationExpression: - ... - + def output_type(self) -> substrait.gen.proto.type_expressions_pb2.DerivationExpression: ... @property - def variadic(self) -> global___FunctionSignature.FinalArgVariadic: - ... - + def variadic(self) -> Global___FunctionSignature.FinalArgVariadic: ... @property - def normal(self) -> global___FunctionSignature.FinalArgNormal: - ... - + def normal(self) -> Global___FunctionSignature.FinalArgNormal: ... @property - def intermediate_type(self) -> proto.type_pb2.Type: - ... - + def intermediate_type(self) -> substrait.gen.proto.type_pb2.Type: ... @property - def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Implementation]: - ... - - def __init__(self, *, arguments: collections.abc.Iterable[global___FunctionSignature.Argument] | None=..., name: builtins.str=..., description: global___FunctionSignature.Description | None=..., deterministic: builtins.bool=..., session_dependent: builtins.bool=..., output_type: proto.type_expressions_pb2.DerivationExpression | None=..., variadic: global___FunctionSignature.FinalArgVariadic | None=..., normal: global___FunctionSignature.FinalArgNormal | None=..., ordered: builtins.bool=..., max_set: builtins.int=..., intermediate_type: proto.type_pb2.Type | None=..., implementations: collections.abc.Iterable[global___FunctionSignature.Implementation] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['description', b'description', 'final_variable_behavior', b'final_variable_behavior', 'intermediate_type', b'intermediate_type', 'normal', b'normal', 'output_type', b'output_type', 'variadic', b'variadic']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arguments', b'arguments', 'description', b'description', 'deterministic', b'deterministic', 'final_variable_behavior', b'final_variable_behavior', 'implementations', b'implementations', 'intermediate_type', b'intermediate_type', 'max_set', b'max_set', 'name', b'name', 'normal', b'normal', 'ordered', b'ordered', 'output_type', b'output_type', 'session_dependent', b'session_dependent', 'variadic', b'variadic']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['final_variable_behavior', b'final_variable_behavior']) -> typing.Literal['variadic', 'normal'] | None: - ... + def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Implementation]: ... + def __init__( + self, + *, + arguments: collections.abc.Iterable[Global___FunctionSignature.Argument] | None = ..., + name: builtins.str = ..., + description: Global___FunctionSignature.Description | None = ..., + deterministic: builtins.bool = ..., + session_dependent: builtins.bool = ..., + output_type: substrait.gen.proto.type_expressions_pb2.DerivationExpression | None = ..., + variadic: Global___FunctionSignature.FinalArgVariadic | None = ..., + normal: Global___FunctionSignature.FinalArgNormal | None = ..., + ordered: builtins.bool = ..., + max_set: builtins.int = ..., + intermediate_type: substrait.gen.proto.type_pb2.Type | None = ..., + implementations: collections.abc.Iterable[Global___FunctionSignature.Implementation] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["description", b"description", "final_variable_behavior", b"final_variable_behavior", "intermediate_type", b"intermediate_type", "normal", b"normal", "output_type", b"output_type", "variadic", b"variadic"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "description", b"description", "deterministic", b"deterministic", "final_variable_behavior", b"final_variable_behavior", "implementations", b"implementations", "intermediate_type", b"intermediate_type", "max_set", b"max_set", "name", b"name", "normal", b"normal", "ordered", b"ordered", "output_type", b"output_type", "session_dependent", b"session_dependent", "variadic", b"variadic"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["variadic", "normal"] + _WhichOneofArgType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["final_variable_behavior", b"final_variable_behavior"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_final_variable_behavior) -> _WhichOneofReturnType_final_variable_behavior | None: ... @typing.final class Window(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _WindowType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _WindowTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FunctionSignature.Window._WindowType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - WINDOW_TYPE_UNSPECIFIED: FunctionSignature.Window._WindowType.ValueType - WINDOW_TYPE_STREAMING: FunctionSignature.Window._WindowType.ValueType - WINDOW_TYPE_PARTITION: FunctionSignature.Window._WindowType.ValueType - - class WindowType(_WindowType, metaclass=_WindowTypeEnumTypeWrapper): - ... - WINDOW_TYPE_UNSPECIFIED: FunctionSignature.Window.WindowType.ValueType - WINDOW_TYPE_STREAMING: FunctionSignature.Window.WindowType.ValueType - WINDOW_TYPE_PARTITION: FunctionSignature.Window.WindowType.ValueType + WINDOW_TYPE_UNSPECIFIED: FunctionSignature.Window._WindowType.ValueType # 0 + WINDOW_TYPE_STREAMING: FunctionSignature.Window._WindowType.ValueType # 1 + WINDOW_TYPE_PARTITION: FunctionSignature.Window._WindowType.ValueType # 2 + + class WindowType(_WindowType, metaclass=_WindowTypeEnumTypeWrapper): ... + WINDOW_TYPE_UNSPECIFIED: FunctionSignature.Window.WindowType.ValueType # 0 + WINDOW_TYPE_STREAMING: FunctionSignature.Window.WindowType.ValueType # 1 + WINDOW_TYPE_PARTITION: FunctionSignature.Window.WindowType.ValueType # 2 + ARGUMENTS_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -220,95 +231,96 @@ class FunctionSignature(google.protobuf.message.Message): session_dependent: builtins.bool ordered: builtins.bool max_set: builtins.int - window_type: global___FunctionSignature.Window.WindowType.ValueType - + window_type: Global___FunctionSignature.Window.WindowType.ValueType @property - def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Argument]: - ... - + def arguments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Argument]: ... @property - def name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def name(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def description(self) -> global___FunctionSignature.Description: - ... - + def description(self) -> Global___FunctionSignature.Description: ... @property - def intermediate_type(self) -> proto.type_expressions_pb2.DerivationExpression: - ... - + def intermediate_type(self) -> substrait.gen.proto.type_expressions_pb2.DerivationExpression: ... @property - def output_type(self) -> proto.type_expressions_pb2.DerivationExpression: - ... - + def output_type(self) -> substrait.gen.proto.type_expressions_pb2.DerivationExpression: ... @property - def variadic(self) -> global___FunctionSignature.FinalArgVariadic: - ... - + def variadic(self) -> Global___FunctionSignature.FinalArgVariadic: ... @property - def normal(self) -> global___FunctionSignature.FinalArgNormal: - ... - + def normal(self) -> Global___FunctionSignature.FinalArgNormal: ... @property - def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FunctionSignature.Implementation]: - ... - - def __init__(self, *, arguments: collections.abc.Iterable[global___FunctionSignature.Argument] | None=..., name: collections.abc.Iterable[builtins.str] | None=..., description: global___FunctionSignature.Description | None=..., deterministic: builtins.bool=..., session_dependent: builtins.bool=..., intermediate_type: proto.type_expressions_pb2.DerivationExpression | None=..., output_type: proto.type_expressions_pb2.DerivationExpression | None=..., variadic: global___FunctionSignature.FinalArgVariadic | None=..., normal: global___FunctionSignature.FinalArgNormal | None=..., ordered: builtins.bool=..., max_set: builtins.int=..., window_type: global___FunctionSignature.Window.WindowType.ValueType=..., implementations: collections.abc.Iterable[global___FunctionSignature.Implementation] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['description', b'description', 'final_variable_behavior', b'final_variable_behavior', 'intermediate_type', b'intermediate_type', 'normal', b'normal', 'output_type', b'output_type', 'variadic', b'variadic']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arguments', b'arguments', 'description', b'description', 'deterministic', b'deterministic', 'final_variable_behavior', b'final_variable_behavior', 'implementations', b'implementations', 'intermediate_type', b'intermediate_type', 'max_set', b'max_set', 'name', b'name', 'normal', b'normal', 'ordered', b'ordered', 'output_type', b'output_type', 'session_dependent', b'session_dependent', 'variadic', b'variadic', 'window_type', b'window_type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['final_variable_behavior', b'final_variable_behavior']) -> typing.Literal['variadic', 'normal'] | None: - ... + def implementations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___FunctionSignature.Implementation]: ... + def __init__( + self, + *, + arguments: collections.abc.Iterable[Global___FunctionSignature.Argument] | None = ..., + name: collections.abc.Iterable[builtins.str] | None = ..., + description: Global___FunctionSignature.Description | None = ..., + deterministic: builtins.bool = ..., + session_dependent: builtins.bool = ..., + intermediate_type: substrait.gen.proto.type_expressions_pb2.DerivationExpression | None = ..., + output_type: substrait.gen.proto.type_expressions_pb2.DerivationExpression | None = ..., + variadic: Global___FunctionSignature.FinalArgVariadic | None = ..., + normal: Global___FunctionSignature.FinalArgNormal | None = ..., + ordered: builtins.bool = ..., + max_set: builtins.int = ..., + window_type: Global___FunctionSignature.Window.WindowType.ValueType = ..., + implementations: collections.abc.Iterable[Global___FunctionSignature.Implementation] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["description", b"description", "final_variable_behavior", b"final_variable_behavior", "intermediate_type", b"intermediate_type", "normal", b"normal", "output_type", b"output_type", "variadic", b"variadic"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arguments", b"arguments", "description", b"description", "deterministic", b"deterministic", "final_variable_behavior", b"final_variable_behavior", "implementations", b"implementations", "intermediate_type", b"intermediate_type", "max_set", b"max_set", "name", b"name", "normal", b"normal", "ordered", b"ordered", "output_type", b"output_type", "session_dependent", b"session_dependent", "variadic", b"variadic", "window_type", b"window_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["variadic", "normal"] + _WhichOneofArgType_final_variable_behavior: typing_extensions.TypeAlias = typing.Literal["final_variable_behavior", b"final_variable_behavior"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_final_variable_behavior) -> _WhichOneofReturnType_final_variable_behavior | None: ... @typing.final class Description(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LANGUAGE_FIELD_NUMBER: builtins.int BODY_FIELD_NUMBER: builtins.int language: builtins.str body: builtins.str - - def __init__(self, *, language: builtins.str=..., body: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['body', b'body', 'language', b'language']) -> None: - ... + def __init__( + self, + *, + language: builtins.str = ..., + body: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["body", b"body", "language", b"language"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Implementation(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _Type: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[FunctionSignature.Implementation._Type.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - TYPE_UNSPECIFIED: FunctionSignature.Implementation._Type.ValueType - TYPE_WEB_ASSEMBLY: FunctionSignature.Implementation._Type.ValueType - TYPE_TRINO_JAR: FunctionSignature.Implementation._Type.ValueType - - class Type(_Type, metaclass=_TypeEnumTypeWrapper): - ... - TYPE_UNSPECIFIED: FunctionSignature.Implementation.Type.ValueType - TYPE_WEB_ASSEMBLY: FunctionSignature.Implementation.Type.ValueType - TYPE_TRINO_JAR: FunctionSignature.Implementation.Type.ValueType + TYPE_UNSPECIFIED: FunctionSignature.Implementation._Type.ValueType # 0 + TYPE_WEB_ASSEMBLY: FunctionSignature.Implementation._Type.ValueType # 1 + TYPE_TRINO_JAR: FunctionSignature.Implementation._Type.ValueType # 2 + + class Type(_Type, metaclass=_TypeEnumTypeWrapper): ... + TYPE_UNSPECIFIED: FunctionSignature.Implementation.Type.ValueType # 0 + TYPE_WEB_ASSEMBLY: FunctionSignature.Implementation.Type.ValueType # 1 + TYPE_TRINO_JAR: FunctionSignature.Implementation.Type.ValueType # 2 + TYPE_FIELD_NUMBER: builtins.int URI_FIELD_NUMBER: builtins.int - type: global___FunctionSignature.Implementation.Type.ValueType + type: Global___FunctionSignature.Implementation.Type.ValueType uri: builtins.str - - def __init__(self, *, type: global___FunctionSignature.Implementation.Type.ValueType=..., uri: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['type', b'type', 'uri', b'uri']) -> None: - ... + def __init__( + self, + *, + type: Global___FunctionSignature.Implementation.Type.ValueType = ..., + uri: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type", "uri", b"uri"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Argument(google.protobuf.message.Message): @@ -317,87 +329,87 @@ class FunctionSignature(google.protobuf.message.Message): @typing.final class ValueArgument(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int CONSTANT_FIELD_NUMBER: builtins.int constant: builtins.bool - @property - def type(self) -> proto.parameterized_types_pb2.ParameterizedType: - ... - - def __init__(self, *, type: proto.parameterized_types_pb2.ParameterizedType | None=..., constant: builtins.bool=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['constant', b'constant', 'type', b'type']) -> None: - ... + def type(self) -> substrait.gen.proto.parameterized_types_pb2.ParameterizedType: ... + def __init__( + self, + *, + type: substrait.gen.proto.parameterized_types_pb2.ParameterizedType | None = ..., + constant: builtins.bool = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["constant", b"constant", "type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class TypeArgument(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - TYPE_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int @property - def type(self) -> proto.parameterized_types_pb2.ParameterizedType: - ... - - def __init__(self, *, type: proto.parameterized_types_pb2.ParameterizedType | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['type', b'type']) -> None: - ... + def type(self) -> substrait.gen.proto.parameterized_types_pb2.ParameterizedType: ... + def __init__( + self, + *, + type: substrait.gen.proto.parameterized_types_pb2.ParameterizedType | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class EnumArgument(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + OPTIONS_FIELD_NUMBER: builtins.int OPTIONAL_FIELD_NUMBER: builtins.int optional: builtins.bool - @property - def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... + def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + options: collections.abc.Iterable[builtins.str] | None = ..., + optional: builtins.bool = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["optional", b"optional", "options", b"options"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def __init__(self, *, options: collections.abc.Iterable[builtins.str] | None=..., optional: builtins.bool=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['optional', b'optional', 'options', b'options']) -> None: - ... NAME_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int ENUM_FIELD_NUMBER: builtins.int name: builtins.str - @property - def value(self) -> global___FunctionSignature.Argument.ValueArgument: - ... - + def value(self) -> Global___FunctionSignature.Argument.ValueArgument: ... @property - def type(self) -> global___FunctionSignature.Argument.TypeArgument: - ... - + def type(self) -> Global___FunctionSignature.Argument.TypeArgument: ... @property - def enum(self) -> global___FunctionSignature.Argument.EnumArgument: - ... - - def __init__(self, *, name: builtins.str=..., value: global___FunctionSignature.Argument.ValueArgument | None=..., type: global___FunctionSignature.Argument.TypeArgument | None=..., enum: global___FunctionSignature.Argument.EnumArgument | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['argument_kind', b'argument_kind', 'enum', b'enum', 'type', b'type', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['argument_kind', b'argument_kind', 'enum', b'enum', 'name', b'name', 'type', b'type', 'value', b'value']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['argument_kind', b'argument_kind']) -> typing.Literal['value', 'type', 'enum'] | None: - ... - - def __init__(self) -> None: - ... -global___FunctionSignature = FunctionSignature \ No newline at end of file + def enum(self) -> Global___FunctionSignature.Argument.EnumArgument: ... + def __init__( + self, + *, + name: builtins.str = ..., + value: Global___FunctionSignature.Argument.ValueArgument | None = ..., + type: Global___FunctionSignature.Argument.TypeArgument | None = ..., + enum: Global___FunctionSignature.Argument.EnumArgument | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["argument_kind", b"argument_kind", "enum", b"enum", "type", b"type", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["argument_kind", b"argument_kind", "enum", b"enum", "name", b"name", "type", b"type", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_argument_kind: typing_extensions.TypeAlias = typing.Literal["value", "type", "enum"] + _WhichOneofArgType_argument_kind: typing_extensions.TypeAlias = typing.Literal["argument_kind", b"argument_kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_argument_kind) -> _WhichOneofReturnType_argument_kind | None: ... + + def __init__( + self, + ) -> None: ... + +Global___FunctionSignature: typing_extensions.TypeAlias = FunctionSignature diff --git a/src/substrait/gen/proto/parameterized_types_pb2.py b/src/substrait/gen/proto/parameterized_types_pb2.py index c53edb2..473614d 100644 --- a/src/substrait/gen/proto/parameterized_types_pb2.py +++ b/src/substrait/gen/proto/parameterized_types_pb2.py @@ -1,62 +1,82 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/parameterized_types.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/parameterized_types.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/parameterized_types.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -from ..proto import type_pb2 as proto_dot_type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproto/parameterized_types.proto\x12\x05proto\x1a\x10proto/type.proto"\xc0(\n\x11ParameterizedType\x12)\n\x04bool\x18\x01 \x01(\x0b2\x13.proto.Type.BooleanH\x00R\x04bool\x12 \n\x02i8\x18\x02 \x01(\x0b2\x0e.proto.Type.I8H\x00R\x02i8\x12#\n\x03i16\x18\x03 \x01(\x0b2\x0f.proto.Type.I16H\x00R\x03i16\x12#\n\x03i32\x18\x05 \x01(\x0b2\x0f.proto.Type.I32H\x00R\x03i32\x12#\n\x03i64\x18\x07 \x01(\x0b2\x0f.proto.Type.I64H\x00R\x03i64\x12&\n\x04fp32\x18\n \x01(\x0b2\x10.proto.Type.FP32H\x00R\x04fp32\x12&\n\x04fp64\x18\x0b \x01(\x0b2\x10.proto.Type.FP64H\x00R\x04fp64\x12,\n\x06string\x18\x0c \x01(\x0b2\x12.proto.Type.StringH\x00R\x06string\x12,\n\x06binary\x18\r \x01(\x0b2\x12.proto.Type.BinaryH\x00R\x06binary\x129\n\ttimestamp\x18\x0e \x01(\x0b2\x15.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12&\n\x04date\x18\x10 \x01(\x0b2\x10.proto.Type.DateH\x00R\x04date\x12*\n\x04time\x18\x11 \x01(\x0b2\x10.proto.Type.TimeB\x02\x18\x01H\x00R\x04time\x12?\n\rinterval_year\x18\x13 \x01(\x0b2\x18.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12V\n\x0cinterval_day\x18\x14 \x01(\x0b21.proto.ParameterizedType.ParameterizedIntervalDayH\x00R\x0bintervalDay\x12e\n\x11interval_compound\x18$ \x01(\x0b26.proto.ParameterizedType.ParameterizedIntervalCompoundH\x00R\x10intervalCompound\x12@\n\x0ctimestamp_tz\x18\x1d \x01(\x0b2\x17.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12&\n\x04uuid\x18 \x01(\x0b2\x10.proto.Type.UUIDH\x00R\x04uuid\x12P\n\nfixed_char\x18\x15 \x01(\x0b2/.proto.ParameterizedType.ParameterizedFixedCharH\x00R\tfixedChar\x12I\n\x07varchar\x18\x16 \x01(\x0b2-.proto.ParameterizedType.ParameterizedVarCharH\x00R\x07varchar\x12V\n\x0cfixed_binary\x18\x17 \x01(\x0b21.proto.ParameterizedType.ParameterizedFixedBinaryH\x00R\x0bfixedBinary\x12I\n\x07decimal\x18\x18 \x01(\x0b2-.proto.ParameterizedType.ParameterizedDecimalH\x00R\x07decimal\x12\\\n\x0eprecision_time\x18% \x01(\x0b23.proto.ParameterizedType.ParameterizedPrecisionTimeH\x00R\rprecisionTime\x12k\n\x13precision_timestamp\x18" \x01(\x0b28.proto.ParameterizedType.ParameterizedPrecisionTimestampH\x00R\x12precisionTimestamp\x12r\n\x16precision_timestamp_tz\x18# \x01(\x0b2:.proto.ParameterizedType.ParameterizedPrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12F\n\x06struct\x18\x19 \x01(\x0b2,.proto.ParameterizedType.ParameterizedStructH\x00R\x06struct\x12@\n\x04list\x18\x1b \x01(\x0b2*.proto.ParameterizedType.ParameterizedListH\x00R\x04list\x12=\n\x03map\x18\x1c \x01(\x0b2).proto.ParameterizedType.ParameterizedMapH\x00R\x03map\x12V\n\x0cuser_defined\x18\x1e \x01(\x0b21.proto.ParameterizedType.ParameterizedUserDefinedH\x00R\x0buserDefined\x126\n\x14user_defined_pointer\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x12userDefinedPointer\x12O\n\x0etype_parameter\x18! \x01(\x0b2&.proto.ParameterizedType.TypeParameterH\x00R\rtypeParameter\x1aU\n\rTypeParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x120\n\x06bounds\x18\x02 \x03(\x0b2\x18.proto.ParameterizedTypeR\x06bounds\x1a\xde\x01\n\x10IntegerParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\\\n\x15range_start_inclusive\x18\x02 \x01(\x0b2(.proto.ParameterizedType.NullableIntegerR\x13rangeStartInclusive\x12X\n\x13range_end_exclusive\x18\x03 \x01(\x0b2(.proto.ParameterizedType.NullableIntegerR\x11rangeEndExclusive\x1a\'\n\x0fNullableInteger\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\x1a\xc0\x01\n\x16ParameterizedFixedChar\x12>\n\x06length\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xbe\x01\n\x14ParameterizedVarChar\x12>\n\x06length\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xc2\x01\n\x18ParameterizedFixedBinary\x12>\n\x06length\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x82\x02\n\x14ParameterizedDecimal\x12<\n\x05scale\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\x05scale\x12D\n\tprecision\x18\x02 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xc8\x01\n\x18ParameterizedIntervalDay\x12D\n\tprecision\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xcd\x01\n\x1dParameterizedIntervalCompound\x12D\n\tprecision\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xca\x01\n\x1aParameterizedPrecisionTime\x12D\n\tprecision\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xcf\x01\n\x1fParameterizedPrecisionTimestamp\x12D\n\tprecision\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xd1\x01\n!ParameterizedPrecisionTimestampTZ\x12D\n\tprecision\x18\x01 \x01(\x0b2&.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xad\x01\n\x13ParameterizedStruct\x12.\n\x05types\x18\x01 \x03(\x0b2\x18.proto.ParameterizedTypeR\x05types\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1av\n\x18ParameterizedNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12D\n\x06struct\x18\x02 \x01(\x0b2,.proto.ParameterizedType.ParameterizedStructR\x06struct\x1a\xa9\x01\n\x11ParameterizedList\x12,\n\x04type\x18\x01 \x01(\x0b2\x18.proto.ParameterizedTypeR\x04type\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xd6\x01\n\x10ParameterizedMap\x12*\n\x03key\x18\x01 \x01(\x0b2\x18.proto.ParameterizedTypeR\x03key\x12.\n\x05value\x18\x02 \x01(\x0b2\x18.proto.ParameterizedTypeR\x05value\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa5\x01\n\x18ParameterizedUserDefined\x12!\n\x0ctype_pointer\x18\x01 \x01(\rR\x0btypePointer\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x86\x01\n\rIntegerOption\x12\x1a\n\x07literal\x18\x01 \x01(\x05H\x00R\x07literal\x12I\n\tparameter\x18\x02 \x01(\x0b2).proto.ParameterizedType.IntegerParameterH\x00R\tparameterB\x0e\n\x0cinteger_typeB\x06\n\x04kindB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-substrait/gen/proto/parameterized_types.proto\x12\x13substrait.gen.proto\x1a\x1esubstrait/gen/proto/type.proto\"\x98/\n\x11ParameterizedType\x12\x37\n\x04\x62ool\x18\x01 \x01(\x0b\x32!.substrait.gen.proto.Type.BooleanH\x00R\x04\x62ool\x12.\n\x02i8\x18\x02 \x01(\x0b\x32\x1c.substrait.gen.proto.Type.I8H\x00R\x02i8\x12\x31\n\x03i16\x18\x03 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I16H\x00R\x03i16\x12\x31\n\x03i32\x18\x05 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I32H\x00R\x03i32\x12\x31\n\x03i64\x18\x07 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I64H\x00R\x03i64\x12\x34\n\x04\x66p32\x18\n \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP32H\x00R\x04\x66p32\x12\x34\n\x04\x66p64\x18\x0b \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP64H\x00R\x04\x66p64\x12:\n\x06string\x18\x0c \x01(\x0b\x32 .substrait.gen.proto.Type.StringH\x00R\x06string\x12:\n\x06\x62inary\x18\r \x01(\x0b\x32 .substrait.gen.proto.Type.BinaryH\x00R\x06\x62inary\x12G\n\ttimestamp\x18\x0e \x01(\x0b\x32#.substrait.gen.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12\x34\n\x04\x64\x61te\x18\x10 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.DateH\x00R\x04\x64\x61te\x12\x38\n\x04time\x18\x11 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.TimeB\x02\x18\x01H\x00R\x04time\x12M\n\rinterval_year\x18\x13 \x01(\x0b\x32&.substrait.gen.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12\x64\n\x0cinterval_day\x18\x14 \x01(\x0b\x32?.substrait.gen.proto.ParameterizedType.ParameterizedIntervalDayH\x00R\x0bintervalDay\x12s\n\x11interval_compound\x18$ \x01(\x0b\x32\x44.substrait.gen.proto.ParameterizedType.ParameterizedIntervalCompoundH\x00R\x10intervalCompound\x12N\n\x0ctimestamp_tz\x18\x1d \x01(\x0b\x32%.substrait.gen.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12\x34\n\x04uuid\x18 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.UUIDH\x00R\x04uuid\x12^\n\nfixed_char\x18\x15 \x01(\x0b\x32=.substrait.gen.proto.ParameterizedType.ParameterizedFixedCharH\x00R\tfixedChar\x12W\n\x07varchar\x18\x16 \x01(\x0b\x32;.substrait.gen.proto.ParameterizedType.ParameterizedVarCharH\x00R\x07varchar\x12\x64\n\x0c\x66ixed_binary\x18\x17 \x01(\x0b\x32?.substrait.gen.proto.ParameterizedType.ParameterizedFixedBinaryH\x00R\x0b\x66ixedBinary\x12W\n\x07\x64\x65\x63imal\x18\x18 \x01(\x0b\x32;.substrait.gen.proto.ParameterizedType.ParameterizedDecimalH\x00R\x07\x64\x65\x63imal\x12j\n\x0eprecision_time\x18% \x01(\x0b\x32\x41.substrait.gen.proto.ParameterizedType.ParameterizedPrecisionTimeH\x00R\rprecisionTime\x12y\n\x13precision_timestamp\x18\" \x01(\x0b\x32\x46.substrait.gen.proto.ParameterizedType.ParameterizedPrecisionTimestampH\x00R\x12precisionTimestamp\x12\x80\x01\n\x16precision_timestamp_tz\x18# \x01(\x0b\x32H.substrait.gen.proto.ParameterizedType.ParameterizedPrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12T\n\x06struct\x18\x19 \x01(\x0b\x32:.substrait.gen.proto.ParameterizedType.ParameterizedStructH\x00R\x06struct\x12N\n\x04list\x18\x1b \x01(\x0b\x32\x38.substrait.gen.proto.ParameterizedType.ParameterizedListH\x00R\x04list\x12K\n\x03map\x18\x1c \x01(\x0b\x32\x37.substrait.gen.proto.ParameterizedType.ParameterizedMapH\x00R\x03map\x12\x64\n\x0cuser_defined\x18\x1e \x01(\x0b\x32?.substrait.gen.proto.ParameterizedType.ParameterizedUserDefinedH\x00R\x0buserDefined\x12\x36\n\x14user_defined_pointer\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x12userDefinedPointer\x12]\n\x0etype_parameter\x18! \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.TypeParameterH\x00R\rtypeParameter\x1a\x63\n\rTypeParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12>\n\x06\x62ounds\x18\x02 \x03(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x06\x62ounds\x1a\xfa\x01\n\x10IntegerParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12j\n\x15range_start_inclusive\x18\x02 \x01(\x0b\x32\x36.substrait.gen.proto.ParameterizedType.NullableIntegerR\x13rangeStartInclusive\x12\x66\n\x13range_end_exclusive\x18\x03 \x01(\x0b\x32\x36.substrait.gen.proto.ParameterizedType.NullableIntegerR\x11rangeEndExclusive\x1a\'\n\x0fNullableInteger\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value\x1a\xdc\x01\n\x16ParameterizedFixedChar\x12L\n\x06length\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xda\x01\n\x14ParameterizedVarChar\x12L\n\x06length\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xde\x01\n\x18ParameterizedFixedBinary\x12L\n\x06length\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xac\x02\n\x14ParameterizedDecimal\x12J\n\x05scale\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\x05scale\x12R\n\tprecision\x18\x02 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xe4\x01\n\x18ParameterizedIntervalDay\x12R\n\tprecision\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xe9\x01\n\x1dParameterizedIntervalCompound\x12R\n\tprecision\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xe6\x01\n\x1aParameterizedPrecisionTime\x12R\n\tprecision\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xeb\x01\n\x1fParameterizedPrecisionTimestamp\x12R\n\tprecision\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xed\x01\n!ParameterizedPrecisionTimestampTZ\x12R\n\tprecision\x18\x01 \x01(\x0b\x32\x34.substrait.gen.proto.ParameterizedType.IntegerOptionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xc9\x01\n\x13ParameterizedStruct\x12<\n\x05types\x18\x01 \x03(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x05types\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x84\x01\n\x18ParameterizedNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12R\n\x06struct\x18\x02 \x01(\x0b\x32:.substrait.gen.proto.ParameterizedType.ParameterizedStructR\x06struct\x1a\xc5\x01\n\x11ParameterizedList\x12:\n\x04type\x18\x01 \x01(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x04type\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x80\x02\n\x10ParameterizedMap\x12\x38\n\x03key\x18\x01 \x01(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b\x32&.substrait.gen.proto.ParameterizedTypeR\x05value\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb3\x01\n\x18ParameterizedUserDefined\x12!\n\x0ctype_pointer\x18\x01 \x01(\rR\x0btypePointer\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x94\x01\n\rIntegerOption\x12\x1a\n\x07literal\x18\x01 \x01(\x05H\x00R\x07literal\x12W\n\tparameter\x18\x02 \x01(\x0b\x32\x37.substrait.gen.proto.ParameterizedType.IntegerParameterH\x00R\tparameterB\x0e\n\x0cinteger_typeB\x06\n\x04kindB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.parameterized_types_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.parameterized_types_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp']._loaded_options = None - _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp']._serialized_options = b'\x18\x01' - _globals['_PARAMETERIZEDTYPE'].fields_by_name['time']._loaded_options = None - _globals['_PARAMETERIZEDTYPE'].fields_by_name['time']._serialized_options = b'\x18\x01' - _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp_tz']._loaded_options = None - _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp_tz']._serialized_options = b'\x18\x01' - _globals['_PARAMETERIZEDTYPE'].fields_by_name['user_defined_pointer']._loaded_options = None - _globals['_PARAMETERIZEDTYPE'].fields_by_name['user_defined_pointer']._serialized_options = b'\x18\x01' - _globals['_PARAMETERIZEDTYPE']._serialized_start = 61 - _globals['_PARAMETERIZEDTYPE']._serialized_end = 5245 - _globals['_PARAMETERIZEDTYPE_TYPEPARAMETER']._serialized_start = 2012 - _globals['_PARAMETERIZEDTYPE_TYPEPARAMETER']._serialized_end = 2097 - _globals['_PARAMETERIZEDTYPE_INTEGERPARAMETER']._serialized_start = 2100 - _globals['_PARAMETERIZEDTYPE_INTEGERPARAMETER']._serialized_end = 2322 - _globals['_PARAMETERIZEDTYPE_NULLABLEINTEGER']._serialized_start = 2324 - _globals['_PARAMETERIZEDTYPE_NULLABLEINTEGER']._serialized_end = 2363 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDCHAR']._serialized_start = 2366 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDCHAR']._serialized_end = 2558 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDVARCHAR']._serialized_start = 2561 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDVARCHAR']._serialized_end = 2751 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDBINARY']._serialized_start = 2754 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDBINARY']._serialized_end = 2948 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDDECIMAL']._serialized_start = 2951 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDDECIMAL']._serialized_end = 3209 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALDAY']._serialized_start = 3212 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALDAY']._serialized_end = 3412 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALCOMPOUND']._serialized_start = 3415 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALCOMPOUND']._serialized_end = 3620 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIME']._serialized_start = 3623 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIME']._serialized_end = 3825 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMP']._serialized_start = 3828 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMP']._serialized_end = 4035 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMPTZ']._serialized_start = 4038 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMPTZ']._serialized_end = 4247 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDSTRUCT']._serialized_start = 4250 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDSTRUCT']._serialized_end = 4423 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDNAMEDSTRUCT']._serialized_start = 4425 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDNAMEDSTRUCT']._serialized_end = 4543 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDLIST']._serialized_start = 4546 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDLIST']._serialized_end = 4715 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDMAP']._serialized_start = 4718 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDMAP']._serialized_end = 4932 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDUSERDEFINED']._serialized_start = 4935 - _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDUSERDEFINED']._serialized_end = 5100 - _globals['_PARAMETERIZEDTYPE_INTEGEROPTION']._serialized_start = 5103 - _globals['_PARAMETERIZEDTYPE_INTEGEROPTION']._serialized_end = 5237 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp']._loaded_options = None + _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp']._serialized_options = b'\030\001' + _globals['_PARAMETERIZEDTYPE'].fields_by_name['time']._loaded_options = None + _globals['_PARAMETERIZEDTYPE'].fields_by_name['time']._serialized_options = b'\030\001' + _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp_tz']._loaded_options = None + _globals['_PARAMETERIZEDTYPE'].fields_by_name['timestamp_tz']._serialized_options = b'\030\001' + _globals['_PARAMETERIZEDTYPE'].fields_by_name['user_defined_pointer']._loaded_options = None + _globals['_PARAMETERIZEDTYPE'].fields_by_name['user_defined_pointer']._serialized_options = b'\030\001' + _globals['_PARAMETERIZEDTYPE']._serialized_start=103 + _globals['_PARAMETERIZEDTYPE']._serialized_end=6143 + _globals['_PARAMETERIZEDTYPE_TYPEPARAMETER']._serialized_start=2461 + _globals['_PARAMETERIZEDTYPE_TYPEPARAMETER']._serialized_end=2560 + _globals['_PARAMETERIZEDTYPE_INTEGERPARAMETER']._serialized_start=2563 + _globals['_PARAMETERIZEDTYPE_INTEGERPARAMETER']._serialized_end=2813 + _globals['_PARAMETERIZEDTYPE_NULLABLEINTEGER']._serialized_start=2815 + _globals['_PARAMETERIZEDTYPE_NULLABLEINTEGER']._serialized_end=2854 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDCHAR']._serialized_start=2857 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDCHAR']._serialized_end=3077 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDVARCHAR']._serialized_start=3080 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDVARCHAR']._serialized_end=3298 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDBINARY']._serialized_start=3301 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDFIXEDBINARY']._serialized_end=3523 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDDECIMAL']._serialized_start=3526 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDDECIMAL']._serialized_end=3826 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALDAY']._serialized_start=3829 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALDAY']._serialized_end=4057 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALCOMPOUND']._serialized_start=4060 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDINTERVALCOMPOUND']._serialized_end=4293 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIME']._serialized_start=4296 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIME']._serialized_end=4526 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMP']._serialized_start=4529 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMP']._serialized_end=4764 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMPTZ']._serialized_start=4767 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDPRECISIONTIMESTAMPTZ']._serialized_end=5004 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDSTRUCT']._serialized_start=5007 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDSTRUCT']._serialized_end=5208 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDNAMEDSTRUCT']._serialized_start=5211 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDNAMEDSTRUCT']._serialized_end=5343 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDLIST']._serialized_start=5346 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDLIST']._serialized_end=5543 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDMAP']._serialized_start=5546 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDMAP']._serialized_end=5802 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDUSERDEFINED']._serialized_start=5805 + _globals['_PARAMETERIZEDTYPE_PARAMETERIZEDUSERDEFINED']._serialized_end=5984 + _globals['_PARAMETERIZEDTYPE_INTEGEROPTION']._serialized_start=5987 + _globals['_PARAMETERIZEDTYPE_INTEGEROPTION']._serialized_end=6135 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/parameterized_types_pb2.pyi b/src/substrait/gen/proto/parameterized_types_pb2.pyi index 2d649ec..f1c61e4 100644 --- a/src/substrait/gen/proto/parameterized_types_pb2.pyi +++ b/src/substrait/gen/proto/parameterized_types_pb2.pyi @@ -2,13 +2,21 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -from .. import proto +import substrait.gen.proto.type_pb2 +import sys import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final @@ -18,389 +26,407 @@ class ParameterizedType(google.protobuf.message.Message): @typing.final class TypeParameter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int BOUNDS_FIELD_NUMBER: builtins.int name: builtins.str - @property - def bounds(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParameterizedType]: - ... - - def __init__(self, *, name: builtins.str=..., bounds: collections.abc.Iterable[global___ParameterizedType] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['bounds', b'bounds', 'name', b'name']) -> None: - ... + def bounds(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ParameterizedType]: ... + def __init__( + self, + *, + name: builtins.str = ..., + bounds: collections.abc.Iterable[Global___ParameterizedType] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["bounds", b"bounds", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntegerParameter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int RANGE_START_INCLUSIVE_FIELD_NUMBER: builtins.int RANGE_END_EXCLUSIVE_FIELD_NUMBER: builtins.int name: builtins.str - @property - def range_start_inclusive(self) -> global___ParameterizedType.NullableInteger: - ... - + def range_start_inclusive(self) -> Global___ParameterizedType.NullableInteger: ... @property - def range_end_exclusive(self) -> global___ParameterizedType.NullableInteger: - ... - - def __init__(self, *, name: builtins.str=..., range_start_inclusive: global___ParameterizedType.NullableInteger | None=..., range_end_exclusive: global___ParameterizedType.NullableInteger | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['range_end_exclusive', b'range_end_exclusive', 'range_start_inclusive', b'range_start_inclusive']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['name', b'name', 'range_end_exclusive', b'range_end_exclusive', 'range_start_inclusive', b'range_start_inclusive']) -> None: - ... + def range_end_exclusive(self) -> Global___ParameterizedType.NullableInteger: ... + def __init__( + self, + *, + name: builtins.str = ..., + range_start_inclusive: Global___ParameterizedType.NullableInteger | None = ..., + range_end_exclusive: Global___ParameterizedType.NullableInteger | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["range_end_exclusive", b"range_end_exclusive", "range_start_inclusive", b"range_start_inclusive"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["name", b"name", "range_end_exclusive", b"range_end_exclusive", "range_start_inclusive", b"range_start_inclusive"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class NullableInteger(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int value: builtins.int - - def __init__(self, *, value: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['value', b'value']) -> None: - ... + def __init__( + self, + *, + value: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedFixedChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, length: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + length: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedVarChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, length: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + length: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedFixedBinary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, length: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + length: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedDecimal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SCALE_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def scale(self) -> global___ParameterizedType.IntegerOption: - ... - + def scale(self) -> Global___ParameterizedType.IntegerOption: ... @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, scale: global___ParameterizedType.IntegerOption | None=..., precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision', 'scale', b'scale']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'scale', b'scale', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + scale: Global___ParameterizedType.IntegerOption | None = ..., + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision", "scale", b"scale"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "scale", b"scale", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedIntervalDay(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedIntervalCompound(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedPrecisionTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedPrecisionTimestamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedPrecisionTimestampTZ(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___ParameterizedType.IntegerOption: - ... - - def __init__(self, *, precision: global___ParameterizedType.IntegerOption | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___ParameterizedType.IntegerOption: ... + def __init__( + self, + *, + precision: Global___ParameterizedType.IntegerOption | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedStruct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPES_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParameterizedType]: - ... - - def __init__(self, *, types: collections.abc.Iterable[global___ParameterizedType] | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'types', b'types', 'variation_pointer', b'variation_pointer']) -> None: - ... + def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ParameterizedType]: ... + def __init__( + self, + *, + types: collections.abc.Iterable[Global___ParameterizedType] | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "types", b"types", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedNamedStruct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int STRUCT_FIELD_NUMBER: builtins.int - @property def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """list of names in dfs order""" @property - def struct(self) -> global___ParameterizedType.ParameterizedStruct: - ... - - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., struct: global___ParameterizedType.ParameterizedStruct | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['struct', b'struct']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['names', b'names', 'struct', b'struct']) -> None: - ... + def struct(self) -> Global___ParameterizedType.ParameterizedStruct: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + struct: Global___ParameterizedType.ParameterizedStruct | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct", b"struct"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["names", b"names", "struct", b"struct"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedList(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def type(self) -> global___ParameterizedType: - ... - - def __init__(self, *, type: global___ParameterizedType | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type', b'type', 'variation_pointer', b'variation_pointer']) -> None: - ... + def type(self) -> Global___ParameterizedType: ... + def __init__( + self, + *, + type: Global___ParameterizedType | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type", b"type", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedMap(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def key(self) -> global___ParameterizedType: - ... - + def key(self) -> Global___ParameterizedType: ... @property - def value(self) -> global___ParameterizedType: - ... - - def __init__(self, *, key: global___ParameterizedType | None=..., value: global___ParameterizedType | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['key', b'key', 'nullability', b'nullability', 'value', b'value', 'variation_pointer', b'variation_pointer']) -> None: - ... + def value(self) -> Global___ParameterizedType: ... + def __init__( + self, + *, + key: Global___ParameterizedType | None = ..., + value: Global___ParameterizedType | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "nullability", b"nullability", "value", b"value", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ParameterizedUserDefined(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_POINTER_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_pointer: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - - def __init__(self, *, type_pointer: builtins.int=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_pointer', b'type_pointer', 'variation_pointer', b'variation_pointer']) -> None: - ... + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType + def __init__( + self, + *, + type_pointer: builtins.int = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_pointer", b"type_pointer", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntegerOption(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LITERAL_FIELD_NUMBER: builtins.int PARAMETER_FIELD_NUMBER: builtins.int literal: builtins.int - @property - def parameter(self) -> global___ParameterizedType.IntegerParameter: - ... - - def __init__(self, *, literal: builtins.int=..., parameter: global___ParameterizedType.IntegerParameter | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['integer_type', b'integer_type', 'literal', b'literal', 'parameter', b'parameter']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['integer_type', b'integer_type', 'literal', b'literal', 'parameter', b'parameter']) -> None: - ... + def parameter(self) -> Global___ParameterizedType.IntegerParameter: ... + def __init__( + self, + *, + literal: builtins.int = ..., + parameter: Global___ParameterizedType.IntegerParameter | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["integer_type", b"integer_type", "literal", b"literal", "parameter", b"parameter"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["integer_type", b"integer_type", "literal", b"literal", "parameter", b"parameter"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_integer_type: typing_extensions.TypeAlias = typing.Literal["literal", "parameter"] + _WhichOneofArgType_integer_type: typing_extensions.TypeAlias = typing.Literal["integer_type", b"integer_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_integer_type) -> _WhichOneofReturnType_integer_type | None: ... - def WhichOneof(self, oneof_group: typing.Literal['integer_type', b'integer_type']) -> typing.Literal['literal', 'parameter'] | None: - ... BOOL_FIELD_NUMBER: builtins.int I8_FIELD_NUMBER: builtins.int I16_FIELD_NUMBER: builtins.int @@ -432,133 +458,114 @@ class ParameterizedType(google.protobuf.message.Message): USER_DEFINED_POINTER_FIELD_NUMBER: builtins.int TYPE_PARAMETER_FIELD_NUMBER: builtins.int user_defined_pointer: builtins.int - 'Deprecated in favor of user_defined, which allows nullability and\n variations to be specified. If user_defined_pointer is encountered,\n treat it as being non-nullable and having the default variation.\n ' - + """Deprecated in favor of user_defined, which allows nullability and + variations to be specified. If user_defined_pointer is encountered, + treat it as being non-nullable and having the default variation. + """ @property - def bool(self) -> proto.type_pb2.Type.Boolean: - ... - + def bool(self) -> substrait.gen.proto.type_pb2.Type.Boolean: ... @property - def i8(self) -> proto.type_pb2.Type.I8: - ... - + def i8(self) -> substrait.gen.proto.type_pb2.Type.I8: ... @property - def i16(self) -> proto.type_pb2.Type.I16: - ... - + def i16(self) -> substrait.gen.proto.type_pb2.Type.I16: ... @property - def i32(self) -> proto.type_pb2.Type.I32: - ... - + def i32(self) -> substrait.gen.proto.type_pb2.Type.I32: ... @property - def i64(self) -> proto.type_pb2.Type.I64: - ... - + def i64(self) -> substrait.gen.proto.type_pb2.Type.I64: ... @property - def fp32(self) -> proto.type_pb2.Type.FP32: - ... - + def fp32(self) -> substrait.gen.proto.type_pb2.Type.FP32: ... @property - def fp64(self) -> proto.type_pb2.Type.FP64: - ... - + def fp64(self) -> substrait.gen.proto.type_pb2.Type.FP64: ... @property - def string(self) -> proto.type_pb2.Type.String: - ... - + def string(self) -> substrait.gen.proto.type_pb2.Type.String: ... @property - def binary(self) -> proto.type_pb2.Type.Binary: - ... - + def binary(self) -> substrait.gen.proto.type_pb2.Type.Binary: ... @property - def timestamp(self) -> proto.type_pb2.Type.Timestamp: + def timestamp(self) -> substrait.gen.proto.type_pb2.Type.Timestamp: """Deprecated in favor of `ParameterizedPrecisionTimestamp precision_timestamp`""" @property - def date(self) -> proto.type_pb2.Type.Date: - ... - + def date(self) -> substrait.gen.proto.type_pb2.Type.Date: ... @property - def time(self) -> proto.type_pb2.Type.Time: + def time(self) -> substrait.gen.proto.type_pb2.Type.Time: """Deprecated in favor of `ParameterizedPrecisionTime precision_time`""" @property - def interval_year(self) -> proto.type_pb2.Type.IntervalYear: - ... - + def interval_year(self) -> substrait.gen.proto.type_pb2.Type.IntervalYear: ... @property - def interval_day(self) -> global___ParameterizedType.ParameterizedIntervalDay: - ... - + def interval_day(self) -> Global___ParameterizedType.ParameterizedIntervalDay: ... @property - def interval_compound(self) -> global___ParameterizedType.ParameterizedIntervalCompound: - ... - + def interval_compound(self) -> Global___ParameterizedType.ParameterizedIntervalCompound: ... @property - def timestamp_tz(self) -> proto.type_pb2.Type.TimestampTZ: + def timestamp_tz(self) -> substrait.gen.proto.type_pb2.Type.TimestampTZ: """Deprecated in favor of `ParameterizedPrecisionTimestampTZ precision_timestamp_tz`""" @property - def uuid(self) -> proto.type_pb2.Type.UUID: - ... - + def uuid(self) -> substrait.gen.proto.type_pb2.Type.UUID: ... @property - def fixed_char(self) -> global___ParameterizedType.ParameterizedFixedChar: - ... - + def fixed_char(self) -> Global___ParameterizedType.ParameterizedFixedChar: ... @property - def varchar(self) -> global___ParameterizedType.ParameterizedVarChar: - ... - + def varchar(self) -> Global___ParameterizedType.ParameterizedVarChar: ... @property - def fixed_binary(self) -> global___ParameterizedType.ParameterizedFixedBinary: - ... - + def fixed_binary(self) -> Global___ParameterizedType.ParameterizedFixedBinary: ... @property - def decimal(self) -> global___ParameterizedType.ParameterizedDecimal: - ... - + def decimal(self) -> Global___ParameterizedType.ParameterizedDecimal: ... @property - def precision_time(self) -> global___ParameterizedType.ParameterizedPrecisionTime: - ... - + def precision_time(self) -> Global___ParameterizedType.ParameterizedPrecisionTime: ... @property - def precision_timestamp(self) -> global___ParameterizedType.ParameterizedPrecisionTimestamp: - ... - + def precision_timestamp(self) -> Global___ParameterizedType.ParameterizedPrecisionTimestamp: ... @property - def precision_timestamp_tz(self) -> global___ParameterizedType.ParameterizedPrecisionTimestampTZ: - ... - + def precision_timestamp_tz(self) -> Global___ParameterizedType.ParameterizedPrecisionTimestampTZ: ... @property - def struct(self) -> global___ParameterizedType.ParameterizedStruct: - ... - + def struct(self) -> Global___ParameterizedType.ParameterizedStruct: ... @property - def list(self) -> global___ParameterizedType.ParameterizedList: - ... - + def list(self) -> Global___ParameterizedType.ParameterizedList: ... @property - def map(self) -> global___ParameterizedType.ParameterizedMap: - ... - + def map(self) -> Global___ParameterizedType.ParameterizedMap: ... @property - def user_defined(self) -> global___ParameterizedType.ParameterizedUserDefined: - ... - + def user_defined(self) -> Global___ParameterizedType.ParameterizedUserDefined: ... @property - def type_parameter(self) -> global___ParameterizedType.TypeParameter: - ... - - def __init__(self, *, bool: proto.type_pb2.Type.Boolean | None=..., i8: proto.type_pb2.Type.I8 | None=..., i16: proto.type_pb2.Type.I16 | None=..., i32: proto.type_pb2.Type.I32 | None=..., i64: proto.type_pb2.Type.I64 | None=..., fp32: proto.type_pb2.Type.FP32 | None=..., fp64: proto.type_pb2.Type.FP64 | None=..., string: proto.type_pb2.Type.String | None=..., binary: proto.type_pb2.Type.Binary | None=..., timestamp: proto.type_pb2.Type.Timestamp | None=..., date: proto.type_pb2.Type.Date | None=..., time: proto.type_pb2.Type.Time | None=..., interval_year: proto.type_pb2.Type.IntervalYear | None=..., interval_day: global___ParameterizedType.ParameterizedIntervalDay | None=..., interval_compound: global___ParameterizedType.ParameterizedIntervalCompound | None=..., timestamp_tz: proto.type_pb2.Type.TimestampTZ | None=..., uuid: proto.type_pb2.Type.UUID | None=..., fixed_char: global___ParameterizedType.ParameterizedFixedChar | None=..., varchar: global___ParameterizedType.ParameterizedVarChar | None=..., fixed_binary: global___ParameterizedType.ParameterizedFixedBinary | None=..., decimal: global___ParameterizedType.ParameterizedDecimal | None=..., precision_time: global___ParameterizedType.ParameterizedPrecisionTime | None=..., precision_timestamp: global___ParameterizedType.ParameterizedPrecisionTimestamp | None=..., precision_timestamp_tz: global___ParameterizedType.ParameterizedPrecisionTimestampTZ | None=..., struct: global___ParameterizedType.ParameterizedStruct | None=..., list: global___ParameterizedType.ParameterizedList | None=..., map: global___ParameterizedType.ParameterizedMap | None=..., user_defined: global___ParameterizedType.ParameterizedUserDefined | None=..., user_defined_pointer: builtins.int=..., type_parameter: global___ParameterizedType.TypeParameter | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['binary', b'binary', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'type_parameter', b'type_parameter', 'user_defined', b'user_defined', 'user_defined_pointer', b'user_defined_pointer', 'uuid', b'uuid', 'varchar', b'varchar']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['binary', b'binary', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'type_parameter', b'type_parameter', 'user_defined', b'user_defined', 'user_defined_pointer', b'user_defined_pointer', 'uuid', b'uuid', 'varchar', b'varchar']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['kind', b'kind']) -> typing.Literal['bool', 'i8', 'i16', 'i32', 'i64', 'fp32', 'fp64', 'string', 'binary', 'timestamp', 'date', 'time', 'interval_year', 'interval_day', 'interval_compound', 'timestamp_tz', 'uuid', 'fixed_char', 'varchar', 'fixed_binary', 'decimal', 'precision_time', 'precision_timestamp', 'precision_timestamp_tz', 'struct', 'list', 'map', 'user_defined', 'user_defined_pointer', 'type_parameter'] | None: - ... -global___ParameterizedType = ParameterizedType \ No newline at end of file + def type_parameter(self) -> Global___ParameterizedType.TypeParameter: ... + def __init__( + self, + *, + bool: substrait.gen.proto.type_pb2.Type.Boolean | None = ..., + i8: substrait.gen.proto.type_pb2.Type.I8 | None = ..., + i16: substrait.gen.proto.type_pb2.Type.I16 | None = ..., + i32: substrait.gen.proto.type_pb2.Type.I32 | None = ..., + i64: substrait.gen.proto.type_pb2.Type.I64 | None = ..., + fp32: substrait.gen.proto.type_pb2.Type.FP32 | None = ..., + fp64: substrait.gen.proto.type_pb2.Type.FP64 | None = ..., + string: substrait.gen.proto.type_pb2.Type.String | None = ..., + binary: substrait.gen.proto.type_pb2.Type.Binary | None = ..., + timestamp: substrait.gen.proto.type_pb2.Type.Timestamp | None = ..., + date: substrait.gen.proto.type_pb2.Type.Date | None = ..., + time: substrait.gen.proto.type_pb2.Type.Time | None = ..., + interval_year: substrait.gen.proto.type_pb2.Type.IntervalYear | None = ..., + interval_day: Global___ParameterizedType.ParameterizedIntervalDay | None = ..., + interval_compound: Global___ParameterizedType.ParameterizedIntervalCompound | None = ..., + timestamp_tz: substrait.gen.proto.type_pb2.Type.TimestampTZ | None = ..., + uuid: substrait.gen.proto.type_pb2.Type.UUID | None = ..., + fixed_char: Global___ParameterizedType.ParameterizedFixedChar | None = ..., + varchar: Global___ParameterizedType.ParameterizedVarChar | None = ..., + fixed_binary: Global___ParameterizedType.ParameterizedFixedBinary | None = ..., + decimal: Global___ParameterizedType.ParameterizedDecimal | None = ..., + precision_time: Global___ParameterizedType.ParameterizedPrecisionTime | None = ..., + precision_timestamp: Global___ParameterizedType.ParameterizedPrecisionTimestamp | None = ..., + precision_timestamp_tz: Global___ParameterizedType.ParameterizedPrecisionTimestampTZ | None = ..., + struct: Global___ParameterizedType.ParameterizedStruct | None = ..., + list: Global___ParameterizedType.ParameterizedList | None = ..., + map: Global___ParameterizedType.ParameterizedMap | None = ..., + user_defined: Global___ParameterizedType.ParameterizedUserDefined | None = ..., + user_defined_pointer: builtins.int = ..., + type_parameter: Global___ParameterizedType.TypeParameter | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "type_parameter", b"type_parameter", "user_defined", b"user_defined", "user_defined_pointer", b"user_defined_pointer", "uuid", b"uuid", "varchar", b"varchar"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "type_parameter", b"type_parameter", "user_defined", b"user_defined", "user_defined_pointer", b"user_defined_pointer", "uuid", b"uuid", "varchar", b"varchar"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: typing_extensions.TypeAlias = typing.Literal["bool", "i8", "i16", "i32", "i64", "fp32", "fp64", "string", "binary", "timestamp", "date", "time", "interval_year", "interval_day", "interval_compound", "timestamp_tz", "uuid", "fixed_char", "varchar", "fixed_binary", "decimal", "precision_time", "precision_timestamp", "precision_timestamp_tz", "struct", "list", "map", "user_defined", "user_defined_pointer", "type_parameter"] + _WhichOneofArgType_kind: typing_extensions.TypeAlias = typing.Literal["kind", b"kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___ParameterizedType: typing_extensions.TypeAlias = ParameterizedType diff --git a/src/substrait/gen/proto/plan_pb2.py b/src/substrait/gen/proto/plan_pb2.py index 357716b..2c9e7be 100644 --- a/src/substrait/gen/proto/plan_pb2.py +++ b/src/substrait/gen/proto/plan_pb2.py @@ -1,30 +1,50 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/plan.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/plan.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/plan.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -from ..proto import algebra_pb2 as proto_dot_algebra__pb2 -from ..proto.extensions import extensions_pb2 as proto_dot_extensions_dot_extensions__pb2 -from ..proto import type_pb2 as proto_dot_type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10proto/plan.proto\x12\x05proto\x1a\x13proto/algebra.proto\x1a!proto/extensions/extensions.proto\x1a\x10proto/type.proto"[\n\x07PlanRel\x12\x1e\n\x03rel\x18\x01 \x01(\x0b2\n.proto.RelH\x00R\x03rel\x12$\n\x04root\x18\x02 \x01(\x0b2\x0e.proto.RelRootH\x00R\x04rootB\n\n\x08rel_type"\xd2\x04\n\x04Plan\x12(\n\x07version\x18\x06 \x01(\x0b2\x0e.proto.VersionR\x07version\x12O\n\x0eextension_uris\x18\x01 \x03(\x0b2$.proto.extensions.SimpleExtensionURIB\x02\x18\x01R\rextensionUris\x12K\n\x0eextension_urns\x18\x08 \x03(\x0b2$.proto.extensions.SimpleExtensionURNR\rextensionUrns\x12L\n\nextensions\x18\x02 \x03(\x0b2,.proto.extensions.SimpleExtensionDeclarationR\nextensions\x12,\n\trelations\x18\x03 \x03(\x0b2\x0e.proto.PlanRelR\trelations\x12T\n\x13advanced_extensions\x18\x04 \x01(\x0b2#.proto.extensions.AdvancedExtensionR\x12advancedExtensions\x12,\n\x12expected_type_urls\x18\x05 \x03(\tR\x10expectedTypeUrls\x12M\n\x12parameter_bindings\x18\x07 \x03(\x0b2\x1e.proto.DynamicParameterBindingR\x11parameterBindings\x123\n\x0ctype_aliases\x18\t \x03(\x0b2\x10.proto.TypeAliasR\x0btypeAliases"7\n\x0bPlanVersion\x12(\n\x07version\x18\x06 \x01(\x0b2\x0e.proto.VersionR\x07version"\xa9\x01\n\x07Version\x12!\n\x0cmajor_number\x18\x01 \x01(\rR\x0bmajorNumber\x12!\n\x0cminor_number\x18\x02 \x01(\rR\x0bminorNumber\x12!\n\x0cpatch_number\x18\x03 \x01(\rR\x0bpatchNumber\x12\x19\n\x08git_hash\x18\x04 \x01(\tR\x07gitHash\x12\x1a\n\x08producer\x18\x05 \x01(\tR\x08producer"u\n\x17DynamicParameterBinding\x12)\n\x10parameter_anchor\x18\x01 \x01(\rR\x0fparameterAnchor\x12/\n\x05value\x18\x02 \x01(\x0b2\x19.proto.Expression.LiteralR\x05valueB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +from substrait.gen.proto import algebra_pb2 as substrait_dot_gen_dot_proto_dot_algebra__pb2 +from substrait.gen.proto.extensions import extensions_pb2 as substrait_dot_gen_dot_proto_dot_extensions_dot_extensions__pb2 +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esubstrait/gen/proto/plan.proto\x12\x13substrait.gen.proto\x1a!substrait/gen/proto/algebra.proto\x1a/substrait/gen/proto/extensions/extensions.proto\x1a\x1esubstrait/gen/proto/type.proto\"w\n\x07PlanRel\x12,\n\x03rel\x18\x01 \x01(\x0b\x32\x18.substrait.gen.proto.RelH\x00R\x03rel\x12\x32\n\x04root\x18\x02 \x01(\x0b\x32\x1c.substrait.gen.proto.RelRootH\x00R\x04rootB\n\n\x08rel_type\"\xc2\x05\n\x04Plan\x12\x36\n\x07version\x18\x06 \x01(\x0b\x32\x1c.substrait.gen.proto.VersionR\x07version\x12]\n\x0e\x65xtension_uris\x18\x01 \x03(\x0b\x32\x32.substrait.gen.proto.extensions.SimpleExtensionURIB\x02\x18\x01R\rextensionUris\x12Y\n\x0e\x65xtension_urns\x18\x08 \x03(\x0b\x32\x32.substrait.gen.proto.extensions.SimpleExtensionURNR\rextensionUrns\x12Z\n\nextensions\x18\x02 \x03(\x0b\x32:.substrait.gen.proto.extensions.SimpleExtensionDeclarationR\nextensions\x12:\n\trelations\x18\x03 \x03(\x0b\x32\x1c.substrait.gen.proto.PlanRelR\trelations\x12\x62\n\x13\x61\x64vanced_extensions\x18\x04 \x01(\x0b\x32\x31.substrait.gen.proto.extensions.AdvancedExtensionR\x12\x61\x64vancedExtensions\x12,\n\x12\x65xpected_type_urls\x18\x05 \x03(\tR\x10\x65xpectedTypeUrls\x12[\n\x12parameter_bindings\x18\x07 \x03(\x0b\x32,.substrait.gen.proto.DynamicParameterBindingR\x11parameterBindings\x12\x41\n\x0ctype_aliases\x18\t \x03(\x0b\x32\x1e.substrait.gen.proto.TypeAliasR\x0btypeAliases\"E\n\x0bPlanVersion\x12\x36\n\x07version\x18\x06 \x01(\x0b\x32\x1c.substrait.gen.proto.VersionR\x07version\"\xa9\x01\n\x07Version\x12!\n\x0cmajor_number\x18\x01 \x01(\rR\x0bmajorNumber\x12!\n\x0cminor_number\x18\x02 \x01(\rR\x0bminorNumber\x12!\n\x0cpatch_number\x18\x03 \x01(\rR\x0bpatchNumber\x12\x19\n\x08git_hash\x18\x04 \x01(\tR\x07gitHash\x12\x1a\n\x08producer\x18\x05 \x01(\tR\x08producer\"\x83\x01\n\x17\x44ynamicParameterBinding\x12)\n\x10parameter_anchor\x18\x01 \x01(\rR\x0fparameterAnchor\x12=\n\x05value\x18\x02 \x01(\x0b\x32\'.substrait.gen.proto.Expression.LiteralR\x05valueB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.plan_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.plan_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_PLAN'].fields_by_name['extension_uris']._loaded_options = None - _globals['_PLAN'].fields_by_name['extension_uris']._serialized_options = b'\x18\x01' - _globals['_PLANREL']._serialized_start = 101 - _globals['_PLANREL']._serialized_end = 192 - _globals['_PLAN']._serialized_start = 195 - _globals['_PLAN']._serialized_end = 789 - _globals['_PLANVERSION']._serialized_start = 791 - _globals['_PLANVERSION']._serialized_end = 846 - _globals['_VERSION']._serialized_start = 849 - _globals['_VERSION']._serialized_end = 1018 - _globals['_DYNAMICPARAMETERBINDING']._serialized_start = 1020 - _globals['_DYNAMICPARAMETERBINDING']._serialized_end = 1137 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_PLAN'].fields_by_name['extension_uris']._loaded_options = None + _globals['_PLAN'].fields_by_name['extension_uris']._serialized_options = b'\030\001' + _globals['_PLANREL']._serialized_start=171 + _globals['_PLANREL']._serialized_end=290 + _globals['_PLAN']._serialized_start=293 + _globals['_PLAN']._serialized_end=999 + _globals['_PLANVERSION']._serialized_start=1001 + _globals['_PLANVERSION']._serialized_end=1070 + _globals['_VERSION']._serialized_start=1073 + _globals['_VERSION']._serialized_end=1242 + _globals['_DYNAMICPARAMETERBINDING']._serialized_start=1245 + _globals['_DYNAMICPARAMETERBINDING']._serialized_end=1376 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/plan_pb2.pyi b/src/substrait/gen/proto/plan_pb2.pyi index fedd441..dc854a7 100644 --- a/src/substrait/gen/proto/plan_pb2.pyi +++ b/src/substrait/gen/proto/plan_pb2.pyi @@ -2,49 +2,65 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -from .. import proto +import substrait.gen.proto.algebra_pb2 +import substrait.gen.proto.extensions.extensions_pb2 +import substrait.gen.proto.type_pb2 +import sys import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final class PlanRel(google.protobuf.message.Message): """Either a relation or root relation""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + REL_FIELD_NUMBER: builtins.int ROOT_FIELD_NUMBER: builtins.int - @property - def rel(self) -> proto.algebra_pb2.Rel: + def rel(self) -> substrait.gen.proto.algebra_pb2.Rel: """Any relation (used for references and CTEs)""" @property - def root(self) -> proto.algebra_pb2.RelRoot: + def root(self) -> substrait.gen.proto.algebra_pb2.RelRoot: """The root of a relation tree""" - def __init__(self, *, rel: proto.algebra_pb2.Rel | None=..., root: proto.algebra_pb2.RelRoot | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['rel', b'rel', 'rel_type', b'rel_type', 'root', b'root']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['rel', b'rel', 'rel_type', b'rel_type', 'root', b'root']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['rel_type', b'rel_type']) -> typing.Literal['rel', 'root'] | None: - ... -global___PlanRel = PlanRel + def __init__( + self, + *, + rel: substrait.gen.proto.algebra_pb2.Rel | None = ..., + root: substrait.gen.proto.algebra_pb2.RelRoot | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["rel", b"rel", "rel_type", b"rel_type", "root", b"root"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["rel", b"rel", "rel_type", b"rel_type", "root", b"root"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_rel_type: typing_extensions.TypeAlias = typing.Literal["rel", "root"] + _WhichOneofArgType_rel_type: typing_extensions.TypeAlias = typing.Literal["rel_type", b"rel_type"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_rel_type) -> _WhichOneofReturnType_rel_type | None: ... + +Global___PlanRel: typing_extensions.TypeAlias = PlanRel @typing.final class Plan(google.protobuf.message.Message): """Describe a set of operations to complete. For compactness sake, identifiers are normalized at the plan level. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int EXTENSION_URIS_FIELD_NUMBER: builtins.int EXTENSION_URNS_FIELD_NUMBER: builtins.int @@ -54,33 +70,32 @@ class Plan(google.protobuf.message.Message): EXPECTED_TYPE_URLS_FIELD_NUMBER: builtins.int PARAMETER_BINDINGS_FIELD_NUMBER: builtins.int TYPE_ALIASES_FIELD_NUMBER: builtins.int - @property - def version(self) -> global___Version: + def version(self) -> Global___Version: """Substrait version of the plan. Optional up to 0.17.0, required for later versions. """ @property - def extension_uris(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionURI]: + def extension_uris(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURI]: """a list of yaml specifications this plan may depend on this is now deprecated and extension_urns should be used instead. """ @property - def extension_urns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionURN]: + def extension_urns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURN]: """a list of extension URNs this plan may depend on""" @property - def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.extensions.extensions_pb2.SimpleExtensionDeclaration]: + def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionDeclaration]: """a list of extensions this plan may depend on""" @property - def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PlanRel]: + def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___PlanRel]: """one or more relation trees that are associated with this plan.""" @property - def advanced_extensions(self) -> proto.extensions.extensions_pb2.AdvancedExtension: + def advanced_extensions(self) -> substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension: """additional extensions associated with this plan.""" @property @@ -93,13 +108,13 @@ class Plan(google.protobuf.message.Message): """ @property - def parameter_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DynamicParameterBinding]: + def parameter_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___DynamicParameterBinding]: """An optional list of bindings for dynamic parameters used in this plan. Each binding maps a parameter_anchor to its corresponding runtime value. """ @property - def type_aliases(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.type_pb2.TypeAlias]: + def type_aliases(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[substrait.gen.proto.type_pb2.TypeAlias]: """An optional list of type aliases. Types can be specified here once, and then referenced within the plan using the TypeAliasReference type. This feature is intended to assist with the usability of parameterized types, @@ -109,15 +124,25 @@ class Plan(google.protobuf.message.Message): many fields, nested parameterized types, string as a type parameter). """ - def __init__(self, *, version: global___Version | None=..., extension_uris: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionURI] | None=..., extension_urns: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionURN] | None=..., extensions: collections.abc.Iterable[proto.extensions.extensions_pb2.SimpleExtensionDeclaration] | None=..., relations: collections.abc.Iterable[global___PlanRel] | None=..., advanced_extensions: proto.extensions.extensions_pb2.AdvancedExtension | None=..., expected_type_urls: collections.abc.Iterable[builtins.str] | None=..., parameter_bindings: collections.abc.Iterable[global___DynamicParameterBinding] | None=..., type_aliases: collections.abc.Iterable[proto.type_pb2.TypeAlias] | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['advanced_extensions', b'advanced_extensions', 'version', b'version']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['advanced_extensions', b'advanced_extensions', 'expected_type_urls', b'expected_type_urls', 'extension_uris', b'extension_uris', 'extension_urns', b'extension_urns', 'extensions', b'extensions', 'parameter_bindings', b'parameter_bindings', 'relations', b'relations', 'type_aliases', b'type_aliases', 'version', b'version']) -> None: - ... -global___Plan = Plan + def __init__( + self, + *, + version: Global___Version | None = ..., + extension_uris: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURI] | None = ..., + extension_urns: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionURN] | None = ..., + extensions: collections.abc.Iterable[substrait.gen.proto.extensions.extensions_pb2.SimpleExtensionDeclaration] | None = ..., + relations: collections.abc.Iterable[Global___PlanRel] | None = ..., + advanced_extensions: substrait.gen.proto.extensions.extensions_pb2.AdvancedExtension | None = ..., + expected_type_urls: collections.abc.Iterable[builtins.str] | None = ..., + parameter_bindings: collections.abc.Iterable[Global___DynamicParameterBinding] | None = ..., + type_aliases: collections.abc.Iterable[substrait.gen.proto.type_pb2.TypeAlias] | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extensions", b"advanced_extensions", "version", b"version"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["advanced_extensions", b"advanced_extensions", "expected_type_urls", b"expected_type_urls", "extension_uris", b"extension_uris", "extension_urns", b"extension_urns", "extensions", b"extensions", "parameter_bindings", b"parameter_bindings", "relations", b"relations", "type_aliases", b"type_aliases", "version", b"version"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___Plan: typing_extensions.TypeAlias = Plan @typing.final class PlanVersion(google.protobuf.message.Message): @@ -127,69 +152,94 @@ class PlanVersion(google.protobuf.message.Message): the Substrait version used to deserialize it, such that a consumer can emit a more helpful error message in this case. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor - VERSION_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int @property - def version(self) -> global___Version: - ... - - def __init__(self, *, version: global___Version | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['version', b'version']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['version', b'version']) -> None: - ... -global___PlanVersion = PlanVersion + def version(self) -> Global___Version: ... + def __init__( + self, + *, + version: Global___Version | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["version", b"version"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["version", b"version"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___PlanVersion: typing_extensions.TypeAlias = PlanVersion @typing.final class Version(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + MAJOR_NUMBER_FIELD_NUMBER: builtins.int MINOR_NUMBER_FIELD_NUMBER: builtins.int PATCH_NUMBER_FIELD_NUMBER: builtins.int GIT_HASH_FIELD_NUMBER: builtins.int PRODUCER_FIELD_NUMBER: builtins.int major_number: builtins.int - 'Substrait version number.' + """Substrait version number.""" minor_number: builtins.int patch_number: builtins.int git_hash: builtins.str - 'If a particular version of Substrait is used that does not correspond to\n a version number exactly (for example when using an unofficial fork or\n using a version that is not yet released or is between versions), set this\n to the full git hash of the utilized commit of\n https://github.com/substrait-io/substrait (or fork thereof), represented\n using a lowercase hex ASCII string 40 characters in length. The version\n number above should be set to the most recent version tag in the history\n of that commit.\n ' + """If a particular version of Substrait is used that does not correspond to + a version number exactly (for example when using an unofficial fork or + using a version that is not yet released or is between versions), set this + to the full git hash of the utilized commit of + https://github.com/substrait-io/substrait (or fork thereof), represented + using a lowercase hex ASCII string 40 characters in length. The version + number above should be set to the most recent version tag in the history + of that commit. + """ producer: builtins.str - 'Identifying information for the producer that created this plan. Under\n ideal circumstances, consumers should not need this information. However,\n it is foreseen that consumers may need to work around bugs in particular\n producers in practice, and therefore may need to know which producer\n created the plan.\n ' - - def __init__(self, *, major_number: builtins.int=..., minor_number: builtins.int=..., patch_number: builtins.int=..., git_hash: builtins.str=..., producer: builtins.str=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['git_hash', b'git_hash', 'major_number', b'major_number', 'minor_number', b'minor_number', 'patch_number', b'patch_number', 'producer', b'producer']) -> None: - ... -global___Version = Version + """Identifying information for the producer that created this plan. Under + ideal circumstances, consumers should not need this information. However, + it is foreseen that consumers may need to work around bugs in particular + producers in practice, and therefore may need to know which producer + created the plan. + """ + def __init__( + self, + *, + major_number: builtins.int = ..., + minor_number: builtins.int = ..., + patch_number: builtins.int = ..., + git_hash: builtins.str = ..., + producer: builtins.str = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["git_hash", b"git_hash", "major_number", b"major_number", "minor_number", b"minor_number", "patch_number", b"patch_number", "producer", b"producer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___Version: typing_extensions.TypeAlias = Version @typing.final class DynamicParameterBinding(google.protobuf.message.Message): """Represents a binding for a dynamic parameter.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARAMETER_ANCHOR_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int parameter_anchor: builtins.int - 'The parameter anchor that identifies the dynamic parameter reference.' - + """The parameter anchor that identifies the dynamic parameter reference.""" @property - def value(self) -> proto.algebra_pb2.Expression.Literal: + def value(self) -> substrait.gen.proto.algebra_pb2.Expression.Literal: """The literal value assigned to the parameter at runtime. The type of the literal needs to match the type of the corresponding DynamicParameter expression in the plan. """ - def __init__(self, *, parameter_anchor: builtins.int=..., value: proto.algebra_pb2.Expression.Literal | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['parameter_anchor', b'parameter_anchor', 'value', b'value']) -> None: - ... -global___DynamicParameterBinding = DynamicParameterBinding \ No newline at end of file + def __init__( + self, + *, + parameter_anchor: builtins.int = ..., + value: substrait.gen.proto.algebra_pb2.Expression.Literal | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["parameter_anchor", b"parameter_anchor", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + +Global___DynamicParameterBinding: typing_extensions.TypeAlias = DynamicParameterBinding diff --git a/src/substrait/gen/proto/type_expressions_pb2.py b/src/substrait/gen/proto/type_expressions_pb2.py index c1adae7..9a788ef 100644 --- a/src/substrait/gen/proto/type_expressions_pb2.py +++ b/src/substrait/gen/proto/type_expressions_pb2.py @@ -1,68 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/type_expressions.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/type_expressions.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/type_expressions.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() -from ..proto import type_pb2 as proto_dot_type__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cproto/type_expressions.proto\x12\x05proto\x1a\x10proto/type.proto"\xfc/\n\x14DerivationExpression\x12)\n\x04bool\x18\x01 \x01(\x0b2\x13.proto.Type.BooleanH\x00R\x04bool\x12 \n\x02i8\x18\x02 \x01(\x0b2\x0e.proto.Type.I8H\x00R\x02i8\x12#\n\x03i16\x18\x03 \x01(\x0b2\x0f.proto.Type.I16H\x00R\x03i16\x12#\n\x03i32\x18\x05 \x01(\x0b2\x0f.proto.Type.I32H\x00R\x03i32\x12#\n\x03i64\x18\x07 \x01(\x0b2\x0f.proto.Type.I64H\x00R\x03i64\x12&\n\x04fp32\x18\n \x01(\x0b2\x10.proto.Type.FP32H\x00R\x04fp32\x12&\n\x04fp64\x18\x0b \x01(\x0b2\x10.proto.Type.FP64H\x00R\x04fp64\x12,\n\x06string\x18\x0c \x01(\x0b2\x12.proto.Type.StringH\x00R\x06string\x12,\n\x06binary\x18\r \x01(\x0b2\x12.proto.Type.BinaryH\x00R\x06binary\x129\n\ttimestamp\x18\x0e \x01(\x0b2\x15.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12&\n\x04date\x18\x10 \x01(\x0b2\x10.proto.Type.DateH\x00R\x04date\x12*\n\x04time\x18\x11 \x01(\x0b2\x10.proto.Type.TimeB\x02\x18\x01H\x00R\x04time\x12?\n\rinterval_year\x18\x13 \x01(\x0b2\x18.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12@\n\x0ctimestamp_tz\x18\x1d \x01(\x0b2\x17.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12&\n\x04uuid\x18 \x01(\x0b2\x10.proto.Type.UUIDH\x00R\x04uuid\x12V\n\x0cinterval_day\x18\x14 \x01(\x0b21.proto.DerivationExpression.ExpressionIntervalDayH\x00R\x0bintervalDay\x12e\n\x11interval_compound\x18* \x01(\x0b26.proto.DerivationExpression.ExpressionIntervalCompoundH\x00R\x10intervalCompound\x12P\n\nfixed_char\x18\x15 \x01(\x0b2/.proto.DerivationExpression.ExpressionFixedCharH\x00R\tfixedChar\x12I\n\x07varchar\x18\x16 \x01(\x0b2-.proto.DerivationExpression.ExpressionVarCharH\x00R\x07varchar\x12V\n\x0cfixed_binary\x18\x17 \x01(\x0b21.proto.DerivationExpression.ExpressionFixedBinaryH\x00R\x0bfixedBinary\x12I\n\x07decimal\x18\x18 \x01(\x0b2-.proto.DerivationExpression.ExpressionDecimalH\x00R\x07decimal\x12\\\n\x0eprecision_time\x18+ \x01(\x0b23.proto.DerivationExpression.ExpressionPrecisionTimeH\x00R\rprecisionTime\x12k\n\x13precision_timestamp\x18( \x01(\x0b28.proto.DerivationExpression.ExpressionPrecisionTimestampH\x00R\x12precisionTimestamp\x12r\n\x16precision_timestamp_tz\x18) \x01(\x0b2:.proto.DerivationExpression.ExpressionPrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12F\n\x06struct\x18\x19 \x01(\x0b2,.proto.DerivationExpression.ExpressionStructH\x00R\x06struct\x12@\n\x04list\x18\x1b \x01(\x0b2*.proto.DerivationExpression.ExpressionListH\x00R\x04list\x12=\n\x03map\x18\x1c \x01(\x0b2).proto.DerivationExpression.ExpressionMapH\x00R\x03map\x12V\n\x0cuser_defined\x18\x1e \x01(\x0b21.proto.DerivationExpression.ExpressionUserDefinedH\x00R\x0buserDefined\x126\n\x14user_defined_pointer\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x12userDefinedPointer\x120\n\x13type_parameter_name\x18! \x01(\tH\x00R\x11typeParameterName\x126\n\x16integer_parameter_name\x18" \x01(\tH\x00R\x14integerParameterName\x12)\n\x0finteger_literal\x18# \x01(\x05H\x00R\x0eintegerLiteral\x12@\n\x08unary_op\x18$ \x01(\x0b2#.proto.DerivationExpression.UnaryOpH\x00R\x07unaryOp\x12C\n\tbinary_op\x18% \x01(\x0b2$.proto.DerivationExpression.BinaryOpH\x00R\x08binaryOp\x12=\n\x07if_else\x18& \x01(\x0b2".proto.DerivationExpression.IfElseH\x00R\x06ifElse\x12R\n\x0ereturn_program\x18\' \x01(\x0b2).proto.DerivationExpression.ReturnProgramH\x00R\rreturnProgram\x1a\xb2\x01\n\x13ExpressionFixedChar\x123\n\x06length\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xb0\x01\n\x11ExpressionVarChar\x123\n\x06length\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xb4\x01\n\x15ExpressionFixedBinary\x123\n\x06length\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xe9\x01\n\x11ExpressionDecimal\x121\n\x05scale\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x05scale\x129\n\tprecision\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xbc\x01\n\x17ExpressionPrecisionTime\x129\n\tprecision\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xc1\x01\n\x1cExpressionPrecisionTimestamp\x129\n\tprecision\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xba\x01\n\x15ExpressionIntervalDay\x129\n\tprecision\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xbf\x01\n\x1aExpressionIntervalCompound\x129\n\tprecision\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xc3\x01\n\x1eExpressionPrecisionTimestampTZ\x129\n\tprecision\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xad\x01\n\x10ExpressionStruct\x121\n\x05types\x18\x01 \x03(\x0b2\x1b.proto.DerivationExpressionR\x05types\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1as\n\x15ExpressionNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12D\n\x06struct\x18\x02 \x01(\x0b2,.proto.DerivationExpression.ExpressionStructR\x06struct\x1a\xa9\x01\n\x0eExpressionList\x12/\n\x04type\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x04type\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xd9\x01\n\rExpressionMap\x12-\n\x03key\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x03key\x121\n\x05value\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\x05value\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa2\x01\n\x15ExpressionUserDefined\x12!\n\x0ctype_pointer\x18\x01 \x01(\rR\x0btypePointer\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xc0\x01\n\x06IfElse\x12>\n\x0cif_condition\x18\x01 \x01(\x0b2\x1b.proto.DerivationExpressionR\x0bifCondition\x128\n\tif_return\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\x08ifReturn\x12<\n\x0belse_return\x18\x03 \x01(\x0b2\x1b.proto.DerivationExpressionR\nelseReturn\x1a\xcf\x01\n\x07UnaryOp\x12H\n\x07op_type\x18\x01 \x01(\x0e2/.proto.DerivationExpression.UnaryOp.UnaryOpTypeR\x06opType\x12-\n\x03arg\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\x03arg"K\n\x0bUnaryOpType\x12\x1d\n\x19UNARY_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19UNARY_OP_TYPE_BOOLEAN_NOT\x10\x01\x1a\xa8\x04\n\x08BinaryOp\x12J\n\x07op_type\x18\x01 \x01(\x0e21.proto.DerivationExpression.BinaryOp.BinaryOpTypeR\x06opType\x12/\n\x04arg1\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\x04arg1\x12/\n\x04arg2\x18\x03 \x01(\x0b2\x1b.proto.DerivationExpressionR\x04arg2"\xed\x02\n\x0cBinaryOpType\x12\x1e\n\x1aBINARY_OP_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13BINARY_OP_TYPE_PLUS\x10\x01\x12\x18\n\x14BINARY_OP_TYPE_MINUS\x10\x02\x12\x1b\n\x17BINARY_OP_TYPE_MULTIPLY\x10\x03\x12\x19\n\x15BINARY_OP_TYPE_DIVIDE\x10\x04\x12\x16\n\x12BINARY_OP_TYPE_MIN\x10\x05\x12\x16\n\x12BINARY_OP_TYPE_MAX\x10\x06\x12\x1f\n\x1bBINARY_OP_TYPE_GREATER_THAN\x10\x07\x12\x1c\n\x18BINARY_OP_TYPE_LESS_THAN\x10\x08\x12\x16\n\x12BINARY_OP_TYPE_AND\x10\t\x12\x15\n\x11BINARY_OP_TYPE_OR\x10\n\x12\x19\n\x15BINARY_OP_TYPE_EQUALS\x10\x0b\x12\x19\n\x15BINARY_OP_TYPE_COVERS\x10\x0c\x1a\x8e\x02\n\rReturnProgram\x12V\n\x0bassignments\x18\x01 \x03(\x0b24.proto.DerivationExpression.ReturnProgram.AssignmentR\x0bassignments\x12F\n\x10final_expression\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\x0ffinalExpression\x1a]\n\nAssignment\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12;\n\nexpression\x18\x02 \x01(\x0b2\x1b.proto.DerivationExpressionR\nexpressionB\x06\n\x04kindB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +from substrait.gen.proto import type_pb2 as substrait_dot_gen_dot_proto_dot_type__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*substrait/gen/proto/type_expressions.proto\x12\x13substrait.gen.proto\x1a\x1esubstrait/gen/proto/type.proto\"\xe0\x37\n\x14\x44\x65rivationExpression\x12\x37\n\x04\x62ool\x18\x01 \x01(\x0b\x32!.substrait.gen.proto.Type.BooleanH\x00R\x04\x62ool\x12.\n\x02i8\x18\x02 \x01(\x0b\x32\x1c.substrait.gen.proto.Type.I8H\x00R\x02i8\x12\x31\n\x03i16\x18\x03 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I16H\x00R\x03i16\x12\x31\n\x03i32\x18\x05 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I32H\x00R\x03i32\x12\x31\n\x03i64\x18\x07 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I64H\x00R\x03i64\x12\x34\n\x04\x66p32\x18\n \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP32H\x00R\x04\x66p32\x12\x34\n\x04\x66p64\x18\x0b \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP64H\x00R\x04\x66p64\x12:\n\x06string\x18\x0c \x01(\x0b\x32 .substrait.gen.proto.Type.StringH\x00R\x06string\x12:\n\x06\x62inary\x18\r \x01(\x0b\x32 .substrait.gen.proto.Type.BinaryH\x00R\x06\x62inary\x12G\n\ttimestamp\x18\x0e \x01(\x0b\x32#.substrait.gen.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12\x34\n\x04\x64\x61te\x18\x10 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.DateH\x00R\x04\x64\x61te\x12\x38\n\x04time\x18\x11 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.TimeB\x02\x18\x01H\x00R\x04time\x12M\n\rinterval_year\x18\x13 \x01(\x0b\x32&.substrait.gen.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12N\n\x0ctimestamp_tz\x18\x1d \x01(\x0b\x32%.substrait.gen.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12\x34\n\x04uuid\x18 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.UUIDH\x00R\x04uuid\x12\x64\n\x0cinterval_day\x18\x14 \x01(\x0b\x32?.substrait.gen.proto.DerivationExpression.ExpressionIntervalDayH\x00R\x0bintervalDay\x12s\n\x11interval_compound\x18* \x01(\x0b\x32\x44.substrait.gen.proto.DerivationExpression.ExpressionIntervalCompoundH\x00R\x10intervalCompound\x12^\n\nfixed_char\x18\x15 \x01(\x0b\x32=.substrait.gen.proto.DerivationExpression.ExpressionFixedCharH\x00R\tfixedChar\x12W\n\x07varchar\x18\x16 \x01(\x0b\x32;.substrait.gen.proto.DerivationExpression.ExpressionVarCharH\x00R\x07varchar\x12\x64\n\x0c\x66ixed_binary\x18\x17 \x01(\x0b\x32?.substrait.gen.proto.DerivationExpression.ExpressionFixedBinaryH\x00R\x0b\x66ixedBinary\x12W\n\x07\x64\x65\x63imal\x18\x18 \x01(\x0b\x32;.substrait.gen.proto.DerivationExpression.ExpressionDecimalH\x00R\x07\x64\x65\x63imal\x12j\n\x0eprecision_time\x18+ \x01(\x0b\x32\x41.substrait.gen.proto.DerivationExpression.ExpressionPrecisionTimeH\x00R\rprecisionTime\x12y\n\x13precision_timestamp\x18( \x01(\x0b\x32\x46.substrait.gen.proto.DerivationExpression.ExpressionPrecisionTimestampH\x00R\x12precisionTimestamp\x12\x80\x01\n\x16precision_timestamp_tz\x18) \x01(\x0b\x32H.substrait.gen.proto.DerivationExpression.ExpressionPrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12T\n\x06struct\x18\x19 \x01(\x0b\x32:.substrait.gen.proto.DerivationExpression.ExpressionStructH\x00R\x06struct\x12N\n\x04list\x18\x1b \x01(\x0b\x32\x38.substrait.gen.proto.DerivationExpression.ExpressionListH\x00R\x04list\x12K\n\x03map\x18\x1c \x01(\x0b\x32\x37.substrait.gen.proto.DerivationExpression.ExpressionMapH\x00R\x03map\x12\x64\n\x0cuser_defined\x18\x1e \x01(\x0b\x32?.substrait.gen.proto.DerivationExpression.ExpressionUserDefinedH\x00R\x0buserDefined\x12\x36\n\x14user_defined_pointer\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x12userDefinedPointer\x12\x30\n\x13type_parameter_name\x18! \x01(\tH\x00R\x11typeParameterName\x12\x36\n\x16integer_parameter_name\x18\" \x01(\tH\x00R\x14integerParameterName\x12)\n\x0finteger_literal\x18# \x01(\x05H\x00R\x0eintegerLiteral\x12N\n\x08unary_op\x18$ \x01(\x0b\x32\x31.substrait.gen.proto.DerivationExpression.UnaryOpH\x00R\x07unaryOp\x12Q\n\tbinary_op\x18% \x01(\x0b\x32\x32.substrait.gen.proto.DerivationExpression.BinaryOpH\x00R\x08\x62inaryOp\x12K\n\x07if_else\x18& \x01(\x0b\x32\x30.substrait.gen.proto.DerivationExpression.IfElseH\x00R\x06ifElse\x12`\n\x0ereturn_program\x18\' \x01(\x0b\x32\x37.substrait.gen.proto.DerivationExpression.ReturnProgramH\x00R\rreturnProgram\x1a\xce\x01\n\x13\x45xpressionFixedChar\x12\x41\n\x06length\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xcc\x01\n\x11\x45xpressionVarChar\x12\x41\n\x06length\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xd0\x01\n\x15\x45xpressionFixedBinary\x12\x41\n\x06length\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x06length\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x93\x02\n\x11\x45xpressionDecimal\x12?\n\x05scale\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x05scale\x12G\n\tprecision\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xd8\x01\n\x17\x45xpressionPrecisionTime\x12G\n\tprecision\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xdd\x01\n\x1c\x45xpressionPrecisionTimestamp\x12G\n\tprecision\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xd6\x01\n\x15\x45xpressionIntervalDay\x12G\n\tprecision\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xdb\x01\n\x1a\x45xpressionIntervalCompound\x12G\n\tprecision\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xdf\x01\n\x1e\x45xpressionPrecisionTimestampTZ\x12G\n\tprecision\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\tprecision\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xc9\x01\n\x10\x45xpressionStruct\x12?\n\x05types\x18\x01 \x03(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x05types\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x81\x01\n\x15\x45xpressionNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12R\n\x06struct\x18\x02 \x01(\x0b\x32:.substrait.gen.proto.DerivationExpression.ExpressionStructR\x06struct\x1a\xc5\x01\n\x0e\x45xpressionList\x12=\n\x04type\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x04type\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x83\x02\n\rExpressionMap\x12;\n\x03key\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x03key\x12?\n\x05value\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x05value\x12+\n\x11variation_pointer\x18\x03 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb0\x01\n\x15\x45xpressionUserDefined\x12!\n\x0ctype_pointer\x18\x01 \x01(\rR\x0btypePointer\x12+\n\x11variation_pointer\x18\x02 \x01(\rR\x10variationPointer\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xea\x01\n\x06IfElse\x12L\n\x0cif_condition\x18\x01 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x0bifCondition\x12\x46\n\tif_return\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x08ifReturn\x12J\n\x0b\x65lse_return\x18\x03 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\nelseReturn\x1a\xeb\x01\n\x07UnaryOp\x12V\n\x07op_type\x18\x01 \x01(\x0e\x32=.substrait.gen.proto.DerivationExpression.UnaryOp.UnaryOpTypeR\x06opType\x12;\n\x03\x61rg\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x03\x61rg\"K\n\x0bUnaryOpType\x12\x1d\n\x19UNARY_OP_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19UNARY_OP_TYPE_BOOLEAN_NOT\x10\x01\x1a\xd2\x04\n\x08\x42inaryOp\x12X\n\x07op_type\x18\x01 \x01(\x0e\x32?.substrait.gen.proto.DerivationExpression.BinaryOp.BinaryOpTypeR\x06opType\x12=\n\x04\x61rg1\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x04\x61rg1\x12=\n\x04\x61rg2\x18\x03 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x04\x61rg2\"\xed\x02\n\x0c\x42inaryOpType\x12\x1e\n\x1a\x42INARY_OP_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42INARY_OP_TYPE_PLUS\x10\x01\x12\x18\n\x14\x42INARY_OP_TYPE_MINUS\x10\x02\x12\x1b\n\x17\x42INARY_OP_TYPE_MULTIPLY\x10\x03\x12\x19\n\x15\x42INARY_OP_TYPE_DIVIDE\x10\x04\x12\x16\n\x12\x42INARY_OP_TYPE_MIN\x10\x05\x12\x16\n\x12\x42INARY_OP_TYPE_MAX\x10\x06\x12\x1f\n\x1b\x42INARY_OP_TYPE_GREATER_THAN\x10\x07\x12\x1c\n\x18\x42INARY_OP_TYPE_LESS_THAN\x10\x08\x12\x16\n\x12\x42INARY_OP_TYPE_AND\x10\t\x12\x15\n\x11\x42INARY_OP_TYPE_OR\x10\n\x12\x19\n\x15\x42INARY_OP_TYPE_EQUALS\x10\x0b\x12\x19\n\x15\x42INARY_OP_TYPE_COVERS\x10\x0c\x1a\xb8\x02\n\rReturnProgram\x12\x64\n\x0b\x61ssignments\x18\x01 \x03(\x0b\x32\x42.substrait.gen.proto.DerivationExpression.ReturnProgram.AssignmentR\x0b\x61ssignments\x12T\n\x10\x66inal_expression\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\x0f\x66inalExpression\x1ak\n\nAssignment\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12I\n\nexpression\x18\x02 \x01(\x0b\x32).substrait.gen.proto.DerivationExpressionR\nexpressionB\x06\n\x04kindB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.type_expressions_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.type_expressions_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp']._loaded_options = None - _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp']._serialized_options = b'\x18\x01' - _globals['_DERIVATIONEXPRESSION'].fields_by_name['time']._loaded_options = None - _globals['_DERIVATIONEXPRESSION'].fields_by_name['time']._serialized_options = b'\x18\x01' - _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp_tz']._loaded_options = None - _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp_tz']._serialized_options = b'\x18\x01' - _globals['_DERIVATIONEXPRESSION'].fields_by_name['user_defined_pointer']._loaded_options = None - _globals['_DERIVATIONEXPRESSION'].fields_by_name['user_defined_pointer']._serialized_options = b'\x18\x01' - _globals['_DERIVATIONEXPRESSION']._serialized_start = 58 - _globals['_DERIVATIONEXPRESSION']._serialized_end = 6198 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDCHAR']._serialized_start = 2363 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDCHAR']._serialized_end = 2541 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONVARCHAR']._serialized_start = 2544 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONVARCHAR']._serialized_end = 2720 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDBINARY']._serialized_start = 2723 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDBINARY']._serialized_end = 2903 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONDECIMAL']._serialized_start = 2906 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONDECIMAL']._serialized_end = 3139 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIME']._serialized_start = 3142 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIME']._serialized_end = 3330 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMP']._serialized_start = 3333 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMP']._serialized_end = 3526 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALDAY']._serialized_start = 3529 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALDAY']._serialized_end = 3715 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALCOMPOUND']._serialized_start = 3718 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALCOMPOUND']._serialized_end = 3909 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMPTZ']._serialized_start = 3912 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMPTZ']._serialized_end = 4107 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONSTRUCT']._serialized_start = 4110 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONSTRUCT']._serialized_end = 4283 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONNAMEDSTRUCT']._serialized_start = 4285 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONNAMEDSTRUCT']._serialized_end = 4400 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONLIST']._serialized_start = 4403 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONLIST']._serialized_end = 4572 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONMAP']._serialized_start = 4575 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONMAP']._serialized_end = 4792 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONUSERDEFINED']._serialized_start = 4795 - _globals['_DERIVATIONEXPRESSION_EXPRESSIONUSERDEFINED']._serialized_end = 4957 - _globals['_DERIVATIONEXPRESSION_IFELSE']._serialized_start = 4960 - _globals['_DERIVATIONEXPRESSION_IFELSE']._serialized_end = 5152 - _globals['_DERIVATIONEXPRESSION_UNARYOP']._serialized_start = 5155 - _globals['_DERIVATIONEXPRESSION_UNARYOP']._serialized_end = 5362 - _globals['_DERIVATIONEXPRESSION_UNARYOP_UNARYOPTYPE']._serialized_start = 5287 - _globals['_DERIVATIONEXPRESSION_UNARYOP_UNARYOPTYPE']._serialized_end = 5362 - _globals['_DERIVATIONEXPRESSION_BINARYOP']._serialized_start = 5365 - _globals['_DERIVATIONEXPRESSION_BINARYOP']._serialized_end = 5917 - _globals['_DERIVATIONEXPRESSION_BINARYOP_BINARYOPTYPE']._serialized_start = 5552 - _globals['_DERIVATIONEXPRESSION_BINARYOP_BINARYOPTYPE']._serialized_end = 5917 - _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM']._serialized_start = 5920 - _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM']._serialized_end = 6190 - _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM_ASSIGNMENT']._serialized_start = 6097 - _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM_ASSIGNMENT']._serialized_end = 6190 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp']._loaded_options = None + _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp']._serialized_options = b'\030\001' + _globals['_DERIVATIONEXPRESSION'].fields_by_name['time']._loaded_options = None + _globals['_DERIVATIONEXPRESSION'].fields_by_name['time']._serialized_options = b'\030\001' + _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp_tz']._loaded_options = None + _globals['_DERIVATIONEXPRESSION'].fields_by_name['timestamp_tz']._serialized_options = b'\030\001' + _globals['_DERIVATIONEXPRESSION'].fields_by_name['user_defined_pointer']._loaded_options = None + _globals['_DERIVATIONEXPRESSION'].fields_by_name['user_defined_pointer']._serialized_options = b'\030\001' + _globals['_DERIVATIONEXPRESSION']._serialized_start=100 + _globals['_DERIVATIONEXPRESSION']._serialized_end=7236 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDCHAR']._serialized_start=2854 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDCHAR']._serialized_end=3060 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONVARCHAR']._serialized_start=3063 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONVARCHAR']._serialized_end=3267 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDBINARY']._serialized_start=3270 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONFIXEDBINARY']._serialized_end=3478 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONDECIMAL']._serialized_start=3481 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONDECIMAL']._serialized_end=3756 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIME']._serialized_start=3759 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIME']._serialized_end=3975 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMP']._serialized_start=3978 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMP']._serialized_end=4199 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALDAY']._serialized_start=4202 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALDAY']._serialized_end=4416 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALCOMPOUND']._serialized_start=4419 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONINTERVALCOMPOUND']._serialized_end=4638 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMPTZ']._serialized_start=4641 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONPRECISIONTIMESTAMPTZ']._serialized_end=4864 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONSTRUCT']._serialized_start=4867 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONSTRUCT']._serialized_end=5068 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONNAMEDSTRUCT']._serialized_start=5071 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONNAMEDSTRUCT']._serialized_end=5200 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONLIST']._serialized_start=5203 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONLIST']._serialized_end=5400 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONMAP']._serialized_start=5403 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONMAP']._serialized_end=5662 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONUSERDEFINED']._serialized_start=5665 + _globals['_DERIVATIONEXPRESSION_EXPRESSIONUSERDEFINED']._serialized_end=5841 + _globals['_DERIVATIONEXPRESSION_IFELSE']._serialized_start=5844 + _globals['_DERIVATIONEXPRESSION_IFELSE']._serialized_end=6078 + _globals['_DERIVATIONEXPRESSION_UNARYOP']._serialized_start=6081 + _globals['_DERIVATIONEXPRESSION_UNARYOP']._serialized_end=6316 + _globals['_DERIVATIONEXPRESSION_UNARYOP_UNARYOPTYPE']._serialized_start=6241 + _globals['_DERIVATIONEXPRESSION_UNARYOP_UNARYOPTYPE']._serialized_end=6316 + _globals['_DERIVATIONEXPRESSION_BINARYOP']._serialized_start=6319 + _globals['_DERIVATIONEXPRESSION_BINARYOP']._serialized_end=6913 + _globals['_DERIVATIONEXPRESSION_BINARYOP_BINARYOPTYPE']._serialized_start=6548 + _globals['_DERIVATIONEXPRESSION_BINARYOP_BINARYOPTYPE']._serialized_end=6913 + _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM']._serialized_start=6916 + _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM']._serialized_end=7228 + _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM_ASSIGNMENT']._serialized_start=7121 + _globals['_DERIVATIONEXPRESSION_RETURNPROGRAM_ASSIGNMENT']._serialized_end=7228 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/type_expressions_pb2.pyi b/src/substrait/gen/proto/type_expressions_pb2.pyi index 73a563b..7080761 100644 --- a/src/substrait/gen/proto/type_expressions_pb2.pyi +++ b/src/substrait/gen/proto/type_expressions_pb2.pyi @@ -2,19 +2,22 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -from .. import proto +import substrait.gen.proto.type_pb2 import sys import typing + if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final @@ -24,435 +27,442 @@ class DerivationExpression(google.protobuf.message.Message): @typing.final class ExpressionFixedChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___DerivationExpression: - ... - - def __init__(self, *, length: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + length: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionVarChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___DerivationExpression: - ... - - def __init__(self, *, length: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + length: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionFixedBinary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def length(self) -> global___DerivationExpression: - ... - - def __init__(self, *, length: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['length', b'length']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'variation_pointer', b'variation_pointer']) -> None: - ... + def length(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + length: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionDecimal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SCALE_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def scale(self) -> global___DerivationExpression: - ... - + def scale(self) -> Global___DerivationExpression: ... @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, scale: global___DerivationExpression | None=..., precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision', 'scale', b'scale']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'scale', b'scale', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + scale: Global___DerivationExpression | None = ..., + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision", "scale", b"scale"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "scale", b"scale", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionPrecisionTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionPrecisionTimestamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionIntervalDay(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionIntervalCompound(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionPrecisionTimestampTZ(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def precision(self) -> global___DerivationExpression: - ... - - def __init__(self, *, precision: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'variation_pointer', b'variation_pointer']) -> None: - ... + def precision(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + precision: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionStruct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPES_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DerivationExpression]: - ... - - def __init__(self, *, types: collections.abc.Iterable[global___DerivationExpression] | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'types', b'types', 'variation_pointer', b'variation_pointer']) -> None: - ... + def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___DerivationExpression]: ... + def __init__( + self, + *, + types: collections.abc.Iterable[Global___DerivationExpression] | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "types", b"types", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionNamedStruct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int STRUCT_FIELD_NUMBER: builtins.int - @property - def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - ... - + def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def struct(self) -> global___DerivationExpression.ExpressionStruct: - ... - - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., struct: global___DerivationExpression.ExpressionStruct | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['struct', b'struct']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['names', b'names', 'struct', b'struct']) -> None: - ... + def struct(self) -> Global___DerivationExpression.ExpressionStruct: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + struct: Global___DerivationExpression.ExpressionStruct | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct", b"struct"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["names", b"names", "struct", b"struct"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionList(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def type(self) -> global___DerivationExpression: - ... - - def __init__(self, *, type: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type', b'type', 'variation_pointer', b'variation_pointer']) -> None: - ... + def type(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + type: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type", b"type", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionMap(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType @property - def key(self) -> global___DerivationExpression: - ... - + def key(self) -> Global___DerivationExpression: ... @property - def value(self) -> global___DerivationExpression: - ... - - def __init__(self, *, key: global___DerivationExpression | None=..., value: global___DerivationExpression | None=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['key', b'key', 'nullability', b'nullability', 'value', b'value', 'variation_pointer', b'variation_pointer']) -> None: - ... + def value(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + key: Global___DerivationExpression | None = ..., + value: Global___DerivationExpression | None = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "nullability", b"nullability", "value", b"value", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ExpressionUserDefined(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_POINTER_FIELD_NUMBER: builtins.int VARIATION_POINTER_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_pointer: builtins.int variation_pointer: builtins.int - nullability: proto.type_pb2.Type.Nullability.ValueType - - def __init__(self, *, type_pointer: builtins.int=..., variation_pointer: builtins.int=..., nullability: proto.type_pb2.Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_pointer', b'type_pointer', 'variation_pointer', b'variation_pointer']) -> None: - ... + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType + def __init__( + self, + *, + type_pointer: builtins.int = ..., + variation_pointer: builtins.int = ..., + nullability: substrait.gen.proto.type_pb2.Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_pointer", b"type_pointer", "variation_pointer", b"variation_pointer"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IfElse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + IF_CONDITION_FIELD_NUMBER: builtins.int IF_RETURN_FIELD_NUMBER: builtins.int ELSE_RETURN_FIELD_NUMBER: builtins.int - @property - def if_condition(self) -> global___DerivationExpression: - ... - + def if_condition(self) -> Global___DerivationExpression: ... @property - def if_return(self) -> global___DerivationExpression: - ... - + def if_return(self) -> Global___DerivationExpression: ... @property - def else_return(self) -> global___DerivationExpression: - ... - - def __init__(self, *, if_condition: global___DerivationExpression | None=..., if_return: global___DerivationExpression | None=..., else_return: global___DerivationExpression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['else_return', b'else_return', 'if_condition', b'if_condition', 'if_return', b'if_return']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['else_return', b'else_return', 'if_condition', b'if_condition', 'if_return', b'if_return']) -> None: - ... + def else_return(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + if_condition: Global___DerivationExpression | None = ..., + if_return: Global___DerivationExpression | None = ..., + else_return: Global___DerivationExpression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["else_return", b"else_return", "if_condition", b"if_condition", "if_return", b"if_return"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["else_return", b"else_return", "if_condition", b"if_condition", "if_return", b"if_return"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class UnaryOp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _UnaryOpType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _UnaryOpTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DerivationExpression.UnaryOp._UnaryOpType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNARY_OP_TYPE_UNSPECIFIED: DerivationExpression.UnaryOp._UnaryOpType.ValueType - UNARY_OP_TYPE_BOOLEAN_NOT: DerivationExpression.UnaryOp._UnaryOpType.ValueType + UNARY_OP_TYPE_UNSPECIFIED: DerivationExpression.UnaryOp._UnaryOpType.ValueType # 0 + UNARY_OP_TYPE_BOOLEAN_NOT: DerivationExpression.UnaryOp._UnaryOpType.ValueType # 1 + + class UnaryOpType(_UnaryOpType, metaclass=_UnaryOpTypeEnumTypeWrapper): ... + UNARY_OP_TYPE_UNSPECIFIED: DerivationExpression.UnaryOp.UnaryOpType.ValueType # 0 + UNARY_OP_TYPE_BOOLEAN_NOT: DerivationExpression.UnaryOp.UnaryOpType.ValueType # 1 - class UnaryOpType(_UnaryOpType, metaclass=_UnaryOpTypeEnumTypeWrapper): - ... - UNARY_OP_TYPE_UNSPECIFIED: DerivationExpression.UnaryOp.UnaryOpType.ValueType - UNARY_OP_TYPE_BOOLEAN_NOT: DerivationExpression.UnaryOp.UnaryOpType.ValueType OP_TYPE_FIELD_NUMBER: builtins.int ARG_FIELD_NUMBER: builtins.int - op_type: global___DerivationExpression.UnaryOp.UnaryOpType.ValueType - + op_type: Global___DerivationExpression.UnaryOp.UnaryOpType.ValueType @property - def arg(self) -> global___DerivationExpression: - ... - - def __init__(self, *, op_type: global___DerivationExpression.UnaryOp.UnaryOpType.ValueType=..., arg: global___DerivationExpression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['arg', b'arg']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arg', b'arg', 'op_type', b'op_type']) -> None: - ... + def arg(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + op_type: Global___DerivationExpression.UnaryOp.UnaryOpType.ValueType = ..., + arg: Global___DerivationExpression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg", b"arg"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg", b"arg", "op_type", b"op_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class BinaryOp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _BinaryOpType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _BinaryOpTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DerivationExpression.BinaryOp._BinaryOpType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - BINARY_OP_TYPE_UNSPECIFIED: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_PLUS: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_MINUS: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_MULTIPLY: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_DIVIDE: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_MIN: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_MAX: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_GREATER_THAN: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_LESS_THAN: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_AND: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_OR: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_EQUALS: DerivationExpression.BinaryOp._BinaryOpType.ValueType - BINARY_OP_TYPE_COVERS: DerivationExpression.BinaryOp._BinaryOpType.ValueType - - class BinaryOpType(_BinaryOpType, metaclass=_BinaryOpTypeEnumTypeWrapper): - ... - BINARY_OP_TYPE_UNSPECIFIED: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_PLUS: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_MINUS: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_MULTIPLY: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_DIVIDE: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_MIN: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_MAX: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_GREATER_THAN: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_LESS_THAN: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_AND: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_OR: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_EQUALS: DerivationExpression.BinaryOp.BinaryOpType.ValueType - BINARY_OP_TYPE_COVERS: DerivationExpression.BinaryOp.BinaryOpType.ValueType + BINARY_OP_TYPE_UNSPECIFIED: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 0 + BINARY_OP_TYPE_PLUS: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 1 + BINARY_OP_TYPE_MINUS: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 2 + BINARY_OP_TYPE_MULTIPLY: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 3 + BINARY_OP_TYPE_DIVIDE: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 4 + BINARY_OP_TYPE_MIN: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 5 + BINARY_OP_TYPE_MAX: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 6 + BINARY_OP_TYPE_GREATER_THAN: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 7 + BINARY_OP_TYPE_LESS_THAN: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 8 + BINARY_OP_TYPE_AND: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 9 + BINARY_OP_TYPE_OR: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 10 + BINARY_OP_TYPE_EQUALS: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 11 + BINARY_OP_TYPE_COVERS: DerivationExpression.BinaryOp._BinaryOpType.ValueType # 12 + + class BinaryOpType(_BinaryOpType, metaclass=_BinaryOpTypeEnumTypeWrapper): ... + BINARY_OP_TYPE_UNSPECIFIED: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 0 + BINARY_OP_TYPE_PLUS: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 1 + BINARY_OP_TYPE_MINUS: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 2 + BINARY_OP_TYPE_MULTIPLY: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 3 + BINARY_OP_TYPE_DIVIDE: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 4 + BINARY_OP_TYPE_MIN: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 5 + BINARY_OP_TYPE_MAX: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 6 + BINARY_OP_TYPE_GREATER_THAN: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 7 + BINARY_OP_TYPE_LESS_THAN: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 8 + BINARY_OP_TYPE_AND: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 9 + BINARY_OP_TYPE_OR: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 10 + BINARY_OP_TYPE_EQUALS: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 11 + BINARY_OP_TYPE_COVERS: DerivationExpression.BinaryOp.BinaryOpType.ValueType # 12 + OP_TYPE_FIELD_NUMBER: builtins.int ARG1_FIELD_NUMBER: builtins.int ARG2_FIELD_NUMBER: builtins.int - op_type: global___DerivationExpression.BinaryOp.BinaryOpType.ValueType - + op_type: Global___DerivationExpression.BinaryOp.BinaryOpType.ValueType @property - def arg1(self) -> global___DerivationExpression: - ... - + def arg1(self) -> Global___DerivationExpression: ... @property - def arg2(self) -> global___DerivationExpression: - ... - - def __init__(self, *, op_type: global___DerivationExpression.BinaryOp.BinaryOpType.ValueType=..., arg1: global___DerivationExpression | None=..., arg2: global___DerivationExpression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['arg1', b'arg1', 'arg2', b'arg2']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['arg1', b'arg1', 'arg2', b'arg2', 'op_type', b'op_type']) -> None: - ... + def arg2(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + op_type: Global___DerivationExpression.BinaryOp.BinaryOpType.ValueType = ..., + arg1: Global___DerivationExpression | None = ..., + arg2: Global___DerivationExpression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg1", b"arg1", "arg2", b"arg2"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["arg1", b"arg1", "arg2", b"arg2", "op_type", b"op_type"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class ReturnProgram(google.protobuf.message.Message): @@ -461,41 +471,40 @@ class DerivationExpression(google.protobuf.message.Message): @typing.final class Assignment(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int EXPRESSION_FIELD_NUMBER: builtins.int name: builtins.str - @property - def expression(self) -> global___DerivationExpression: - ... - - def __init__(self, *, name: builtins.str=..., expression: global___DerivationExpression | None=...) -> None: - ... + def expression(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + name: builtins.str = ..., + expression: Global___DerivationExpression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression", b"expression"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["expression", b"expression", "name", b"name"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['expression', b'expression']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['expression', b'expression', 'name', b'name']) -> None: - ... ASSIGNMENTS_FIELD_NUMBER: builtins.int FINAL_EXPRESSION_FIELD_NUMBER: builtins.int - @property - def assignments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DerivationExpression.ReturnProgram.Assignment]: - ... - + def assignments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___DerivationExpression.ReturnProgram.Assignment]: ... @property - def final_expression(self) -> global___DerivationExpression: - ... - - def __init__(self, *, assignments: collections.abc.Iterable[global___DerivationExpression.ReturnProgram.Assignment] | None=..., final_expression: global___DerivationExpression | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['final_expression', b'final_expression']) -> builtins.bool: - ... + def final_expression(self) -> Global___DerivationExpression: ... + def __init__( + self, + *, + assignments: collections.abc.Iterable[Global___DerivationExpression.ReturnProgram.Assignment] | None = ..., + final_expression: Global___DerivationExpression | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["final_expression", b"final_expression"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["assignments", b"assignments", "final_expression", b"final_expression"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['assignments', b'assignments', 'final_expression', b'final_expression']) -> None: - ... BOOL_FIELD_NUMBER: builtins.int I8_FIELD_NUMBER: builtins.int I16_FIELD_NUMBER: builtins.int @@ -533,148 +542,129 @@ class DerivationExpression(google.protobuf.message.Message): IF_ELSE_FIELD_NUMBER: builtins.int RETURN_PROGRAM_FIELD_NUMBER: builtins.int user_defined_pointer: builtins.int - 'Deprecated in favor of user_defined, which allows nullability and\n variations to be specified. If user_defined_pointer is encountered,\n treat it as being non-nullable and having the default variation.\n ' + """Deprecated in favor of user_defined, which allows nullability and + variations to be specified. If user_defined_pointer is encountered, + treat it as being non-nullable and having the default variation. + """ type_parameter_name: builtins.str integer_parameter_name: builtins.str integer_literal: builtins.int - @property - def bool(self) -> proto.type_pb2.Type.Boolean: - ... - + def bool(self) -> substrait.gen.proto.type_pb2.Type.Boolean: ... @property - def i8(self) -> proto.type_pb2.Type.I8: - ... - + def i8(self) -> substrait.gen.proto.type_pb2.Type.I8: ... @property - def i16(self) -> proto.type_pb2.Type.I16: - ... - + def i16(self) -> substrait.gen.proto.type_pb2.Type.I16: ... @property - def i32(self) -> proto.type_pb2.Type.I32: - ... - + def i32(self) -> substrait.gen.proto.type_pb2.Type.I32: ... @property - def i64(self) -> proto.type_pb2.Type.I64: - ... - + def i64(self) -> substrait.gen.proto.type_pb2.Type.I64: ... @property - def fp32(self) -> proto.type_pb2.Type.FP32: - ... - + def fp32(self) -> substrait.gen.proto.type_pb2.Type.FP32: ... @property - def fp64(self) -> proto.type_pb2.Type.FP64: - ... - + def fp64(self) -> substrait.gen.proto.type_pb2.Type.FP64: ... @property - def string(self) -> proto.type_pb2.Type.String: - ... - + def string(self) -> substrait.gen.proto.type_pb2.Type.String: ... @property - def binary(self) -> proto.type_pb2.Type.Binary: - ... - + def binary(self) -> substrait.gen.proto.type_pb2.Type.Binary: ... @property - def timestamp(self) -> proto.type_pb2.Type.Timestamp: + def timestamp(self) -> substrait.gen.proto.type_pb2.Type.Timestamp: """Deprecated in favor of `ExpressionPrecisionTimestamp precision_timestamp`""" @property - def date(self) -> proto.type_pb2.Type.Date: - ... - + def date(self) -> substrait.gen.proto.type_pb2.Type.Date: ... @property - def time(self) -> proto.type_pb2.Type.Time: + def time(self) -> substrait.gen.proto.type_pb2.Type.Time: """Deprecated in favor of `ExpressionPrecisionTime precision_time`""" @property - def interval_year(self) -> proto.type_pb2.Type.IntervalYear: - ... - + def interval_year(self) -> substrait.gen.proto.type_pb2.Type.IntervalYear: ... @property - def timestamp_tz(self) -> proto.type_pb2.Type.TimestampTZ: + def timestamp_tz(self) -> substrait.gen.proto.type_pb2.Type.TimestampTZ: """Deprecated in favor of `ExpressionPrecisionTimestampTZ precision_timestamp_tz`""" @property - def uuid(self) -> proto.type_pb2.Type.UUID: - ... - - @property - def interval_day(self) -> global___DerivationExpression.ExpressionIntervalDay: - ... - - @property - def interval_compound(self) -> global___DerivationExpression.ExpressionIntervalCompound: - ... - - @property - def fixed_char(self) -> global___DerivationExpression.ExpressionFixedChar: - ... - - @property - def varchar(self) -> global___DerivationExpression.ExpressionVarChar: - ... - - @property - def fixed_binary(self) -> global___DerivationExpression.ExpressionFixedBinary: - ... - - @property - def decimal(self) -> global___DerivationExpression.ExpressionDecimal: - ... - - @property - def precision_time(self) -> global___DerivationExpression.ExpressionPrecisionTime: - ... - - @property - def precision_timestamp(self) -> global___DerivationExpression.ExpressionPrecisionTimestamp: - ... - - @property - def precision_timestamp_tz(self) -> global___DerivationExpression.ExpressionPrecisionTimestampTZ: - ... - - @property - def struct(self) -> global___DerivationExpression.ExpressionStruct: - ... - - @property - def list(self) -> global___DerivationExpression.ExpressionList: - ... - - @property - def map(self) -> global___DerivationExpression.ExpressionMap: - ... - - @property - def user_defined(self) -> global___DerivationExpression.ExpressionUserDefined: - ... - - @property - def unary_op(self) -> global___DerivationExpression.UnaryOp: - ... - - @property - def binary_op(self) -> global___DerivationExpression.BinaryOp: - ... - - @property - def if_else(self) -> global___DerivationExpression.IfElse: - ... - - @property - def return_program(self) -> global___DerivationExpression.ReturnProgram: - ... - - def __init__(self, *, bool: proto.type_pb2.Type.Boolean | None=..., i8: proto.type_pb2.Type.I8 | None=..., i16: proto.type_pb2.Type.I16 | None=..., i32: proto.type_pb2.Type.I32 | None=..., i64: proto.type_pb2.Type.I64 | None=..., fp32: proto.type_pb2.Type.FP32 | None=..., fp64: proto.type_pb2.Type.FP64 | None=..., string: proto.type_pb2.Type.String | None=..., binary: proto.type_pb2.Type.Binary | None=..., timestamp: proto.type_pb2.Type.Timestamp | None=..., date: proto.type_pb2.Type.Date | None=..., time: proto.type_pb2.Type.Time | None=..., interval_year: proto.type_pb2.Type.IntervalYear | None=..., timestamp_tz: proto.type_pb2.Type.TimestampTZ | None=..., uuid: proto.type_pb2.Type.UUID | None=..., interval_day: global___DerivationExpression.ExpressionIntervalDay | None=..., interval_compound: global___DerivationExpression.ExpressionIntervalCompound | None=..., fixed_char: global___DerivationExpression.ExpressionFixedChar | None=..., varchar: global___DerivationExpression.ExpressionVarChar | None=..., fixed_binary: global___DerivationExpression.ExpressionFixedBinary | None=..., decimal: global___DerivationExpression.ExpressionDecimal | None=..., precision_time: global___DerivationExpression.ExpressionPrecisionTime | None=..., precision_timestamp: global___DerivationExpression.ExpressionPrecisionTimestamp | None=..., precision_timestamp_tz: global___DerivationExpression.ExpressionPrecisionTimestampTZ | None=..., struct: global___DerivationExpression.ExpressionStruct | None=..., list: global___DerivationExpression.ExpressionList | None=..., map: global___DerivationExpression.ExpressionMap | None=..., user_defined: global___DerivationExpression.ExpressionUserDefined | None=..., user_defined_pointer: builtins.int=..., type_parameter_name: builtins.str=..., integer_parameter_name: builtins.str=..., integer_literal: builtins.int=..., unary_op: global___DerivationExpression.UnaryOp | None=..., binary_op: global___DerivationExpression.BinaryOp | None=..., if_else: global___DerivationExpression.IfElse | None=..., return_program: global___DerivationExpression.ReturnProgram | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['binary', b'binary', 'binary_op', b'binary_op', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'if_else', b'if_else', 'integer_literal', b'integer_literal', 'integer_parameter_name', b'integer_parameter_name', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'return_program', b'return_program', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'type_parameter_name', b'type_parameter_name', 'unary_op', b'unary_op', 'user_defined', b'user_defined', 'user_defined_pointer', b'user_defined_pointer', 'uuid', b'uuid', 'varchar', b'varchar']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['binary', b'binary', 'binary_op', b'binary_op', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'if_else', b'if_else', 'integer_literal', b'integer_literal', 'integer_parameter_name', b'integer_parameter_name', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'return_program', b'return_program', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'type_parameter_name', b'type_parameter_name', 'unary_op', b'unary_op', 'user_defined', b'user_defined', 'user_defined_pointer', b'user_defined_pointer', 'uuid', b'uuid', 'varchar', b'varchar']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['kind', b'kind']) -> typing.Literal['bool', 'i8', 'i16', 'i32', 'i64', 'fp32', 'fp64', 'string', 'binary', 'timestamp', 'date', 'time', 'interval_year', 'timestamp_tz', 'uuid', 'interval_day', 'interval_compound', 'fixed_char', 'varchar', 'fixed_binary', 'decimal', 'precision_time', 'precision_timestamp', 'precision_timestamp_tz', 'struct', 'list', 'map', 'user_defined', 'user_defined_pointer', 'type_parameter_name', 'integer_parameter_name', 'integer_literal', 'unary_op', 'binary_op', 'if_else', 'return_program'] | None: - ... -global___DerivationExpression = DerivationExpression \ No newline at end of file + def uuid(self) -> substrait.gen.proto.type_pb2.Type.UUID: ... + @property + def interval_day(self) -> Global___DerivationExpression.ExpressionIntervalDay: ... + @property + def interval_compound(self) -> Global___DerivationExpression.ExpressionIntervalCompound: ... + @property + def fixed_char(self) -> Global___DerivationExpression.ExpressionFixedChar: ... + @property + def varchar(self) -> Global___DerivationExpression.ExpressionVarChar: ... + @property + def fixed_binary(self) -> Global___DerivationExpression.ExpressionFixedBinary: ... + @property + def decimal(self) -> Global___DerivationExpression.ExpressionDecimal: ... + @property + def precision_time(self) -> Global___DerivationExpression.ExpressionPrecisionTime: ... + @property + def precision_timestamp(self) -> Global___DerivationExpression.ExpressionPrecisionTimestamp: ... + @property + def precision_timestamp_tz(self) -> Global___DerivationExpression.ExpressionPrecisionTimestampTZ: ... + @property + def struct(self) -> Global___DerivationExpression.ExpressionStruct: ... + @property + def list(self) -> Global___DerivationExpression.ExpressionList: ... + @property + def map(self) -> Global___DerivationExpression.ExpressionMap: ... + @property + def user_defined(self) -> Global___DerivationExpression.ExpressionUserDefined: ... + @property + def unary_op(self) -> Global___DerivationExpression.UnaryOp: ... + @property + def binary_op(self) -> Global___DerivationExpression.BinaryOp: ... + @property + def if_else(self) -> Global___DerivationExpression.IfElse: ... + @property + def return_program(self) -> Global___DerivationExpression.ReturnProgram: ... + def __init__( + self, + *, + bool: substrait.gen.proto.type_pb2.Type.Boolean | None = ..., + i8: substrait.gen.proto.type_pb2.Type.I8 | None = ..., + i16: substrait.gen.proto.type_pb2.Type.I16 | None = ..., + i32: substrait.gen.proto.type_pb2.Type.I32 | None = ..., + i64: substrait.gen.proto.type_pb2.Type.I64 | None = ..., + fp32: substrait.gen.proto.type_pb2.Type.FP32 | None = ..., + fp64: substrait.gen.proto.type_pb2.Type.FP64 | None = ..., + string: substrait.gen.proto.type_pb2.Type.String | None = ..., + binary: substrait.gen.proto.type_pb2.Type.Binary | None = ..., + timestamp: substrait.gen.proto.type_pb2.Type.Timestamp | None = ..., + date: substrait.gen.proto.type_pb2.Type.Date | None = ..., + time: substrait.gen.proto.type_pb2.Type.Time | None = ..., + interval_year: substrait.gen.proto.type_pb2.Type.IntervalYear | None = ..., + timestamp_tz: substrait.gen.proto.type_pb2.Type.TimestampTZ | None = ..., + uuid: substrait.gen.proto.type_pb2.Type.UUID | None = ..., + interval_day: Global___DerivationExpression.ExpressionIntervalDay | None = ..., + interval_compound: Global___DerivationExpression.ExpressionIntervalCompound | None = ..., + fixed_char: Global___DerivationExpression.ExpressionFixedChar | None = ..., + varchar: Global___DerivationExpression.ExpressionVarChar | None = ..., + fixed_binary: Global___DerivationExpression.ExpressionFixedBinary | None = ..., + decimal: Global___DerivationExpression.ExpressionDecimal | None = ..., + precision_time: Global___DerivationExpression.ExpressionPrecisionTime | None = ..., + precision_timestamp: Global___DerivationExpression.ExpressionPrecisionTimestamp | None = ..., + precision_timestamp_tz: Global___DerivationExpression.ExpressionPrecisionTimestampTZ | None = ..., + struct: Global___DerivationExpression.ExpressionStruct | None = ..., + list: Global___DerivationExpression.ExpressionList | None = ..., + map: Global___DerivationExpression.ExpressionMap | None = ..., + user_defined: Global___DerivationExpression.ExpressionUserDefined | None = ..., + user_defined_pointer: builtins.int = ..., + type_parameter_name: builtins.str = ..., + integer_parameter_name: builtins.str = ..., + integer_literal: builtins.int = ..., + unary_op: Global___DerivationExpression.UnaryOp | None = ..., + binary_op: Global___DerivationExpression.BinaryOp | None = ..., + if_else: Global___DerivationExpression.IfElse | None = ..., + return_program: Global___DerivationExpression.ReturnProgram | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "binary_op", b"binary_op", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "if_else", b"if_else", "integer_literal", b"integer_literal", "integer_parameter_name", b"integer_parameter_name", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "return_program", b"return_program", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "type_parameter_name", b"type_parameter_name", "unary_op", b"unary_op", "user_defined", b"user_defined", "user_defined_pointer", b"user_defined_pointer", "uuid", b"uuid", "varchar", b"varchar"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["binary", b"binary", "binary_op", b"binary_op", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "if_else", b"if_else", "integer_literal", b"integer_literal", "integer_parameter_name", b"integer_parameter_name", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "return_program", b"return_program", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "type_parameter_name", b"type_parameter_name", "unary_op", b"unary_op", "user_defined", b"user_defined", "user_defined_pointer", b"user_defined_pointer", "uuid", b"uuid", "varchar", b"varchar"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: typing_extensions.TypeAlias = typing.Literal["bool", "i8", "i16", "i32", "i64", "fp32", "fp64", "string", "binary", "timestamp", "date", "time", "interval_year", "timestamp_tz", "uuid", "interval_day", "interval_compound", "fixed_char", "varchar", "fixed_binary", "decimal", "precision_time", "precision_timestamp", "precision_timestamp_tz", "struct", "list", "map", "user_defined", "user_defined_pointer", "type_parameter_name", "integer_parameter_name", "integer_literal", "unary_op", "binary_op", "if_else", "return_program"] + _WhichOneofArgType_kind: typing_extensions.TypeAlias = typing.Literal["kind", b"kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___DerivationExpression: typing_extensions.TypeAlias = DerivationExpression diff --git a/src/substrait/gen/proto/type_pb2.py b/src/substrait/gen/proto/type_pb2.py index 018007e..860cf50 100644 --- a/src/substrait/gen/proto/type_pb2.py +++ b/src/substrait/gen/proto/type_pb2.py @@ -1,90 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: substrait/gen/proto/type.proto +# Protobuf Python Version: 6.33.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder -_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 5, '', 'proto/type.proto') +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 6, + 33, + 2, + '', + 'substrait/gen/proto/type.proto' +) +# @@protoc_insertion_point(imports) + _sym_db = _symbol_database.Default() + + from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10proto/type.proto\x12\x05proto\x1a\x1bgoogle/protobuf/empty.proto"\xaf0\n\x04Type\x12)\n\x04bool\x18\x01 \x01(\x0b2\x13.proto.Type.BooleanH\x00R\x04bool\x12 \n\x02i8\x18\x02 \x01(\x0b2\x0e.proto.Type.I8H\x00R\x02i8\x12#\n\x03i16\x18\x03 \x01(\x0b2\x0f.proto.Type.I16H\x00R\x03i16\x12#\n\x03i32\x18\x05 \x01(\x0b2\x0f.proto.Type.I32H\x00R\x03i32\x12#\n\x03i64\x18\x07 \x01(\x0b2\x0f.proto.Type.I64H\x00R\x03i64\x12&\n\x04fp32\x18\n \x01(\x0b2\x10.proto.Type.FP32H\x00R\x04fp32\x12&\n\x04fp64\x18\x0b \x01(\x0b2\x10.proto.Type.FP64H\x00R\x04fp64\x12,\n\x06string\x18\x0c \x01(\x0b2\x12.proto.Type.StringH\x00R\x06string\x12,\n\x06binary\x18\r \x01(\x0b2\x12.proto.Type.BinaryH\x00R\x06binary\x129\n\ttimestamp\x18\x0e \x01(\x0b2\x15.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12&\n\x04date\x18\x10 \x01(\x0b2\x10.proto.Type.DateH\x00R\x04date\x12&\n\x04time\x18\x11 \x01(\x0b2\x10.proto.Type.TimeH\x00R\x04time\x12?\n\rinterval_year\x18\x13 \x01(\x0b2\x18.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12<\n\x0cinterval_day\x18\x14 \x01(\x0b2\x17.proto.Type.IntervalDayH\x00R\x0bintervalDay\x12K\n\x11interval_compound\x18# \x01(\x0b2\x1c.proto.Type.IntervalCompoundH\x00R\x10intervalCompound\x12@\n\x0ctimestamp_tz\x18\x1d \x01(\x0b2\x17.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12&\n\x04uuid\x18 \x01(\x0b2\x10.proto.Type.UUIDH\x00R\x04uuid\x126\n\nfixed_char\x18\x15 \x01(\x0b2\x15.proto.Type.FixedCharH\x00R\tfixedChar\x12/\n\x07varchar\x18\x16 \x01(\x0b2\x13.proto.Type.VarCharH\x00R\x07varchar\x12<\n\x0cfixed_binary\x18\x17 \x01(\x0b2\x17.proto.Type.FixedBinaryH\x00R\x0bfixedBinary\x12/\n\x07decimal\x18\x18 \x01(\x0b2\x13.proto.Type.DecimalH\x00R\x07decimal\x12B\n\x0eprecision_time\x18$ \x01(\x0b2\x19.proto.Type.PrecisionTimeH\x00R\rprecisionTime\x12Q\n\x13precision_timestamp\x18! \x01(\x0b2\x1e.proto.Type.PrecisionTimestampH\x00R\x12precisionTimestamp\x12X\n\x16precision_timestamp_tz\x18" \x01(\x0b2 .proto.Type.PrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12,\n\x06struct\x18\x19 \x01(\x0b2\x12.proto.Type.StructH\x00R\x06struct\x12&\n\x04list\x18\x1b \x01(\x0b2\x10.proto.Type.ListH\x00R\x04list\x12#\n\x03map\x18\x1c \x01(\x0b2\x0f.proto.Type.MapH\x00R\x03map\x12<\n\x0cuser_defined\x18\x1e \x01(\x0b2\x17.proto.Type.UserDefinedH\x00R\x0buserDefined\x12C\n\x1buser_defined_type_reference\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x18userDefinedTypeReference\x126\n\x05alias\x18% \x01(\x0b2\x1e.proto.Type.TypeAliasReferenceH\x00R\x05alias\x1a~\n\x07Boolean\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1ay\n\x02I8\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1az\n\x03I16\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1az\n\x03I32\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1az\n\x03I64\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a{\n\x04FP32\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a{\n\x04FP64\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a}\n\x06String\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a}\n\x06Binary\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x80\x01\n\tTimestamp\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a{\n\x04Date\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a{\n\x04Time\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x82\x01\n\x0bTimestampTZ\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x83\x01\n\x0cIntervalYear\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xb3\x01\n\x0bIntervalDay\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x12!\n\tprecision\x18\x03 \x01(\x05H\x00R\tprecision\x88\x01\x01B\x0c\n\n_precision\x1a\xa5\x01\n\x10IntervalCompound\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x12\x1c\n\tprecision\x18\x03 \x01(\x05R\tprecision\x1a{\n\x04UUID\x128\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x98\x01\n\tFixedChar\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x96\x01\n\x07VarChar\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x9a\x01\n\x0bFixedBinary\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xb2\x01\n\x07Decimal\x12\x14\n\x05scale\x18\x01 \x01(\x05R\x05scale\x12\x1c\n\tprecision\x18\x02 \x01(\x05R\tprecision\x128\n\x18type_variation_reference\x18\x03 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa2\x01\n\rPrecisionTime\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa7\x01\n\x12PrecisionTimestamp\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa9\x01\n\x14PrecisionTimestampTZ\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xa0\x01\n\x06Struct\x12!\n\x05types\x18\x01 \x03(\x0b2\x0b.proto.TypeR\x05types\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\x9c\x01\n\x04List\x12\x1f\n\x04type\x18\x01 \x01(\x0b2\x0b.proto.TypeR\x04type\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xbc\x01\n\x03Map\x12\x1d\n\x03key\x18\x01 \x01(\x0b2\x0b.proto.TypeR\x03key\x12!\n\x05value\x18\x02 \x01(\x0b2\x0b.proto.TypeR\x05value\x128\n\x18type_variation_reference\x18\x03 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x04 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x1a\xe9\x01\n\x0bUserDefined\x12%\n\x0etype_reference\x18\x01 \x01(\rR\rtypeReference\x128\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x129\n\x0bnullability\x18\x03 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability\x12>\n\x0ftype_parameters\x18\x04 \x03(\x0b2\x15.proto.Type.ParameterR\x0etypeParameters\x1a\xda\x01\n\tParameter\x12,\n\x04null\x18\x01 \x01(\x0b2\x16.google.protobuf.EmptyH\x00R\x04null\x12*\n\tdata_type\x18\x02 \x01(\x0b2\x0b.proto.TypeH\x00R\x08dataType\x12\x1a\n\x07boolean\x18\x03 \x01(\x08H\x00R\x07boolean\x12\x1a\n\x07integer\x18\x04 \x01(\x03H\x00R\x07integer\x12\x14\n\x04enum\x18\x05 \x01(\tH\x00R\x04enum\x12\x18\n\x06string\x18\x06 \x01(\tH\x00R\x06stringB\x0b\n\tparameter\x1a\x81\x01\n\x12TypeAliasReference\x120\n\x14type_alias_reference\x18\x01 \x01(\rR\x12typeAliasReference\x129\n\x0bnullability\x18\x02 \x01(\x0e2\x17.proto.Type.NullabilityR\x0bnullability"^\n\x0bNullability\x12\x1b\n\x17NULLABILITY_UNSPECIFIED\x10\x00\x12\x18\n\x14NULLABILITY_NULLABLE\x10\x01\x12\x18\n\x14NULLABILITY_REQUIRED\x10\x02B\x06\n\x04kind"X\n\tTypeAlias\x12*\n\x11type_alias_anchor\x18\x01 \x01(\rR\x0ftypeAliasAnchor\x12\x1f\n\x04type\x18\x02 \x01(\x0b2\x0b.proto.TypeR\x04type"O\n\x0bNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12*\n\x06struct\x18\x02 \x01(\x0b2\x12.proto.Type.StructR\x06structB#\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobufb\x06proto3') + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1esubstrait/gen/proto/type.proto\x12\x13substrait.gen.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xbb\x37\n\x04Type\x12\x37\n\x04\x62ool\x18\x01 \x01(\x0b\x32!.substrait.gen.proto.Type.BooleanH\x00R\x04\x62ool\x12.\n\x02i8\x18\x02 \x01(\x0b\x32\x1c.substrait.gen.proto.Type.I8H\x00R\x02i8\x12\x31\n\x03i16\x18\x03 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I16H\x00R\x03i16\x12\x31\n\x03i32\x18\x05 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I32H\x00R\x03i32\x12\x31\n\x03i64\x18\x07 \x01(\x0b\x32\x1d.substrait.gen.proto.Type.I64H\x00R\x03i64\x12\x34\n\x04\x66p32\x18\n \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP32H\x00R\x04\x66p32\x12\x34\n\x04\x66p64\x18\x0b \x01(\x0b\x32\x1e.substrait.gen.proto.Type.FP64H\x00R\x04\x66p64\x12:\n\x06string\x18\x0c \x01(\x0b\x32 .substrait.gen.proto.Type.StringH\x00R\x06string\x12:\n\x06\x62inary\x18\r \x01(\x0b\x32 .substrait.gen.proto.Type.BinaryH\x00R\x06\x62inary\x12G\n\ttimestamp\x18\x0e \x01(\x0b\x32#.substrait.gen.proto.Type.TimestampB\x02\x18\x01H\x00R\ttimestamp\x12\x34\n\x04\x64\x61te\x18\x10 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.DateH\x00R\x04\x64\x61te\x12\x34\n\x04time\x18\x11 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.TimeH\x00R\x04time\x12M\n\rinterval_year\x18\x13 \x01(\x0b\x32&.substrait.gen.proto.Type.IntervalYearH\x00R\x0cintervalYear\x12J\n\x0cinterval_day\x18\x14 \x01(\x0b\x32%.substrait.gen.proto.Type.IntervalDayH\x00R\x0bintervalDay\x12Y\n\x11interval_compound\x18# \x01(\x0b\x32*.substrait.gen.proto.Type.IntervalCompoundH\x00R\x10intervalCompound\x12N\n\x0ctimestamp_tz\x18\x1d \x01(\x0b\x32%.substrait.gen.proto.Type.TimestampTZB\x02\x18\x01H\x00R\x0btimestampTz\x12\x34\n\x04uuid\x18 \x01(\x0b\x32\x1e.substrait.gen.proto.Type.UUIDH\x00R\x04uuid\x12\x44\n\nfixed_char\x18\x15 \x01(\x0b\x32#.substrait.gen.proto.Type.FixedCharH\x00R\tfixedChar\x12=\n\x07varchar\x18\x16 \x01(\x0b\x32!.substrait.gen.proto.Type.VarCharH\x00R\x07varchar\x12J\n\x0c\x66ixed_binary\x18\x17 \x01(\x0b\x32%.substrait.gen.proto.Type.FixedBinaryH\x00R\x0b\x66ixedBinary\x12=\n\x07\x64\x65\x63imal\x18\x18 \x01(\x0b\x32!.substrait.gen.proto.Type.DecimalH\x00R\x07\x64\x65\x63imal\x12P\n\x0eprecision_time\x18$ \x01(\x0b\x32\'.substrait.gen.proto.Type.PrecisionTimeH\x00R\rprecisionTime\x12_\n\x13precision_timestamp\x18! \x01(\x0b\x32,.substrait.gen.proto.Type.PrecisionTimestampH\x00R\x12precisionTimestamp\x12\x66\n\x16precision_timestamp_tz\x18\" \x01(\x0b\x32..substrait.gen.proto.Type.PrecisionTimestampTZH\x00R\x14precisionTimestampTz\x12:\n\x06struct\x18\x19 \x01(\x0b\x32 .substrait.gen.proto.Type.StructH\x00R\x06struct\x12\x34\n\x04list\x18\x1b \x01(\x0b\x32\x1e.substrait.gen.proto.Type.ListH\x00R\x04list\x12\x31\n\x03map\x18\x1c \x01(\x0b\x32\x1d.substrait.gen.proto.Type.MapH\x00R\x03map\x12J\n\x0cuser_defined\x18\x1e \x01(\x0b\x32%.substrait.gen.proto.Type.UserDefinedH\x00R\x0buserDefined\x12\x43\n\x1buser_defined_type_reference\x18\x1f \x01(\rB\x02\x18\x01H\x00R\x18userDefinedTypeReference\x12\x44\n\x05\x61lias\x18% \x01(\x0b\x32,.substrait.gen.proto.Type.TypeAliasReferenceH\x00R\x05\x61lias\x1a\x8c\x01\n\x07\x42oolean\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x87\x01\n\x02I8\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x88\x01\n\x03I16\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x88\x01\n\x03I32\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x88\x01\n\x03I64\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x89\x01\n\x04\x46P32\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x89\x01\n\x04\x46P64\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x8b\x01\n\x06String\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x8b\x01\n\x06\x42inary\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x8e\x01\n\tTimestamp\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x89\x01\n\x04\x44\x61te\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x89\x01\n\x04Time\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x90\x01\n\x0bTimestampTZ\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x91\x01\n\x0cIntervalYear\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xc1\x01\n\x0bIntervalDay\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x12!\n\tprecision\x18\x03 \x01(\x05H\x00R\tprecision\x88\x01\x01\x42\x0c\n\n_precision\x1a\xb3\x01\n\x10IntervalCompound\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x12\x1c\n\tprecision\x18\x03 \x01(\x05R\tprecision\x1a\x89\x01\n\x04UUID\x12\x38\n\x18type_variation_reference\x18\x01 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xa6\x01\n\tFixedChar\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xa4\x01\n\x07VarChar\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xa8\x01\n\x0b\x46ixedBinary\x12\x16\n\x06length\x18\x01 \x01(\x05R\x06length\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xc0\x01\n\x07\x44\x65\x63imal\x12\x14\n\x05scale\x18\x01 \x01(\x05R\x05scale\x12\x1c\n\tprecision\x18\x02 \x01(\x05R\tprecision\x12\x38\n\x18type_variation_reference\x18\x03 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb0\x01\n\rPrecisionTime\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb5\x01\n\x12PrecisionTimestamp\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb7\x01\n\x14PrecisionTimestampTZ\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xbc\x01\n\x06Struct\x12/\n\x05types\x18\x01 \x03(\x0b\x32\x19.substrait.gen.proto.TypeR\x05types\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xb8\x01\n\x04List\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x04type\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\xe6\x01\n\x03Map\x12+\n\x03key\x18\x01 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x03key\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x05value\x12\x38\n\x18type_variation_reference\x18\x03 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x04 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x1a\x85\x02\n\x0bUserDefined\x12%\n\x0etype_reference\x18\x01 \x01(\rR\rtypeReference\x12\x38\n\x18type_variation_reference\x18\x02 \x01(\rR\x16typeVariationReference\x12G\n\x0bnullability\x18\x03 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\x12L\n\x0ftype_parameters\x18\x04 \x03(\x0b\x32#.substrait.gen.proto.Type.ParameterR\x0etypeParameters\x1a\xe8\x01\n\tParameter\x12,\n\x04null\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x04null\x12\x38\n\tdata_type\x18\x02 \x01(\x0b\x32\x19.substrait.gen.proto.TypeH\x00R\x08\x64\x61taType\x12\x1a\n\x07\x62oolean\x18\x03 \x01(\x08H\x00R\x07\x62oolean\x12\x1a\n\x07integer\x18\x04 \x01(\x03H\x00R\x07integer\x12\x14\n\x04\x65num\x18\x05 \x01(\tH\x00R\x04\x65num\x12\x18\n\x06string\x18\x06 \x01(\tH\x00R\x06stringB\x0b\n\tparameter\x1a\x8f\x01\n\x12TypeAliasReference\x12\x30\n\x14type_alias_reference\x18\x01 \x01(\rR\x12typeAliasReference\x12G\n\x0bnullability\x18\x02 \x01(\x0e\x32%.substrait.gen.proto.Type.NullabilityR\x0bnullability\"^\n\x0bNullability\x12\x1b\n\x17NULLABILITY_UNSPECIFIED\x10\x00\x12\x18\n\x14NULLABILITY_NULLABLE\x10\x01\x12\x18\n\x14NULLABILITY_REQUIRED\x10\x02\x42\x06\n\x04kind\"f\n\tTypeAlias\x12*\n\x11type_alias_anchor\x18\x01 \x01(\rR\x0ftypeAliasAnchor\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.substrait.gen.proto.TypeR\x04type\"]\n\x0bNamedStruct\x12\x14\n\x05names\x18\x01 \x03(\tR\x05names\x12\x38\n\x06struct\x18\x02 \x01(\x0b\x32 .substrait.gen.proto.Type.StructR\x06structB?\n\x1cio.substrait.gen.proto.protoP\x01\xaa\x02\x1cSubstrait.Gen.Proto.Protobufb\x06proto3') + _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.type_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'substrait.gen.proto.type_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\x0eio.proto.protoP\x01\xaa\x02\x0eProto.Protobuf' - _globals['_TYPE'].fields_by_name['timestamp']._loaded_options = None - _globals['_TYPE'].fields_by_name['timestamp']._serialized_options = b'\x18\x01' - _globals['_TYPE'].fields_by_name['timestamp_tz']._loaded_options = None - _globals['_TYPE'].fields_by_name['timestamp_tz']._serialized_options = b'\x18\x01' - _globals['_TYPE'].fields_by_name['user_defined_type_reference']._loaded_options = None - _globals['_TYPE'].fields_by_name['user_defined_type_reference']._serialized_options = b'\x18\x01' - _globals['_TYPE']._serialized_start = 57 - _globals['_TYPE']._serialized_end = 6248 - _globals['_TYPE_BOOLEAN']._serialized_start = 1641 - _globals['_TYPE_BOOLEAN']._serialized_end = 1767 - _globals['_TYPE_I8']._serialized_start = 1769 - _globals['_TYPE_I8']._serialized_end = 1890 - _globals['_TYPE_I16']._serialized_start = 1892 - _globals['_TYPE_I16']._serialized_end = 2014 - _globals['_TYPE_I32']._serialized_start = 2016 - _globals['_TYPE_I32']._serialized_end = 2138 - _globals['_TYPE_I64']._serialized_start = 2140 - _globals['_TYPE_I64']._serialized_end = 2262 - _globals['_TYPE_FP32']._serialized_start = 2264 - _globals['_TYPE_FP32']._serialized_end = 2387 - _globals['_TYPE_FP64']._serialized_start = 2389 - _globals['_TYPE_FP64']._serialized_end = 2512 - _globals['_TYPE_STRING']._serialized_start = 2514 - _globals['_TYPE_STRING']._serialized_end = 2639 - _globals['_TYPE_BINARY']._serialized_start = 2641 - _globals['_TYPE_BINARY']._serialized_end = 2766 - _globals['_TYPE_TIMESTAMP']._serialized_start = 2769 - _globals['_TYPE_TIMESTAMP']._serialized_end = 2897 - _globals['_TYPE_DATE']._serialized_start = 2899 - _globals['_TYPE_DATE']._serialized_end = 3022 - _globals['_TYPE_TIME']._serialized_start = 3024 - _globals['_TYPE_TIME']._serialized_end = 3147 - _globals['_TYPE_TIMESTAMPTZ']._serialized_start = 3150 - _globals['_TYPE_TIMESTAMPTZ']._serialized_end = 3280 - _globals['_TYPE_INTERVALYEAR']._serialized_start = 3283 - _globals['_TYPE_INTERVALYEAR']._serialized_end = 3414 - _globals['_TYPE_INTERVALDAY']._serialized_start = 3417 - _globals['_TYPE_INTERVALDAY']._serialized_end = 3596 - _globals['_TYPE_INTERVALCOMPOUND']._serialized_start = 3599 - _globals['_TYPE_INTERVALCOMPOUND']._serialized_end = 3764 - _globals['_TYPE_UUID']._serialized_start = 3766 - _globals['_TYPE_UUID']._serialized_end = 3889 - _globals['_TYPE_FIXEDCHAR']._serialized_start = 3892 - _globals['_TYPE_FIXEDCHAR']._serialized_end = 4044 - _globals['_TYPE_VARCHAR']._serialized_start = 4047 - _globals['_TYPE_VARCHAR']._serialized_end = 4197 - _globals['_TYPE_FIXEDBINARY']._serialized_start = 4200 - _globals['_TYPE_FIXEDBINARY']._serialized_end = 4354 - _globals['_TYPE_DECIMAL']._serialized_start = 4357 - _globals['_TYPE_DECIMAL']._serialized_end = 4535 - _globals['_TYPE_PRECISIONTIME']._serialized_start = 4538 - _globals['_TYPE_PRECISIONTIME']._serialized_end = 4700 - _globals['_TYPE_PRECISIONTIMESTAMP']._serialized_start = 4703 - _globals['_TYPE_PRECISIONTIMESTAMP']._serialized_end = 4870 - _globals['_TYPE_PRECISIONTIMESTAMPTZ']._serialized_start = 4873 - _globals['_TYPE_PRECISIONTIMESTAMPTZ']._serialized_end = 5042 - _globals['_TYPE_STRUCT']._serialized_start = 5045 - _globals['_TYPE_STRUCT']._serialized_end = 5205 - _globals['_TYPE_LIST']._serialized_start = 5208 - _globals['_TYPE_LIST']._serialized_end = 5364 - _globals['_TYPE_MAP']._serialized_start = 5367 - _globals['_TYPE_MAP']._serialized_end = 5555 - _globals['_TYPE_USERDEFINED']._serialized_start = 5558 - _globals['_TYPE_USERDEFINED']._serialized_end = 5791 - _globals['_TYPE_PARAMETER']._serialized_start = 5794 - _globals['_TYPE_PARAMETER']._serialized_end = 6012 - _globals['_TYPE_TYPEALIASREFERENCE']._serialized_start = 6015 - _globals['_TYPE_TYPEALIASREFERENCE']._serialized_end = 6144 - _globals['_TYPE_NULLABILITY']._serialized_start = 6146 - _globals['_TYPE_NULLABILITY']._serialized_end = 6240 - _globals['_TYPEALIAS']._serialized_start = 6250 - _globals['_TYPEALIAS']._serialized_end = 6338 - _globals['_NAMEDSTRUCT']._serialized_start = 6340 - _globals['_NAMEDSTRUCT']._serialized_end = 6419 \ No newline at end of file + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\034io.substrait.gen.proto.protoP\001\252\002\034Substrait.Gen.Proto.Protobuf' + _globals['_TYPE'].fields_by_name['timestamp']._loaded_options = None + _globals['_TYPE'].fields_by_name['timestamp']._serialized_options = b'\030\001' + _globals['_TYPE'].fields_by_name['timestamp_tz']._loaded_options = None + _globals['_TYPE'].fields_by_name['timestamp_tz']._serialized_options = b'\030\001' + _globals['_TYPE'].fields_by_name['user_defined_type_reference']._loaded_options = None + _globals['_TYPE'].fields_by_name['user_defined_type_reference']._serialized_options = b'\030\001' + _globals['_TYPE']._serialized_start=85 + _globals['_TYPE']._serialized_end=7184 + _globals['_TYPE_BOOLEAN']._serialized_start=2076 + _globals['_TYPE_BOOLEAN']._serialized_end=2216 + _globals['_TYPE_I8']._serialized_start=2219 + _globals['_TYPE_I8']._serialized_end=2354 + _globals['_TYPE_I16']._serialized_start=2357 + _globals['_TYPE_I16']._serialized_end=2493 + _globals['_TYPE_I32']._serialized_start=2496 + _globals['_TYPE_I32']._serialized_end=2632 + _globals['_TYPE_I64']._serialized_start=2635 + _globals['_TYPE_I64']._serialized_end=2771 + _globals['_TYPE_FP32']._serialized_start=2774 + _globals['_TYPE_FP32']._serialized_end=2911 + _globals['_TYPE_FP64']._serialized_start=2914 + _globals['_TYPE_FP64']._serialized_end=3051 + _globals['_TYPE_STRING']._serialized_start=3054 + _globals['_TYPE_STRING']._serialized_end=3193 + _globals['_TYPE_BINARY']._serialized_start=3196 + _globals['_TYPE_BINARY']._serialized_end=3335 + _globals['_TYPE_TIMESTAMP']._serialized_start=3338 + _globals['_TYPE_TIMESTAMP']._serialized_end=3480 + _globals['_TYPE_DATE']._serialized_start=3483 + _globals['_TYPE_DATE']._serialized_end=3620 + _globals['_TYPE_TIME']._serialized_start=3623 + _globals['_TYPE_TIME']._serialized_end=3760 + _globals['_TYPE_TIMESTAMPTZ']._serialized_start=3763 + _globals['_TYPE_TIMESTAMPTZ']._serialized_end=3907 + _globals['_TYPE_INTERVALYEAR']._serialized_start=3910 + _globals['_TYPE_INTERVALYEAR']._serialized_end=4055 + _globals['_TYPE_INTERVALDAY']._serialized_start=4058 + _globals['_TYPE_INTERVALDAY']._serialized_end=4251 + _globals['_TYPE_INTERVALCOMPOUND']._serialized_start=4254 + _globals['_TYPE_INTERVALCOMPOUND']._serialized_end=4433 + _globals['_TYPE_UUID']._serialized_start=4436 + _globals['_TYPE_UUID']._serialized_end=4573 + _globals['_TYPE_FIXEDCHAR']._serialized_start=4576 + _globals['_TYPE_FIXEDCHAR']._serialized_end=4742 + _globals['_TYPE_VARCHAR']._serialized_start=4745 + _globals['_TYPE_VARCHAR']._serialized_end=4909 + _globals['_TYPE_FIXEDBINARY']._serialized_start=4912 + _globals['_TYPE_FIXEDBINARY']._serialized_end=5080 + _globals['_TYPE_DECIMAL']._serialized_start=5083 + _globals['_TYPE_DECIMAL']._serialized_end=5275 + _globals['_TYPE_PRECISIONTIME']._serialized_start=5278 + _globals['_TYPE_PRECISIONTIME']._serialized_end=5454 + _globals['_TYPE_PRECISIONTIMESTAMP']._serialized_start=5457 + _globals['_TYPE_PRECISIONTIMESTAMP']._serialized_end=5638 + _globals['_TYPE_PRECISIONTIMESTAMPTZ']._serialized_start=5641 + _globals['_TYPE_PRECISIONTIMESTAMPTZ']._serialized_end=5824 + _globals['_TYPE_STRUCT']._serialized_start=5827 + _globals['_TYPE_STRUCT']._serialized_end=6015 + _globals['_TYPE_LIST']._serialized_start=6018 + _globals['_TYPE_LIST']._serialized_end=6202 + _globals['_TYPE_MAP']._serialized_start=6205 + _globals['_TYPE_MAP']._serialized_end=6435 + _globals['_TYPE_USERDEFINED']._serialized_start=6438 + _globals['_TYPE_USERDEFINED']._serialized_end=6699 + _globals['_TYPE_PARAMETER']._serialized_start=6702 + _globals['_TYPE_PARAMETER']._serialized_end=6934 + _globals['_TYPE_TYPEALIASREFERENCE']._serialized_start=6937 + _globals['_TYPE_TYPEALIASREFERENCE']._serialized_end=7080 + _globals['_TYPE_NULLABILITY']._serialized_start=7082 + _globals['_TYPE_NULLABILITY']._serialized_end=7176 + _globals['_TYPEALIAS']._serialized_start=7186 + _globals['_TYPEALIAS']._serialized_end=7288 + _globals['_NAMEDSTRUCT']._serialized_start=7290 + _globals['_NAMEDSTRUCT']._serialized_end=7383 +# @@protoc_insertion_point(module_scope) diff --git a/src/substrait/gen/proto/type_pb2.pyi b/src/substrait/gen/proto/type_pb2.pyi index 4e0b797..050f634 100644 --- a/src/substrait/gen/proto/type_pb2.pyi +++ b/src/substrait/gen/proto/type_pb2.pyi @@ -2,6 +2,7 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file SPDX-License-Identifier: Apache-2.0""" + import builtins import collections.abc import google.protobuf.descriptor @@ -11,10 +12,12 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import sys import typing + if sys.version_info >= (3, 10): import typing as typing_extensions else: import typing_extensions + DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @typing.final @@ -22,326 +25,396 @@ class Type(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor class _Nullability: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType class _NullabilityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Type._Nullability.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NULLABILITY_UNSPECIFIED: Type._Nullability.ValueType - NULLABILITY_NULLABLE: Type._Nullability.ValueType - NULLABILITY_REQUIRED: Type._Nullability.ValueType + NULLABILITY_UNSPECIFIED: Type._Nullability.ValueType # 0 + NULLABILITY_NULLABLE: Type._Nullability.ValueType # 1 + NULLABILITY_REQUIRED: Type._Nullability.ValueType # 2 - class Nullability(_Nullability, metaclass=_NullabilityEnumTypeWrapper): - ... - NULLABILITY_UNSPECIFIED: Type.Nullability.ValueType - NULLABILITY_NULLABLE: Type.Nullability.ValueType - NULLABILITY_REQUIRED: Type.Nullability.ValueType + class Nullability(_Nullability, metaclass=_NullabilityEnumTypeWrapper): ... + NULLABILITY_UNSPECIFIED: Type.Nullability.ValueType # 0 + NULLABILITY_NULLABLE: Type.Nullability.ValueType # 1 + NULLABILITY_REQUIRED: Type.Nullability.ValueType # 2 @typing.final class Boolean(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class I8(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class I16(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class I32(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class I64(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FP32(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FP64(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class String(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Binary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Timestamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Date(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Time(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class TimestampTZ(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntervalYear(google.protobuf.message.Message): """An interval consisting of years and months""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class IntervalDay(google.protobuf.message.Message): """An interval consisting of days, seconds, and microseconds""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType + nullability: Global___Type.Nullability.ValueType precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, etc.\n if unset, treat as 6.\n ' - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=..., precision: builtins.int | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['_precision', b'_precision', 'precision', b'precision']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['_precision', b'_precision', 'nullability', b'nullability', 'precision', b'precision', 'type_variation_reference', b'type_variation_reference']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['_precision', b'_precision']) -> typing.Literal['precision'] | None: - ... + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, etc. + if unset, treat as 6. + """ + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + precision: builtins.int | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_precision", b"_precision", "precision", b"precision"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_precision", b"_precision", "nullability", b"nullability", "precision", b"precision", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType__precision: typing_extensions.TypeAlias = typing.Literal["precision"] + _WhichOneofArgType__precision: typing_extensions.TypeAlias = typing.Literal["_precision", b"_precision"] + def WhichOneof(self, oneof_group: _WhichOneofArgType__precision) -> _WhichOneofReturnType__precision | None: ... @typing.final class IntervalCompound(google.protobuf.message.Message): """An interval consisting of the components of both IntervalMonth and IntervalDay""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType + nullability: Global___Type.Nullability.ValueType precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, etc.' - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=..., precision: builtins.int=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, etc.""" + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + precision: builtins.int = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class UUID(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FixedChar(google.protobuf.message.Message): """Start compound types.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int length: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, length: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + length: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class VarChar(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int length: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, length: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + length: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class FixedBinary(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + LENGTH_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int length: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, length: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['length', b'length', 'nullability', b'nullability', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + length: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["length", b"length", "nullability", b"nullability", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Decimal(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + SCALE_FIELD_NUMBER: builtins.int PRECISION_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int @@ -349,157 +422,180 @@ class Type(google.protobuf.message.Message): scale: builtins.int precision: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, scale: builtins.int=..., precision: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'scale', b'scale', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + scale: builtins.int = ..., + precision: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "scale", b"scale", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class PrecisionTime(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds""" type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, precision: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + precision: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class PrecisionTimestamp(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds""" type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, precision: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + precision: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class PrecisionTimestampTZ(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PRECISION_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int precision: builtins.int - 'Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds' + """Sub-second precision, 0 means the value given is in seconds, 3 is milliseconds, 6 microseconds, 9 is nanoseconds, 12 is picoseconds""" type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - - def __init__(self, *, precision: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'precision', b'precision', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + nullability: Global___Type.Nullability.ValueType + def __init__( + self, + *, + precision: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "precision", b"precision", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Struct(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPES_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - + nullability: Global___Type.Nullability.ValueType @property - def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Type]: - ... - - def __init__(self, *, types: collections.abc.Iterable[global___Type] | None=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_variation_reference', b'type_variation_reference', 'types', b'types']) -> None: - ... + def types(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Type]: ... + def __init__( + self, + *, + types: collections.abc.Iterable[Global___Type] | None = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_variation_reference", b"type_variation_reference", "types", b"types"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class List(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - + nullability: Global___Type.Nullability.ValueType @property - def type(self) -> global___Type: - ... - - def __init__(self, *, type: global___Type | None=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type', b'type', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + def type(self) -> Global___Type: ... + def __init__( + self, + *, + type: Global___Type | None = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type", b"type", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Map(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - + nullability: Global___Type.Nullability.ValueType @property - def key(self) -> global___Type: - ... - + def key(self) -> Global___Type: ... @property - def value(self) -> global___Type: - ... - - def __init__(self, *, key: global___Type | None=..., value: global___Type | None=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['key', b'key', 'nullability', b'nullability', 'type_variation_reference', b'type_variation_reference', 'value', b'value']) -> None: - ... + def value(self) -> Global___Type: ... + def __init__( + self, + *, + key: Global___Type | None = ..., + value: Global___Type | None = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "value", b"value"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["key", b"key", "nullability", b"nullability", "type_variation_reference", b"type_variation_reference", "value", b"value"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class UserDefined(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_REFERENCE_FIELD_NUMBER: builtins.int TYPE_VARIATION_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int TYPE_PARAMETERS_FIELD_NUMBER: builtins.int type_reference: builtins.int type_variation_reference: builtins.int - nullability: global___Type.Nullability.ValueType - + nullability: Global___Type.Nullability.ValueType @property - def type_parameters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Type.Parameter]: - ... - - def __init__(self, *, type_reference: builtins.int=..., type_variation_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=..., type_parameters: collections.abc.Iterable[global___Type.Parameter] | None=...) -> None: - ... - - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_parameters', b'type_parameters', 'type_reference', b'type_reference', 'type_variation_reference', b'type_variation_reference']) -> None: - ... + def type_parameters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Type.Parameter]: ... + def __init__( + self, + *, + type_reference: builtins.int = ..., + type_variation_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + type_parameters: collections.abc.Iterable[Global___Type.Parameter] | None = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_parameters", b"type_parameters", "type_reference", b"type_reference", "type_variation_reference", b"type_variation_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... @typing.final class Parameter(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NULL_FIELD_NUMBER: builtins.int DATA_TYPE_FIELD_NUMBER: builtins.int BOOLEAN_FIELD_NUMBER: builtins.int @@ -507,11 +603,10 @@ class Type(google.protobuf.message.Message): ENUM_FIELD_NUMBER: builtins.int STRING_FIELD_NUMBER: builtins.int boolean: builtins.bool - 'Value parameters, like the 10 in VARCHAR<10>.' + """Value parameters, like the 10 in VARCHAR<10>.""" integer: builtins.int enum: builtins.str string: builtins.str - @property def null(self) -> google.protobuf.empty_pb2.Empty: """Explicitly null/unspecified parameter, to select the default value (if @@ -519,35 +614,45 @@ class Type(google.protobuf.message.Message): """ @property - def data_type(self) -> global___Type: + def data_type(self) -> Global___Type: """Data type parameters, like the i32 in LIST.""" - def __init__(self, *, null: google.protobuf.empty_pb2.Empty | None=..., data_type: global___Type | None=..., boolean: builtins.bool=..., integer: builtins.int=..., enum: builtins.str=..., string: builtins.str=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['boolean', b'boolean', 'data_type', b'data_type', 'enum', b'enum', 'integer', b'integer', 'null', b'null', 'parameter', b'parameter', 'string', b'string']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['boolean', b'boolean', 'data_type', b'data_type', 'enum', b'enum', 'integer', b'integer', 'null', b'null', 'parameter', b'parameter', 'string', b'string']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['parameter', b'parameter']) -> typing.Literal['null', 'data_type', 'boolean', 'integer', 'enum', 'string'] | None: - ... + def __init__( + self, + *, + null: google.protobuf.empty_pb2.Empty | None = ..., + data_type: Global___Type | None = ..., + boolean: builtins.bool = ..., + integer: builtins.int = ..., + enum: builtins.str = ..., + string: builtins.str = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["boolean", b"boolean", "data_type", b"data_type", "enum", b"enum", "integer", b"integer", "null", b"null", "parameter", b"parameter", "string", b"string"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["boolean", b"boolean", "data_type", b"data_type", "enum", b"enum", "integer", b"integer", "null", b"null", "parameter", b"parameter", "string", b"string"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_parameter: typing_extensions.TypeAlias = typing.Literal["null", "data_type", "boolean", "integer", "enum", "string"] + _WhichOneofArgType_parameter: typing_extensions.TypeAlias = typing.Literal["parameter", b"parameter"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_parameter) -> _WhichOneofReturnType_parameter | None: ... @typing.final class TypeAliasReference(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_ALIAS_REFERENCE_FIELD_NUMBER: builtins.int NULLABILITY_FIELD_NUMBER: builtins.int type_alias_reference: builtins.int - nullability: global___Type.Nullability.ValueType - 'Nullability of the referenced type alias. Must be specified.' - - def __init__(self, *, type_alias_reference: builtins.int=..., nullability: global___Type.Nullability.ValueType=...) -> None: - ... + nullability: Global___Type.Nullability.ValueType + """Nullability of the referenced type alias. Must be specified.""" + def __init__( + self, + *, + type_alias_reference: builtins.int = ..., + nullability: Global___Type.Nullability.ValueType = ..., + ) -> None: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["nullability", b"nullability", "type_alias_reference", b"type_alias_reference"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['nullability', b'nullability', 'type_alias_reference', b'type_alias_reference']) -> None: - ... BOOL_FIELD_NUMBER: builtins.int I8_FIELD_NUMBER: builtins.int I16_FIELD_NUMBER: builtins.int @@ -579,147 +684,135 @@ class Type(google.protobuf.message.Message): USER_DEFINED_TYPE_REFERENCE_FIELD_NUMBER: builtins.int ALIAS_FIELD_NUMBER: builtins.int user_defined_type_reference: builtins.int - 'Deprecated in favor of user_defined, which allows nullability and\n variations to be specified. If user_defined_type_reference is\n encountered, treat it as being non-nullable and having the default\n variation.\n ' - + """Deprecated in favor of user_defined, which allows nullability and + variations to be specified. If user_defined_type_reference is + encountered, treat it as being non-nullable and having the default + variation. + """ @property - def bool(self) -> global___Type.Boolean: - ... - + def bool(self) -> Global___Type.Boolean: ... @property - def i8(self) -> global___Type.I8: - ... - + def i8(self) -> Global___Type.I8: ... @property - def i16(self) -> global___Type.I16: - ... - + def i16(self) -> Global___Type.I16: ... @property - def i32(self) -> global___Type.I32: - ... - + def i32(self) -> Global___Type.I32: ... @property - def i64(self) -> global___Type.I64: - ... - + def i64(self) -> Global___Type.I64: ... @property - def fp32(self) -> global___Type.FP32: - ... - + def fp32(self) -> Global___Type.FP32: ... @property - def fp64(self) -> global___Type.FP64: - ... - + def fp64(self) -> Global___Type.FP64: ... @property - def string(self) -> global___Type.String: - ... - + def string(self) -> Global___Type.String: ... @property - def binary(self) -> global___Type.Binary: - ... - + def binary(self) -> Global___Type.Binary: ... @property - def timestamp(self) -> global___Type.Timestamp: + def timestamp(self) -> Global___Type.Timestamp: """Deprecated in favor of `PrecisionTimestamp precision_timestamp`""" @property - def date(self) -> global___Type.Date: - ... - + def date(self) -> Global___Type.Date: ... @property - def time(self) -> global___Type.Time: + def time(self) -> Global___Type.Time: """Deprecated in favor of `PrecisionTime precision_time`""" @property - def interval_year(self) -> global___Type.IntervalYear: - ... - + def interval_year(self) -> Global___Type.IntervalYear: ... @property - def interval_day(self) -> global___Type.IntervalDay: - ... - + def interval_day(self) -> Global___Type.IntervalDay: ... @property - def interval_compound(self) -> global___Type.IntervalCompound: - ... - + def interval_compound(self) -> Global___Type.IntervalCompound: ... @property - def timestamp_tz(self) -> global___Type.TimestampTZ: + def timestamp_tz(self) -> Global___Type.TimestampTZ: """Deprecated in favor of `PrecisionTimestampTZ precision_timestamp_tz`""" @property - def uuid(self) -> global___Type.UUID: - ... - + def uuid(self) -> Global___Type.UUID: ... @property - def fixed_char(self) -> global___Type.FixedChar: - ... - + def fixed_char(self) -> Global___Type.FixedChar: ... @property - def varchar(self) -> global___Type.VarChar: - ... - + def varchar(self) -> Global___Type.VarChar: ... @property - def fixed_binary(self) -> global___Type.FixedBinary: - ... - + def fixed_binary(self) -> Global___Type.FixedBinary: ... @property - def decimal(self) -> global___Type.Decimal: - ... - + def decimal(self) -> Global___Type.Decimal: ... @property - def precision_time(self) -> global___Type.PrecisionTime: - ... - + def precision_time(self) -> Global___Type.PrecisionTime: ... @property - def precision_timestamp(self) -> global___Type.PrecisionTimestamp: - ... - + def precision_timestamp(self) -> Global___Type.PrecisionTimestamp: ... @property - def precision_timestamp_tz(self) -> global___Type.PrecisionTimestampTZ: + def precision_timestamp_tz(self) -> Global___Type.PrecisionTimestampTZ: """value is since UNIX epoch in UTC""" @property - def struct(self) -> global___Type.Struct: - ... - + def struct(self) -> Global___Type.Struct: ... @property - def list(self) -> global___Type.List: - ... - + def list(self) -> Global___Type.List: ... @property - def map(self) -> global___Type.Map: - ... - + def map(self) -> Global___Type.Map: ... @property - def user_defined(self) -> global___Type.UserDefined: - ... - + def user_defined(self) -> Global___Type.UserDefined: ... @property - def alias(self) -> global___Type.TypeAliasReference: + def alias(self) -> Global___Type.TypeAliasReference: """Reference an aliased type in `Plan.type_aliases`.""" - def __init__(self, *, bool: global___Type.Boolean | None=..., i8: global___Type.I8 | None=..., i16: global___Type.I16 | None=..., i32: global___Type.I32 | None=..., i64: global___Type.I64 | None=..., fp32: global___Type.FP32 | None=..., fp64: global___Type.FP64 | None=..., string: global___Type.String | None=..., binary: global___Type.Binary | None=..., timestamp: global___Type.Timestamp | None=..., date: global___Type.Date | None=..., time: global___Type.Time | None=..., interval_year: global___Type.IntervalYear | None=..., interval_day: global___Type.IntervalDay | None=..., interval_compound: global___Type.IntervalCompound | None=..., timestamp_tz: global___Type.TimestampTZ | None=..., uuid: global___Type.UUID | None=..., fixed_char: global___Type.FixedChar | None=..., varchar: global___Type.VarChar | None=..., fixed_binary: global___Type.FixedBinary | None=..., decimal: global___Type.Decimal | None=..., precision_time: global___Type.PrecisionTime | None=..., precision_timestamp: global___Type.PrecisionTimestamp | None=..., precision_timestamp_tz: global___Type.PrecisionTimestampTZ | None=..., struct: global___Type.Struct | None=..., list: global___Type.List | None=..., map: global___Type.Map | None=..., user_defined: global___Type.UserDefined | None=..., user_defined_type_reference: builtins.int=..., alias: global___Type.TypeAliasReference | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['alias', b'alias', 'binary', b'binary', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'user_defined', b'user_defined', 'user_defined_type_reference', b'user_defined_type_reference', 'uuid', b'uuid', 'varchar', b'varchar']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['alias', b'alias', 'binary', b'binary', 'bool', b'bool', 'date', b'date', 'decimal', b'decimal', 'fixed_binary', b'fixed_binary', 'fixed_char', b'fixed_char', 'fp32', b'fp32', 'fp64', b'fp64', 'i16', b'i16', 'i32', b'i32', 'i64', b'i64', 'i8', b'i8', 'interval_compound', b'interval_compound', 'interval_day', b'interval_day', 'interval_year', b'interval_year', 'kind', b'kind', 'list', b'list', 'map', b'map', 'precision_time', b'precision_time', 'precision_timestamp', b'precision_timestamp', 'precision_timestamp_tz', b'precision_timestamp_tz', 'string', b'string', 'struct', b'struct', 'time', b'time', 'timestamp', b'timestamp', 'timestamp_tz', b'timestamp_tz', 'user_defined', b'user_defined', 'user_defined_type_reference', b'user_defined_type_reference', 'uuid', b'uuid', 'varchar', b'varchar']) -> None: - ... - - def WhichOneof(self, oneof_group: typing.Literal['kind', b'kind']) -> typing.Literal['bool', 'i8', 'i16', 'i32', 'i64', 'fp32', 'fp64', 'string', 'binary', 'timestamp', 'date', 'time', 'interval_year', 'interval_day', 'interval_compound', 'timestamp_tz', 'uuid', 'fixed_char', 'varchar', 'fixed_binary', 'decimal', 'precision_time', 'precision_timestamp', 'precision_timestamp_tz', 'struct', 'list', 'map', 'user_defined', 'user_defined_type_reference', 'alias'] | None: - ... -global___Type = Type + def __init__( + self, + *, + bool: Global___Type.Boolean | None = ..., + i8: Global___Type.I8 | None = ..., + i16: Global___Type.I16 | None = ..., + i32: Global___Type.I32 | None = ..., + i64: Global___Type.I64 | None = ..., + fp32: Global___Type.FP32 | None = ..., + fp64: Global___Type.FP64 | None = ..., + string: Global___Type.String | None = ..., + binary: Global___Type.Binary | None = ..., + timestamp: Global___Type.Timestamp | None = ..., + date: Global___Type.Date | None = ..., + time: Global___Type.Time | None = ..., + interval_year: Global___Type.IntervalYear | None = ..., + interval_day: Global___Type.IntervalDay | None = ..., + interval_compound: Global___Type.IntervalCompound | None = ..., + timestamp_tz: Global___Type.TimestampTZ | None = ..., + uuid: Global___Type.UUID | None = ..., + fixed_char: Global___Type.FixedChar | None = ..., + varchar: Global___Type.VarChar | None = ..., + fixed_binary: Global___Type.FixedBinary | None = ..., + decimal: Global___Type.Decimal | None = ..., + precision_time: Global___Type.PrecisionTime | None = ..., + precision_timestamp: Global___Type.PrecisionTimestamp | None = ..., + precision_timestamp_tz: Global___Type.PrecisionTimestampTZ | None = ..., + struct: Global___Type.Struct | None = ..., + list: Global___Type.List | None = ..., + map: Global___Type.Map | None = ..., + user_defined: Global___Type.UserDefined | None = ..., + user_defined_type_reference: builtins.int = ..., + alias: Global___Type.TypeAliasReference | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["alias", b"alias", "binary", b"binary", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "user_defined", b"user_defined", "user_defined_type_reference", b"user_defined_type_reference", "uuid", b"uuid", "varchar", b"varchar"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["alias", b"alias", "binary", b"binary", "bool", b"bool", "date", b"date", "decimal", b"decimal", "fixed_binary", b"fixed_binary", "fixed_char", b"fixed_char", "fp32", b"fp32", "fp64", b"fp64", "i16", b"i16", "i32", b"i32", "i64", b"i64", "i8", b"i8", "interval_compound", b"interval_compound", "interval_day", b"interval_day", "interval_year", b"interval_year", "kind", b"kind", "list", b"list", "map", b"map", "precision_time", b"precision_time", "precision_timestamp", b"precision_timestamp", "precision_timestamp_tz", b"precision_timestamp_tz", "string", b"string", "struct", b"struct", "time", b"time", "timestamp", b"timestamp", "timestamp_tz", b"timestamp_tz", "user_defined", b"user_defined", "user_defined_type_reference", b"user_defined_type_reference", "uuid", b"uuid", "varchar", b"varchar"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... + _WhichOneofReturnType_kind: typing_extensions.TypeAlias = typing.Literal["bool", "i8", "i16", "i32", "i64", "fp32", "fp64", "string", "binary", "timestamp", "date", "time", "interval_year", "interval_day", "interval_compound", "timestamp_tz", "uuid", "fixed_char", "varchar", "fixed_binary", "decimal", "precision_time", "precision_timestamp", "precision_timestamp_tz", "struct", "list", "map", "user_defined", "user_defined_type_reference", "alias"] + _WhichOneofArgType_kind: typing_extensions.TypeAlias = typing.Literal["kind", b"kind"] + def WhichOneof(self, oneof_group: _WhichOneofArgType_kind) -> _WhichOneofReturnType_kind | None: ... + +Global___Type: typing_extensions.TypeAlias = Type @typing.final class TypeAlias(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_ALIAS_ANCHOR_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int type_alias_anchor: builtins.int - 'A surrogate key used in the context of a single plan to reference a\n specific type alias.\n ' - + """A surrogate key used in the context of a single plan to reference a + specific type alias. + """ @property - def type(self) -> global___Type: + def type(self) -> Global___Type: """A concrete type to be aliased. * All type parameters must be specified. @@ -729,15 +822,18 @@ class TypeAlias(google.protobuf.message.Message): * Type variation may be specified in the aliased type. """ - def __init__(self, *, type_alias_anchor: builtins.int=..., type: global___Type | None=...) -> None: - ... + def __init__( + self, + *, + type_alias_anchor: builtins.int = ..., + type: Global___Type | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["type", b"type", "type_alias_anchor", b"type_alias_anchor"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def HasField(self, field_name: typing.Literal['type', b'type']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing.Literal['type', b'type', 'type_alias_anchor', b'type_alias_anchor']) -> None: - ... -global___TypeAlias = TypeAlias +Global___TypeAlias: typing_extensions.TypeAlias = TypeAlias @typing.final class NamedStruct(google.protobuf.message.Message): @@ -763,24 +859,26 @@ class NamedStruct(google.protobuf.message.Message): * When used to represent a relation schema, the outermost struct's nullability should be NULLABILITY_REQUIRED. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAMES_FIELD_NUMBER: builtins.int STRUCT_FIELD_NUMBER: builtins.int - @property def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """list of names in dfs order""" @property - def struct(self) -> global___Type.Struct: - ... - - def __init__(self, *, names: collections.abc.Iterable[builtins.str] | None=..., struct: global___Type.Struct | None=...) -> None: - ... - - def HasField(self, field_name: typing.Literal['struct', b'struct']) -> builtins.bool: - ... + def struct(self) -> Global___Type.Struct: ... + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + struct: Global___Type.Struct | None = ..., + ) -> None: ... + _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["struct", b"struct"] + def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ... + _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["names", b"names", "struct", b"struct"] + def ClearField(self, field_name: _ClearFieldArgType) -> None: ... - def ClearField(self, field_name: typing.Literal['names', b'names', 'struct', b'struct']) -> None: - ... -global___NamedStruct = NamedStruct \ No newline at end of file +Global___NamedStruct: typing_extensions.TypeAlias = NamedStruct diff --git a/tests/test_extension_registry.py b/tests/test_extension_registry.py index c46842d..4f7b1da 100644 --- a/tests/test_extension_registry.py +++ b/tests/test_extension_registry.py @@ -628,7 +628,6 @@ def test_covers_struct_mismatched_types_fails(): assert not covers(covered, param_ctx, {}) - @pytest.mark.parametrize( "test_case", [ diff --git a/uv.lock b/uv.lock index 717676d..7eb6631 100644 --- a/uv.lock +++ b/uv.lock @@ -371,29 +371,17 @@ wheels = [ [[package]] name = "protobuf" -version = "5.29.5" +version = "6.33.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/43/29/d09e70352e4e88c9c7a198d5645d7277811448d76c23b00345670f7c8a38/protobuf-5.29.5.tar.gz", hash = "sha256:bc1463bafd4b0929216c35f437a8e28731a2b7fe3d98bb77a600efced5a15c84", size = 425226, upload-time = "2025-05-28T23:51:59.82Z" } +sdist = { url = "https://files.pythonhosted.org/packages/34/44/e49ecff446afeec9d1a66d6bbf9adc21e3c7cea7803a920ca3773379d4f6/protobuf-6.33.2.tar.gz", hash = "sha256:56dc370c91fbb8ac85bc13582c9e373569668a290aa2e66a590c2a0d35ddb9e4", size = 444296, upload-time = "2025-12-06T00:17:53.311Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5f/11/6e40e9fc5bba02988a214c07cf324595789ca7820160bfd1f8be96e48539/protobuf-5.29.5-cp310-abi3-win32.whl", hash = "sha256:3f1c6468a2cfd102ff4703976138844f78ebd1fb45f49011afc5139e9e283079", size = 422963, upload-time = "2025-05-28T23:51:41.204Z" }, - { url = "https://files.pythonhosted.org/packages/81/7f/73cefb093e1a2a7c3ffd839e6f9fcafb7a427d300c7f8aef9c64405d8ac6/protobuf-5.29.5-cp310-abi3-win_amd64.whl", hash = "sha256:3f76e3a3675b4a4d867b52e4a5f5b78a2ef9565549d4037e06cf7b0942b1d3fc", size = 434818, upload-time = "2025-05-28T23:51:44.297Z" }, - { url = "https://files.pythonhosted.org/packages/dd/73/10e1661c21f139f2c6ad9b23040ff36fee624310dc28fba20d33fdae124c/protobuf-5.29.5-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:e38c5add5a311f2a6eb0340716ef9b039c1dfa428b28f25a7838ac329204a671", size = 418091, upload-time = "2025-05-28T23:51:45.907Z" }, - { url = "https://files.pythonhosted.org/packages/6c/04/98f6f8cf5b07ab1294c13f34b4e69b3722bb609c5b701d6c169828f9f8aa/protobuf-5.29.5-cp38-abi3-manylinux2014_aarch64.whl", hash = "sha256:fa18533a299d7ab6c55a238bf8629311439995f2e7eca5caaff08663606e9015", size = 319824, upload-time = "2025-05-28T23:51:47.545Z" }, - { url = "https://files.pythonhosted.org/packages/85/e4/07c80521879c2d15f321465ac24c70efe2381378c00bf5e56a0f4fbac8cd/protobuf-5.29.5-cp38-abi3-manylinux2014_x86_64.whl", hash = "sha256:63848923da3325e1bf7e9003d680ce6e14b07e55d0473253a690c3a8b8fd6e61", size = 319942, upload-time = "2025-05-28T23:51:49.11Z" }, - { url = "https://files.pythonhosted.org/packages/7e/cc/7e77861000a0691aeea8f4566e5d3aa716f2b1dece4a24439437e41d3d25/protobuf-5.29.5-py3-none-any.whl", hash = "sha256:6cf42630262c59b2d8de33954443d94b746c952b01434fc58a417fdbd2e84bd5", size = 172823, upload-time = "2025-05-28T23:51:58.157Z" }, -] - -[[package]] -name = "protoletariat" -version = "3.3.10" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "protobuf" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/36/60/31c8dac4e060bce3f102195409128838fc5830e4e589f7962eb7531b4a27/protoletariat-3.3.10.tar.gz", hash = "sha256:bfa0e663fe4c9e3584101779b8b9f5a77b8af623aa25f680e0559b7d2609039b", size = 20694, upload-time = "2025-03-19T22:39:15.043Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/30/6b/d8b8fb09a31f85685d41f63d0d4a807c14aca175c71e17bebcfbf5dc768a/protoletariat-3.3.10-py3-none-any.whl", hash = "sha256:4b0ab790a1791613d9ef1c4159e03424a7f056592ca66578ba585ae96686ee2d", size = 20736, upload-time = "2025-03-19T22:39:13.679Z" }, + { url = "https://files.pythonhosted.org/packages/bc/91/1e3a34881a88697a7354ffd177e8746e97a722e5e8db101544b47e84afb1/protobuf-6.33.2-cp310-abi3-win32.whl", hash = "sha256:87eb388bd2d0f78febd8f4c8779c79247b26a5befad525008e49a6955787ff3d", size = 425603, upload-time = "2025-12-06T00:17:41.114Z" }, + { url = "https://files.pythonhosted.org/packages/64/20/4d50191997e917ae13ad0a235c8b42d8c1ab9c3e6fd455ca16d416944355/protobuf-6.33.2-cp310-abi3-win_amd64.whl", hash = "sha256:fc2a0e8b05b180e5fc0dd1559fe8ebdae21a27e81ac77728fb6c42b12c7419b4", size = 436930, upload-time = "2025-12-06T00:17:43.278Z" }, + { url = "https://files.pythonhosted.org/packages/b2/ca/7e485da88ba45c920fb3f50ae78de29ab925d9e54ef0de678306abfbb497/protobuf-6.33.2-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:d9b19771ca75935b3a4422957bc518b0cecb978b31d1dd12037b088f6bcc0e43", size = 427621, upload-time = "2025-12-06T00:17:44.445Z" }, + { url = "https://files.pythonhosted.org/packages/7d/4f/f743761e41d3b2b2566748eb76bbff2b43e14d5fcab694f494a16458b05f/protobuf-6.33.2-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:b5d3b5625192214066d99b2b605f5783483575656784de223f00a8d00754fc0e", size = 324460, upload-time = "2025-12-06T00:17:45.678Z" }, + { url = "https://files.pythonhosted.org/packages/b1/fa/26468d00a92824020f6f2090d827078c09c9c587e34cbfd2d0c7911221f8/protobuf-6.33.2-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8cd7640aee0b7828b6d03ae518b5b4806fdfc1afe8de82f79c3454f8aef29872", size = 339168, upload-time = "2025-12-06T00:17:46.813Z" }, + { url = "https://files.pythonhosted.org/packages/56/13/333b8f421738f149d4fe5e49553bc2a2ab75235486259f689b4b91f96cec/protobuf-6.33.2-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:1f8017c48c07ec5859106533b682260ba3d7c5567b1ca1f24297ce03384d1b4f", size = 323270, upload-time = "2025-12-06T00:17:48.253Z" }, + { url = "https://files.pythonhosted.org/packages/0e/15/4f02896cc3df04fc465010a4c6a0cd89810f54617a32a70ef531ed75d61c/protobuf-6.33.2-py3-none-any.whl", hash = "sha256:7636aad9bb01768870266de5dc009de2d1b936771b38a793f73cbbf279c91c5c", size = 170501, upload-time = "2025-12-06T00:17:52.211Z" }, ] [[package]] @@ -687,14 +675,13 @@ gen-extensions = [ ] gen-proto = [ { name = "protobuf" }, - { name = "protoletariat" }, ] [package.metadata] requires-dist = [ { name = "antlr4-python3-runtime", marker = "extra == 'extensions'" }, { name = "deepdiff", marker = "extra == 'sql'" }, - { name = "protobuf", specifier = ">=3.19.1,<6" }, + { name = "protobuf", specifier = ">=6.33,<7" }, { name = "pyyaml", marker = "extra == 'extensions'" }, { name = "sqloxide", marker = "extra == 'sql'" }, ] @@ -711,10 +698,7 @@ dev = [ { name = "sqloxide" }, ] gen-extensions = [{ name = "datamodel-code-generator" }] -gen-proto = [ - { name = "protobuf", specifier = ">=3.19.1,<6" }, - { name = "protoletariat", specifier = ">=3.0.0" }, -] +gen-proto = [{ name = "protobuf", specifier = ">=6.33,<7" }] [[package]] name = "tomli"