Repository navigation
Commit 1196e22
feat: Add LanceFormat table format with version/tag pinning
Extends the existing TableFormat abstraction (#5650) with Lance rather than
introducing a separate data source, so Lance is addressed the same way Iceberg,
Delta and Hudi already are. Closes part of #6899.
LanceFormat carries catalog/namespace addressing plus an optional pin to a
dataset version or tag. Because SparkSource already drives its reader
generically from table_format.format_type.value and table_format.properties,
this works with SparkSource with no changes to it: format_type.value is
"lance", and the pin is mirrored into properties as lance.version / lance.tag.
version is validated as >= 1 so the Python and proto semantics agree. Lance
dataset versions start at 1 and the proto treats 0 as unset, so without that
guard version=0 would not round-trip, since to_proto/from_proto read 0 as
absent. version and tag are mutually exclusive, because a tag already resolves
to a version.
Only DataFormat_pb2 is regenerated, using grpcio-tools 1.62.3 so the emitted
gencode stays at the 4.25.1 level the other checked-in protos use. Regenerating
with the pinned grpcio-tools 1.84.0 instead emits gencode that calls
ValidateProtobufRuntimeVersion for protobuf 7.35.1, which would break the
declared protobuf>=4.24.0 floor for that one module.
DataSource_pb2 is deliberately left untouched. It is already stale against
DataSource.proto on master, missing ConnectionRef entries, and regenerating it
produces ~125 lines of churn unrelated to this change.
Signed-off-by: hao-xu5 <[email protected]>1 parent 298c3f6 commit 1196e22
5 files changed
Lines changed: 372 additions & 25 deletions
File tree
- protos/feast/core
- sdk/python
- feast
- protos/feast/core
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
78 | 99 | | |
79 | 100 | | |
80 | 101 | | |
81 | 102 | | |
82 | 103 | | |
| 104 | + | |
83 | 105 | | |
84 | 106 | | |
85 | 107 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
194 | 247 | | |
195 | 248 | | |
196 | 249 | | |
| 250 | + | |
197 | 251 | | |
198 | 252 | | |
199 | 253 | | |
200 | 254 | | |
201 | 255 | | |
202 | 256 | | |
| 257 | + | |
| 258 | + | |
203 | 259 | | |
204 | 260 | | |
205 | 261 | | |
206 | 262 | | |
207 | 263 | | |
208 | 264 | | |
| 265 | + | |
209 | 266 | | |
210 | | - | |
211 | | - | |
212 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
213 | 270 | | |
214 | 271 | | |
215 | 272 | | |
| |||
0 commit comments