Skip to content

Commit

Permalink
Update to 0.11.5, change ODCS file to use .odcs.yaml suffix, update p…
Browse files Browse the repository at this point in the history
…lans with correct foreign key definition
  • Loading branch information
pflooky committed Jul 3, 2024
1 parent c481d12 commit a9d158c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docker/data/custom/plan/cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ tasks:

sinkOptions:
foreignKeys:
"cassandra.accounts.account_id":
- "cassandra.account_status_history.account_id"
- - "cassandra.accounts.account_id"
- - "cassandra.account_status_history.account_id"
- []
1 change: 1 addition & 0 deletions docker/data/custom/plan/foreign-key-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sinkOptions:
foreignKeys:
- - "postgresCustomer.accounts.account_number"
- - "json.account.account_id"
- []
1 change: 1 addition & 0 deletions docker/data/custom/plan/foreign-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sinkOptions:
foreignKeys:
- - "postgresCustomer.accounts.account_number"
- - "json.account.account_id"
- []
1 change: 1 addition & 0 deletions docker/data/custom/plan/postgres-multiple-tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ sinkOptions:
foreignKeys:
- - "postgresCustomer.balances.account_number"
- - "postgresCustomer.transactions.account_number"
- []
1 change: 1 addition & 0 deletions docker/data/custom/plan/scenario-based-parquet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sinkOptions:
foreignKeys:
- - "postgres.accounts.account_number"
- - "parquet.transactions.account_id"
- []
1 change: 1 addition & 0 deletions docker/data/custom/plan/scenario-based.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sinkOptions:
foreignKeys:
- - "postgresCustomer.accounts.account_number"
- - "csv.transactions.account_id"
- []
File renamed without changes.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ version=0.1.0

scalaVersion=2.12
scalaSpecificVersion=2.12.15
dataCatererVersion=0.11.2
dataCatererVersion=0.11.5
sparkVersion=3.5.1
sparkMajorVersion=3.5
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class AdvancedODCSJavaPlanRun extends PlanRun {
{
var accountTask = csv("my_csv", "/opt/app/data/account-odcs", Map.of("saveMode", "overwrite", "header", "true"))
.schema(metadataSource().openDataContractStandard("/opt/app/mount/odcs/full-example.yaml"))
.schema(metadataSource().openDataContractStandard("/opt/app/mount/odcs/full-example.odcs.yaml"))
.count(count().records(100));

var conf = configuration().enableGeneratePlanAndTasks(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.github.datacatering.datacaterer.api.PlanRun
class AdvancedODCSPlanRun extends PlanRun {

val accountTask = csv("customer_accounts", "/opt/app/data/customer/account-odcs", Map("header" -> "true"))
.schema(metadataSource.openDataContractStandard("/opt/app/mount/odcs/full-example.yaml"))
.schema(metadataSource.openDataContractStandard("/opt/app/mount/odcs/full-example.odcs.yaml"))
.count(count.records(100))

val conf = configuration.enableGeneratePlanAndTasks(true)
Expand Down

0 comments on commit a9d158c

Please sign in to comment.