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

Comments

@OssiLehtinen
Copy link

@OssiLehtinen 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

@DyfanJones DyfanJones commented Dec 11, 2019

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

@DyfanJones DyfanJones added the bug label Dec 11, 2019
@DyfanJones DyfanJones self-assigned this Dec 11, 2019
@DyfanJones
Copy link
Owner

@DyfanJones DyfanJones commented Dec 11, 2019

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

@DyfanJones DyfanJones closed this Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.