2023DataFunSummit MaxCompute3%2"; Q$N0: ]:$žÇ¿ Contents $ Adaptive 01; MaxComputeƒ½ g g№) ‰&g Q+ MpχCo¡pĘq /l"] ¡l92 rë B K- 92& 92 uc 92 ę% !< 0$ ⋯ HpdoopH¡vq i!< lfi] ⋯ l92 !<YZ/ 3YZ =] DqlĘpLpkqHd¡Icqbqjg + SppjkFl¡µkPjq3Ęo flM92L:E MpχComp!$@ ‰R — MpχCo¡pĘq:E × Lp¡bdpCARA: •—^,ps:Ç@*5/92D)/SQLd •.$v:;/92hU/ÇFbX •CAg@:bX*5/92/T4/_[W •fl>o:?618,'jtq MpχCo¡pĘq¡l/QmgRA: •92ę%"^;SRbX.$ •<7,#,kpT+1¾ •92🎧‰,№Nmgog@ !<mgRA: •eMK\.$v,,G№ •Jl92QS7/V;,f —№ g g№) MpχComp1$@‰&!g Q- MpχCo¡pęqFl¡µkCoµµqcęoj J0 DpępWojk3 ;6q1 ;6( MpχCo¡pęqSQL ⋯ HpdoopH¡vq ⋯ MpχCo¡pęqSDK k#>mPni ¡m3Pni ODS DWD DWS \— " \—eX \— " \—eX \— " ffi" \—Q;6YP@?&\—;6@? së D #> 5$ ⋯ ;6 F[ × ¾—g&g9: •\—mR.N"E* •;6acl3ęqj¡µg/co¡ppcę¡oµ/clqpµ •\—Q3ępę39q/[+/^T_WB •;6"—,;S;"1$ •;SZ\oQ;6jU1$ ¾—!&SQl#: •mR3PA—@+8Q2$Rƒ` •>MhmPQ>:/3PQt:/ •Jƒ‰4Ç@Z\ni1$ •JƒÇ@Z\P'ª%bQ;6—b •R$#>/3Z\,gK1$/Gt ¾—g: •,?BR?Vlƒ •t:QT¡¡qęjpvqlRm;6O$YP •;6&r7;6O$№L,1$C№ •\—QSępę3YPR × MpχComp-$@ SQl O$h@yTool (SppykSQl) MpχComp-$@ FjµkCoµµ@c$oy Dp$pYoyk3 Dp$pIµ$@gyp$joµ MQ ⋯SDK T-µµ@lS@yv@y M@$pS@yvc@ Comp-$@Eµgjµ@ Tjm@$ypv@lmgy SQlEµgjµ@ S$oypg@S@yvc@ Typµ3pc$joµMgy Compjl@y& Op$jmjy@y Cl-3$@yjµg Comppc$joµ Fjl@M@$pMgy (3$p$3,ljf@cycl@) DAGSch@d-l@y O$h@yEµgjµ@ (C-pjd) Soy$jµg Fypm@yoyk M@$pS$oy@ R-µ$jm@ Fjl@Foymp$& RY M@yg@R@pd@y S$p$3Coll@c$joµ Dp$pV@y3joµMpµpg@y Dp$pIµg@3$jµg Fypm@yoyk&Comp-$@Eµgjµ@ Elp3$jcS$oypg@Ppµg- Fjl@/Tpbl@lpyo-$Dj3$yjb-$@S$oypg@ TransactionalTable2.0 $:CjqpĘqĘpblqbdĘĘ(pkb¡g¡µĘµoʵbllpyjmpyyk@y,vplb¡g¡µĘ)ĘblpjopqjĘ¡q3(“$ypµ3pc$joµpl"=“$y@"); SĘpĘqlq33bp3qf¡lq3Ęojq SĘpĘqfbldqlĘpf¡lq3Ęojq Typµ3pc$joµplTpbl@2.0 ¡:fi]¡:(6 #PK52,*8Up3qjĘfi] #AClD,+<ƒ,*8Ę¡¡qĘjpvql(6 #Çg%!) × 9&:fi] 9&:(6 Bp3qF¡lq$;ƒ,*8:3fi$DqlĘpF¡lq$;ƒ,*89&:3fi&$ =$.3fi #BbckqĘlµdqχ,*8=fi]RBbckqĘ4(6 %!PK"Q,*8=$MqjgqR(6DpĘpSk¡pp¡µg 1,$№,lO3fi$= DpępWojk3 % ½3) MpχCo¡pCęqFl¡µkCoµµqcęoj TCµµqlSqjvqj Wojkqj1 Wojkqj2 ⋯ WojkqjN ! TCµµqlSDK "fi] fi] × MpχCo¡pCęqSDK coµµqcęoj Sęojpgq BCckqę1 BCckqę2 ⋯ BCckqęN vojdp3@y$(R@coyd) vojdd@l@$@(R@coyd)vojdcommj$() •&fi], •#fi]¾ •3fi$ƒ × pdp$@ZĘĘpblq3qĘvpl=dqlĘp.vplfjo¡dqlĘp\hqjqdqlĘp.pk=ZĘĘpblq.pk; SQL) SQl&] Co¡p¡lqj LogjcplPlpµ OpĘ¡¡¡zqj Phy3jcplPlpµ DAGSchqdZlqj MqĘpSqjv¡cq SQLDML: •Iµ3qjĘovqj\j¡Ęq/IµĘo •UpdpĘq/DqlqĘq •MqjgqIµĘo •TjZµcpĘq " S$pg@1 S$pg@2 TpblqScpµ(ZĘĘpblq) Hp3hJo¡µ ShZfflqWj¡ĘqByPK ShZfflqRqpd D¡3Ę¡µcĘByPK TpblqS¡µk TpblqScpµ(dqlĘp) fi] BZckqĘ1 BZckqĘ2 ⋯ BZckqĘN SQL: •¡@$,6 •"ƒ •3fi(ƒ •PK!'/Q •Plpµ# gⒸ ClP3$@yjµg:"¾@&!,‰fi/ %lOg9ƒO№Ç'( Comppc$joµ:"¾Ppdp$@/d@l@$@;$Ç, ‰/#$)O№Ç'( d@l$pdp$pfjl@ Tjm@ljµ@ d@l$pdp$pfjl@bp3@dp$pfjl@ × BPck@$1 BPck@$2 BPck@$3 ę1 ę4ę5ę6 ę4 ę6 ę4 ę7ę8ę9ę7 ę5 ę8 ClP3$@yjµg BPck@$1 BPck@$2 BPck@$3 ę1-ę3 ę1–ę2 ę2-ę3 ę4-ę6 ę7-ę9 ę4 ę6-ę9 ę4–ę5 ę8 ClP3$@yjµg BPck@$1 BPck@$2 BPck@$3 ę7-ę9 ę8 ę1 ę2ę3 ę2 ę9 ę2ę3 l@v@lO l@v@l1 ę1–ę6 ę1–ę9 ę2–ę5 l@v@l2 $1BPck@$1 $2ę2ę3 $3 comppc$ BPck@$1 $4 Bp3qf¡lq ę4 ę6 $5 $6 comppc$ $7BPck@$1 $8Bp3qf¡lq $9ę7ę8ę9 BPck@$2 ę2 ę1 BPck@$2 Bp3qf¡lq ę4ę5ę6 BPck@$2 Bp3qf¡lq ę7ę8ę9 d@l$pfjl@3 bp3@fjl@ + d@l$pfjl@3 bp3@fjl@ + d@l$pfjl@3 Timetravel Tjm@$ypv@l:¾№,g№ Ępblq3chq¡p: 3jc(pkb¡g¡µĘpj¡¡pjykqy,vpl3Ęj¡µg); :figR d@l$pdp$pfjl@bp3@dp$pfjl@ Tjm@ljµ@R@coyd3Fjl@Npm@ T¡¡qĘjpvql:3qlqcĘ*fjo¡3jcĘ¡¡q3Ęp¡pp3ofqχpj; × (1,p),(2,p) $1d1 (2,b),(3,b) $2d2 (1,p),(2,b),(3,b) $2b1 (3,c),(4,c) $3d3 -(1),(2,d) $4d4 (2,d),(3,c)(4,c) $4b2 -(3),(5,q) $5d5 qχpj jqpdf¡lq3 o'Ęp'Ęjqcojd3 Ę1 [d1] (1,p),(2,p) Ę2 [b1] (1,p),(2,b),(3,b) Ę3 [b1,d3] (1,p),(2,b),(3,c),(4,c) Ę5 [b2,d5] (2,d),(4,c),(5,q) bqg¡µ qµd jqpdf¡lq3 o'Ęp'Ęjqcojd3 Ę1-1 Ę1 [d1] (1,p),(2,p) Ę1-1 Ę2 [d1,d2] (1,p),(2,b),(3,b) Ę1 Ę2-1 [] q¡pĘy Ę1 Ę5 [d2,d3,d4,d5] (2,d),(4,c),(5,q) :3qlqcĘ*fjo¡3jcĘ¡¡q3Ęp¡pbqĘ)qqµbqg¡µpµdqµd; × A ZMƒflQHUDl/DqlĘplpkq/lcqbqjg<7K0Y<7Pg>L,MpχCo¡pĘqƒan)@—IH!—tSA: •&,<7,h^19—ihRO.p3,&3$№,Jj;r •¡@b—YSQLkN:6,AX •O.;Y<7*]+,:6gG? •?cf8MaxComputeV$YP;—?‰,+m\/&/h^3$ •'¡e_W<7▢,3fi];2/2dC%,e&;R3$ •ƒMaxCompute-ę'¡4_,fl‰X,?q#Y8]3$ •oJj‰'¡AV$Y5WJjF 02 6*'1;,;,Clm3ęqj, CREATEMATERlAllZEDVlEW¡vPARTlTlONEDON(d3) AS3qlqcęvpl,d3fjo¡3jcvpl>5; AlTERMATERlAllZEDVlEW¡vjqbm¡ld;DROPMATERlAllZEDVlEW¡v; #4;+7 3qlqcęvpl,d3fjo¡3jcohqjqd3>20230601pµdd3<20230604pµdvpl>5;'1¡v$$20230602*;,+7*#4: 3qlqcęvpl,d3fjo¡3jcohqjqd3=20230603pµdvpl>5µjoµpll 3qlqcęvpl,d3fjo¡¡vohqjqd3=20230602; '1fi0ƒ'1 3qlqcęvpl,d3fjo¡3jcohqjqvpl>10; fi*#4: 3qlqcęvpl,d3fjo¡¡vohqjqvpl>10; !/ CREATEMATERlAllZEDVlEW¡vPARTlTlONEDON(d3) Rqfjq3hqvqjy20¡¡µmęq3ęblpjopqję¡q3("qµpblq_pmęo_jqfjq3h"="ęjmq")AS3qlqcęvpl,d3fjo¡3jcvpl>5; × •6(2'1*)R; •6F2?‰ •6-‰ƒ'1*5&%. 9№)8$ ffi9ƒ, × A$ A$" A$½№ R ƒ$ƒ$—ƒ$ę CPUCo3ę Mq¡Co3ęIOCo3ę # ;CU14% 03AdaptiveN SQL:Adaptive 3qlqcĘ¡d,3-¡(vpl)fjo¡Ęgjo-pby¡d; OpĘ¡¡¡zqj:PlpµDAG TpblqScpµLocplAggSh-fflqWj¡ĘqSh-fflqRqpdF¡µplAggS¡µk JobMp3Ęqj:SĘpgq R-µĘ¡¡q:WojkqjDAG × R-µĘ¡¡q:OpqjpĘoj ÇS$p$3R × SQLPlanDAG※ ‰:,'&‡$#‰S¡zq,$;+Hp3hJo¡µ-MqjgqJo¡µ lOfl0R;!)"* /‰N$ƒ Stage※ ‰:+&S¡zq,'Sępgq" × 5 8 2 2 0 0 1