Skip to content

Commit 3c89ce3

Browse files
Updating code to support the bytewax versions incompatibility after the upgrade. These classes ManualInputConfig and ManualOutputConfig have been removed from the new versions. hope this fixes the lint errors.
Signed-off-by: Lokesh Rangineni <lokeshforjava@gmail.com> Signed-off-by: Lokesh Rangineni <lokeshforjava@gmail.com>
1 parent ab7f1eb commit 3c89ce3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/python/feast/infra/materialization/contrib/bytewax/bytewax_materialization_dataflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import pyarrow.parquet as pq
77
from bytewax.dataflow import Dataflow # type: ignore
88
from bytewax.execution import cluster_main
9-
from bytewax.inputs import ManualInputConfig
10-
from bytewax.outputs import ManualOutputConfig
9+
from bytewax.inputs import DynamicSource
10+
from bytewax.outputs import DynamicSink
1111

1212
from feast import FeatureStore, FeatureView, RepoConfig
1313
from feast.utils import _convert_arrow_to_proto, _run_pyarrow_field_mapping
@@ -77,7 +77,7 @@ def output_fn(mini_batch):
7777

7878
def _run_dataflow(self):
7979
flow = Dataflow()
80-
flow.input("inp", ManualInputConfig(self.input_builder))
80+
flow.input("inp", DynamicSource(self.input_builder))
8181
flow.flat_map(self.process_path)
82-
flow.capture(ManualOutputConfig(self.output_builder))
82+
flow.output(DynamicSink(self.output_builder))
8383
cluster_main(flow, [], 0)

0 commit comments

Comments
 (0)