Skip to content

Syntax error shown instead of unsupported function error #1000

@slhck

Description

@slhck

I wanted to test a function using quantile. I see it has been introduced here: 19909fa

Unfortunately it isn't available for SQLite, but instead of getting a message that would let me know that, there is a very obscure syntax error shown:

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(dbplyr)
#> 
#> Attaching package: 'dbplyr'
#> The following objects are masked from 'package:dplyr':
#> 
#>     ident, sql

memdb_frame(x = runif(100)) %>%
  mutate(x = quantile(x, 0.95))
#> Warning: Missing values are always removed in SQL aggregation functions.
#> Use `na.rm = TRUE` to silence this warning
#> This warning is displayed once every 8 hours.
#> Error: near "(": syntax error

Created on 2022-09-08 by the reprex package (v2.0.1)

I was wondering if it is possible to allow for better user-facing error messages in cases where particular functions are not supported for a database dialect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions