Open laysakura opened 1 year ago
Let me try to work on this task.
One idea immediately comes to my mind is that we may have different PipelineOption
for different Runner
for the users in the future, the macro should be able to take the PipelineOption
or the individual data members of PipelineOption
as parameters.
Something like this:
#[apache_beam::DirectRunner(DirectRunnerOptions)]
fn main(root: PValue) {
root.apply(...);
}
@Kelvinyu1117 Thanks! Since this feature would affect developer experiences so much, could you start from a design doc (that should be listed here) and request reviews in the discord?
Sure, let me create a document and we can move the discussion on discord.
What needs to happen?
We are writing a pipeline like:
in main
in test
https://github.com/laysakura/beam/blob/54b4d233b5c5a07c3f9d406b723d198f60d3c8ef/sdks/rust/tests/primitives_test.rs#L91-L103
As you may see, we have a bit of boilerplate codes.
We may want to write like:
The task should be like:
Issue Priority
Priority: 3 (nice-to-have improvement)
Issue Components