Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutate(as.character) produces an error (unknown type) #45

Closed
OssiLehtinen opened this issue Dec 11, 2019 · 2 comments
Closed

mutate(as.character) produces an error (unknown type) #45

OssiLehtinen opened this issue Dec 11, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@OssiLehtinen
Copy link

OssiLehtinen commented Dec 11, 2019

Issue Description

Similar to the earlier issue with as.integer #42, as.character also produces an error, as 'string' is an unknown type. Here we should use 'varchar'.

Reproducible Example

Example:

library(RAthena)
library(DBI)
con <- dbConnect(RAthena::athena(),
               profile_name = "rathena")

tbl(con, "iris")) %>%
mutate(sepal_length = as.character(sepal_length))

Error: SYNTAX_ERROR: line 1:8: Unknown type: string

Surely related again to the differences between HIVE DDL and Presto SQL Syntax.

@DyfanJones
Copy link
Owner

Thanks for point this out :) Apologies for this issue, I will fix this.

@DyfanJones DyfanJones added the bug Something isn't working label Dec 11, 2019
@DyfanJones DyfanJones self-assigned this Dec 11, 2019
@DyfanJones
Copy link
Owner

This has now been fixed in latest dev version. Thanks for identifying bug 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants