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

   ### What happened?
   
   Three of the six R code templates in 
`amber/src/main/python/pytexera/udf/examples/rudf/r_tuple_operator.py` are 
invalid R:
   
   | Template | Defect | R error |
   | --- | --- | --- |
   | `r_tuple_source_one_tuple` | trailing comma in `list(...)` | `argument 4 
is empty` (eval) |
   | `r_tuple_source_multiple_tuples` | missing `}`, plus the trailing comma | 
`unexpected ')'` (parse) |
   | `r_tuple_udf_echo_multiple_tuples` | missing `}` | `unexpected ')'` 
(parse) |
   
   In the two "multiple tuples" templates the final `})` closes only the `for` 
block, leaving `function(...) {` unclosed:
   
   ### How to reproduce?
   
   No UI steps and no extra R packages needed.
   
   1. Paste the body of `r_tuple_udf_echo_multiple_tuples` into `t.R` and run 
`Rscript -e 'parse(text = readLines("t.R"))'` → `unexpected ')'`. Same for 
`r_tuple_source_multiple_tuples`.
   2. `Rscript -e 'list(attr1 = 1L, attr2 = "A", attr3 = TRUE, )'` → `argument 
4 is empty`. This is the `list(...)` literal from the two source templates.
   
   ### Version/Branch
   
   1.3.0-incubating-SNAPSHOT (main)
   
   ### Commit Hash (Optional)
   
   _No response_
   
   ### What browsers are you seeing the problem on?
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   
   ```


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