Skip to content

translation of paste not working for Redshift query #458

Description

@dsen6644

paste() is translated as concat_ws which is not a function in redshift. It uses either the concat function or the || operator. Similiar issue to #155 .

df %>% mutate(month_year = paste(year, month))

#> Error in new_result(connection@ptr, statement, immediate): nanodbc/nanodbc.cpp:1374: 00000: [Amazon][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState 42883] ERROR:  function concat_ws("unknown", character varying, character varying) does not exist
#> HINT:  No function matches the given name and argument types. You may need to add explicit type casts.
#> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementfunc trans 🌍Translation of individual functions to SQL

    Type

    No type

    Fields

    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