Skip to content

Commit 2bb77cd

Browse files
committed
chore: regenerate protobuf files for multiple join keys support
- Regenerate Python protobuf files after rebase - Update Entity protobuf bindings with new join_keys field - Ensure compatibility with upstream codebase changes Signed-off-by: Artemio Padilla <artemiopadilla@gmail.com> Signed-off-by: Artemio Padilla <artemio.padilla@circulodecredito.com.mx>
1 parent e8b7cf3 commit 2bb77cd

File tree

93 files changed

+2759
-991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2759
-991
lines changed

sdk/python/feast/protos/feast/core/Aggregation_pb2.py

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/feast/protos/feast/core/Aggregation_pb2.pyi

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22
@generated by mypy-protobuf. Do not edit manually!
33
isort:skip_file
44
"""
5+
56
import builtins
67
import google.protobuf.descriptor
78
import google.protobuf.duration_pb2
89
import google.protobuf.message
9-
import sys
10-
11-
if sys.version_info >= (3, 8):
12-
import typing as typing_extensions
13-
else:
14-
import typing_extensions
10+
import typing
1511

1612
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
1713

14+
@typing.final
1815
class Aggregation(google.protobuf.message.Message):
1916
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2017

@@ -36,7 +33,7 @@ class Aggregation(google.protobuf.message.Message):
3633
time_window: google.protobuf.duration_pb2.Duration | None = ...,
3734
slide_interval: google.protobuf.duration_pb2.Duration | None = ...,
3835
) -> None: ...
39-
def HasField(self, field_name: typing_extensions.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"]) -> builtins.bool: ...
40-
def ClearField(self, field_name: typing_extensions.Literal["column", b"column", "function", b"function", "slide_interval", b"slide_interval", "time_window", b"time_window"]) -> None: ...
36+
def HasField(self, field_name: typing.Literal["slide_interval", b"slide_interval", "time_window", b"time_window"]) -> builtins.bool: ...
37+
def ClearField(self, field_name: typing.Literal["column", b"column", "function", b"function", "slide_interval", b"slide_interval", "time_window", b"time_window"]) -> None: ...
4138

4239
global___Aggregation = Aggregation
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.75.1'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in feast/core/Aggregation_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)

sdk/python/feast/protos/feast/core/DataFormat_pb2.py

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/python/feast/protos/feast/core/DataFormat_pb2.pyi

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616
See the License for the specific language governing permissions and
1717
limitations under the License.
1818
"""
19+
1920
import builtins
2021
import collections.abc
2122
import google.protobuf.descriptor
2223
import google.protobuf.internal.containers
2324
import google.protobuf.message
24-
import sys
25-
26-
if sys.version_info >= (3, 8):
27-
import typing as typing_extensions
28-
else:
29-
import typing_extensions
25+
import typing
3026

3127
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
3228

29+
@typing.final
3330
class FileFormat(google.protobuf.message.Message):
3431
"""Defines the file format encoding the features/entity data in files"""
3532

3633
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3734

35+
@typing.final
3836
class ParquetFormat(google.protobuf.message.Message):
3937
"""Defines options for the Parquet data format"""
4038

@@ -53,26 +51,30 @@ class FileFormat(google.protobuf.message.Message):
5351
"""Deprecated: Delta Lake is a table format, not a file format.
5452
Use TableFormat.DeltaFormat instead for Delta Lake support.
5553
"""
54+
5655
def __init__(
5756
self,
5857
*,
5958
parquet_format: global___FileFormat.ParquetFormat | None = ...,
6059
delta_format: global___TableFormat.DeltaFormat | None = ...,
6160
) -> None: ...
62-
def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> builtins.bool: ...
63-
def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> None: ...
64-
def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["parquet_format", "delta_format"] | None: ...
61+
def HasField(self, field_name: typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> builtins.bool: ...
62+
def ClearField(self, field_name: typing.Literal["delta_format", b"delta_format", "format", b"format", "parquet_format", b"parquet_format"]) -> None: ...
63+
def WhichOneof(self, oneof_group: typing.Literal["format", b"format"]) -> typing.Literal["parquet_format", "delta_format"] | None: ...
6564

6665
global___FileFormat = FileFormat
6766

67+
@typing.final
6868
class TableFormat(google.protobuf.message.Message):
6969
DESCRIPTOR: google.protobuf.descriptor.Descriptor
7070

71+
@typing.final
7172
class IcebergFormat(google.protobuf.message.Message):
7273
"""Defines options for Apache Iceberg table format"""
7374

7475
DESCRIPTOR: google.protobuf.descriptor.Descriptor
7576

77+
@typing.final
7678
class PropertiesEntry(google.protobuf.message.Message):
7779
DESCRIPTOR: google.protobuf.descriptor.Descriptor
7880

@@ -86,7 +88,7 @@ class TableFormat(google.protobuf.message.Message):
8688
key: builtins.str = ...,
8789
value: builtins.str = ...,
8890
) -> None: ...
89-
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
91+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
9092

9193
CATALOG_FIELD_NUMBER: builtins.int
9294
NAMESPACE_FIELD_NUMBER: builtins.int
@@ -100,20 +102,23 @@ class TableFormat(google.protobuf.message.Message):
100102
"""Additional properties for Iceberg configuration
101103
Examples: warehouse location, snapshot-id, as-of-timestamp, etc.
102104
"""
105+
103106
def __init__(
104107
self,
105108
*,
106109
catalog: builtins.str = ...,
107110
namespace: builtins.str = ...,
108111
properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
109112
) -> None: ...
110-
def ClearField(self, field_name: typing_extensions.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"]) -> None: ...
113+
def ClearField(self, field_name: typing.Literal["catalog", b"catalog", "namespace", b"namespace", "properties", b"properties"]) -> None: ...
111114

115+
@typing.final
112116
class DeltaFormat(google.protobuf.message.Message):
113117
"""Defines options for Delta Lake table format"""
114118

115119
DESCRIPTOR: google.protobuf.descriptor.Descriptor
116120

121+
@typing.final
117122
class PropertiesEntry(google.protobuf.message.Message):
118123
DESCRIPTOR: google.protobuf.descriptor.Descriptor
119124

@@ -127,7 +132,7 @@ class TableFormat(google.protobuf.message.Message):
127132
key: builtins.str = ...,
128133
value: builtins.str = ...,
129134
) -> None: ...
130-
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
135+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
131136

132137
CHECKPOINT_LOCATION_FIELD_NUMBER: builtins.int
133138
PROPERTIES_FIELD_NUMBER: builtins.int
@@ -138,19 +143,22 @@ class TableFormat(google.protobuf.message.Message):
138143
"""Additional properties for Delta configuration
139144
Examples: auto-optimize settings, vacuum settings, etc.
140145
"""
146+
141147
def __init__(
142148
self,
143149
*,
144150
checkpoint_location: builtins.str = ...,
145151
properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
146152
) -> None: ...
147-
def ClearField(self, field_name: typing_extensions.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"]) -> None: ...
153+
def ClearField(self, field_name: typing.Literal["checkpoint_location", b"checkpoint_location", "properties", b"properties"]) -> None: ...
148154

155+
@typing.final
149156
class HudiFormat(google.protobuf.message.Message):
150157
"""Defines options for Apache Hudi table format"""
151158

152159
DESCRIPTOR: google.protobuf.descriptor.Descriptor
153160

161+
@typing.final
154162
class PropertiesEntry(google.protobuf.message.Message):
155163
DESCRIPTOR: google.protobuf.descriptor.Descriptor
156164

@@ -164,7 +172,7 @@ class TableFormat(google.protobuf.message.Message):
164172
key: builtins.str = ...,
165173
value: builtins.str = ...,
166174
) -> None: ...
167-
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
175+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
168176

169177
TABLE_TYPE_FIELD_NUMBER: builtins.int
170178
RECORD_KEY_FIELD_NUMBER: builtins.int
@@ -181,6 +189,7 @@ class TableFormat(google.protobuf.message.Message):
181189
"""Additional properties for Hudi configuration
182190
Examples: compaction strategy, indexing options, etc.
183191
"""
192+
184193
def __init__(
185194
self,
186195
*,
@@ -189,7 +198,7 @@ class TableFormat(google.protobuf.message.Message):
189198
precombine_field: builtins.str = ...,
190199
properties: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
191200
) -> None: ...
192-
def ClearField(self, field_name: typing_extensions.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"]) -> None: ...
201+
def ClearField(self, field_name: typing.Literal["precombine_field", b"precombine_field", "properties", b"properties", "record_key", b"record_key", "table_type", b"table_type"]) -> None: ...
193202

194203
ICEBERG_FORMAT_FIELD_NUMBER: builtins.int
195204
DELTA_FORMAT_FIELD_NUMBER: builtins.int
@@ -207,17 +216,19 @@ class TableFormat(google.protobuf.message.Message):
207216
delta_format: global___TableFormat.DeltaFormat | None = ...,
208217
hudi_format: global___TableFormat.HudiFormat | None = ...,
209218
) -> None: ...
210-
def HasField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> builtins.bool: ...
211-
def ClearField(self, field_name: typing_extensions.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> None: ...
212-
def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["iceberg_format", "delta_format", "hudi_format"] | None: ...
219+
def HasField(self, field_name: typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> builtins.bool: ...
220+
def ClearField(self, field_name: typing.Literal["delta_format", b"delta_format", "format", b"format", "hudi_format", b"hudi_format", "iceberg_format", b"iceberg_format"]) -> None: ...
221+
def WhichOneof(self, oneof_group: typing.Literal["format", b"format"]) -> typing.Literal["iceberg_format", "delta_format", "hudi_format"] | None: ...
213222

214223
global___TableFormat = TableFormat
215224

225+
@typing.final
216226
class StreamFormat(google.protobuf.message.Message):
217227
"""Defines the data format encoding features/entity data in data streams"""
218228

219229
DESCRIPTOR: google.protobuf.descriptor.Descriptor
220230

231+
@typing.final
221232
class ProtoFormat(google.protobuf.message.Message):
222233
"""Defines options for the protobuf data format"""
223234

@@ -233,8 +244,9 @@ class StreamFormat(google.protobuf.message.Message):
233244
*,
234245
class_path: builtins.str = ...,
235246
) -> None: ...
236-
def ClearField(self, field_name: typing_extensions.Literal["class_path", b"class_path"]) -> None: ...
247+
def ClearField(self, field_name: typing.Literal["class_path", b"class_path"]) -> None: ...
237248

249+
@typing.final
238250
class AvroFormat(google.protobuf.message.Message):
239251
"""Defines options for the avro data format"""
240252

@@ -250,8 +262,9 @@ class StreamFormat(google.protobuf.message.Message):
250262
*,
251263
schema_json: builtins.str = ...,
252264
) -> None: ...
253-
def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ...
265+
def ClearField(self, field_name: typing.Literal["schema_json", b"schema_json"]) -> None: ...
254266

267+
@typing.final
255268
class JsonFormat(google.protobuf.message.Message):
256269
DESCRIPTOR: google.protobuf.descriptor.Descriptor
257270

@@ -262,7 +275,7 @@ class StreamFormat(google.protobuf.message.Message):
262275
*,
263276
schema_json: builtins.str = ...,
264277
) -> None: ...
265-
def ClearField(self, field_name: typing_extensions.Literal["schema_json", b"schema_json"]) -> None: ...
278+
def ClearField(self, field_name: typing.Literal["schema_json", b"schema_json"]) -> None: ...
266279

267280
AVRO_FORMAT_FIELD_NUMBER: builtins.int
268281
PROTO_FORMAT_FIELD_NUMBER: builtins.int
@@ -280,8 +293,8 @@ class StreamFormat(google.protobuf.message.Message):
280293
proto_format: global___StreamFormat.ProtoFormat | None = ...,
281294
json_format: global___StreamFormat.JsonFormat | None = ...,
282295
) -> None: ...
283-
def HasField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> builtins.bool: ...
284-
def ClearField(self, field_name: typing_extensions.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> None: ...
285-
def WhichOneof(self, oneof_group: typing_extensions.Literal["format", b"format"]) -> typing_extensions.Literal["avro_format", "proto_format", "json_format"] | None: ...
296+
def HasField(self, field_name: typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> builtins.bool: ...
297+
def ClearField(self, field_name: typing.Literal["avro_format", b"avro_format", "format", b"format", "json_format", b"json_format", "proto_format", b"proto_format"]) -> None: ...
298+
def WhichOneof(self, oneof_group: typing.Literal["format", b"format"]) -> typing.Literal["avro_format", "proto_format", "json_format"] | None: ...
286299

287300
global___StreamFormat = StreamFormat
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
22
"""Client and server classes corresponding to protobuf-defined services."""
33
import grpc
4+
import warnings
45

6+
7+
GRPC_GENERATED_VERSION = '1.75.1'
8+
GRPC_VERSION = grpc.__version__
9+
_version_not_supported = False
10+
11+
try:
12+
from grpc._utilities import first_version_is_lower
13+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14+
except ImportError:
15+
_version_not_supported = True
16+
17+
if _version_not_supported:
18+
raise RuntimeError(
19+
f'The grpc package installed is at version {GRPC_VERSION},'
20+
+ f' but the generated code in feast/core/DataFormat_pb2_grpc.py depends on'
21+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
22+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24+
)

0 commit comments

Comments
 (0)