-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemo
23 lines (11 loc) · 1.07 KB
/
memo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Tables can also be created and populated by the results of a query in one create-table-as-select (CTAS) statement. The table created by CTAS is atomic, meaning that the table is not seen by other users until all the query results are populated. So other users will either see the table with the complete results of the query or will not see the table at all.
CTASで作ったテーブルはpartition使えない
add table partition で複数のパーティションを一度にしていすることはできなくなった
if existsの指定で警告が出るとかでないとか。試してみたが出ない
alterは型、名前をきっちりかく
alterでデータの順番と変えると値も変わるので注意
select *が何を反映しているのか注意
alter table table_name touch よくわからない
FAILED: Error in semantic analysis: Archiving methods are currently disabled. Please see the Hive wiki for more information about enabling archiving.
simpleカラムを持つsimpleテーブルのsimpleviewからselectしたら×
viewはリードオンリー