cube-js/cube

RedshiftDriver support UNLOAD (exportBucket) in readOnly mode

Open

#3032 aperta il 30 giu 2021

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)Rust (1965 fork)batch import
driver:redshifthelp wanted

Metriche repository

Star
 (19.563 star)
Metriche merge PR
 (Merge medio 5g 16h) (138 PR mergiate in 30 g)

Descrizione

Hello!

We started to support UNLOAD (exportBucket) in Redshift driver, but it's still limited and there are no support for readOnly mode.

Why?

Because We need column types for CSV, without it it's not possible to create a table in an external storage. In readOnly mode we dont create table before extraction and use original SQL, but there is no good way to do it.

Solution:

  1. SELECT query with LIMIT 0 to extract types.
  2. CREATE TEMP table and describe it via INFORMATION_SCHEMA.

Thanks

Guida contributor