cube-js/cube
Ver no GitHubRedshiftDriver support UNLOAD (exportBucket) in readOnly mode
Open
#3.032 aberto em 30 de jun. de 2021
driver:redshifthelp wanted
Métricas do repositório
- Stars
- (19.563 stars)
- Métricas de merge de PR
- (Mesclagem média 5d 16h) (138 fundiu PRs em 30d)
Description
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:
- SELECT query with LIMIT 0 to extract types.
- CREATE TEMP table and describe it via INFORMATION_SCHEMA.
Thanks