Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14051

[R] Handle conditionals enclosing aggregate expressions

    XMLWordPrintableJSON

Details

    Description

      This type of summarise() expression does not work in arrow:

      Table$create(x = c(0, 1, 1), y = c(2, 3, 5), z = c(8, 13, 21)) %>%
        group_by(x) %>%
        summarise(r = ifelse(n() > 1, mean(y), mean(z)))

      Attachments

        Issue Links

          Activity

            People

              paleolimbot Dewey Dunnington
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m