ã¯ããã«
ããã«ã¡ã¯ããã¼ã¿ã¨ã³ã¸ãã¢ãªã³ã°ã°ã«ã¼ãã®æ£®ä¸ã§ããä»åã¯ãç§ãããã¸ã§ã¯ãããã¼ã¸ã£ã¼ã¨ãã¦ç´3å¹´éããã¦å®æ½ãããTreasureDataããBigQueryã¸ã®å ¨ç¤¾ãã¼ã¿æ´»ç¨åºç¤ç§»è¡ããã¸ã§ã¯ãã«ã¤ãã¦ã話ãã¾ãããã®ããã¸ã§ã¯ãã¯ãå ¨ç¤¾ã§1æ¥ãããæ°å件ã®ã¯ã¨ãªãå®è¡ããããã¼ã¿åºç¤ã移è¡ããã¨ãã大è¦æ¨¡ãªãã®ã§ãé¢ä¿è ã®æ°ã¯200ã300人ã«ä¸ãã¾ãããããã¸ã§ã¯ãæéä¸ã¯ããã¼ã¿æ´»ç¨åºç¤ã®æè¡èª¿æ»ããå§ã¾ããé¢ä¿è ã¸ã®èª¬æã調æ´ããã¼ã¿ç§»è¡ãã¯ã¨ãªç§»è¡ãETLãReverse ETLã«ä½¿ç¨ããå種ãã¼ã«ã®å°å ¥ãªã©ãæ¬å½ã«å¤ãã®ã¿ã¹ã¯ãããã¾ããã
ããã¸ã§ã¯ãèæ¯: TreasureDataå°å ¥ã¨ãã®èª²é¡
TreasureDataå°å ¥ã®èæ¯
2024å¹´æç¹ã§ã¯Google BigQueryã使ç¨ãã¦ãã¾ããããã®åã®ç°å¢ãå°å ¥ãããèæ¯ã説æãã¾ãã 2018å¹´12æããã«ã¬ãã¬ã¸ã¼ãºã§ã¯TreasureDataããã¼ã¿æ´»ç¨åºç¤ã¨ãã¦å°å ¥ãã¾ãããTreasureDataãå°å ¥ããã以åã¯ãåäºæ¥é¨ãæ¬çªDBã®ãªã¼ãã¬ããªã«ãç´æ¥åç §ãã¦ãã¼ã¿åæãã¢ãã¿ãªã³ã°ç¨ã®ãã¼ã¿æ½åºãè¡ã£ã¦ããããã¼ã¿ã¦ã§ã¢ãã¦ã¹ããã¼ã¿ãã¼ãã¨ãã£ãæ¦å¿µã¯åå¨ãã¾ããã§ããããã¼ã¿ãå©æ´»ç¨ããéã«ã¯ãä¸åº¦ãã¼ã«ã«PCã«ãã¦ã³ãã¼ããã¦ããã¨ã¯ã»ã«ãã¹ãã¬ããã·ã¼ãã«ã¢ãããã¼ããã¦ä½¿ç¨ãã¦ããããã§ãã
å½æã¯ãã¼ã¿ã¨ã³ã¸ãã¢ã社å ã«ããªãã£ããããã¨ã³ã¸ãã¢ã®å·¥æ°ã大ãã使ç¨ããã«å©ç¨ã§ãããã¼ã¿æ´»ç¨åºç¤ã¨ãã¦TreasureDataã®å°å ¥ã決ã¾ãã¾ãããå°å ¥ã«ããã£ã¦ã¯ããã¼ã±ãã£ã³ã°é¨ã主å°ãã¦é²ãã¦ãã£ãããã§ããTreasureDataãå°å ¥ããããã¨ã«ãã£ã¦ãæ¬çªDBã«ç´æ¥SQLãçºè¡ãããã¨ãªããã¼ã¿ãåç §ã§ãããã¼ã¿æ´»ç¨ç°å¢ãæ´åããã¾ãããTreasureDataã¯è±å¯ãªã³ãã¯ã¿ã¼ãæä¾ãã¦ãããèªè¨¼ãéãã°DBãSaaSããç°¡æã«ãã¼ã¿ãåå¾ãããã¨ãã§ãã¾ããã¾ããã¹ãã¬ããã·ã¼ããTableauã¸ãã¼ã¿ãåºåãã¢ãã¿ãªã³ã°ç°å¢ã¨ãã¦ä½¿ç¨ããããMarketoãMailchimpã¨ãã£ãå¤é¨ãã¼ã«ã¸ãã¼ã¿ãéãè¾¼ã¿å種ãã¼ã±ãã£ã³ã°æ´»åã«ä½¿ç¨ãããã¨ãã§ããããã«ãªããå¤ãã®æ¥åæ¹åãé²ãã§ããã¾ããã SQLãæ¸ãå¿ è¦ã¯ããã¾ããããã¼ã¿é£æºã«é¢ãã¦ã¯GUIæä½ã ãã§å®çµãããããå¶æ¥ããã¼ã±ã¿ã¼ãªã©ãã¨ã³ã¸ãã¢ä»¥å¤ã®è·ç¨®ã§ãç°¡åã«ãã¼ã¿åæãã§ããããã«ãªãããã¼ã¿ããªãã³ãªææ決å®ãä¿é²ããã¾ããã
ããããTreasureDataã®å©ç¨æ¡å¤§ã«ä¼´ããããã¤ãã®èª²é¡ãçºçãã¾ããã
TreasureDataéç¨ä¸ã®èª²é¡
2020å¹´ãããã以ä¸ã®èª²é¡ãçºçãå§ãã¾ããã
- ã¸ã§ãã®åæå®è¡æ°ä¸é: ã¬ããã¬ã·ãã¼ã¹ããå¥ç´ãã¦ããTreasureDataã®ãã©ã³ã§ã¯ãåæå®è¡å¯è½ãªã¸ã§ãæ°ã255ã«å¶éããã¦ãã¾ããããã®ã¸ã§ãæ°ã«ã¯ããã¼ã¿æ´æ°ã¸ã§ããã¯ã¨ãªå®è¡ã¸ã§ãããã¼ã¿è»¢éã¸ã§ãã®3ã¤ãå«ã¾ãã¾ããä¾ãã°ãTreasureDataå ã®ãã¼ã¿ã使ç¨ãã¦å¤é¨ã«ãã¼ã¿ãéãè¾¼ãå ´åãã¯ã¨ãªå®è¡ã¸ã§ãã¨ãã¼ã¿è»¢éã¸ã§ãã§ã¸ã§ãæ°ã¯2ã«ã«ã¦ã³ãããã¾ããããã«ãããå¤éã®ãã¼ã¿æ´æ°ã¸ã§ãã失æãã¦ããããå¤é¨ããå®è¡ãããã¯ã¨ãªå®è¡ã¸ã§ããåæå®è¡ä¸éã«éãã¦APIãå¼¾ããã¦ããããã¦ãã¾ããããããªãã¨æã«å度å®è¡ããªãã¨ãããªããªããç¿æ¥ã®æ¥åã«æ¯éãåºããã¨ãããã¾ããã
- ã¯ã¨ãªå®è¡é度ã®ä½ä¸: ãã¼ã¿éã¨ã¸ã§ãæ°ã®å¢å ã«ä¼´ããã¯ã¨ãªå®è¡æéãé·ããªã£ã¦ããã¾ãããå¾ã ã«ã¯ã¨ãªå®è¡ã¸ã§ãããã¥ã¼ã«è©°ã¾ãããã«ãªããç¹ã«ååä¸ã¯åæ¥ã®ãã¼ã¿ã使ç¨ãããã¼ã¿æ´æ°ã¸ã§ãã大éã«å®è¡ããããããã¯ã¨ãªãå®è¡ãã¦ããå®è¡éå§ã¾ã§æ°åã»ã¼å¾ ãããããããªç¶æ³ã§ãããæã¤ãã®å¤§äºãªä¼è°ã§ä½¿ç¨ããTableauã®ããã·ã¥ãã¼ããæ´æ°ããã¦ããªããã¨ãã£ãç¶æ³ãä½åãçºçãã¾ããã
- 権é管çã®ç ©éã: TreasureDataã§ã¯ãã¢ã¯ã»ã¹æ¨©éããã¼ã¿ãã¼ã¹åä½ã§ããè¨å®ã§ãã¾ããã§ããããã®ãããç´°ãã権é管çãé£ãããã»ãã¥ãªãã£ä¸ã®æ¸å¿µãããã¾ãããã¾ãã誰ããã¤ã©ã®ãã¼ã¿ã«ã¢ã¯ã»ã¹ãããã追跡ããã®ã容æã§ã¯ããã¾ããã§ããã
ã¬ããã¬ã·ãã¼ã¹ãã¯å¹´130ï¼ æé·ãç¶ãã¦ããããã¼ã¿éãåæ§ã«å¢å ãã¦ãã¾ãããã¼ã¿ããªãã³ãªææ決å®ãæ§ã ãªå ´é¢ã§è¡ãããã«TreasureDataã®å©ç¨è æ°ãå¢å ãã¦ãããå®å®ãããã¼ã¿æ´»ç¨ç°å¢ã®éè¦æ§ãå¢ãã¦ãã¾ãããä¸è¨ã®èª²é¡ã解決ããæé·ãç¶ããäºæ¥ãæ¯ãã¦ããããããªãã¼ã¿æ´»ç¨ç°å¢ã®æ§ç¯ãå¿ è¦ã§ããã
ãã¼ã¿æ´»ç¨åºç¤ã®ç§»ç®¡ããã¸ã§ã¯ãæ¦è¦
移管åå¾ã®ç°¡ææ§æå³
è¤æ°äºæ¥é¨ãåä¸ç°å¢ã使ã£ã¦ããç¶æ ãããäºæ¥é¨æ¯ã«GCPç°å¢ãåãã¾ããã
ããã«ã¯è¼ãããã¦ãã¾ãããããã¼ã¿ã½ã¼ã¹ã¯DBãSaaS以å¤ã«ããæåã§csvãã¡ã¤ã«ãã¢ãããã¼ããã¦ãããã®ãAPIãå©ç¨ãã¦å¤é¨ãããã¼ã¿ãã¤ã³ãµã¼ããã¦ãããã®ã¾ã§ããããã®ãã®ãããã¾ãããæçµçã«BigQueryã§æ´æ°ãããããã«ãããã¼ã¿ã½ã¼ã¹ã®æ°ã¯40ã»ã©ã«ãªããã¨æãã¾ãã Tableauãã¹ãã¬ããã·ã¼ãã¯BigQueryã¨ç´æ¥ç¹ãããã¾ããããã¼ã¿è»¢éç¨ã«ã³ãã¯ã¿ã¼ãå®è£ ããå¿ è¦ããããã®ã«ã¤ãã¦ã¯ãèªä½ã§1ã¤1ã¤ä½ã£ã¦ããã¾ããã
é²ãæ¹
TreasureDataã¯3ã¤ã®äºæ¥é¨ãåæã«å©æ´»ç¨ãã¦ããç°å¢ã§ãããããã¸ã§ã¯ããé²ããã«ããããã¾ãã¯1ã¤ã®äºæ¥é¨ã§ç§»ç®¡ãé²ããããã§å¾ãå種ãã¦ãã¦ãä»2äºæ¥ã«ã転ç¨ããå½¢ã§é²ãã¦ããã¾ãããããã¸ã§ã¯ãã®æ¦è¦ã¯ä»¥ä¸ã«ãªãã¾ãã
- DWH製åã®é¸å®: 2020å¹´ã®5æããããæ å ±åéã¨æè¡èª¿æ»ãã¯ãããæçµçã«ã¯BigQueryãé¸ã³ã¾ããã
- ETLæ©æ§ã®è¨è¨ã¨å®è£ : 2020å¹´ã®8æããããæ å ±åéã¨æè¡èª¿æ»ãã¯ãããã¯ã¼ã¯ããã¼ã¨ã³ã¸ã³ã¨ãã¦Digdagãããã«ã¯ãã¼ãã¼ã¨ãã¦Embulkãé¸å®ãã¾ãããããã«ã¤ãã¦ã¯ãæ¢åã§TreasureDataãåãã¦ããããé«ä¾¡ãªSaaSã¯å°å ¥ã§ããèªåã§ã®å®è£ ãå¿ è¦ã ã£ããã¨ãå½æã¯Embulkã使ç¨ãããã¼ã¿æ´æ°ãå¤ãäºä¾ã¨ãã¦è¦ããããã¨ãDigdagã¨Embulkã¯TreasureDataãéçºãã¦ããOSSã§ãã£ãããTreasureDataç°å¢ãåç¾ããã«ã¯æé©ã§ããããã¨ãé¸å®çç±ã¨ãªãã¾ãã
- ãã¼ãã¼ã¿æ´æ°ããBIãã¼ã«æ´æ°ã¾ã§ã®æµããBigQueryã¸ç§»ç®¡: 2020å¹´ã®11æãããããTreasureDataã§éç¨ãã¦ããSQLã¯ã¼ã¯ããã¼ãBigQueryã¸ç§»ç®¡ãã¦ããã¾ãããå¾è¿°ãã¾ãããTreasureDataã¯SQLã¨ã³ã¸ã³ã¨ãã¦Prestoã使ç¨ãã¦ããã BigQueryã¯æ¨æºSQLã使ç¨ãã¦ãããããå¾®å¦ã«ææ³ãéãã¾ãããã®éãã1ã¤1ã¤èª¿ã¹ãPrestoããæ¨æºSQLã¸æ¸ãæããå°å³ãªä½æ¥ããã£ã¨è¡ã£ã¦ãã¾ãããã¾ãã社å ã§ä½¿ç¨ãã Prestoâæ¨æºSQL ã®å¤æ表ãä½æãã社å ã¦ã¼ã¶ã¼ã«å ±æãã¦ãã¾ããã
- BI以å¤ã®å©ç¨ã«ãããSQLã®ç§»ç®¡: 2021å¹´ã®4æããããBIãã¼ã«ä»¥å¤ã®å©ç¨ã·ã¼ã³ã«ãããSQLã®ç§»ç®¡ãé²ãã¦ããã¾ãããä¸è¨ã®BIãã¼ã«ã«ä½¿ç¨ãããã¼ã¿ã¯ã»ã¼å¶æ¥æ¯æ´ã·ã¹ãã ã ãã§ããããBIãã¼ã«ä»¥å¤ã®æ´»ç¨ã·ã¼ã³ã§ã¯å¶æ¥æ¯æ´ã·ã¹ãã 以å¤ã®ãã¼ã¿ãå¤ã使ç¨ãã¦ãã¾ããããã®ããããã¼ã¿ãå¿ è¦ã«ãªããã³ã«Embulkã使ç¨ããèªä½ã³ãã¯ã¿ã¼ãå®è£ ããBigQueryã¸ãã¼ã¿ãé£æºããããããSQLãæ¸ãæãããã¨ãã£ãä½æ¥ãè¡ãªã£ã¦ãã¾ããã
- æ®ã2äºæ¥é¨ã®ç§»ç®¡è¨ç»ç«æ¡ã¨æ¿èª 2021å¹´ã®10æããããæ®ãã®2äºæ¥é¨ã®TreasureDataããã®ç§»ç®¡ããã¸ã§ã¯ãã®ç«æ¡ãå§ãã¾ãããæåã®äºæ¥é¨ã¯ç§»ç®¡å¯¾è±¡ã®SQLã500ã»ã©ã§ããããæ®ãã®2äºæ¥é¨ã¯åããã¦1700ã»ã©ãããå½±é¿ç¯å²ãããåºããªã£ã¦ãã¾ãããäºæ¥è²¬ä»»è ã¸ã¯ã1ã¤ç®ã®äºæ¥é¨ã®å®ç¸¾ã話ããªããè²»ç¨ãã¹ã±ã¸ã¥ã¼ã«ã®æ¿èªãå¾ãã®ãè¦ãã¦ãã¾ãã
- æ®ã2äºæ¥é¨ã®BigQueryç°å¢æ´å: 2022å¹´ã®1æãããã1ã¤ç®ã®äºæ¥é¨ã¨åãããã«ã¯ã¼ã¯ããã¼ã¨ã³ã¸ã³ã«Digdagããã«ã¯ãã¼ãã¼ã¨ãã¦Embulkã使ç¨ãã¦ãTreasureDataã¨åãé »åº¦ã§BigQueryã«ãå種ã·ã¹ãã ãSaaSã®ãã¼ã¿ãæ´æ°ãããç°å¢ãæ§ç¯ãã¾ããã2åç®ã®å®è£ ã§ãã£ããã¨ããããããã¯å²ã¨ã¹ã ã¼ãºã«ããã¾ããã
- 2äºæ¥é¨ã®SQL移管: 2022å¹´ã®5æé ããSQLã®ç§»ç®¡ãé²ãã¦ããã¾ãããæ°ãè¨å¤§ã§ãããã¨ãå©ç¨è ã200åãè¶ ãããã¨ããããé常ã«éª¨ãæããä½æ¥ã§ãããPrestoããæ¨æºSQLã¸ã®å¤æãã¼ã«ããã®æã«ã¯ãã£ãã®ã§ããããããéãã¦ããã¾ãå¤æã§ããªãSQLãå¤ãããããã¯ç®ã§è¦ã¦ç¢ºèªããä¿®æ£ãå ãã¦ããå¿ è¦ãããã¾ãããã¾ããTreasureDataã«ã¯ãã¼ã¿ãªãã¼ã¸ã®æ©è½ããªãã£ããããSQLãå¤æãã¦BigQueryä¸ã§å®è¡ãã¦ã¿ã¦åãã¦è¶³ããªããã¼ã¿ã«æ°ãã¤ããã¨ãå¤ãããã¾ããããããã£ããã®ã¯ãDBåã¨ãã¼ãã«åããããããªãã®ã§1ã¤1ã¤ç®¡çè ã«é£çµ¡ããããTreasureDataã®ã³ãã¯ã¿ã¼ãè¦ã¦ã©ã®ãããªãã¼ã¿ã§ã©ããã£ã¦æ´æ°ãã¦ãããã調æ»ãã1ã¤1ã¤BigQueryã§åããã¼ã¿ãåç §ã§ããããã«å®è£ ãã¦ããã¾ããã
- å ¨ã¦ã®SQL移管å®äº: 2023å¹´ã®8ææ«ãTreasureDataã®å¥ç´çµäºæ¥ã§ããã9æããã¯å©ç¨ã§ããªããªãã¾ãã®ã§ã絶対ã«ããã¾ã§ã«ç§»ç®¡ãå®äºãããå¿ è¦ãããã¾ããããå¤ãã®æ¹ã®ãååã®ãããã§ç¡äºã«ç§»ç®¡ãå®äºãã¾ããã
ãªãBigQueryãé¸ãã ã®ãï¼
BigQueryãé¸ãã çç±ã¯ããã¤ãããã¾ããã大ããã¯ä»¥ä¸ã«ãªãã¾ãã
- Googleã¹ãã¬ããã·ã¼ãã¨ã®è¦ªåæ§: ã¬ãã¬ã¸ã¼ãºã§ã¯ãGoogleã¹ãã¬ããã·ã¼ãããã¼ã¿ã®å¯è¦åãå ±æã«åºãæ´»ç¨ããã¦ãã¾ããBigQueryã¯ã¹ãã¬ããã·ã¼ãã¨ã®é£æºæ©è½ãå å®ãã¦ããããã¼ã¿åæçµæã容æã«å ±æã§ããç¹ãé åçã§ããã
- Google Workspaceã¨ã®é£æº: Google Workspaceãå©ç¨ãã¦ãããããBigQueryã¨ã®é£æºã«ãããã¦ã¼ã¶ã¼ç®¡çã権é管çãå¹çåã§ããã¨èãã¾ãããç¹ã«ãéè·æã®æ¨©éå¥å¥ªãªã©ãã»ãã¥ãªãã£å¯¾çã容æã«å®æ½ã§ããç¹ãã¡ãªããã§ããã
- 管çå·¥æ°ã®åæ¸: BigQueryã¯ãµã¼ãã¼ã¬ã¹ã¢ã¼ããã¯ãã£ãæ¡ç¨ãã¦ãããã¤ã³ãã©ã®ç®¡çãä¸è¦ã§ããã¾ãã課éä½ç³»ãã·ã³ãã«ã§ããããããã¼ã¿ã¨ã³ã¸ãã¢ã®ç®¡çå·¥æ°ãåæ¸ã§ããã¨å¤æãã¾ããã
- æ§è½ã¨æ¡å¼µæ§: å¢å ãç¶ãããã¼ã¿éãã¸ã§ãå®è¡æ°ã«å¯¾ãã¦èªåã§ã¹ã±ã¼ã«ã¢ããããç°å¢ããããã¨ãé åã§ããã
BigQuery移è¡ã«ããæ¹åç¹
BigQueryã¸ã®ç§»è¡ã«ãããTreasureDataã§æ±ãã¦ãã課é¡ã解決ãã以ä¸ã®æ¹åãå®ç¾ãã¾ããã
- ã¯ã¨ãªå®è¡é度ã®åä¸: BigQueryã®é«ãå¦çè½åã«ãããã¯ã¨ãªå®è¡é度ãå¹³å2ã10ååä¸ãã¾ãããããã«ããããã¼ã¿åæã«ãããæéãå¤§å¹ ã«ç縮ãããæ¥åå¹çãæ¹åãã¾ããã以åã¯ãå¤ãã®ã¦ã¼ã¶ã¼ãå©ç¨ããååä¸ã¯ã¸ã§ãããã¥ã¼ã«å ¥ã£ã¦ãã¾ããã¨ãå¤ãã£ãã§ããããããã£ããã¨ã¯ç¡ããªãã¾ããã
- åæå®è¡ã¸ã§ãä¸éã®æ¤å»: BigQueryã§ã¯ãåæå®è¡å¯è½ãªã¸ã§ãæ°ã«å¶éããªããããTreasureDataã§çºçãã¦ããã¸ã§ãè©°ã¾ãã解æ¶ããã¾ãããç¹ã«å¤éã«å®è¡ããããããå¦çãå®å®ããããã«ãªãããã¼ã¿æ´æ°ã®ä¿¡é ¼æ§ãåä¸ãã¾ããã
- ã¹ãã¬ã¼ã¸å®¹éã®æ¡å¤§: BigQueryã¯ãã¿ãã¤ãç´ã®ãã¼ã¿ãä¿åã§ãããããæ¥æ¬¡ã¹ãããã·ã§ãããã¼ã¿ãèç©ã§ããããã«ãªããä»ã¾ã§ã§ããªãã£ãåæãæ©æ¢°å¦ç¿ã¢ãã«ã®å®è£ ãå¯è½ã«ãªãã¾ããã
- ç´°ããªæ¨©é管ç: BigQueryã§ã¯ããã¼ãã«ãã«ã©ã åä½ã§ã¢ã¯ã»ã¹æ¨©éãè¨å®ã§ãããããæ¥åç¯å²ã«å¿ããé©åãªã¢ã¯ã»ã¹å¶å¾¡ãå¯è½ã«ãªãã¾ãããããã«ãããæ©å¯æ å ±ã®æ¼æ´©ãªã¹ã¯ãä½æ¸ããã»ãã¥ãªãã£ãåä¸ããããã¨ãã§ãã¾ãããã¾ããå®è¡ãã°ã詳細ã«åå¾ã§ããããã誰ããã¤ã©ã®ãã¼ã¿ã«ã¢ã¯ã»ã¹ããããææ¡ãããããªããä¸æ£ã¢ã¯ã»ã¹ãªã©ã®å¯¾çã容æã«ãªãã¾ããã
- ãã¼ã¿ãªãã¼ã¸ã®å¯è¦å: DataformãDataplexãªã©ã®ãã¼ã«ãæ´»ç¨ãããã¨ã§ããã¼ã¿ã®æµããå¯è¦åãããã¼ã¿ã®å質管çããã©ãã«ã·ã¥ã¼ãã£ã³ã°ã容æã«ãªãã¾ãããç¹ã«ãã·ã¹ãã ãªãã¬ã¤ã¹ã®éã«ã¯ãå½±é¿ç¯å²ãè¿ éã«ç¹å®ã§ããããã«ãªãã移è¡ä½æ¥ãã¹ã ã¼ãºã«é²ã¿ã¾ããã
ãã®ä»ã®ç¹ãå ãã¦ã¾ã¨ããã¨ä»¥ä¸ã®è¡¨ã«ãªãã¾ãã
é ç® | TreasureData | BigQuery |
---|---|---|
ã¯ã¨ãªå®è¡é度 | ãã®ã«ããã1æé以ä¸ããããã®ããã£ã | å¤ãã®å ´åã§2ã10åé«éåããé·ãã¦ã5åã»ã©ã§å®äºããããã«ãªã£ã |
åæå®è¡ã¸ã§ãä¸é | 255ãè¶ ããã¨ã¨ã©ã¼ | å¶éãªã |
ã¹ãã¬ã¼ã¸å®¹é | ä¿æã¬ã³ã¼ãæ°ã®ä¸éãã | ãªã |
ã¢ã¯ã»ã¹æ¨©é | DBåä½ | ãã¼ãã«ã»ã«ã©ã åä½ |
ãã°è¿½è·¡ | APIå©ç¨ãã¦ãã°ãå¥éåå¾ | Cloud LoggingãBigQueryä¸ã§æ¤ç´¢å¯è½ |
ãã¼ã¿ãªãã¼ã¸ | å¯è¦åæ©è½ãªã | Dataform, Dataplexã§å¯è¦å |
å¤é¨ãã¼ã«ã¨ã®ãã¼ã¿é£æº | ã³ãã¯ã¿ã¼ãè±å¯ã§ã³ã³ã½ã¼ã«ããã®æä½ã®ã¿ã§å¯è½ | å¥éå®è£ ãå¿ è¦ |
ããã¸ã§ã¯ãã«ããã¦è¦å´ãããã¤ã³ã
大ãã2ã¤ã®è¦å´ãããã¤ã³ããããã¾ãã
æ¨æºSQLã¨Prestoã®éã
社å ã§æ¥å¸¸çã«ä½¿ç¨ããã¦ããç´2,200件ã®ã¯ã¨ãªãTreasureDataããBigQueryã¸ç§»è¡ããä½æ¥ã¯ãããã¸ã§ã¯ãã®ä¸ã§æã大å¤ãªãã®ã§ããã Prestoã¨æ¨æºSQLã®éãã§è¦å´ããç¹ãããã¤ããç´¹ä»ãã¾ãã
- ææ¥ã®é¢æ°: TreasureDataã®
day_of_week()
㨠æ¨æºSQLã®dayofweek()
ã¨ã§ã¯ãè¿ãããå¤ã1æ¥ãããããã調æ´ãå¿ è¦ã§ããã- day_of_week()
- 1~7ãè¿å´ãããï¼ææï¼1ãæ¥æï¼7ï¼
- DAYOFWEEK()
- 1~7ãè¿å´ãããï¼æ¥æï¼1ãåæï¼7ï¼
- day_of_week()
- ç¬èªé¢æ°ã®ç½®ãæã: TreasureDataã®ç¬èªé¢æ°ãBigQueryã§å®ç¾ããããã«ãæ°ããªãã¸ãã¯ãæ§ç¯ããå¿
è¦ãããã¾ããã
- td_ip_to_country_name: IPã¢ãã¬ã¹ããå½ãå¤å®ããé¢æ°ã¯ãBigQueryã§ã¯æä¾ããã¦ããªããããç¬èªã«å®è£ ãã¾ããã
- td_time_range: æ¥ä»ç¯å²ã®æå®æ¹æ³ãç°ãªããããã¯ã¨ãªã®æ¸ãæããå¿
è¦ã§ããã
- BigQueryã§è©²å½ããé¢æ°ã¯betweenã«ãªãã®ã§ãããå¾®å¦ã«ä»æ§ãç°ãªãã¾ãã
- td_time_rangeã¯ãA ⦠time < B ã¨ããæ¯è¼ã«ãªãã®ã§ãããbetween ã¯A ⦠time ⦠B ã¨ããæ¯è¼ã«ãªãã¾ãã
- min_by()ãmax_by(): å½æã¯BigQueryã§ãããã®é¢æ°ã使ããªãã£ãããã
ROW_NUMBER()
é¢æ°ãªã©ãå©ç¨ãã¦ä»£ããã®æ¹æ³ã§å®è£ ããå¿ è¦ãããã¾ããã- å
·ä½çã«ã¯ã
ROW_NUMBER()
ã§é çªã¥ããè¡ããnumber =1ã§ã¬ã³ã¼ããçµãè¾¼ããã¨ãã£ãå½¢ã§ãããã®å ´åã¯withå¥ããµãã¯ã¨ãªãå¿ è¦ãªã®ã§ãã¯ã¨ãªãé·ããªã£ããå¯èªæ§ãä¸ããã¾ã
- å
·ä½çã«ã¯ã
- NULLã®åªå
é ä½: TreasureDataã§ã¯
ORDER BY
å¥ã®ããã©ã«ããNULLS LAST
ã§ããã®ã«å¯¾ããBigQueryã§ã¯NULLS FIRST
ã§ãããããã½ã¼ãçµæãç°ãªãå ´åãããã¾ãããããã«ãããã¯ã¨ãªã®æ¸ãæããå¿ è¦ã«ãªããç¹ã«ç¹å®ã®ãã¼ã¿ãæ½åºããã¯ã¨ãªã§åé¡ãçºçãã¾ããã - date_diff()ã®è¨ç®æ¹æ³: TreasureDataã§ã¯ unixtimeã«å¤æå¾ãå·®åãæ¥ã«æ»ãã¦è¨ç®ãã¦ããããã§ãããBigQueryã®å ´åã¯date_diff()ã«æå®ããç²åº¦(dayãmonthãyearãªã©)ã ããè¦ã¦è¨ç®ããã¾ããyearãæå®ããå ´åã西æ¦ã ãã®å·®åãåºãã¦ãã¾ãã®ã§ãããèªçæ¥ãæ¥ã¦ããªã人ã®å¹´é½¢ã®è¨ç®ãããã¦ãã¾ãã®ã§ããããèæ
®ããå®è£
ãå¿
è¦ã§ãã
- ä¾ï¼èªçæ¥ã1990/12/31 ã®äººã«å¯¾ãã¦ã2024/05/01æç¹ã®å¹´é½¢ãè¨ç®ããã¨ãBigQueryã§ã¯ 2024-1990ã§34æ³ã®è¨ç®ã«ãªãã
ãã¼ã¿ãªãã¼ã¸ã®ææ¡
BigQuery㧠INFORMATION_SCHEMA.JOBS ããåç §ã§ããå®è¡ãã°ããåç §å ã®ãã¼ãã«ã確èªãããã¨ãã§ãã¾ãããDataplexãå©ç¨ãã¦ãã¼ã¿ãªãã¼ã¸ã確èªãããã¨ã§ãã¼ã¿ã®æµããå¯è¦åããã©ã®ã¯ã¨ãªãã©ã®ãã¼ãã«ã«ä¾åãã¦ããããææ¡ãããã¨ãç°¡åã«ã§ãã¾ãã TreasureDataã§ã¯ãä¸è¨ã®ãããªæ©è½ããªãã£ããããSQLãèªã¾ãªãã¨ã©ã®DBã®ã©ã®ãã¼ãã«ãããã¼ã¿ãåç §ãã¦ãããåããã¾ããã§ãããSQLã®ç§»ç®¡ã«ããã£ã¦ã¯ãPrestoããæ¨æºSQLã«å¤æããSQLãBigQueryä¸ã§åããã¦åãã¦è¶³ããªããã¼ã¿ããããã¨ã«æ°ãã¤ããã¨ãå¤ãã£ãã§ãã 足ããªããã¼ã¿ã¨ãã¦ã¯ä»¥ä¸ã®ãããªãã®ãããã¾ããã
- csvããã¼ã«ã«PCããä¸å®æã«ã¢ãããã¼ããã¦ãããã¼ã¿
- ã¹ãã¬ããã·ã¼ãã§ç®¡çãã¦ãããã¹ã¿ãã¼ã¿
- å人ãä½æããã¹ã±ã¸ã¥ã¼ã«ã¯ã¨ãªã§æ´æ°ããããã¼ãã«ãã¼ã¿
- å¤é¨ããAPIã使ç¨ãã¦ã¤ã³ãµã¼ãããããã¼ã¿
- ãã¼ã«ã«PCããµã¼ãã¼ä¸ã§åãã¦ããã¹ã¯ãªããããã¢ãããã¼ãããããã¼ã¿
- å¤é¨ããå®è¡ãããSQLã§æ´æ°ããããã¼ãã«ãã¼ã¿
ä»å¾ã®å±æ
TreasureDataããBigQueryã¸ç§»ç®¡ãå®äºãããã¨ã«ãããè¨è¼ãã¦ãããããªå¤å¤§ãªã¡ãªããå¾ã¦ãã¾ãã æåã«æ§ç¯ããETLæ©æ§ã¯ãã4å¹´ã»ã©åã«å®è£ ãããã®ã§ãä»è¦ãã¨ãªãã¬ã¤ã¹ãããç®æãå¤ãããã¾ããã¾ããã¡ã¿ãã¼ã¿åéããã³æ´»ç¨ãå§ãã¨ãããã¼ã¿ããã¸ã¡ã³ãä½å¶æ§ç¯ãããè¦ããããã¯ã«ãªãã¾ããããããã£ããã®ãéã¿ã¦ãä»å¾ã¯ä»¥ä¸ã«æ³¨åããäºå®ã§ãã
- Dataplexãä¸å¿ã¨ãããã¼ã¿ããã¸ã¡ã³ãã®å¼·å
- Geminiã¨ã®é£æºã«ãããã¼ã¿æ°ä¸»åã®ä¿é²
- ã¯ã¼ã¯ããã¼ã¨ã³ã¸ã³ã®CloudCompsoer移管ã«ããå¯ç¨æ§åä¸
- ELTå¦çã®Fivetran移管ã«ããæ´æ°é »åº¦åä¸ãELTå¦çã®ã¡ã³ããã³ã¹å·¥æ°åæ¸
- äºæ¥é¨ã¨ã®SLOãSLAçå®ãç®æ¨ã¨ãããã¼ã¿æ´»ç¨ã«ãããã¢ãã¿ãªã³ã°ä½å¶æ§ç¯ãæè¡é¸å®ã®åºæºã¥ãã
- ãã¼ã¿æ´»ç¨åºç¤ã«é¢é£ããã¤ã³ãã©åºç¤ã®IaCå
ãã¼ã¿ã¨ã³ã¸ãã¢ãªã³ã°ã®åéã¯é²æ©ãæ©ããæ°ããæè¡ãå¤ãèªçãã¦ããããã¬ã³ãã®ç§»ãå¤ãããæ©ãã§ãããããã£ãä¸ã®ä¸ã®æµãã«ä¹ãã¤ã¤ããã¼ã¿ããªãã³ãªææ決å®ãå®ç¾ãç¶ããããã«å ¨ç¤¾ã§1000人以ä¸ãæ¥å¸¸çã«ä½¿ç¨ãããã¼ã¿æ´»ç¨åºç¤ãé²åããã¦ããããã¨æãã¾ãã
ã¡ã³ãã¼åéã®ãç¥ãã
å¼ç¤¾ã®ãµã¼ãã¹ããã¼ã¿ã§æé·ããã¦ãããã¡ã³ãã¼ã常æåéãã¦ãã¾ãã
ä»åã®ãã¼ã¿åºç¤ã§æ±ã£ã¦ãããµã¼ãã¹ã¯ä»¥ä¸ã®éãã§ãã
ãµã¼ãã¹ã¨ãã¼ã¿åºç¤ã®ãã¯ããã¸ã¼ã®ä¸¡æ¹ã«é¢å¿ãæã£ã¦ããã ããã¨å¹¸ãã§ãï¼