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

[R] Work around masking of data type functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • R
    • None

    Description

      There are more than two dozen data type functions in the arrow package, and they are named very generically, so they represent a large surface area for potential masking problems, which are likely to occur in user environments, not in our CI. If these masking errors do occur, they will probably give frustratingly unhelpful error messages. This happened to me with rlang::string(). The error was:

      Error in is_integerish(x) : argument "x" is missing, with no default

      This can be worked around with some non-standard eval magic.

      I implemented a working version of this in https://github.com/apache/arrow/pull/9952 but we removed it before merging that PR because there were questions about whether there was a better way to implement it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              icook Ian Cook
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: