Skip to content

Commit

Permalink
Merge pull request #161 from george0st/change
Browse files Browse the repository at this point in the history
New dataset (change in events) & test pipelines
  • Loading branch information
george0st authored May 31, 2024
2 parents c7b74b6 + fb62c03 commit 9f806c4
Show file tree
Hide file tree
Showing 33 changed files with 596 additions and 575 deletions.
Binary file modified 02-data/01-size-100/01-basic-party.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/01-basic-party.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/02-basic-contact.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/02-basic-contact.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/03-basic-relation.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/03-basic-relation.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/04-basic-account.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/04-basic-account.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/05-basic-transaction.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/05-basic-transaction.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/06-basic-event.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/06-basic-event.parquet
Binary file not shown.
Binary file modified 02-data/01-size-100/07-basic-communication.csv.gz
Binary file not shown.
Binary file modified 02-data/01-size-100/07-basic-communication.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/01-basic-party.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/01-basic-party.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/02-basic-contact.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/02-basic-contact.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/03-basic-relation.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/03-basic-relation.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/04-basic-account.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/04-basic-account.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/05-basic-transaction.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/05-basic-transaction.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/06-basic-event.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/06-basic-event.parquet
Binary file not shown.
Binary file modified 02-data/02-size-1K/07-basic-communication.csv.gz
Binary file not shown.
Binary file modified 02-data/02-size-1K/07-basic-communication.parquet
Binary file not shown.
568 changes: 284 additions & 284 deletions 03-test/01-size-100.json

Large diffs are not rendered by default.

560 changes: 280 additions & 280 deletions 03-test/02-size-1k.json

Large diffs are not rendered by default.

37 changes: 29 additions & 8 deletions 03-test/20-pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,54 @@
"description": "Setting for test pipelines for ingestion",
"kind": "test",
"spec": {
"featuresets": ["basic-party", "basic-contact", "basic-relation", "basic-account"],
"featuresets": ["basic-party", "basic-contact", "basic-relation", "basic-account", "basic-transaction",
"basic-event", "basic-communication"],
"tests": {
"basic-party": {
"filter": "(event['party-gender'] == 'F')",
"extend": "({'ext': 'd'})",
"extend": "({'bparty': 'party'})",
"calc": "",
"agreg": ""
},
"basic-contact": {
"filter": "",
"extend": "",
"filter": "(event['contact-state'] == 'Active')",
"extend": "({'bcontact': 'contact'})",
"calc": "",
"agreg": ""
},
"basic-relation": {
"filter": "",
"filter": "(event['relation-type'] == 'TTT')",
"extend": "",
"calc": "",
"agreg": ""
},
"basic-account": {
"filter": "",
"extend": "",
"filter": "(event['account-state'] == 'active')",
"extend": "({'baccount': 'account'})",
"calc": "",
"agreg": ""
},
"basic-transaction":
{
"filter": "(event['transaction-direction'] == 'Incoming' and event['transaction-type'] == 'Standard')",
"extend": "({'btransaction': 'transaction'})",
"calc": "",
"agreg": ""
},
"basic-event":
{
"filter": "(event['event-group'] == 'access' and event['event-action'] == 'login')",
"extend": "({'bevent': 'event'})",
"calc": "",
"agreg": ""
},
"basic-communication":
{
"filter": "(event['content-type'] == 'text' and event['channel'] == 'xxx')",
"extend": "({'bcommunication': 'communication'})",
"calc": "",
"agreg": ""
}

}
}
}
4 changes: 2 additions & 2 deletions generator/basic_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def generate(self, count):
if event==0:
# add default group, category and action -> login for first event in bundle
group="access"
category="login"
action="mobile" if self.rnd_bool() else "web"
category="mobile" if self.rnd_bool() else "web"
action="login"
else:
# add random group, category, action
if party_customer:
Expand Down
2 changes: 1 addition & 1 deletion generator/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Store the version here so:

__version__ = '0.2.3'
__version__ = '0.2.4'

0 comments on commit 9f806c4

Please sign in to comment.