From 7c06883675f9367ce72fb9e53418832b7b3b4681 Mon Sep 17 00:00:00 2001 From: Matts966 Date: Mon, 20 Jun 2022 08:07:51 +0000 Subject: [PATCH] Update Snapshot --- samples/recursive_ddl/alphacheck_stderr.txt | 1 + samples/recursive_ddl/alphacheck_stdout.txt | 6 ++++++ samples/recursive_ddl/alphadag_stderr.txt | 0 samples/recursive_ddl/alphadag_stdout.txt | 3 +++ samples/recursive_ddl/dag.dot | 3 +++ samples/recursive_ddl/dag.png | Bin 0 -> 8080 bytes samples/recursive_ddl/external_tables.txt | 0 .../side_effect_first/alphacheck_stderr.txt | 1 + .../side_effect_first/alphacheck_stdout.txt | 6 ++++++ .../side_effect_first/alphadag_stderr.txt | 0 .../side_effect_first/alphadag_stdout.txt | 3 +++ samples/recursive_ddl/side_effect_first/dag.dot | 3 +++ samples/recursive_ddl/side_effect_first/dag.png | Bin 0 -> 8080 bytes .../side_effect_first/external_tables.txt | 0 .../alphacheck_stderr.txt | 1 + .../alphacheck_stdout.txt | 6 ++++++ .../alphadag_stderr.txt | 0 .../alphadag_stdout.txt | 3 +++ .../side_effect_first_with_tables/dag.dot | 5 +++++ .../side_effect_first_with_tables/dag.png | Bin 0 -> 9499 bytes .../external_tables.txt | 0 .../recursive_ddl/with_all/alphacheck_stderr.txt | 1 + .../recursive_ddl/with_all/alphacheck_stdout.txt | 6 ++++++ .../recursive_ddl/with_all/alphadag_stderr.txt | 0 .../recursive_ddl/with_all/alphadag_stdout.txt | 3 +++ samples/recursive_ddl/with_all/dag.dot | 5 +++++ samples/recursive_ddl/with_all/dag.png | Bin 0 -> 9499 bytes .../recursive_ddl/with_all/external_tables.txt | 0 .../with_functions/alphacheck_stderr.txt | 1 + .../with_functions/alphacheck_stdout.txt | 6 ++++++ .../with_functions/alphadag_stderr.txt | 0 .../with_functions/alphadag_stdout.txt | 3 +++ samples/recursive_ddl/with_functions/dag.dot | 3 +++ samples/recursive_ddl/with_functions/dag.png | Bin 0 -> 8080 bytes .../with_functions/external_tables.txt | 0 .../with_tables/alphacheck_stderr.txt | 1 + .../with_tables/alphacheck_stdout.txt | 6 ++++++ .../with_tables/alphadag_stderr.txt | 0 .../with_tables/alphadag_stdout.txt | 3 +++ samples/recursive_ddl/with_tables/dag.dot | 5 +++++ samples/recursive_ddl/with_tables/dag.png | Bin 0 -> 9499 bytes .../with_tables/external_tables.txt | 0 42 files changed, 84 insertions(+) create mode 100644 samples/recursive_ddl/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/dag.dot create mode 100644 samples/recursive_ddl/dag.png create mode 100644 samples/recursive_ddl/external_tables.txt create mode 100644 samples/recursive_ddl/side_effect_first/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/side_effect_first/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/side_effect_first/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/side_effect_first/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/side_effect_first/dag.dot create mode 100644 samples/recursive_ddl/side_effect_first/dag.png create mode 100644 samples/recursive_ddl/side_effect_first/external_tables.txt create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/dag.dot create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/dag.png create mode 100644 samples/recursive_ddl/side_effect_first_with_tables/external_tables.txt create mode 100644 samples/recursive_ddl/with_all/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/with_all/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/with_all/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/with_all/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/with_all/dag.dot create mode 100644 samples/recursive_ddl/with_all/dag.png create mode 100644 samples/recursive_ddl/with_all/external_tables.txt create mode 100644 samples/recursive_ddl/with_functions/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/with_functions/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/with_functions/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/with_functions/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/with_functions/dag.dot create mode 100644 samples/recursive_ddl/with_functions/dag.png create mode 100644 samples/recursive_ddl/with_functions/external_tables.txt create mode 100644 samples/recursive_ddl/with_tables/alphacheck_stderr.txt create mode 100644 samples/recursive_ddl/with_tables/alphacheck_stdout.txt create mode 100644 samples/recursive_ddl/with_tables/alphadag_stderr.txt create mode 100644 samples/recursive_ddl/with_tables/alphadag_stdout.txt create mode 100644 samples/recursive_ddl/with_tables/dag.dot create mode 100644 samples/recursive_ddl/with_tables/dag.png create mode 100644 samples/recursive_ddl/with_tables/external_tables.txt diff --git a/samples/recursive_ddl/alphacheck_stderr.txt b/samples/recursive_ddl/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/alphacheck_stdout.txt b/samples/recursive_ddl/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/alphadag_stderr.txt b/samples/recursive_ddl/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/alphadag_stdout.txt b/samples/recursive_ddl/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/dag.dot b/samples/recursive_ddl/dag.dot new file mode 100644 index 00000000..612516f1 --- /dev/null +++ b/samples/recursive_ddl/dag.dot @@ -0,0 +1,3 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +} diff --git a/samples/recursive_ddl/dag.png b/samples/recursive_ddl/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..fc284c524cc0d0eb2a667266abf7702d4178e2ba GIT binary patch literal 8080 zcmX9@2Rzm97rsXJ$Oze8vNE%>#Wj*72}wp~5*bCxCS)feWF^TK5!Xsq2-(?jagmYD zb^Xu%{XhA9ef4?2?|a_&J?A;kc}}FEfetMdI~4+fpuM7tGD0AT#^7Cvf()MW=nXaa zMRxD14hnHX_?K0mpNK&4Xk9^FHug#XoAK1^_0U0kV`6HNbZ56+s$Io5e%+35AI`Ze z=tTtwM;c#l%2RR8a=H_nRkhPM%(8ML3S;Ii^F>4}Dksp;l$ew5e0iuCCGqVm7q1AM zb?CKw)4g>RvenR-+Wj_$f8PIRs8Mt;lBg(+QNbWztg(oe8QV&s zG#lO;*~R90DdEreC?;8htY~e%!=odc>T#QLGi4kn9eKCIRu)cQfGOQT5YdG30ONdK z>y(a!6q9qZ-z#T>dC^KDB2@kT{b(g|aXO9c)3dX)@w)toz|m2&2vkn|F$&3W&(>B2 zR}&j-EE1;656_)ten~dlpul2rhtS}Dr_k1WL1Qj2`km${S)xvng%D}yGCZl{f~Q;> zZGC+`+H85p_fm!dTa32EIj-m|$}o-Zt*t}|en!e~EiEuJnX0iGU8+7=ka|A&PCLf+4mu5x?tmi4iE$ddqe9=w|D{ zF3cao@=xkAyghe%?(*SrHD197VZ^4>Ys8#q&qk)Cu*H>aY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Vd2-p>UBREp@zczJlC`D6jxj5;6f0!aq$UWQ~>1um++MvabxT0l% JD$%eG{vX)a&<_9r literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/external_tables.txt b/samples/recursive_ddl/external_tables.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/side_effect_first/alphacheck_stderr.txt b/samples/recursive_ddl/side_effect_first/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/side_effect_first/alphacheck_stdout.txt b/samples/recursive_ddl/side_effect_first/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/side_effect_first/alphadag_stderr.txt b/samples/recursive_ddl/side_effect_first/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/side_effect_first/alphadag_stdout.txt b/samples/recursive_ddl/side_effect_first/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/side_effect_first/dag.dot b/samples/recursive_ddl/side_effect_first/dag.dot new file mode 100644 index 00000000..612516f1 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first/dag.dot @@ -0,0 +1,3 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +} diff --git a/samples/recursive_ddl/side_effect_first/dag.png b/samples/recursive_ddl/side_effect_first/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..fc284c524cc0d0eb2a667266abf7702d4178e2ba GIT binary patch literal 8080 zcmX9@2Rzm97rsXJ$Oze8vNE%>#Wj*72}wp~5*bCxCS)feWF^TK5!Xsq2-(?jagmYD zb^Xu%{XhA9ef4?2?|a_&J?A;kc}}FEfetMdI~4+fpuM7tGD0AT#^7Cvf()MW=nXaa zMRxD14hnHX_?K0mpNK&4Xk9^FHug#XoAK1^_0U0kV`6HNbZ56+s$Io5e%+35AI`Ze z=tTtwM;c#l%2RR8a=H_nRkhPM%(8ML3S;Ii^F>4}Dksp;l$ew5e0iuCCGqVm7q1AM zb?CKw)4g>RvenR-+Wj_$f8PIRs8Mt;lBg(+QNbWztg(oe8QV&s zG#lO;*~R90DdEreC?;8htY~e%!=odc>T#QLGi4kn9eKCIRu)cQfGOQT5YdG30ONdK z>y(a!6q9qZ-z#T>dC^KDB2@kT{b(g|aXO9c)3dX)@w)toz|m2&2vkn|F$&3W&(>B2 zR}&j-EE1;656_)ten~dlpul2rhtS}Dr_k1WL1Qj2`km${S)xvng%D}yGCZl{f~Q;> zZGC+`+H85p_fm!dTa32EIj-m|$}o-Zt*t}|en!e~EiEuJnX0iGU8+7=ka|A&PCLf+4mu5x?tmi4iE$ddqe9=w|D{ zF3cao@=xkAyghe%?(*SrHD197VZ^4>Ys8#q&qk)Cu*H>aY&?RcH*Lzx%VCpnr15%r z5iv1gW}+`p$k|CG14q6jaSLjf>O*5Ak8l0ElO-=j`fAu5Y!NovY(1lu$aG`xQNSZ& zz69OV3=Bl6`fX9C1r6NY-A_lN;L>nQ!5mLvjdRM%6SniSsv?xs)LV=yWFa9;mV0Ay zLDGB^-C@tzMuHyE&nYrkuE#*4X`hpmV=*dt?Z*4(&!5w*tnGD^ z&o)UoP7hy_Eb#(=@Oz?6{&OKkUtsF*RAiNzXdl)~GF88CWrurjPoakHlZE)6@V5qB z;;UEjuU~(^o*~^PsB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%`<|+?#toZ zX0~$?6hL4dKA(l|mBZ&$R$Z%a_a)iTxCzJBiG(gpd>6)&>(QDLlp314OiWB;4-2KB z9Yp%wx#|#?`{HnOk6k4}cm7;0iPohQLNCv#fEk%U0Z*uWT@KTv*4z~{AVDpytb`0X zhe0o^Wj4?te@^Syy>g!#h5qfuUBP$+TCvWkK*lM2^tdI(Ofn%ObbELApNf5MKSfA$ zlRPu@ImkkS+(e<1$TQ+1cjRIb%)rDH0pUrm>v5v8L8Jqjvlt`T}+T^RJJ zj+Pc7w?O#;4Kf5G5)}+1GyNyr*ZiX+L0*ThUGSvqqSni;&topQmqS7R;>pyol3Gc1 zH7j%vp@(RY&jiN<4g)7-Qh3JC&kr^O4uF&14Vo#r<+>ZbV*LZ-fv<)h9yGEj7XNtq zgA(QO^|^8HIa^#a>W!3(mm(M3JLDTL#f<5MAj{J50c-!6E`>BB@&~Y=%jelU zvS-B6>G5?(L?_b`9-wuVGH6;@q_;23-YXxqb^F`V(Gghsn6qdpJS^<8NYV?=Or?>K zAf^je+k1O0PBOmx*d5=vq`Y)P_eaESQe{&UtpiRnIgO3eEpBBsBWa~S&wBr~zjzkl z720(BzJHc`N4lv;gkN{sK_e3CXilR8Hk!alQQP3zLib$^>+(m64Hlu2#HQv+tF2pf zbS0WIQ9;-+jjU~))aVVPGAu3#>z=_(=gRWU%9limD*LA@=?WXID0zs~I~!ydz!XiJ zkd$2MdBPj?%$iVd2-p>UBREp@zczJlC`D6jxj5;6f0!aq$UWQ~>1um++MvabxT0l% JD$%eG{vX)a&<_9r literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/side_effect_first/external_tables.txt b/samples/recursive_ddl/side_effect_first/external_tables.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stderr.txt b/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stdout.txt b/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first_with_tables/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/side_effect_first_with_tables/alphadag_stderr.txt b/samples/recursive_ddl/side_effect_first_with_tables/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/side_effect_first_with_tables/alphadag_stdout.txt b/samples/recursive_ddl/side_effect_first_with_tables/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first_with_tables/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/side_effect_first_with_tables/dag.dot b/samples/recursive_ddl/side_effect_first_with_tables/dag.dot new file mode 100644 index 00000000..66f48407 --- /dev/null +++ b/samples/recursive_ddl/side_effect_first_with_tables/dag.dot @@ -0,0 +1,5 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +1 [label=t1, shape=box, type=table]; +0->1 ; +} diff --git a/samples/recursive_ddl/side_effect_first_with_tables/dag.png b/samples/recursive_ddl/side_effect_first_with_tables/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..08501fa096eb1e475571a65593777fc2a52b8c6f GIT binary patch literal 9499 zcmbVybySq?*Y1D{uSz(8fOJR*h|(Rx2r5WQw{%E@GztiVNJ&Wxs30i_(jd}|lyr-9 zhjgAj@3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MWDxY&gKEx>I=H`(xpopL}H?^zn}R&^Do(f($qbIs;H>I{3c3M{LF^x`%*F)?B1=5B#$ zVc-)^rfq!Lc=o2-KzCpy{qLLNPZarauqzn<@GxdGi~jTl)hGB^q;O@ObcoT9U34zral;Ls+w!NpdzGWe38MuiRF8JNrbv`05 zNVPnxj+XNR^_k)BMFxtq&EVqwb`%aUAVf$zJM$upK_S6Z$tBA6@A*8i9_YN6s;N+n zq4hsxXJ5fsUs+lCOCItU@LkVSvrLmsN1kY6(4yC(qbel8@&aSvs+UCUSi8|}CMGR$ zeMSD4`G&QlGXv>pc77*iSc=JalE+;CaZ>)zS(Wqx+F&sl(Z*VVXdgJJ#|$vG)~@vu z0DZIx`UJ096g7JR!i}nh>508LSa20!$@PwnQ3p}Msl$&GAfWgeIv(g(VZ3!X!`RV4|a~*P)LFd zf6I;i`HB|s<$EwR#g2?GT_wK=tKi2Qk72o@N)^sJtih1UgUt{2V6NV#)+l(DKqoUa z623HmpNbHEF%f7$$VA1Qc7P%aP-G>AEvgzA5F+mZ+W@FRe1BSuKpY(%1?b#o+P<)l z-9d>thJi^K^hmMiUkd?asiQ^alT}Np3y2ypSUg~M(K|j)^D`G}2fK)SSIN1gp&!He z;2J4uR{R~Xox;d({}^+qr)?TVM%M$hFmiBnbN{`9LLwr(>MJP5a7KmMMlk9FvK4mfY8SjuS|;;qWFxLmhtYgm`#g2~{X#9PqyYkqXTG literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/side_effect_first_with_tables/external_tables.txt b/samples/recursive_ddl/side_effect_first_with_tables/external_tables.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_all/alphacheck_stderr.txt b/samples/recursive_ddl/with_all/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/with_all/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/with_all/alphacheck_stdout.txt b/samples/recursive_ddl/with_all/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/with_all/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/with_all/alphadag_stderr.txt b/samples/recursive_ddl/with_all/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_all/alphadag_stdout.txt b/samples/recursive_ddl/with_all/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/with_all/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/with_all/dag.dot b/samples/recursive_ddl/with_all/dag.dot new file mode 100644 index 00000000..66f48407 --- /dev/null +++ b/samples/recursive_ddl/with_all/dag.dot @@ -0,0 +1,5 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +1 [label=t1, shape=box, type=table]; +0->1 ; +} diff --git a/samples/recursive_ddl/with_all/dag.png b/samples/recursive_ddl/with_all/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..08501fa096eb1e475571a65593777fc2a52b8c6f GIT binary patch literal 9499 zcmbVybySq?*Y1D{uSz(8fOJR*h|(Rx2r5WQw{%E@GztiVNJ&Wxs30i_(jd}|lyr-9 zhjgAj@3+=>&RXX?f1KZPEr*F`p8MYS-q*gaYfq?(l04xRsw)Ttg7D!3lo|qoGXj4n z|APnrbHAVNg$KN+3i2q#IriWC+Uytvf&uXmb?=Es%G!jtYs~H`{^s+f(pR4nf(-kp zhsj?WUhDa#B+)T{srPzf!0U2ahnz*h$oGAoE>%3L_qLQ?&X|zn z<9=gEh>xG_i!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`%aUAVf$zJM$upK_S6Z$tBA6@A*8i9_YN6s;N+n zq4hsxXJ5fsUs+lCOCItU@LkVSvrLmsN1kY6(4yC(qbel8@&aSvs+UCUSi8|}CMGR$ zeMSD4`G&QlGXv>pc77*iSc=JalE+;CaZ>)zS(Wqx+F&sl(Z*VVXdgJJ#|$vG)~@vu z0DZIx`UJ096g7JR!i}nh>508LSa20!$@PwnQ3p}Msl$&GAfWgeIv(g(VZ3!X!`RV4|a~*P)LFd zf6I;i`HB|s<$EwR#g2?GT_wK=tKi2Qk72o@N)^sJtih1UgUt{2V6NV#)+l(DKqoUa z623HmpNbHEF%f7$$VA1Qc7P%aP-G>AEvgzA5F+mZ+W@FRe1BSuKpY(%1?b#o+P<)l z-9d>thJi^K^hmMiUkd?asiQ^alT}Np3y2ypSUg~M(K|j)^D`G}2fK)SSIN1gp&!He z;2J4uR{R~Xox;d({}^+qr)?TVM%M$hFmiBnbN{`9LLwr(>MJP5a7KmMMlk9FvK4mfY8SjuS|;;qWFxLmhtYgm`#g2~{X#9PqyYkqXTG literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/with_all/external_tables.txt b/samples/recursive_ddl/with_all/external_tables.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_functions/alphacheck_stderr.txt b/samples/recursive_ddl/with_functions/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/with_functions/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/with_functions/alphacheck_stdout.txt b/samples/recursive_ddl/with_functions/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/with_functions/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/with_functions/alphadag_stderr.txt b/samples/recursive_ddl/with_functions/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_functions/alphadag_stdout.txt b/samples/recursive_ddl/with_functions/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/with_functions/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/with_functions/dag.dot b/samples/recursive_ddl/with_functions/dag.dot new file mode 100644 index 00000000..612516f1 --- /dev/null +++ b/samples/recursive_ddl/with_functions/dag.dot @@ -0,0 +1,3 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +} diff --git a/samples/recursive_ddl/with_functions/dag.png b/samples/recursive_ddl/with_functions/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..fc284c524cc0d0eb2a667266abf7702d4178e2ba GIT binary patch literal 8080 zcmX9@2Rzm97rsXJ$Oze8vNE%>#Wj*72}wp~5*bCxCS)feWF^TK5!Xsq2-(?jagmYD zb^Xu%{XhA9ef4?2?|a_&J?A;kc}}FEfetMdI~4+fpuM7tGD0AT#^7Cvf()MW=nXaa zMRxD14hnHX_?K0mpNK&4Xk9^FHug#XoAK1^_0U0kV`6HNbZ56+s$Io5e%+35AI`Ze z=tTtwM;c#l%2RR8a=H_nRkhPM%(8ML3S;Ii^F>4}Dksp;l$ew5e0iuCCGqVm7q1AM zb?CKw)4g>RvenR-+Wj_$f8PIRs8Mt;lBg(+QNbWztg(oe8QV&s zG#lO;*~R90DdEreC?;8htY~e%!=odc>T#QLGi4kn9eKCIRu)cQfGOQT5YdG30ONdK z>y(a!6q9qZ-z#T>dC^KDB2@kT{b(g|aXO9c)3dX)@w)toz|m2&2vkn|F$&3W&(>B2 zR}&j-EE1;656_)ten~dlpul2rhtS}Dr_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nIgO3eEpBBsBWa~S&wBr~zjzkl z720(BzJHc`N4lv;gkN{sK_e3CXilR8Hk!alQQP3zLib$^>+(m64Hlu2#HQv+tF2pf zbS0WIQ9;-+jjU~))aVVPGAu3#>z=_(=gRWU%9limD*LA@=?WXID0zs~I~!ydz!XiJ zkd$2MdBPj?%$iVd2-p>UBREp@zczJlC`D6jxj5;6f0!aq$UWQ~>1um++MvabxT0l% JD$%eG{vX)a&<_9r literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/with_functions/external_tables.txt b/samples/recursive_ddl/with_functions/external_tables.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_tables/alphacheck_stderr.txt b/samples/recursive_ddl/with_tables/alphacheck_stderr.txt new file mode 100644 index 00000000..a72784d1 --- /dev/null +++ b/samples/recursive_ddl/with_tables/alphacheck_stderr.txt @@ -0,0 +1 @@ +ERROR: INVALID_ARGUMENT: Table not found: t1 [at samples/recursive_ddl/recursive_create_t1.sql:5:3] diff --git a/samples/recursive_ddl/with_tables/alphacheck_stdout.txt b/samples/recursive_ddl/with_tables/alphacheck_stdout.txt new file mode 100644 index 00000000..81565506 --- /dev/null +++ b/samples/recursive_ddl/with_tables/alphacheck_stdout.txt @@ -0,0 +1,6 @@ +Analyzing "samples/recursive_ddl/recursive_create_t1.sql" +tables: + dataset.main + tablename1 + tablename2 +tvfs: diff --git a/samples/recursive_ddl/with_tables/alphadag_stderr.txt b/samples/recursive_ddl/with_tables/alphadag_stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/samples/recursive_ddl/with_tables/alphadag_stdout.txt b/samples/recursive_ddl/with_tables/alphadag_stdout.txt new file mode 100644 index 00000000..72933561 --- /dev/null +++ b/samples/recursive_ddl/with_tables/alphadag_stdout.txt @@ -0,0 +1,3 @@ +Reading paths passed as a command line arguments... +Only files that end with .sql or .bq are analyzed. +Reading "samples/recursive_ddl/recursive_create_t1.sql" diff --git a/samples/recursive_ddl/with_tables/dag.dot b/samples/recursive_ddl/with_tables/dag.dot new file mode 100644 index 00000000..66f48407 --- /dev/null +++ b/samples/recursive_ddl/with_tables/dag.dot @@ -0,0 +1,5 @@ +digraph G { +0 [label="samples/recursive_ddl/recursive_create_t1.sql", shape="", type=query]; +1 [label=t1, shape=box, type=table]; +0->1 ; +} diff --git a/samples/recursive_ddl/with_tables/dag.png b/samples/recursive_ddl/with_tables/dag.png new file mode 100644 index 0000000000000000000000000000000000000000..08501fa096eb1e475571a65593777fc2a52b8c6f GIT binary patch literal 9499 zcmbVybySq?*Y1D{uSz(8fOJR*h|(Rx2r5WQw{%E@GztiVNJ&Wxs30i_(jd}|lyr-9 zhjgAj@3+=>&RXX?f1KZPEr*F`p8MYS-q*gaYfq?(l04xRsw)Ttg7D!3lo|qoGXj4n z|APnrbHAVNg$KN+3i2q#IriWC+Uytvf&uXmb?=Es%G!jtYs~H`{^s+f(pR4nf(-kp zhsj?WUhDa#B+)T{srPzf!0U2ahnz*h$oGAoE>%3L_qLQ?&X|zn z<9=gEh>xG_i!Xh+@$m2AX@h5)k?gOVwLu>?{ZeE4B&WnZ(>8>rW{>^S*p$<(P$+2> z3N^#cHGG|ciAmIe$1D_$#tmXrK%vMOs*JT>u=l&Uxi#3A=k@ve`Yx`mX=Kw9;oAu& zx3=nX#UqP~%F8L>4Q9U-xvZBB#*|w#nVFf_ZroVXq(dTcY7L8&LSDUMhtt{(gN)4n__FV7ZbE|^S66mkLa z+f}r8WMoM#JtBf=)8~6{@5(M3jaJEKdz=*19>bQ`S6p1&V^j7IF|oX>D?fsPl@(7k zwQGYnRVn1%JIVxJb6L1Kk!UKBlarG@^<`AU`{|M9Sz@^9`ntUJZ0Pfbm65WT&GP2bno7kGAdhLmXOlMDVc zE3uqG&4FNGT3lRo^i;I8WJ^)X7KJs0zkG?~rn}@YC%~(pSVCiDex`EdZH17RlVjrG z=$Nb9+;nVeY02GhZfar>6{Yg3rGrhOLqlI07QyCAMGN|zq+ZpSwxzY;;p4+1GbXvn z!!WK|S`<~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9FvK4mfY8SjuS|;;qWFxLmhtYgm`#g2~{X#9PqyYkqXTG literal 0 HcmV?d00001 diff --git a/samples/recursive_ddl/with_tables/external_tables.txt b/samples/recursive_ddl/with_tables/external_tables.txt new file mode 100644 index 00000000..e69de29b