@@ -8,6 +8,7 @@ Database demo::udtf::DemoDb
88      firmId INTEGER,
99      legalname VARCHAR(200)
1010    )
11+ 
1112    TabularFunction Person
1213    (
1314      firstname VARCHAR(200),
@@ -34,8 +35,7 @@ Database demo::udtf::DemoDb
3435
3536  Join firm_person(Org.Firm.firmId = Org.Person.associatedFirmId)
3637  Join firm_person2(Org.Firm.firmId = Org.Person2.associatedFirmId)
37-     Join relationship(Org.ParentAndChildren.parentId = {target}.id)
38- 
38+   Join relationship(Org.ParentAndChildren.parentId = {target}.id)
3939)
4040
4141
@@ -69,8 +69,7 @@ Association demo::udtf::firm_person
6969
7070function demo::udtf::Org::FirmToPerson(): meta::pure::tds::TabularDataSet[1]
7171{
72-   demo::udtf::Org::Firm.all()
73-   ->project(
72+   demo::udtf::Org::Firm.all()->project(
7473    [
7574      x|$x.firmId,
7675      x|$x.associatedPerson.age
@@ -127,7 +126,6 @@ function demo::udtf::Org::FirmToPersonWithFilterOnPersonUsingUnion(): meta::pure
127126  )
128127}
129128
130- 
131129function demo::udtf::Org::FetchChildrenViaSelfJoin(): meta::pure::tds::TabularDataSet[1]
132130{
133131  demo::udtf::Org::Person.all()->project(
@@ -168,7 +166,6 @@ Mapping demo::udtf::DemoMapping
168166  }
169167  *demo::udtf::Org::Person[p]: Relational
170168  {
171- 
172169    ~mainTable [demo::udtf::DemoDb]Org.Person
173170    firstname: [demo::udtf::DemoDb]Org.Person.firstname,
174171    lastname: [demo::udtf::DemoDb]Org.Person.lastname,
@@ -185,6 +182,7 @@ Mapping demo::udtf::DemoMapping
185182  }
186183)
187184
185+ 
188186###Mapping
189187Mapping demo::udtf::DemoMappingUnion
190188(
@@ -230,12 +228,13 @@ Mapping demo::udtf::DemoMappingUnion
230228  }
231229)
232230
231+ 
233232###Mapping
234233Mapping demo::udtf::DemoMappingSelfJoin
235234(
236235  *demo::udtf::Org::Person[p1]: Relational
237236  {
238-       ~primaryKey
237+     ~primaryKey
239238    (
240239      [demo::udtf::DemoDb]Org.ParentAndChildren.firstname
241240    )
@@ -256,6 +255,7 @@ Mapping demo::udtf::DemoMappingSelfJoin
256255  }
257256)
258257
258+ 
259259###Connection
260260RelationalDatabaseConnection demo::udtf::DemoSnowflakeConnection
261261{
@@ -293,6 +293,7 @@ Runtime demo::runtimes::DemoRuntime
293293  ];
294294}
295295
296+ 
296297###Snowflake
297298SnowflakeApp demo::udtf::snowflakeApp::App1
298299{
@@ -301,4 +302,4 @@ SnowflakeApp demo::udtf::snowflakeApp::App1
301302   ownership : Deployment { identifier: '441143'};
302303   description : 'test App';
303304   activationConfiguration : demo::udtf::DemoSnowflakeConnection;
304- }
305+ }
0 commit comments