반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- list
- GIT
- PostgreSQL
- array
- Github
- Excel
- SQL
- c#
- 파이썬
- Google Spreadsheet
- google apps script
- django
- matplotlib
- PySpark
- Google Excel
- Mac
- Tkinter
- string
- Kotlin
- gas
- hive
- math
- Python
- dataframe
- Apache
- Redshift
- PANDAS
- numpy
- Java
Archives
- Today
- Total
목록s3 unload (1)
달나라 노트
Redshift : unload & copy (CSV format으로 s3 서버에 query 결과 upload하기, s3서버에서 파일 불러와 database table 만들기)
Redshift -> S3 -- Redshift -> S3 unload(' ----- (S3 server에 올릴 data를 추출하는 query) select col1 , col2 from test_table_1 -- where col3 in (''valid'') ----- (쿼리 전체가 따옴표로 감싸져있기 때문에 쿼리 내부의 문자는 따옴표 2개로 string을 감싸야함.) ') to 's3://root_dir/test_dir/' ----- (unload 속에 적힌 query 결과가 저장될 s3 server의 경로) iam_role 'credentials' ----- (s3 server에 로그인하기 위한 credential) csv ----- (csv format으로 저장) delimiter ',' ---..
SQL/Redshift
2021. 6. 3. 01:47