You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "keyliug (via GitHub)" <gi...@apache.org> on 2024/02/08 18:40:32 UTC

[I] [Bug]: DualInputNestedValueProvider is not able to get Value properly if input is RuntimeValueProvider. [beam]

keyliug opened a new issue, #30261:
URL: https://github.com/apache/beam/issues/30261

   ### What happened?
   
   Background:
   DualInputNestedValueProvider
   https://github.com/GoogleCloudPlatform/DataflowTemplates/blob/c7cb59f37766b7edfd0eb14f6f184f7c13b7909b/v1/src/main/java/com/google/cloud/teleport/util/DualInputNestedValueProvider.java#L29 is not in Apache Beam package. However, it uses ValueProvider from SDK.
   
   The issue:
   If one of the input for DualInputNestedValueProvider is RuntimeValueProvider, then the input will still be a ValueProvider in input.getX() or input.getY() while we're expecting the real value of the ValueProvider should be fetched by the call.
   
   ### Issue Priority
   
   Priority: 3 (minor)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: DualInputNestedValueProvider is not able to get Value properly if input is RuntimeValueProvider. [beam]

Posted by "Abacn (via GitHub)" <gi...@apache.org>.
Abacn commented on issue #30261:
URL: https://github.com/apache/beam/issues/30261#issuecomment-1934794777

   > DualInputNestedValueProvider is not able to get Value properly
   
   Is your code requesting the value happening in job submission time (e.g. pipeline expansion, transform's configuration) or run time (e.g. in processElement of a DoFn) ? If it is the latter, this WAI as RuntimeValueProvider's value weren't be available during pipeline submission time


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: DualInputNestedValueProvider is not able to get Value properly if input is RuntimeValueProvider. [beam]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #30261:
URL: https://github.com/apache/beam/issues/30261#issuecomment-4089905012

   This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: DualInputNestedValueProvider is not able to get Value properly if input is RuntimeValueProvider. [beam]

Posted by "keyliug (via GitHub)" <gi...@apache.org>.
keyliug commented on issue #30261:
URL: https://github.com/apache/beam/issues/30261#issuecomment-1934912441

   In my case, when I was using DualInputNestedValueProvider, both X and Y are of the same type, ValueProvider<String>. When we're doing input.getX() and input.getY(), we are expecting to get the value. However, if X or Y is RuntimeValueProvider, input.getY() is still ValueProvider instead of String type.
   
   ![image](https://github.com/apache/beam/assets/153689237/d8dc5ee4-0440-47c3-9b06-0806f446f88b)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: DualInputNestedValueProvider is not able to get Value properly if input is RuntimeValueProvider. [beam]

Posted by "keyliug (via GitHub)" <gi...@apache.org>.
keyliug commented on issue #30261:
URL: https://github.com/apache/beam/issues/30261#issuecomment-1934806325

   The code is requesting the value at the runtime (e.g. in processElement of a DoFn).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org