티스토리 뷰
### Spark SQL
SELECT split('asdf#DDD#1234', '#DDD#')[0]; // asdf;
### Presto
SELECT element_at(split('asdf#DDD#1234', '#DDD#'), 1); //asdf
https://www.tutorialspoint.com/apache_presto/apache_presto_element_at.htm
Apache Presto - element_at(array,index) - Tutorialspoint
Apache Presto - element_at(array,index) Advertisements Query 1 presto:default> select array_intersect(array[1,2,3],array[2,4]) as intersection; Result intersection -------------- [2] Query 2 presto:default> select element_at(array[1,2,3],2) as element_posi
www.tutorialspoint.com
https://stackoverflow.com/questions/36200090/how-to-split-a-column
How to split a column?
I would like to see if I can split a column in spark dataframes. Like this, Select employee, split(department,"_") from Employee
stackoverflow.com
https://prestodb.io/docs/current/functions/string.html
7.9. String Functions and Operators — Presto 0.232 Documentation
Splits string by entryDelimiter and keyValueDelimiter and returns a map. entryDelimiter splits string into key-value pairs. keyValueDelimiter splits each pair into key and value. Note that entryDelimiter and keyValueDelimiter are interpreted literally, i.e
prestodb.io
'공부' 카테고리의 다른 글
[JS] getWidth & getHeight (0) | 2020.03.14 |
---|---|
[JS] VueJS `router-link` onclick (0) | 2020.03.14 |
[sh] sudo pkill cron (0) | 2020.03.10 |
[Python] Beautiful Soup (0) | 2020.02.27 |
[Python] *args (1) | 2020.02.27 |
- Total
- Today
- Yesterday
- wlw
- 유투브
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 크레딧 사용
- 모델 Y 레퍼럴
- 클루지
- 팔로워 수 세기
- 테슬라 추천
- Bot
- 모델y
- 어떻게 능력을 보여줄 것인가?
- 할인
- 개리마커스
- 테슬라 리퍼럴 코드 생성
- COUNT
- 테슬라 리퍼럴 코드 혜택
- 테슬라
- 테슬라 리퍼럴 코드
- 연애학개론
- 김달
- follower
- 레퍼럴
- Kluge
- 테슬라 레퍼럴 코드 확인
- 테슬라 레퍼럴
- 책그림
- 테슬라 레퍼럴 적용 확인
- 인스타그램
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |