2023-06-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« dbt ã®è¯ãã¨ããä½ãã§ãããã£ã¦ã®ãå¾ã ã«ã ãã¡ã¢ãã¦ãã ç®æ¬¡ ãï¼ãdbt ãï¼ããµãã¼ããã¼ã¿ãã©ãããã©ã¼ã ãï¼ãå©ç¹ ï¼ï¼ç°å¢ã®åæ¿ã容æ ï¼ï¼ã·ã³ãã«ãªå®è£ ãå¯è½ ï¼ï¼ããã¥ã¡ã³ãçæ ï¼ï¼ãã¹ãã®èªåå ãï¼ãåç» ãï¼ãdbtâ¦
â ã¯ããã« ERå³ãä½æãã¦ã»ããã£ã¦è¦æãããã£ãã®ã§ 調ã¹ã¦ã¿ããã以åãæ¥åã§ä½¿ã£ã¦ããæ¹ãããã®ã§ 調ã¹ã¦ã¿ãã ææ³ã¨ãã¦ã¯ãJarãå©ãã ããªã®ã§ãç°¡åã«å°å ¥ã§ããã®ã§ è±èªã«æµæããªããã°ããããã PostgreSQL/Redshift ãªããpg_dump / â¦
â ã¯ããã« Apache Flink ã§ã®ãã®ã³ã°ã調ã¹ã¦ããã®ã§ ããã辺ã®å¨è¾ºã®ç¥èãçºãã¦ãã ç®æ¬¡ ãï¼ãSLF4J è£è¶³ï¼Facade (ãã¡ãµã¼ã) ãï¼ãHello world ï¼ï¼sbt ï¼ï¼ãµã³ãã« ãï¼ãSLF4J + Log4j 2 ï¼ï¼sbt ï¼ï¼è¨å®ãã¡ã¤ã« ï¼ï¼ãµã³ãã« ï¼ï¼åºåä¾ â¦
â ã¯ããã« ä»äºã§ãããããã¨ãå ¨ãæãä»ããããªãã®ã§ è¶ å人çãªãã¼ã«ã®å ãªãã½ã¼ã¹ãã¡ã¢ã https://dk521123.hatenablog.com/entry/2023/06/18/102448 https://dk521123.hatenablog.com/entry/2023/06/14/174104 ãçµã¿åããã¦ãï¼ã¤ã®DOTãã¡ã¤â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2022/10/10/000000 ã§ãSnowflakeã®ãã¥ã¼ããã£ããã Materialized View (ãããªã¢ã©ã¤ãºããã¥ã¼; ãããã¥ã¼) ã ã¡ããã¡ãããã¼ã¯ã¼ãã¨ãã¦ã§ã¦ããã®ã§ããã®æ©ä¼ã« å¾ã ã«ã¾ã¨ãã¦ããã ã¡ãªã¿â¦
â ã¯ããã« ç¾å ´ä½æ¥ã§åç»æ®å½±ãã¦ããã®ã ã ãã®æ¹æ³ã«ã¤ãã¦ãæãã¦ããã£ãã®ã§ãã¡ã¢ã ç°å¢è¨å®ãæé ã«ã¤ãã¦ãåç»ãçºãã¦ä¼ãããªã© ä»å¾ã®ä»äºã§ã使ãããã ãã YouTubeã¨ãã«ããã¦å°é£ã稼ããã§ããã¼ã ãã ç®æ¬¡ ãï¼ãæ¹æ³ï¼ï¼PowerPoinâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/05/30/151003 ãªã©ã§çºçãããã©ãã«ãã¾ã¨ãã ç®æ¬¡ ãï¼ããdbt init usersãå®è¡æã«ãError: Invalid value for '--profiles-dir'ãã表示 ãï¼ãWindowsã§ãpip install --upgrade pip wheel sâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/06/15/004815 https://dk521123.hatenablog.com/entry/2023/06/16/000531 ã§ã度ã ç»å ´ããDOTè¨èªã®Playground ï¼graphviz-visual-editorï¼ ã使ã£ã¦ï½åDOTã®ç§»ãå¤ãããã¢ãã¡ã¼ã·ã§ã³åã㦠表â¦
â ã¯ããã« è¶ å人çãªãã¼ã«ã https://dk521123.hatenablog.com/entry/2023/06/18/102448 ã¨çµã¿åãããã°ã¢ãã¡ã¼ã·ã§ã³ã§åããã®ã«ãªãã®ã§ã ãï¼ããµã³ãã« ãã©ã«ãæ§æ + dot_viewer_creator.py + delete + 01.txt + 02.txt + 03.txt + add + 01.tâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/06/15/004815 ã®ç¶ãã ä»åã¯ãDOTè¨èªã®ä½¿ããããªææ³ã«ã¤ãã¦ã ã¡ããã¡ããæ¸ãæºãã¦ãã ãªãã以ä¸ã®Playground ã§è§¦ããªããããã®ãä¸çªãããããã Playground http://magjac.com/graphâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/06/14/174104 ã§æ±ã£ã DOTè¨èª ã«é¢ãã¦ãã¡ããã¡ããã¾ã¨ãã ç®æ¬¡ ãï¼ãå¦ç¿ãµã¤ã ãï¼ãæ§æ ï¼ï¼ãã³ãã¬ã¼ã ãï¼ãç¨èªæ´ç ï¼ï¼Node / Edge ï¼ï¼GraphViz ãï¼ããµã³ãã« ãï¼ãå¦ç¿ãµã¤â¦
â ã¯ãã㫠以åã®Terraformã®è¨äºã§ https://dk521123.hatenablog.com/entry/2019/12/09/222057 ~~~ terraform graphã§ãTerraformã®ä¾åé¢ä¿ãã°ã©ãåãããã¨ãå¯è½ terraform graph | dot -Tsvg > graph.svg ~~~ ã£ã¦ãTerraformã®ä¾åé¢ä¿ãã°ã©ãåãâ¦
â ã¯ããã« Snowflake ã®ã³ã¹ãã®è¦ç©ããã«ã¤ãã¦åãã£ããã¨ãçºãã ç®æ¬¡ ãï¼ãè¦ç©ããç®åºãã¼ã« ãï¼ãå ¬å¼ããã¥ã¡ã³ã ãï¼ãã¯ã¬ã¸ãã ãï¼ãã³ã¹ãã決ãã3è¦ç´ ï¼ï¼ã³ã³ãã¥ã¼ãã£ã³ã° ï¼ï¼ã¹ãã¬ã¼ã¸ ï¼ï¼ãã¼ã¿è»¢é ãï¼ãè¦ç©ããç®åºãã¼â¦
â ã¯ããã« å°ãã¿ã æ¥åã§ãè¤éãªSQLã解æããããã«ã sqlparser-rs ã使ã£ã¦Parseãã¦ã ãã®ParseçµæãDOTè¨èªåãã¦ã ããããã³ãã³ããããã¯ã以ä¸ã®é¢é£è¨äºã§ãã£ããããªãã¼ã«ã§ SVGç»ååããã¨ãã£ããã¨ããã£ã¦ããã ããã§ããã®å ã¨â¦
â ã¯ããã« Python ã® å帰é¢æ°ã«ã¤ãã¦å¾ã ã«ã¡ã¢ãã ç®æ¬¡ ãï¼ãå帰é¢æ° ï¼ï¼åºæ¬çãªèãæ¹ ãï¼ããµã³ãã« ä¾ï¼ï¼éä¹ï¼n!ï¼ ãï¼ãå帰é¢æ° ï¼ï¼åºæ¬çãªèãæ¹ def <å帰é¢æ°>(å¼æ°, ...): if æããå¤å®: # â ãã¤ã³ãï¼ããã§ç¡éã«ã¼ããæãããâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/03/10/193805 ã§ãWindwos ã§ãScala éçºç°å¢ãæ§ç¯ããã Windows/WSL + IntelliJ IDEA + Scala ã®éçºç°å¢ãæ§ç¯ãããã£ã¦ 話ã«ãªã£ãã®ã§æ§ç¯ãã¦ã¿ã ç®æ¬¡ ãï¼ãIntelliJ IDEA ï¼ï¼IntelliJ Iâ¦
â ã¯ããã« å°ãã¿ã ç¾å ´ã§ãVimGolf ãªããã®ãæãã¦ããã£ãã®ã§èª¿ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ãåºç¤æä½ãå¦ã¶ã«ã¯ ï¼ï¼åç»ã§å¦ã¶ ï¼ï¼ã³ãã³ããvimtutorã ãï¼ã解説ãµã¤ããªã©ã§å¦ã¶ ãï¼ãVimGolf ãï¼ãVIM Adventure ãï¼ãåºç¤æä½ãå¦ã¶ã«ã¯ * ããâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/06/07/144114 ã§ãKafkaç¨Snowflakeã³ãã¯ã¿ ã«ã¤ãã¦æ±ã£ãã å¿ é ã§ãsnowflake.private.key (å¿ é )ãã£ã¦é ç®ããã 以ä¸ã®ãããªèª¬æã ã£ã https://docs.snowflake.com/ja/user-guide/kafka-conâ¦
â ã¯ããã« æ¥åã§ã Kafkaç¨Snowflakeã³ãã¯ã¿ ã試ããã¨ã«ãªã£ãã®ã§ã¡ã¢ã å¾ã ã«æ¸ã足ãã¦ããããã ç®æ¬¡ ãï¼ãKafkaã³ãã¯ã¿ ãï¼ãä»æ§ ãï¼ãè¨å® ï¼ï¼Kafkaã³ãã¯ã¿ã®ç¨®é¡ ï¼ï¼è¨å®æé ãï¼ãKafkaæ§æãã¡ã¤ã« ï¼ï¼æ§æãã¡ã¤ã«ä¾ ï¼ï¼Kafkaæ§â¦
â ã¯ããã« Scala ã® ãã¿ã¼ã³ãããã³ã° ãå¼·åã£ã¦è©±ãæ¥åä¸ã«ã§ã¦ããã®ã§ 調ã¹ã¦ãã¾ã¨ãã ç®æ¬¡ ãï¼ããã¿ã¼ã³ãããã³ã° ãï¼ãå®æ°ãã¿ã¼ã³ - å®æ°ã§ã®ãããã³ã° ãï¼ãæ¡ä»¶æç¸ãã¿ã¼ã³ - ã¬ã¼ãæ¡ä»¶ï¼ifï¼ã§ã®ãããã³ã° ãï¼ãé¢æ°ã¨ãã¦å®ç¾© â¦
â ã¯ããã« å°ãã¿ã Terraform ã® default_tags ãªã©ã§ãã©ãã«ããã£ãã®ã§ã¡ã¢ã ç®æ¬¡ ãï¼ãtags ãï¼ãdefault_tags ï¼ï¼ã¢ã¸ã¥ã¼ã«ã¸ã®ã¿ã°è¨å®ã®ç¶æ¿æ¹æ³ ãï¼ãmergeé¢æ° ãï¼ãtags * AWS ã® Tag ã§å©ç¨ã§ãã https://registry.terraform.io/proviâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/05/14/122215 https://dk521123.hatenablog.com/entry/2023/05/25/000000 ã®ç¶ãã ä»åã¯ãAWS MSK Connect ã® è¨å®é¨åãç¹ã«ãæ©å¯ã«é¢ããDBãªã©ã®æ¥ç¶æ å ±ã Secret Manager ããåå¾ãããã¨ãâ¦
â ã¯ããã« Amazon MSK Connect ï¼Amazon Managed Streaming for Apache Kafkaï¼ ã® REST API ã«ã¤ãã¦ã調ã¹ã¦ããã®ã ãã çµå±ã¯ãAWS CLIã®æ¹ãããã¨ãã£ããã¨ãããã®ã§ããããã¸ããã¡ã¢ã ç®æ¬¡ ãï¼ãAmazon MSK ã® AWS CLI ï¼ï¼MSK ï¼ï¼MSK Conneâ¦
â ã¯ããã« ä»æ¥ã£ã¦ãã¼ãã¼æ¨æ¥ã Kafka Connect ã® Connector æ§æããããã£ã®æå®ããã¹ã£ã¦ã¦ 2ï½3æ¥ããã£ã¦è¿·æãããã®ã§ãã¡ã¢ã ç®æ¬¡ ãï¼ãæ¥ç¶ ï¼ï¼connection.url ï¼ï¼connection.user ï¼ï¼connection.password ï¼ï¼connection.attempts ï¼ï¼dâ¦
â ã¯ããã« å°ãã¿ã ããã©ã¼ãã³ã¹ãã¹ãããéã«ã Rest APIãï¼ã§ããéãï¼åæã«Kickãããæ㫠調ã¹ã¦ãããã¨ãã¡ã¢ã ç®æ¬¡ ãï¼ãã·ã§ã«ã§ã®éåæå¦ç ãï¼ããµã³ãã« ãï¼ãã·ã§ã«ã§ã®éåæå¦ç * ï¼è²ã ãªæ¹æ³ãããã¿ããã ãï¼å®è¡ãããè¡ã®â¦