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

   ### What happened?
   
   ### Problem
   
   A doc says:
   
   <https://beam.apache.org/documentation/programming-guide/#filtering-events>
   
   ```java
   purchases.apply(Filter
       .whereFieldName("costCents", c -> c > 100 * 20));
   ```
   
   Another doc says:
   
   
<https://javadoc.io/static/org.apache.beam/beam-sdks-java-core/2.42.0/org/apache/beam/sdk/schemas/transforms/Filter.html>
   
   ```java
    locations.apply(Filter
       .whereFieldName("latitude", lat -> lat < 40.720 && lat > 40.699));
   ```
   
   But they don't compile due to `Filter.whereFieldName()` is undefined.
   
   ### Workaround
   
   I confirmed this worked.
   
   ```java
       PCollection<Row> nonNegTemperature = temperature.apply(
           Filter.<Row>create().whereFieldName("temperature", temp -> (float) 
temp >= 0));
   ```
   
   ### Solution
   
   - Fix docs?
   - Or provide methods from `Filter.Inner` to `Filter`?
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: website


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to