From 105fcaf7ca4574bf0ad8ab9074eba63f06cc3472 Mon Sep 17 00:00:00 2001 From: Julius Remigio <14811322+juls858@users.noreply.github.com> Date: Thu, 15 Dec 2022 12:55:17 -0800 Subject: [PATCH] AN-2470/decoder-view (#291) --- analysis/decoder.py | 62 +++++++++++++++++++ ...amline__decode_logs_history_start_stop.sql | 11 ++++ macros/create_udfs.sql | 5 +- macros/streamline/models.sql | 28 +++++++++ macros/streamline/streamline_udfs.sql | 23 ++++++- models/silver/silver__abis.sql | 17 ++--- models/silver/silver__abis.yml | 2 +- models/silver/silver__proxies.sql | 23 +++---- models/silver/silver__proxies.yml | 2 +- ...ecode_logs_history_003505501_005129923.sql | 11 ++++ ...ecode_logs_history_005129924_005267653.sql | 11 ++++ ...ecode_logs_history_005267654_005425474.sql | 11 ++++ ...ecode_logs_history_005425475_005544369.sql | 11 ++++ ...ecode_logs_history_005544370_005644534.sql | 11 ++++ ...ecode_logs_history_005644535_005745912.sql | 11 ++++ ...ecode_logs_history_005745913_005851103.sql | 11 ++++ ...ecode_logs_history_005851104_005930963.sql | 11 ++++ ...ecode_logs_history_005930964_006013196.sql | 11 ++++ ...ecode_logs_history_006013197_006128604.sql | 11 ++++ ...ecode_logs_history_006128605_006231222.sql | 11 ++++ ...ecode_logs_history_006231223_006343791.sql | 11 ++++ ...ecode_logs_history_006343792_006451869.sql | 11 ++++ ...ecode_logs_history_006451870_006579935.sql | 11 ++++ ...ecode_logs_history_006579936_006725259.sql | 11 ++++ ...ecode_logs_history_006725260_006865431.sql | 11 ++++ ...ecode_logs_history_006865432_007008508.sql | 11 ++++ ...ecode_logs_history_007008509_007151293.sql | 11 ++++ ...ecode_logs_history_007151294_007283375.sql | 11 ++++ ...ecode_logs_history_007283376_007433628.sql | 11 ++++ ...ecode_logs_history_007433629_007581136.sql | 11 ++++ ...ecode_logs_history_007581137_007720438.sql | 11 ++++ ...ecode_logs_history_007720439_007831570.sql | 11 ++++ ...ecode_logs_history_007831571_007932174.sql | 11 ++++ ...ecode_logs_history_007932175_008033542.sql | 11 ++++ ...ecode_logs_history_008033543_008133664.sql | 11 ++++ ...ecode_logs_history_008133665_008236826.sql | 11 ++++ ...ecode_logs_history_008236827_008337162.sql | 11 ++++ ...ecode_logs_history_008337164_008449853.sql | 11 ++++ ...ecode_logs_history_008449854_008568080.sql | 11 ++++ ...ecode_logs_history_008568081_008688069.sql | 11 ++++ ...ecode_logs_history_008688070_008788949.sql | 11 ++++ ...ecode_logs_history_008788950_008870383.sql | 11 ++++ ...ecode_logs_history_008870384_008934586.sql | 11 ++++ ...ecode_logs_history_008934587_008958127.sql | 11 ++++ ...ecode_logs_history_008958128_009039650.sql | 11 ++++ ...ecode_logs_history_009039651_009126245.sql | 11 ++++ ...ecode_logs_history_009126246_009221442.sql | 11 ++++ ...ecode_logs_history_009221443_009324137.sql | 11 ++++ ...ecode_logs_history_009324138_009421382.sql | 11 ++++ ...ecode_logs_history_009421383_009499378.sql | 11 ++++ ...ecode_logs_history_009499379_009591761.sql | 11 ++++ ...ecode_logs_history_009591762_009678025.sql | 11 ++++ ...ecode_logs_history_009678026_009762301.sql | 11 ++++ ...ecode_logs_history_009762302_009855362.sql | 11 ++++ ...ecode_logs_history_009855363_009936445.sql | 11 ++++ ...ecode_logs_history_009936446_010016536.sql | 11 ++++ ...ecode_logs_history_010016537_010099866.sql | 11 ++++ ...ecode_logs_history_010099867_010183537.sql | 11 ++++ ...ecode_logs_history_010183538_010262649.sql | 11 ++++ ...ecode_logs_history_010262650_010328739.sql | 11 ++++ ...ecode_logs_history_010328740_010388441.sql | 11 ++++ ...ecode_logs_history_010388442_010447927.sql | 11 ++++ ...ecode_logs_history_010447928_010500574.sql | 11 ++++ ...ecode_logs_history_010500575_010549225.sql | 11 ++++ ...ecode_logs_history_010549226_010596024.sql | 11 ++++ ...ecode_logs_history_010596025_010641532.sql | 11 ++++ ...ecode_logs_history_010641533_010685583.sql | 11 ++++ ...ecode_logs_history_010685584_010726824.sql | 11 ++++ ...ecode_logs_history_010726825_010766551.sql | 11 ++++ ...ecode_logs_history_010766552_010801126.sql | 11 ++++ ...ecode_logs_history_010801127_010838383.sql | 11 ++++ ...ecode_logs_history_010838384_010873048.sql | 11 ++++ ...ecode_logs_history_010873049_010906531.sql | 11 ++++ ...ecode_logs_history_010906532_010942439.sql | 11 ++++ ...ecode_logs_history_010942440_010978634.sql | 11 ++++ ...ecode_logs_history_010978635_011013727.sql | 11 ++++ ...ecode_logs_history_011013728_011050516.sql | 11 ++++ ...ecode_logs_history_011050517_011089184.sql | 11 ++++ ...ecode_logs_history_011089185_011127030.sql | 11 ++++ ...ecode_logs_history_011127031_011163853.sql | 11 ++++ ...ecode_logs_history_011163854_011201420.sql | 11 ++++ ...ecode_logs_history_011201421_011240013.sql | 11 ++++ ...ecode_logs_history_011240014_011278313.sql | 11 ++++ ...ecode_logs_history_011278314_011315292.sql | 11 ++++ ...ecode_logs_history_011315293_011354716.sql | 11 ++++ ...ecode_logs_history_011354717_011392785.sql | 11 ++++ ...ecode_logs_history_011392786_011428831.sql | 11 ++++ ...ecode_logs_history_011428832_011466124.sql | 11 ++++ ...ecode_logs_history_011466125_011502761.sql | 11 ++++ ...ecode_logs_history_011502762_011539349.sql | 11 ++++ ...ecode_logs_history_011539350_011575623.sql | 11 ++++ ...ecode_logs_history_011575624_011613942.sql | 11 ++++ ...ecode_logs_history_011613943_011652233.sql | 11 ++++ ...ecode_logs_history_011652234_011688966.sql | 11 ++++ ...ecode_logs_history_011688967_011726147.sql | 11 ++++ ...ecode_logs_history_011726148_011762252.sql | 11 ++++ ...ecode_logs_history_011762253_011798589.sql | 11 ++++ ...ecode_logs_history_011798590_011835415.sql | 11 ++++ ...ecode_logs_history_011835416_011870974.sql | 11 ++++ ...ecode_logs_history_011870975_011907947.sql | 11 ++++ ...ecode_logs_history_011907948_011945563.sql | 11 ++++ ...ecode_logs_history_011945564_011983269.sql | 11 ++++ ...ecode_logs_history_011983270_012019956.sql | 11 ++++ ...ecode_logs_history_012019957_012057200.sql | 11 ++++ ...ecode_logs_history_012057201_012095095.sql | 11 ++++ ...ecode_logs_history_012095096_012132152.sql | 11 ++++ ...ecode_logs_history_012132153_012168445.sql | 11 ++++ ...ecode_logs_history_012168446_012205649.sql | 11 ++++ ...ecode_logs_history_012205650_012243149.sql | 11 ++++ ...ecode_logs_history_012243150_012278973.sql | 11 ++++ ...ecode_logs_history_012278974_012311347.sql | 11 ++++ ...ecode_logs_history_012311348_012342014.sql | 11 ++++ ...ecode_logs_history_012342015_012371601.sql | 11 ++++ ...ecode_logs_history_012371602_012402623.sql | 11 ++++ ...ecode_logs_history_012402624_012434015.sql | 11 ++++ ...ecode_logs_history_012434016_012463882.sql | 11 ++++ ...ecode_logs_history_012463883_012494225.sql | 11 ++++ ...ecode_logs_history_012494226_012523499.sql | 11 ++++ ...ecode_logs_history_012523500_012554050.sql | 11 ++++ ...ecode_logs_history_012554051_012586322.sql | 11 ++++ ...ecode_logs_history_012586323_012617082.sql | 11 ++++ ...ecode_logs_history_012617083_012649128.sql | 11 ++++ ...ecode_logs_history_012649129_012681037.sql | 11 ++++ ...ecode_logs_history_012681038_012713030.sql | 11 ++++ ...ecode_logs_history_012713031_012746581.sql | 11 ++++ ...ecode_logs_history_012746582_012778839.sql | 11 ++++ ...ecode_logs_history_012778840_012810448.sql | 11 ++++ ...ecode_logs_history_012810449_012843419.sql | 11 ++++ ...ecode_logs_history_012843420_012877064.sql | 11 ++++ ...ecode_logs_history_012877065_012910958.sql | 11 ++++ ...ecode_logs_history_012910959_012945176.sql | 11 ++++ ...ecode_logs_history_012945177_012981462.sql | 11 ++++ ...ecode_logs_history_012981463_013017953.sql | 11 ++++ ...ecode_logs_history_013017954_013054686.sql | 11 ++++ ...ecode_logs_history_013054687_013090063.sql | 11 ++++ ...ecode_logs_history_013090064_013130704.sql | 11 ++++ ...ecode_logs_history_013130705_013172883.sql | 11 ++++ ...ecode_logs_history_013172884_013211506.sql | 11 ++++ ...ecode_logs_history_013211507_013249767.sql | 11 ++++ ...ecode_logs_history_013249768_013287840.sql | 11 ++++ ...ecode_logs_history_013287841_013326959.sql | 11 ++++ ...ecode_logs_history_013326960_013366235.sql | 11 ++++ ...ecode_logs_history_013366236_013403900.sql | 11 ++++ ...ecode_logs_history_013403901_013440501.sql | 11 ++++ ...ecode_logs_history_013440502_013476065.sql | 11 ++++ ...ecode_logs_history_013476067_013509047.sql | 11 ++++ ...ecode_logs_history_013509048_013541141.sql | 11 ++++ ...ecode_logs_history_013541142_013573653.sql | 11 ++++ ...ecode_logs_history_013573654_013605580.sql | 11 ++++ ...ecode_logs_history_013605581_013639144.sql | 11 ++++ ...ecode_logs_history_013639145_013673606.sql | 11 ++++ ...ecode_logs_history_013673607_013707345.sql | 11 ++++ ...ecode_logs_history_013707346_013742473.sql | 11 ++++ ...ecode_logs_history_013742474_013778001.sql | 11 ++++ ...ecode_logs_history_013778002_013814711.sql | 11 ++++ ...ecode_logs_history_013814712_013850142.sql | 11 ++++ ...ecode_logs_history_013850143_013884816.sql | 11 ++++ ...ecode_logs_history_013884817_013920242.sql | 11 ++++ ...ecode_logs_history_013920243_013956975.sql | 11 ++++ ...ecode_logs_history_013956976_013994254.sql | 11 ++++ ...ecode_logs_history_013994255_014031819.sql | 11 ++++ ...ecode_logs_history_014031820_014067825.sql | 11 ++++ ...ecode_logs_history_014067826_014105429.sql | 11 ++++ ...ecode_logs_history_014105430_014143358.sql | 11 ++++ ...ecode_logs_history_014143360_014179839.sql | 11 ++++ ...ecode_logs_history_014179840_014215684.sql | 11 ++++ ...ecode_logs_history_014215685_014250157.sql | 11 ++++ ...ecode_logs_history_014250158_014285557.sql | 11 ++++ ...ecode_logs_history_014285558_014319812.sql | 11 ++++ ...ecode_logs_history_014319813_014353198.sql | 11 ++++ ...ecode_logs_history_014353199_014386281.sql | 11 ++++ ...ecode_logs_history_014386282_014420051.sql | 11 ++++ ...ecode_logs_history_014420052_014453745.sql | 11 ++++ ...ecode_logs_history_014453746_014486058.sql | 11 ++++ ...ecode_logs_history_014486059_014518261.sql | 11 ++++ ...ecode_logs_history_014518262_014551912.sql | 11 ++++ ...ecode_logs_history_014551913_014585983.sql | 11 ++++ ...ecode_logs_history_014585984_014618457.sql | 11 ++++ ...ecode_logs_history_014618458_014651101.sql | 11 ++++ ...ecode_logs_history_014651102_014684043.sql | 11 ++++ ...ecode_logs_history_014684044_014717417.sql | 11 ++++ ...ecode_logs_history_014717418_014750907.sql | 11 ++++ ...ecode_logs_history_014750908_014784640.sql | 11 ++++ ...ecode_logs_history_014784641_014819146.sql | 11 ++++ ...ecode_logs_history_014819147_014852638.sql | 11 ++++ ...ecode_logs_history_014852639_014887643.sql | 11 ++++ ...ecode_logs_history_014887645_014923262.sql | 11 ++++ ...ecode_logs_history_014923263_014958902.sql | 11 ++++ ...ecode_logs_history_014958903_014992944.sql | 11 ++++ ...ecode_logs_history_014992945_015026970.sql | 11 ++++ ...ecode_logs_history_015026971_015061136.sql | 11 ++++ ...ecode_logs_history_015061137_015094154.sql | 11 ++++ ...ecode_logs_history_015094155_015128227.sql | 11 ++++ ...ecode_logs_history_015128228_015162362.sql | 11 ++++ ...ecode_logs_history_015162363_015195682.sql | 11 ++++ ...ecode_logs_history_015195683_015230048.sql | 11 ++++ ...ecode_logs_history_015230049_015262684.sql | 11 ++++ ...ecode_logs_history_015262685_015296115.sql | 11 ++++ ...ecode_logs_history_015296116_015328325.sql | 11 ++++ ...ecode_logs_history_015328326_015360161.sql | 11 ++++ ...ecode_logs_history_015360162_015392748.sql | 11 ++++ ...ecode_logs_history_015392749_015425029.sql | 11 ++++ ...ecode_logs_history_015425030_015457637.sql | 11 ++++ ...ecode_logs_history_015457638_015488783.sql | 11 ++++ ...ecode_logs_history_015488784_015520475.sql | 11 ++++ ...ecode_logs_history_015520477_015553972.sql | 11 ++++ ...ecode_logs_history_015553973_015585959.sql | 11 ++++ ...ecode_logs_history_015585960_015617226.sql | 11 ++++ ...ecode_logs_history_015617227_015649050.sql | 11 ++++ ...ecode_logs_history_015649051_015682430.sql | 11 ++++ ...ecode_logs_history_015682431_015720136.sql | 11 ++++ ...ecode_logs_history_015720137_015756876.sql | 11 ++++ ...ecode_logs_history_015756877_015789602.sql | 11 ++++ ...ecode_logs_history_015789603_015823300.sql | 11 ++++ ...ecode_logs_history_015823301_015856913.sql | 11 ++++ ...ecode_logs_history_015856914_015891867.sql | 11 ++++ ...ecode_logs_history_015891868_015927605.sql | 11 ++++ ...ecode_logs_history_015927606_015962455.sql | 11 ++++ ...ecode_logs_history_015962456_015997733.sql | 11 ++++ ...ecode_logs_history_015997734_016000000.sql | 11 ++++ .../streamline__complete_decode_logs.sql | 48 ++++++++++++++ .../streamline/streamline__decode_logs.sql | 60 ++++++++++++++++++ .../streamline__decode_logs_realtime.sql | 52 ++++++++++++++++ models/sources.yml | 18 +++--- packages.yml | 1 - 225 files changed, 2636 insertions(+), 37 deletions(-) create mode 100644 analysis/decoder.py create mode 100644 analysis/streamline__decode_logs_history_start_stop.sql create mode 100644 macros/streamline/models.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_003505501_005129923.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005129924_005267653.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005267654_005425474.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005425475_005544369.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005544370_005644534.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005644535_005745912.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005745913_005851103.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005851104_005930963.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_005930964_006013196.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006013197_006128604.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006128605_006231222.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006231223_006343791.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006343792_006451869.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006451870_006579935.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006579936_006725259.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006725260_006865431.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_006865432_007008508.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007008509_007151293.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007151294_007283375.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007283376_007433628.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007433629_007581136.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007581137_007720438.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007720439_007831570.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007831571_007932174.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_007932175_008033542.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008033543_008133664.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008133665_008236826.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008236827_008337162.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008337164_008449853.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008449854_008568080.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008568081_008688069.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008688070_008788949.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008788950_008870383.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008870384_008934586.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008934587_008958127.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_008958128_009039650.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009039651_009126245.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009126246_009221442.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009221443_009324137.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009324138_009421382.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009421383_009499378.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009499379_009591761.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009591762_009678025.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009678026_009762301.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009762302_009855362.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009855363_009936445.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_009936446_010016536.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010016537_010099866.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010099867_010183537.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010183538_010262649.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010262650_010328739.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010328740_010388441.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010388442_010447927.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010447928_010500574.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010500575_010549225.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010549226_010596024.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010596025_010641532.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010641533_010685583.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010685584_010726824.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010726825_010766551.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010766552_010801126.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010801127_010838383.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010838384_010873048.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010873049_010906531.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010906532_010942439.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010942440_010978634.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_010978635_011013727.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011013728_011050516.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011050517_011089184.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011089185_011127030.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011127031_011163853.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011163854_011201420.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011201421_011240013.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011240014_011278313.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011278314_011315292.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011315293_011354716.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011354717_011392785.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011392786_011428831.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011428832_011466124.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011466125_011502761.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011502762_011539349.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011539350_011575623.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011575624_011613942.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011613943_011652233.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011652234_011688966.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011688967_011726147.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011726148_011762252.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011762253_011798589.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011798590_011835415.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011835416_011870974.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011870975_011907947.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011907948_011945563.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011945564_011983269.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_011983270_012019956.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012019957_012057200.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012057201_012095095.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012095096_012132152.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012132153_012168445.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012168446_012205649.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012205650_012243149.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012243150_012278973.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012278974_012311347.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012311348_012342014.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012342015_012371601.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012371602_012402623.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012402624_012434015.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012434016_012463882.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012463883_012494225.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012494226_012523499.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012523500_012554050.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012554051_012586322.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012586323_012617082.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012617083_012649128.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012649129_012681037.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012681038_012713030.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012713031_012746581.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012746582_012778839.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012778840_012810448.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012810449_012843419.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012843420_012877064.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012877065_012910958.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012910959_012945176.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012945177_012981462.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_012981463_013017953.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013017954_013054686.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013054687_013090063.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013090064_013130704.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013130705_013172883.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013172884_013211506.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013211507_013249767.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013249768_013287840.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013287841_013326959.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013326960_013366235.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013366236_013403900.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013403901_013440501.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013440502_013476065.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013476067_013509047.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013509048_013541141.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013541142_013573653.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013573654_013605580.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013605581_013639144.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013639145_013673606.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013673607_013707345.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013707346_013742473.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013742474_013778001.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013778002_013814711.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013814712_013850142.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013850143_013884816.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013884817_013920242.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013920243_013956975.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013956976_013994254.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_013994255_014031819.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014031820_014067825.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014067826_014105429.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014105430_014143358.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014143360_014179839.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014179840_014215684.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014215685_014250157.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014250158_014285557.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014285558_014319812.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014319813_014353198.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014353199_014386281.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014386282_014420051.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014420052_014453745.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014453746_014486058.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014486059_014518261.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014518262_014551912.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014551913_014585983.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014585984_014618457.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014618458_014651101.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014651102_014684043.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014684044_014717417.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014717418_014750907.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014750908_014784640.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014784641_014819146.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014819147_014852638.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014852639_014887643.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014887645_014923262.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014923263_014958902.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014958903_014992944.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_014992945_015026970.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015026971_015061136.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015061137_015094154.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015094155_015128227.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015128228_015162362.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015162363_015195682.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015195683_015230048.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015230049_015262684.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015262685_015296115.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015296116_015328325.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015328326_015360161.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015360162_015392748.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015392749_015425029.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015425030_015457637.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015457638_015488783.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015488784_015520475.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015520477_015553972.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015553973_015585959.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015585960_015617226.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015617227_015649050.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015649051_015682430.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015682431_015720136.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015720137_015756876.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015756877_015789602.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015789603_015823300.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015823301_015856913.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015856914_015891867.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015891868_015927605.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015927606_015962455.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015962456_015997733.sql create mode 100644 models/silver/streamline/decoder/streamline__decode_logs_history_015997734_016000000.sql create mode 100644 models/silver/streamline/streamline__complete_decode_logs.sql create mode 100644 models/silver/streamline/streamline__decode_logs.sql create mode 100644 models/silver/streamline/streamline__decode_logs_realtime.sql diff --git a/analysis/decoder.py b/analysis/decoder.py new file mode 100644 index 00000000..b869b1f7 --- /dev/null +++ b/analysis/decoder.py @@ -0,0 +1,62 @@ +# %% +from os import getenv + +import pandas as pd +from dotenv import load_dotenv +from snowflake.snowpark import Session + +load_dotenv("../.env") +# %% +connection_parameters = { + "USER": getenv("SF_USERNAME"), + "PASSWORD": getenv("SF_PASSWORD"), + "DATABASE": getenv("SF_DATABASE"), + "SCHEMA": getenv("SF_SCHEMA"), + "WAREHOUSE": getenv("SF_WAREHOUSE"), + "ROLE": getenv("SF_ROLE"), + "QUERY_TAG": getenv("SF_QUERY_TAG"), + "ACCOUNT": getenv("SF_ACCOUNT"), + "REGION": getenv("SF_REGION"), +} + +new_session = Session.builder.configs(connection_parameters).create() + +# %% +df_table = new_session.table("streamline.decode_logs_history") +# %% +df_block_number = df_table.select("BLOCK_NUMBER") + +# %% +df_grp = df_block_number.group_by(["BLOCK_NUMBER"]).count() +# %% +df = df_grp.collect() +# %% +df = pd.DataFrame(df) +# %% +df.sort_values("BLOCK_NUMBER", inplace=True) +# %% +df["CUM_COUNT"] = df["COUNT"].cumsum() +df["BIN"] = df["CUM_COUNT"] // 10000000 +results = df.groupby(["BIN"]).agg({"BLOCK_NUMBER": [min, max]}) +# %% +from shutil import copy2 +from pathlib import Path + +# %% + + +def create_model(row): + template = Path("./streamline__decode_logs_history_start_stop.sql") + pad_length = 9 + new_name = template.name.replace("start", str(row[0]).zfill(pad_length)).replace( + "stop", str(row[1]).zfill(pad_length) + ) + copy2( + template, + Path("../models/silver/streamline/decoder/") / new_name, + ) + + +# %% +results["BLOCK_NUMBER"].apply(create_model, axis=1) +# %% diff --git a/analysis/streamline__decode_logs_history_start_stop.sql b/analysis/streamline__decode_logs_history_start_stop.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/analysis/streamline__decode_logs_history_start_stop.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/macros/create_udfs.sql b/macros/create_udfs.sql index 1899c301..137ce97b 100644 --- a/macros/create_udfs.sql +++ b/macros/create_udfs.sql @@ -2,8 +2,8 @@ {% if var("UPDATE_UDFS_AND_SPS") %} {% set sql %} CREATE schema if NOT EXISTS silver; - {{ create_js_hex_to_int() }}; - {{ create_udf_hex_to_int( +{{ create_js_hex_to_int() }}; +{{ create_udf_hex_to_int( schema = "public" ) }} {{ create_udf_hex_to_int_with_inputs( @@ -33,6 +33,7 @@ {{ create_udf_get_beacon_blocks() }} {{ create_udf_decode_array_string() }} {{ create_udf_decode_array_object() }} + {{ create_udf_bulk_decode_logs() }} {% endset %} {% do run_query(sql) %} diff --git a/macros/streamline/models.sql b/macros/streamline/models.sql new file mode 100644 index 00000000..724e3301 --- /dev/null +++ b/macros/streamline/models.sql @@ -0,0 +1,28 @@ +{% macro decode_logs_history( + start, + stop + ) %} +SELECT + l.block_number, + l._log_id, + abi.data AS abi, + l.data +FROM + {{ ref("streamline__decode_logs") }} + l + INNER JOIN {{ ref("silver__abis") }} + abi + ON l.abi_address = abi.contract_address +WHERE + l.block_number BETWEEN {{ start }} + AND {{ stop }} + AND _log_id NOT IN ( + SELECT + _log_id + FROM + {{ ref("streamline__complete_decode_logs") }} + WHERE + block_number BETWEEN {{ start }} + AND {{ stop }} + ) +{% endmacro %} diff --git a/macros/streamline/streamline_udfs.sql b/macros/streamline/streamline_udfs.sql index be03ea92..90df9b81 100644 --- a/macros/streamline/streamline_udfs.sql +++ b/macros/streamline/streamline_udfs.sql @@ -98,7 +98,11 @@ {% endmacro %} {% macro create_udf_call_node() %} - CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_json_rpc_call(node_url VARCHAR, headers OBJECT, data ARRAY) returns variant api_integration = aws_ethereum_api AS {% if target.name == "prod" %} + CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_json_rpc_call( + node_url VARCHAR, + headers OBJECT, + DATA ARRAY + ) returns variant api_integration = aws_ethereum_api AS {% if target.name == "prod" %} 'https://e03pt6v501.execute-api.us-east-1.amazonaws.com/prod/call_node' {% else %} 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/call_node' @@ -106,7 +110,11 @@ {% endmacro %} {% macro create_udf_call_read_batching() %} - CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_json_rpc_read_calls(node_url VARCHAR, headers OBJECT, calls ARRAY) returns variant api_integration = aws_ethereum_api AS {% if target.name == "prod" %} + CREATE EXTERNAL FUNCTION IF NOT EXISTS streamline.udf_json_rpc_read_calls( + node_url VARCHAR, + headers OBJECT, + calls ARRAY + ) returns variant api_integration = aws_ethereum_api AS {% if target.name == "prod" %} 'https://e03pt6v501.execute-api.us-east-1.amazonaws.com/prod/call_read_batching' {% else %} 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/call_read_batching' @@ -149,3 +157,14 @@ 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/decode_log' {%- endif %}; {% endmacro %} + +{% macro create_udf_bulk_decode_logs() %} + CREATE + OR REPLACE EXTERNAL FUNCTION streamline.udf_bulk_decode_logs( + json OBJECT + ) returns ARRAY api_integration = aws_ethereum_api AS {% if target.name == "prod" %} + 'https://e03pt6v501.execute-api.us-east-1.amazonaws.com/prod/bulk_decode_logs' + {% else %} + 'https://mryeusnrob.execute-api.us-east-1.amazonaws.com/dev/bulk_decode_logs' + {%- endif %}; +{% endmacro %} diff --git a/models/silver/silver__abis.sql b/models/silver/silver__abis.sql index c3bf6e41..09730a56 100644 --- a/models/silver/silver__abis.sql +++ b/models/silver/silver__abis.sql @@ -1,8 +1,8 @@ {{ config ( materialized = "incremental", - unique_key = "ID", - cluster_by = "ROUND(block_number, -3)", - merge_update_columns = ["ID"] + unique_key = "contract_address", + merge_update_columns = ["contract_address"], + post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(contract_address)" ) }} WITH meta AS ( @@ -42,10 +42,7 @@ SELECT DATA, _INSERTED_TIMESTAMP, metadata, - VALUE, - {{ dbt_utils.surrogate_key( - ['block_number', 'contract_address'] - ) }} AS id + VALUE FROM {{ source( "bronze_streamline", @@ -53,9 +50,7 @@ FROM ) }} JOIN meta m ON m.file_name = metadata$filename - WHERE - DATA :: STRING <> 'Contract source code not verified' -qualify(ROW_NUMBER() over(PARTITION BY id + DATA :: STRING <> 'Contract source code not verified' qualify(ROW_NUMBER() over(PARTITION BY contract_address ORDER BY - _inserted_timestamp DESC)) = 1 \ No newline at end of file + block_number DESC, _INSERTED_TIMESTAMP DESC)) = 1 diff --git a/models/silver/silver__abis.yml b/models/silver/silver__abis.yml index 1546df40..2af6440c 100644 --- a/models/silver/silver__abis.yml +++ b/models/silver/silver__abis.yml @@ -4,4 +4,4 @@ models: tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - - ID \ No newline at end of file + - CONTRACT_ADDRESS \ No newline at end of file diff --git a/models/silver/silver__proxies.sql b/models/silver/silver__proxies.sql index cf994de4..a8605cc2 100644 --- a/models/silver/silver__proxies.sql +++ b/models/silver/silver__proxies.sql @@ -1,8 +1,8 @@ {{ config ( materialized = "incremental", - unique_key = "id", + unique_key = "tx_hash", cluster_by = "ROUND(block_number, -3)", - merge_update_columns = ["id"] + merge_update_columns = ["tx_hash"] ) }} WITH base AS ( @@ -27,10 +27,10 @@ WITH base AS ( AND tx_status = 'SUCCESS' {% if is_incremental() %} -AND _inserted_timestamp >= ( +AND _inserted_timestamp :: DATE >= ( SELECT MAX( - _inserted_timestamp + _inserted_timestamp :: DATE ) FROM {{ this }} @@ -82,12 +82,13 @@ SELECT contract_address, proxy_address, _inserted_timestamp, - {{ dbt_utils.surrogate_key( - ['block_number', 'contract_address'] - ) }} AS id, - COALESCE(LAG(block_number) over(PARTITION BY contract_address -ORDER BY - block_number DESC), 10000000000) AS next_block_number + COALESCE( + (LAG(block_number) over(PARTITION BY contract_address + ORDER BY + block_number DESC)) - 1, + 10000000000 + ) AS end_block, + block_number AS start_block FROM {% if is_incremental() %} @@ -96,6 +97,6 @@ all_records base {% endif %} -qualify(ROW_NUMBER() over(PARTITION BY id +qualify(ROW_NUMBER() over(PARTITION BY tx_hash ORDER BY _inserted_timestamp DESC)) = 1 diff --git a/models/silver/silver__proxies.yml b/models/silver/silver__proxies.yml index 0969af02..7f128c6d 100644 --- a/models/silver/silver__proxies.yml +++ b/models/silver/silver__proxies.yml @@ -4,4 +4,4 @@ models: tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: - - ID \ No newline at end of file + - TX_HASH \ No newline at end of file diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_003505501_005129923.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_003505501_005129923.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_003505501_005129923.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005129924_005267653.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005129924_005267653.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005129924_005267653.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005267654_005425474.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005267654_005425474.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005267654_005425474.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005425475_005544369.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005425475_005544369.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005425475_005544369.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005544370_005644534.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005544370_005644534.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005544370_005644534.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005644535_005745912.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005644535_005745912.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005644535_005745912.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005745913_005851103.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005745913_005851103.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005745913_005851103.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005851104_005930963.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005851104_005930963.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005851104_005930963.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_005930964_006013196.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_005930964_006013196.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_005930964_006013196.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006013197_006128604.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006013197_006128604.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006013197_006128604.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006128605_006231222.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006128605_006231222.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006128605_006231222.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006231223_006343791.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006231223_006343791.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006231223_006343791.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006343792_006451869.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006343792_006451869.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006343792_006451869.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006451870_006579935.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006451870_006579935.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006451870_006579935.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006579936_006725259.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006579936_006725259.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006579936_006725259.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006725260_006865431.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006725260_006865431.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006725260_006865431.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_006865432_007008508.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_006865432_007008508.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_006865432_007008508.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007008509_007151293.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007008509_007151293.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007008509_007151293.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007151294_007283375.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007151294_007283375.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007151294_007283375.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007283376_007433628.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007283376_007433628.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007283376_007433628.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007433629_007581136.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007433629_007581136.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007433629_007581136.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007581137_007720438.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007581137_007720438.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007581137_007720438.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007720439_007831570.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007720439_007831570.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007720439_007831570.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007831571_007932174.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007831571_007932174.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007831571_007932174.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_007932175_008033542.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_007932175_008033542.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_007932175_008033542.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008033543_008133664.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008033543_008133664.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008033543_008133664.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008133665_008236826.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008133665_008236826.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008133665_008236826.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008236827_008337162.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008236827_008337162.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008236827_008337162.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008337164_008449853.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008337164_008449853.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008337164_008449853.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008449854_008568080.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008449854_008568080.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008449854_008568080.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008568081_008688069.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008568081_008688069.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008568081_008688069.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008688070_008788949.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008688070_008788949.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008688070_008788949.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008788950_008870383.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008788950_008870383.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008788950_008870383.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008870384_008934586.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008870384_008934586.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008870384_008934586.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008934587_008958127.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008934587_008958127.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008934587_008958127.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_008958128_009039650.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_008958128_009039650.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_008958128_009039650.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009039651_009126245.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009039651_009126245.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009039651_009126245.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009126246_009221442.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009126246_009221442.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009126246_009221442.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009221443_009324137.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009221443_009324137.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009221443_009324137.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009324138_009421382.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009324138_009421382.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009324138_009421382.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009421383_009499378.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009421383_009499378.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009421383_009499378.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009499379_009591761.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009499379_009591761.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009499379_009591761.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009591762_009678025.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009591762_009678025.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009591762_009678025.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009678026_009762301.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009678026_009762301.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009678026_009762301.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009762302_009855362.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009762302_009855362.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009762302_009855362.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009855363_009936445.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009855363_009936445.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009855363_009936445.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_009936446_010016536.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_009936446_010016536.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_009936446_010016536.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010016537_010099866.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010016537_010099866.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010016537_010099866.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010099867_010183537.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010099867_010183537.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010099867_010183537.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010183538_010262649.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010183538_010262649.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010183538_010262649.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010262650_010328739.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010262650_010328739.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010262650_010328739.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010328740_010388441.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010328740_010388441.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010328740_010388441.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010388442_010447927.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010388442_010447927.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010388442_010447927.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010447928_010500574.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010447928_010500574.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010447928_010500574.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010500575_010549225.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010500575_010549225.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010500575_010549225.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010549226_010596024.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010549226_010596024.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010549226_010596024.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010596025_010641532.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010596025_010641532.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010596025_010641532.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010641533_010685583.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010641533_010685583.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010641533_010685583.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010685584_010726824.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010685584_010726824.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010685584_010726824.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010726825_010766551.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010726825_010766551.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010726825_010766551.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010766552_010801126.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010766552_010801126.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010766552_010801126.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010801127_010838383.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010801127_010838383.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010801127_010838383.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010838384_010873048.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010838384_010873048.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010838384_010873048.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010873049_010906531.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010873049_010906531.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010873049_010906531.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010906532_010942439.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010906532_010942439.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010906532_010942439.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010942440_010978634.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010942440_010978634.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010942440_010978634.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_010978635_011013727.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_010978635_011013727.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_010978635_011013727.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011013728_011050516.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011013728_011050516.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011013728_011050516.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011050517_011089184.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011050517_011089184.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011050517_011089184.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011089185_011127030.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011089185_011127030.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011089185_011127030.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011127031_011163853.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011127031_011163853.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011127031_011163853.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011163854_011201420.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011163854_011201420.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011163854_011201420.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011201421_011240013.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011201421_011240013.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011201421_011240013.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011240014_011278313.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011240014_011278313.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011240014_011278313.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011278314_011315292.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011278314_011315292.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011278314_011315292.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011315293_011354716.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011315293_011354716.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011315293_011354716.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011354717_011392785.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011354717_011392785.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011354717_011392785.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011392786_011428831.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011392786_011428831.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011392786_011428831.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011428832_011466124.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011428832_011466124.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011428832_011466124.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011466125_011502761.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011466125_011502761.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011466125_011502761.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011502762_011539349.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011502762_011539349.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011502762_011539349.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011539350_011575623.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011539350_011575623.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011539350_011575623.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011575624_011613942.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011575624_011613942.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011575624_011613942.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011613943_011652233.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011613943_011652233.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011613943_011652233.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011652234_011688966.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011652234_011688966.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011652234_011688966.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011688967_011726147.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011688967_011726147.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011688967_011726147.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011726148_011762252.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011726148_011762252.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011726148_011762252.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011762253_011798589.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011762253_011798589.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011762253_011798589.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011798590_011835415.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011798590_011835415.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011798590_011835415.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011835416_011870974.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011835416_011870974.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011835416_011870974.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011870975_011907947.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011870975_011907947.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011870975_011907947.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011907948_011945563.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011907948_011945563.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011907948_011945563.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011945564_011983269.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011945564_011983269.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011945564_011983269.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_011983270_012019956.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_011983270_012019956.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_011983270_012019956.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012019957_012057200.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012019957_012057200.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012019957_012057200.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012057201_012095095.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012057201_012095095.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012057201_012095095.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012095096_012132152.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012095096_012132152.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012095096_012132152.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012132153_012168445.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012132153_012168445.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012132153_012168445.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012168446_012205649.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012168446_012205649.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012168446_012205649.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012205650_012243149.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012205650_012243149.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012205650_012243149.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012243150_012278973.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012243150_012278973.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012243150_012278973.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012278974_012311347.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012278974_012311347.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012278974_012311347.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012311348_012342014.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012311348_012342014.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012311348_012342014.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012342015_012371601.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012342015_012371601.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012342015_012371601.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012371602_012402623.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012371602_012402623.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012371602_012402623.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012402624_012434015.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012402624_012434015.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012402624_012434015.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012434016_012463882.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012434016_012463882.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012434016_012463882.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012463883_012494225.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012463883_012494225.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012463883_012494225.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012494226_012523499.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012494226_012523499.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012494226_012523499.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012523500_012554050.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012523500_012554050.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012523500_012554050.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012554051_012586322.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012554051_012586322.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012554051_012586322.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012586323_012617082.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012586323_012617082.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012586323_012617082.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012617083_012649128.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012617083_012649128.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012617083_012649128.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012649129_012681037.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012649129_012681037.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012649129_012681037.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012681038_012713030.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012681038_012713030.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012681038_012713030.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012713031_012746581.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012713031_012746581.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012713031_012746581.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012746582_012778839.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012746582_012778839.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012746582_012778839.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012778840_012810448.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012778840_012810448.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012778840_012810448.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012810449_012843419.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012810449_012843419.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012810449_012843419.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012843420_012877064.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012843420_012877064.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012843420_012877064.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012877065_012910958.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012877065_012910958.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012877065_012910958.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012910959_012945176.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012910959_012945176.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012910959_012945176.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012945177_012981462.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012945177_012981462.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012945177_012981462.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_012981463_013017953.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_012981463_013017953.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_012981463_013017953.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013017954_013054686.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013017954_013054686.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013017954_013054686.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013054687_013090063.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013054687_013090063.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013054687_013090063.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013090064_013130704.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013090064_013130704.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013090064_013130704.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013130705_013172883.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013130705_013172883.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013130705_013172883.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013172884_013211506.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013172884_013211506.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013172884_013211506.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013211507_013249767.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013211507_013249767.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013211507_013249767.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013249768_013287840.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013249768_013287840.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013249768_013287840.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013287841_013326959.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013287841_013326959.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013287841_013326959.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013326960_013366235.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013326960_013366235.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013326960_013366235.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013366236_013403900.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013366236_013403900.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013366236_013403900.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013403901_013440501.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013403901_013440501.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013403901_013440501.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013440502_013476065.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013440502_013476065.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013440502_013476065.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013476067_013509047.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013476067_013509047.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013476067_013509047.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013509048_013541141.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013509048_013541141.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013509048_013541141.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013541142_013573653.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013541142_013573653.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013541142_013573653.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013573654_013605580.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013573654_013605580.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013573654_013605580.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013605581_013639144.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013605581_013639144.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013605581_013639144.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013639145_013673606.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013639145_013673606.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013639145_013673606.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013673607_013707345.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013673607_013707345.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013673607_013707345.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013707346_013742473.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013707346_013742473.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013707346_013742473.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013742474_013778001.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013742474_013778001.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013742474_013778001.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013778002_013814711.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013778002_013814711.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013778002_013814711.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013814712_013850142.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013814712_013850142.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013814712_013850142.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013850143_013884816.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013850143_013884816.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013850143_013884816.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013884817_013920242.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013884817_013920242.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013884817_013920242.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013920243_013956975.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013920243_013956975.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013920243_013956975.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013956976_013994254.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013956976_013994254.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013956976_013994254.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_013994255_014031819.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_013994255_014031819.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_013994255_014031819.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014031820_014067825.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014031820_014067825.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014031820_014067825.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014067826_014105429.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014067826_014105429.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014067826_014105429.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014105430_014143358.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014105430_014143358.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014105430_014143358.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014143360_014179839.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014143360_014179839.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014143360_014179839.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014179840_014215684.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014179840_014215684.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014179840_014215684.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014215685_014250157.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014215685_014250157.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014215685_014250157.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014250158_014285557.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014250158_014285557.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014250158_014285557.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014285558_014319812.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014285558_014319812.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014285558_014319812.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014319813_014353198.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014319813_014353198.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014319813_014353198.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014353199_014386281.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014353199_014386281.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014353199_014386281.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014386282_014420051.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014386282_014420051.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014386282_014420051.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014420052_014453745.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014420052_014453745.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014420052_014453745.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014453746_014486058.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014453746_014486058.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014453746_014486058.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014486059_014518261.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014486059_014518261.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014486059_014518261.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014518262_014551912.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014518262_014551912.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014518262_014551912.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014551913_014585983.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014551913_014585983.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014551913_014585983.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014585984_014618457.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014585984_014618457.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014585984_014618457.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014618458_014651101.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014618458_014651101.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014618458_014651101.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014651102_014684043.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014651102_014684043.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014651102_014684043.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014684044_014717417.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014684044_014717417.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014684044_014717417.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014717418_014750907.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014717418_014750907.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014717418_014750907.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014750908_014784640.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014750908_014784640.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014750908_014784640.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014784641_014819146.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014784641_014819146.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014784641_014819146.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014819147_014852638.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014819147_014852638.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014819147_014852638.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014852639_014887643.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014852639_014887643.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014852639_014887643.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014887645_014923262.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014887645_014923262.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014887645_014923262.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014923263_014958902.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014923263_014958902.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014923263_014958902.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014958903_014992944.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014958903_014992944.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014958903_014992944.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_014992945_015026970.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_014992945_015026970.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_014992945_015026970.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015026971_015061136.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015026971_015061136.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015026971_015061136.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015061137_015094154.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015061137_015094154.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015061137_015094154.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015094155_015128227.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015094155_015128227.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015094155_015128227.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015128228_015162362.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015128228_015162362.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015128228_015162362.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015162363_015195682.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015162363_015195682.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015162363_015195682.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015195683_015230048.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015195683_015230048.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015195683_015230048.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015230049_015262684.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015230049_015262684.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015230049_015262684.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015262685_015296115.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015262685_015296115.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015262685_015296115.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015296116_015328325.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015296116_015328325.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015296116_015328325.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015328326_015360161.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015328326_015360161.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015328326_015360161.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015360162_015392748.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015360162_015392748.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015360162_015392748.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015392749_015425029.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015392749_015425029.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015392749_015425029.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015425030_015457637.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015425030_015457637.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015425030_015457637.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015457638_015488783.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015457638_015488783.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015457638_015488783.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015488784_015520475.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015488784_015520475.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015488784_015520475.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015520477_015553972.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015520477_015553972.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015520477_015553972.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015553973_015585959.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015553973_015585959.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015553973_015585959.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015585960_015617226.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015585960_015617226.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015585960_015617226.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015617227_015649050.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015617227_015649050.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015617227_015649050.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015649051_015682430.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015649051_015682430.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015649051_015682430.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015682431_015720136.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015682431_015720136.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015682431_015720136.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015720137_015756876.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015720137_015756876.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015720137_015756876.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015756877_015789602.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015756877_015789602.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015756877_015789602.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015789603_015823300.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015789603_015823300.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015789603_015823300.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015823301_015856913.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015823301_015856913.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015823301_015856913.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015856914_015891867.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015856914_015891867.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015856914_015891867.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015891868_015927605.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015891868_015927605.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015891868_015927605.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015927606_015962455.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015927606_015962455.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015927606_015962455.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015962456_015997733.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015962456_015997733.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015962456_015997733.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/decoder/streamline__decode_logs_history_015997734_016000000.sql b/models/silver/streamline/decoder/streamline__decode_logs_history_015997734_016000000.sql new file mode 100644 index 00000000..d586481e --- /dev/null +++ b/models/silver/streamline/decoder/streamline__decode_logs_history_015997734_016000000.sql @@ -0,0 +1,11 @@ +{{ config ( + materialized = "view", + post_hook = [if_data_call_function( func = "{{this.schema}}.udf_bulk_decode_logs(object_construct('sql_source', '{{this.identifier}}','producer_batch_size', 20000000,'producer_limit_size', 20000000))", target = "{{this.schema}}.{{this.identifier}}" ),"call system$wait(" ~ var("WAIT", 400) ~ ")" ] +) }} + +{% set start = this.identifier.split("_") [-2] %} +{% set stop = this.identifier.split("_") [-1] %} +{{ decode_logs_history( + start, + stop +) }} diff --git a/models/silver/streamline/streamline__complete_decode_logs.sql b/models/silver/streamline/streamline__complete_decode_logs.sql new file mode 100644 index 00000000..18280743 --- /dev/null +++ b/models/silver/streamline/streamline__complete_decode_logs.sql @@ -0,0 +1,48 @@ +{{ config ( + materialized = "incremental", + unique_key = "_log_id", + cluster_by = "ROUND(block_number, -3)", + merge_update_columns = ["_log_id"], + post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(_log_id)" +) }} + +WITH meta AS ( + + SELECT + registered_on, + last_modified, + file_name + FROM + TABLE( + information_schema.external_table_files( + table_name => '{{ source( "bronze_streamline", "decoded_logs") }}' + ) + ) A + +{% if is_incremental() %} +WHERE + LEAST( + registered_on, + last_modified + ) >= ( + SELECT + COALESCE(MAX(_INSERTED_TIMESTAMP), '1970-01-01' :: DATE) max_INSERTED_TIMESTAMP + FROM + {{ this }}) + ) +{% else %} +) +{% endif %} +SELECT + block_number, + id AS _log_id, + registered_on AS _inserted_timestamp +FROM + {{ source( + "bronze_streamline", + "decode_logs" + ) }} AS s + JOIN meta b + ON b.file_name = metadata $ filename qualify(ROW_NUMBER() over (PARTITION BY _log_id +ORDER BY + _inserted_timestamp DESC)) = 1 diff --git a/models/silver/streamline/streamline__decode_logs.sql b/models/silver/streamline/streamline__decode_logs.sql new file mode 100644 index 00000000..93f5a9be --- /dev/null +++ b/models/silver/streamline/streamline__decode_logs.sql @@ -0,0 +1,60 @@ +{{ config ( + materialized = "incremental", + unique_key = "_log_id", + cluster_by = "round(block_number,-3)", + merge_update_columns = ["_log_id"], + post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION on equality(abi_address)" +) }} + +WITH base AS ( + + SELECT + l.block_number, + l.tx_hash, + l.event_index, + l.contract_address, + l.topics, + l.data, + l._log_id, + p.proxy_address, + l._INSERTED_TIMESTAMP + FROM + {{ ref('silver__logs') }} + l + LEFT JOIN {{ ref('silver__proxies') }} + p + ON p.contract_address = l.contract_address + AND l.block_number BETWEEN p.start_block + AND p.end_block + WHERE + 1 = 1 + +{% if is_incremental() %} +AND l._inserted_timestamp >= ( + SELECT + MAX(_inserted_timestamp) + FROM + {{ this }} +) +{% endif %} +) +SELECT + b.block_number, + b._log_id, + contract_address, + proxy_address, + COALESCE( + proxy_address, + contract_address + ) AS abi_address, + OBJECT_CONSTRUCT( + 'topics', + b.topics, + 'data', + b.data, + 'address', + b.contract_address + ) AS DATA, + _inserted_timestamp +FROM + base b diff --git a/models/silver/streamline/streamline__decode_logs_realtime.sql b/models/silver/streamline/streamline__decode_logs_realtime.sql new file mode 100644 index 00000000..629a1116 --- /dev/null +++ b/models/silver/streamline/streamline__decode_logs_realtime.sql @@ -0,0 +1,52 @@ +{{ config ( + materialized = "view", + post_hook = if_data_call_function( + func = "{{this.schema}}.udf_decode_logs(object_construct('sql_source', '{{this.identifier}}'))", + target = "{{this.schema}}.{{this.identifier}}" + ) +) }} + +WITH look_back AS ( + + SELECT + block_number + FROM + {{ ref("_max_block_by_date") }} + qualify ROW_NUMBER() over ( + ORDER BY + block_number DESC + ) = 1 +) +SELECT + l.block_number, + l._log_id, + A.data AS abi, + l.data +FROM + {{ ref("streamline__decode_logs") }} + l + INNER JOIN {{ ref("silver__abis") }} A + ON l.abi_address = A.contract_address +WHERE + ( + l.block_number >= ( + SELECT + block_number + FROM + look_back + ) + ) + AND l.block_number IS NOT NULL + AND _log_id NOT IN ( + SELECT + _log_id + FROM + {{ ref("streamline__complete_decode_logs") }} + WHERE + block_number >= ( + SELECT + block_number + FROM + look_back + ) + ) diff --git a/models/sources.yml b/models/sources.yml index 7940c347..f5ec086c 100644 --- a/models/sources.yml +++ b/models/sources.yml @@ -70,17 +70,19 @@ sources: schema: | {{ "ETHEREUM_DEV" if var("STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES", False) else "ETHEREUM" }} tables: - - name: token_balances - - name: eth_balances - - name: reads - - name: contract_abis - - name: nft_metadata_api - - name: sushi_rewards_schedule - - name: blocks - - name: transactions - name: beacon_blocks + - name: blocks - name: committees + - name: contract_abis + - name: decode_logs + - name: eth_balances + - name: nft_metadata_api + - name: reads + - name: sushi_rewards_schedule + - name: token_balances + - name: transactions - name: validators + - name: decoded_logs - name: crosschain_silver database: crosschain schema: silver diff --git a/packages.yml b/packages.yml index 9284fda2..a11c2b91 100644 --- a/packages.yml +++ b/packages.yml @@ -3,4 +3,3 @@ packages: version: [">=0.4.0", "<0.9.0"] - package: dbt-labs/dbt_utils version: 0.9.2 -