Skip to content

Compute() with Oracle - missing keyword GLOBAL #621

@SamuelAllain

Description

@SamuelAllain

Hi,

First of all, thank you for your work. I think there's a bug with the command compute() when used with Oracle connection.

library(ROracle)
library(dplyr)
drv <- dbDriver("Oracle")
conn <- dbConnect(drv, dbname = "DATABASE")
tbl(conn, "table") %>% compute

Returns this error

Error in .oci.SendQuery(conn, statement, data = data, prefetch = prefetch,  : 
ORA-14459: missing GLOBAL keyword

It's exactly the same that happens if you do dbExecute(conn, 'CREATE TEMPORARY TABLE table_name(id NUMBER)') instead of dbExecute(conn, 'CREATE GLOBAL TEMPORARY TABLE table_name(id NUMBER)') which works fine. See other people concerned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviordplyr verbs 🤖Translation of dplyr verbs to SQL

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions