@@ -238,7 +238,6 @@ $\{when(true, "|> SELECT *", "|> SELECT 1")\}
238
238
239
239
test ( `data preparations can be loaded via sqlx file with file name as action name` , ( ) => {
240
240
const projectDir = createSimpleDataPreparationProject ( VALID_WORKFLOW_SETTINGS_YAML , false ) ;
241
- // TODO(fernst): decide on future of `validate(`.
242
241
const dataPreparationSqlx = `
243
242
config {
244
243
type: "dataPreparation",
@@ -252,6 +251,7 @@ config {
252
251
}
253
252
254
253
FROM x
254
+ |> $\{EXPECT\} y > 0
255
255
$\{when(true, "|> SELECT *", "|> SELECT 1")\}
256
256
` ;
257
257
@@ -305,6 +305,7 @@ $\{when(true, "|> SELECT *", "|> SELECT 1")\}
305
305
replace : { }
306
306
} ,
307
307
query : `FROM x
308
+ |> /* @@VALIDATION */ WHERE y > 0
308
309
|> SELECT *` ,
309
310
errorTable : {
310
311
database : "errorPrj" ,
@@ -319,7 +320,6 @@ $\{when(true, "|> SELECT *", "|> SELECT 1")\}
319
320
320
321
test ( `data preparations can be loaded via dp.sqlx file with file name as action name` , ( ) => {
321
322
const projectDir = createSimpleDataPreparationProject ( VALID_WORKFLOW_SETTINGS_YAML , false ) ;
322
- // TODO(fernst): decide on future of `validate(`.
323
323
const dataPreparationSqlx = `
324
324
config {
325
325
type: "dataPreparation",
@@ -333,6 +333,7 @@ config {
333
333
}
334
334
335
335
FROM x
336
+ |> $\{EXPECT\} y > 0
336
337
$\{when(true, "|> SELECT *", "|> SELECT 1")\}
337
338
` ;
338
339
@@ -386,6 +387,7 @@ $\{when(true, "|> SELECT *", "|> SELECT 1")\}
386
387
replace : { }
387
388
} ,
388
389
query : `FROM x
390
+ |> /* @@VALIDATION */ WHERE y > 0
389
391
|> SELECT *` ,
390
392
errorTable : {
391
393
database : "errorPrj" ,
0 commit comments