carloea2 opened a new issue, #8167:
URL: https://github.com/apache/texera/issues/8167

   ### What happened?
   
   The Pie Chart descriptor validates its Value Column but does not validate 
its required Name Column. An empty Name Column passes workflow code generation 
and becomes an empty pandas column name at execution time.
   
   Before: an empty Name Column reaches pandas and fails with a KeyError.
   
   After: the descriptor rejects the configuration with `Name Column cannot be 
empty` before Python execution.
   
   ### How to reproduce?
   
   1. Create a Pie Chart operator.
   2. Set Value Column to a numeric column such as `amount`.
   3. Leave Name Column empty.
   4. Generate or run the operator code.
   5. Observe that the generated `dropna` call looks up an empty column name 
and fails.
   
   ### Version or branch
   
   1.3.0-incubating-SNAPSHOT on main
   
   ### Commit hash
   
   70c21145887920528d7d5540e3fb790b43e8b759
   
   ### Relevant log output
   
   pandas raises a KeyError for the empty column name.


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