by shigemk2

当面は技術的なことしか書かない

2017-10-30から1日間の記事一覧

bq creating-partitioned-tables

bq creating-partitioned-tables 分割テーブルパーティションを作るコマンド。 bq mk --time_partitioning_type=DAY mydataset.table1 https://cloud.google.com/bigquery/docs/creating-partitioned-tables?hl=ja

NULL values are not allowed on the probe side of SemiJoin operator

NULL values are not allowed on the probe side of SemiJoin operator サブクエリの中が空だとNULL values are not allowed on the probe side of SemiJoin operatorになるっぽい presto> select null in (select 1 where false); Query xxxxxxxxxxxxxxxxxx…

presto round

presto round round(x,d) round(x) same as inputって書いてあるから、xの型doubleだと戻り値もdoubleになるし、integerならintegerが帰って来る presto> select round(22); _col0 ------- 22 (1 row) presto> select round(22.5); _col0 ------- 23.0 (1 ro…

create schema on presto

create schema on presto たぶんそんなに難しくない CREATE SCHEMA web とか CREATE SCHEMA hive.sales とか。 https://prestodb.io/docs/current/sql/create-schema.html