Invalid Character Constant Inside tRedshiftRow Component.

Highlighted
Five Stars

Invalid Character Constant Inside tRedshiftRow Component.

I have the following Redshift Code -

select '"'||N.Name||'"' from (select cast('Sample' as varchar) as Name) N

Which gives the following output -

"Sample"

 

When i try to write this in the query part of the tRedshiftRow Component. It gives the Invalid Character Constant Error.

I checked the java code part and confirmed that the error lies near the " || " (double pipe) symbol.

 

How do i handle this error ?

 

Thanks in advance


Accepted Solutions
Community Manager

Re: Invalid Character Constant Inside tRedshiftRow Component.

Try this
"select '\"'||N.Name||'\"' from (select cast('Sample' as varchar) as Name) N"
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post


All Replies
Community Manager

Re: Invalid Character Constant Inside tRedshiftRow Component.

Try this
"select '\"'||N.Name||'\"' from (select cast('Sample' as varchar) as Name) N"
----------------------------------------------------------
Talend | Data Agility for Modern Business

View solution in original post

Five Stars

Re: Invalid Character Constant Inside tRedshiftRow Component.

That worked ! I thought the error was the the pipe symbol. Never realized that it was the double quotes that was causing it.

 

Thank you

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend Cloud Developer Series - Introduction

The Talend Cloud Developer Series was created to give you a solid foundational understanding of Talend’s Cloud Integration Platform

Watch Now

Talend Cloud Available on Microsoft Azure

An integration platform-as-a-serviceto help enterprises collect, govern, transform, and share data from any data sources

Watch Now

Self-service Talend Migration: Moving from On-Premises to the Cloud

Move from On-Premises to the Cloud by following the advice of experts

Read Now