BigQueryã£ã¦ãªããï¼
Google I/O 2010ã§ã¯ãGoogle Storageã¨åããã¦å©ç¨ããæ°æ©è½ãBigQueryããçºè¡¨ããã¾ããï¼ãããApp Engineã¨ã¯åå¥ã®ãããã¯ãã§ãï¼ãã²ã¨ãã¨ã§è¨ãã°ãä½100å件ã®ãã¼ã¿ãæ°ç§ãæ°10ç§ã§éè¨ã§ããã大è¦æ¨¡ä¸¦åã¯ã¨ãªãµã¼ãã¹ãã§ããæ¢åã®OLAPããã¼ã¿ã¦ã§ã¢ãã¦ã¹ã«ç¸å½ãããã®ã§ãæ´æ°å¦çã«ã¯ä½¿ãã¾ããã
MapReduceã¨ã¯ã©ãéãï¼
大è¦æ¨¡ãªãã¼ã¿ã»ããã«å¯¾ãã¦å¤æ°ã®ãµã¼ãã§ä¸¦åå¦çããã¨ããç¹ã§ã¯MapReduceã«ä¼¼ã¦ãã¾ãããå¦ççµæãããã«å¾ãããç¹ãããã¦SQLã£ã½ãã¯ã¨ãªè¨èªã§è¡¨ç¾ã§ããéè¨å¦çããå®è¡ã§ããªãï¼mapperãreducerãå®ç¾©ãã¦ãã¼ã¿ãä»»æã®æ¹æ³ã§å å·¥ãããã§ããªãï¼ç¹ãMRã¨ã¯ç°ãªãã¾ããMRããããã«é«æ°´æºã®åæ£å¦çãµã¼ãã¹ã§ãï¼MRï¼Hiveã«è¿ãããããã¾ããï¼ã
ãªã³ã¯é
- BigQuery (Labs)
- BigQuery discuss(Googleグループ)
- Google I/O 2010 - BigQuery and Prediction APIs - YouTube
- Live Wave: BigQuery and Predication APIsï¼ã»ãã·ã§ã³ã®transcriptï¼
- Analyze M-Lab Data Using BigQueryï¼M-Labãã¼ã¿ã«å¯¾ããã¯ã¨ãªæã®ä¾ï¼
ç¹å¾´
以ä¸ãå
¬éããã¦ããããã¥ã¡ã³ãã¨Google I/O 2010ã®ã»ãã·ã§ã³ããã¨ã«ã¾ã¨ãã¦ã¿ã¾ããï¼ã«ãã³å
ã¯çè
ã®ææ³ã§ãï¼ã
- BigQueryã¨ã¯
- 大è¦æ¨¡ãã¼ã¿ã»ããï¼æ°TBãæ°å 件è¦æ¨¡ï¼ã«å¯¾ãã¦çæéï¼æ°ç§ãæ°10ç§ï¼ã§å¯¾è©±åã®éè¨å¦çãå¯è½ãªãµã¼ãã¹
- Google社å
ã§ãæ§ã
ã«å©ç¨ãã¦ãã
- ã¤ã³ã¿ã©ã¯ãã£ããã¼ã«
- ã¹ãã æ¤åº
- ãã¬ã³ã解æ
- Webããã·ã¥ãã¼ã
- ãããã¯ã¼ã¯æé©å
- MapReduceãããããè¤éã§æéããããï¼è¨³æ³¨ï¼ad hocãªã¯ã¨ãªã«ã¯åããªãï¼
- 使ãæ¹
- ãã¼ã¿ãGoogle Storageã«ã¤ã³ãã¼ããã
- ãã¼ã¿ãBigQueryã®ã¹ãã¼ãã«ã¤ã³ãã¼ãããï¼ã¤ã³ããã¯ã¹çã®æå®ã¯ä¸è¦ï¼
- ã¯ã¨ãªãå®è¡
- å¶é
- OLTPç¨éã«ã¯ä½¿ããªã
- è¤æ°ãã¼ãã«ã®joinã¯ã§ããªã
- ããããåæã¯ãµãã¼ãããªã
- ã¤ã³ãã¼ãä½æ¥ã¯ãã¾ã®ã¨ããGooglerã«ä¾é ¼ãã¦æä½æ¥ã§å®æ½ï¼ãããèªååäºå®ï¼
- ãããã¯ã¼ã¯ã¢ãã¿ãªã³ã°åæã®ãã¢
- M-Labã§ã¯ã¤ã³ã¿ã¼ããããã©ãã£ãã¯ã®çµ±è¨ãã¼ã¿ãä¸è¬å ¬éãã¦ããï¼ç´600å件ï¼
- ãã®ãã¼ã¿ãBigQueryã«ã¤ã³ãã¼ããã
- ã¯ã¨ãªã®ãã¢ï¼SELECT COUNT (*) FROM [bigquery/tables/mlab/v1]
- ï¼10ç§ãããããã«å ¨ä»¶ã«ã¦ã³ããè¿ã£ã¦æ¥ãï¼ãããï¼ï¼
- ããã²ã¨ã¤ã®ãã¢
- Googleãä¿æããWebã³ã¼ãã¹ãã¼ã¿ãããcheeseããå«ã件æ°ãã«ã¦ã³ã
- Google Docsã¹ãã¬ããã·ã¼ãããBigQueryãå¼ã³åºããéè¨çµæã表ã¨ã°ã©ãã«å³æ表示ï¼ãã£ãããï¼ï¼
BigQueryã®API
- REST API
- ã¯ã¨ãªå®è¡ä¾ï¼GET https://www.googleapis.com/bigquery/v1/query?q=ï¼ã¯ã¨ãªæååï¼
- çµæã¯JSONã§è¿ã
- èªè¨¼ã¨ãã¼ããã·ã§ã³
- bqshell: BigQueryã®SQLã対話åã«å®è¡ã§ããPythonãã¼ã¹ã®ãã¼ã«
BigQueryã®ã¯ã¨ãªæ§æ
- SQLã®ãµãã»ãããè¨è¿°ãã
- - SELECT ... FROM ... WHERE ... GROUP BY ... ORDER BY ... LIMIT ...
- M-Labãã¼ã¿ã«å¯¾ãããã¦ã¼ã¶ã¼æ°ã®ã«ã¦ã³ããã®ä¾ï¼
SELECT COUNT(DISTINCT web100_log_entry.connection_spec.remote_ip) AS num_clients FROM [bigquery/samples/mlab] WHERE IS_EXPLICITLY_DEFINED(web100_log_entry.connection_spec.remote_ip) AND IS_EXPLICITLY_DEFINED(log_time) AND log_time > 1262304000 AND log_time < 1262476800; num_clients
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
BigQueryã®ãã¼ã¿ã¢ãã«ã¨ã¢ã¼ããã¯ãã£
BigQueryã§ã¯ã以ä¸ã®ãããªJSONã£ã½ãï¼è¿½è¨ï¼ãããããè¦ãã¨ããªãJSONã¨éãï¼ï¼ãã¼ã¿ã¢ãã«ãåãæ±ãã¾ãã
record { f1: X m1 { f2: a f2: b f2: c } r1 { m2 { f3: 1 f3: 2 } m2 { f3: 3 f3: 4 f3: 5 } } } record { f1: Y ...
ãããããã¼ã¿ã«å¯¾ãã¦ã以ä¸ã®ãããªããã¡ã§ã¯ã¨ãªãå®è¡ã§ãã¾ãã
SELECT f1, COUNT(r1.m2.f3) WITHIN RECORD AS cnt FROM [Table];
ãã®ã¯ã¨ãªã¯ããTableãã¼ãã«ã«ã¤ãã¦ãåã ã®recordå ã®r1.m2.f3ã®æ°ãã«ã¦ã³ããã¦f1ãã¨ã«è¿ããã¨ããæå³ã«ãªãã¾ããçµæã¯ä»¥ä¸ã®éãã
+----+-------+ | f1 | cnt | +----+-------+ | X | 5 | | Y | 7 | | Z | 2 | +----+-------+
ãããã®ããã¥ã¡ã³ãããå¤æããã«ãBigQueryã®ãã¼ã¿ã¢ãã«ã¯ãªã¬ã¼ã·ã§ãã«ã¢ãã«ã§ã¯ããã¾ãããjoinãã§ãã¾ãããéæ£è¦åãããããªã¼æ§é ãã¼ã¿ï¼XMLã«ä¼¼ã¦ããï¼ï¼ã«å¯¾ãã¦åãåããããç¬èªãã¼ã¿ã¢ãã«ï¼è¨èªã¨æãã¦ããã§ãããã
ããã¦èå¿ã®ãã¤ã³ãââã©ããã£ã¦ãããªã«éãã¯ã¨ãªã§ããã®ï¼ââã§ãããMLで聞いてみたã¨ããã
Kaz, Thank you for the interest in BigQuery. We don't comment on the backend details of BigQuery. What I can say is that we are running BigQuery on thousands of machines. The 60 B records were imported as part of a sample dataset. We don't have numbers to share at this point regarding the time taken to import the dataset. thanks Amit
ã¨ããåçãã¤ã¾ã詳細ãªã¢ã«ã´ãªãºã ï¼ä¾ãã°äºåã«éç´å¦çãã¦ãããçï¼ã¯æãã¦ããã¾ããã§ããããæ°1000å°è¦æ¨¡ã®ä¸¦åã¯ã¨ãªå¦çã§ãããã¨ã¯ééããªãããã§ãï¼ã¯ã©ã¦ãç ´ç£ãããwï¼ãã¾ãã¤ã³ãã¼ãæéã«ã¤ãã¦ãä¸è¿°ã®ã¨ãããã¼ã³ã¡ã³ãã§ããã
@ashigeru ããã®ã³ã¡ã³ãã¾ã¨ã
BigQueryã«ã¤ãã¦@ashigeruããã«ããããã³ã¡ã³ããããã ããã¾ã¨ãã§ãï¼
- Togetterã¾ã¨ããBigQueryってなんぞã
ã¨ããæãã§ãBigQueryé¢ç½ãã§ããããã600å件ã®éè¨ãæ°ç§ã§ããªããã¢ãè¦ãã¨ãã¯ããã£ã¨ãã¾ãããã©ããªãºã«ãã¦ãã®ã ãããã¨åããã¾ããããæå¤ã«åæ¥ãªå¤§è¦æ¨¡ä¸¦åã¯ã¨ãªãå®è¡ãã¦ããããã§ããä¾¡æ ¼è¨å®ã®çºè¡¨ã«æå¾
ã§ããããã¾ã§è¶
é«é¡ãªè£½å群ï¼Hyperionã¨ãï¼ï¼ãå¸å·»ãã¦ããOLAPãDWHãBusiness Intelligenceå¸å ´ã«ããã¦ãã¯ã©ã¦ãã®ä¾¡æ ¼ç ´å£ãèµ·ããããèå³æ·±ãã¨ããã§ãã