GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — SparkOfflineStore.offline_write_batch ignores table_format and writes with file_format · Issue #6955 · feast-dev/feast Open DescriptionProblem
# contrib/spark_offline_store/spark_source.py:45 file_format: Optional[str] = None, table_format: Optional[TableFormat] = None, ... # :66 table_format: The table metadata format (iceberg, delta, hudi, etc.). Optional and separate from file_format. They are separate fields in the proto too: // DataSource.proto message SparkOptions { ... string file_format = 4; TableFormat table_format = 6; }
# contrib/spark_offline_store/spark.py:398 df_existing = spark_session.read.format( feature_view.batch_source.file_format # :400 ).load(feature_view.batch_source.path) ... df_batch.write.format(feature_view.batch_source.file_format).mode( # :406 "append" ).save(feature_view.batch_source.path) So a The catalog-addressed case does not reach a wrong writer, but has no writer at all: # :414 raise NotImplementedError( "offline_write_batch not implemented for batch sources specified by a table" ) Not specific to one table formatThis affects anything expressed through
# :369 if isinstance(feature_view.batch_source, IcebergSource): _iceberg_offline_write_batch(config, feature_view, table) return That branch is the precedent I would follow, but it keys off the data source class, so it does nothing for a plain Why I am raising it rather than sending a patchI do not think the fix is obvious, and the choice is a design decision rather than a bug fix:
There is also a prior question: if Happy to implement whichever direction maintainers prefer. I ran into this looking at what a Spark write path for Lance would need, so I have a concrete case to test against, but I would rather not guess at the intended semantics of the two axes. ReproductionA Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |