Category "amazon-redshift"

Getting Exception while inserting data in Redshift DB

while fetching data from database It is working fine when trying to insert data in Redshift database getting exception MY POJO class : Quote.java @Entity publi

Column is of type timestamp without time zone but expression is of type character

I'm trying to insert records on my trying to implement an SCD2 on Redshift but get an error. The target table's DDL is CREATE TABLE ditemp.ts_scd2_test (

Deterministic sort order for window functions

I've a status table and I want to fetch the latest details. Slno | ID | Status | date 1 | 1 | Pass | 15-06-2015 11:11:00 - this is inserted first 2

Why are my tables not listed in the Redshift pg_table_def system table?

So I have created some tables: But they are not listed when I query pg_table_def? Any ideas appreciated.

How to list all tables and their creators (or owners) in Redshift

I thought it is straightforward but I couldn't find a way to list all tables and their creators (or owners) in Redshift. Any help/insight is welcome.

How to handle quoted values in AWS Redshift unload command?

Suppose, following the AWS docs I'd like to use an unload command like unload ( 'SELECT * FROM table_name WHERE day = '2019-01-01' ') to 's3://bucket_name/

how to unload only 1000 rows from redshift tables

I am creating a copy of a production redshift database at a development level. I know how to unload data from my production instance/cluster to s3, then copy t

What is the best way to paginate redshift queries?

What is the best way to paginate redshift query results?

How to find 2nd and 3rd occurrence char(,) in column in redshift db?

In redshift i am using below code.but i am getting first special character position only. SELECT id,regexp_instr(id,',') ,regexp_instr(id,',',2)FROM test

Redshift Spectrum table doesnt recognize array

I have ran a crawler on json S3 file for updating an existing external table. Once finished I checked the SVL_S3LOG to see the structure of the external table a