Skip to content

Commit

Permalink
Merge pull request #35 from Telefonica/test/qa_thor_auto_datasets
Browse files Browse the repository at this point in the history
test: add qa automatic thor datasets with tuple dates
  • Loading branch information
jordipuigbou authored Oct 2, 2023
2 parents 096a7ba + f89813e commit 6b21421
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"type": "record",
"doc": "Dataset for automatic thor launching with tuple date partitioned",
"x-fp-version": "1.0.0",
"fields": [
{
"name": "OPERATOR_ID",
"aliases": [
"operator_id"
],
"type": ["null", "string"],
"doc": "Global Operator Identifier (Operator acting as owner of the information present in the current entity)"
},
{
"name": "YEAR_NUM",
"aliases": [
"count"
],
"type": {
"type": "int",
"x-fp-time-dimension": "YYYY"
},
"doc": "YEAR NUM"
},
{
"name": "MONTH_NUM",
"aliases": [
"count"
],
"type": {
"type": "int",
"x-fp-time-dimension": "MM"
},
"doc": "MONTH NUM"
},
{
"name": "DAY_NUM",
"aliases": [
"count"
],
"type": {
"type": "int",
"x-fp-time-dimension": "dd"
},
"doc": "DAY NUM"
}
]
}
53 changes: 53 additions & 0 deletions samples/extensions/qa_thor_auto_tuple_dates/v1.0.0/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "Mobile_Line",
"type": "record",
"doc": "Dataset for automatic thor launching with tuple date partitioned",
"x-fp-version": "1.0.0",
"fields": [
{
"name": "OPERATOR_ID",
"type": {
"type": "string",
"arg.properties": {
"regex": "qa_operator_id_[0-9]{16}"
}
}
},
{
"name": "DAY_NUM",
"type": {
"type": "int",
"arg.properties": {
"range": {
"min": 1,
"max": 3
}
}
}
},
{
"name": "MONTH_NUM",
"type": {
"type": "int",
"arg.properties": {
"range": {
"min": 8,
"max": 9
}
}
}
},
{
"name": "YEAR_NUM",
"type": {
"type": "int",
"arg.properties": {
"range": {
"min": 2023,
"max": 2024
}
}
}
}
]
}

0 comments on commit 6b21421

Please sign in to comment.