timsaucer commented on PR #17289:
URL: https://github.com/apache/datafusion/pull/17289#issuecomment-3325920674

   Adding a note, mostly for myself, to address later.
   
   The approach here works but it is sub-optimal. Suppose I have this DataFrame:
   
   ```
   +--------------+--------------+
   | a            | b            |
   +--------------+--------------+
   | 0.1111111111 | [1, 2, 3]    |
   | 0.2222222222 |              |
   |              | [4, 5, 6, 7] |
   | 0.4444444444 | []           |
   +--------------+--------------+
   ```
   
   Now I want to make a simple transformation. I want to check if the values 
are equal to the literal `1`.
   
   It would be nice to have something along the lines of
   
   ```rust
   df.select(vec![array_transform(col("b").eq(lit(1))])
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to