Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
**/.vscode/
**/__pycache__/
**/.DS_Store
api/python/test/canary/compiled/
api/python/test/canary/production/
api/python/ai/chronon/resources/gcp/compiled/
api/python/test/sample/compiled/
api/python/test/sample/production/
api/python/ai/chronon/api/
Expand Down
1 change: 1 addition & 0 deletions api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ scala_library(
scala_test_suite(
name = "tests",
srcs = glob(["src/test/**/*.scala"]),
data = ["//spark/src/test/resources:test-resources"],
visibility = ["//visibility:public"],
deps = test_deps + [":test-lib"],
)
123 changes: 123 additions & 0 deletions api/python/test/canary/compiled/group_bys/aws/purchases.v1_dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"metaData": {
"name": "aws.purchases.v1_dev",
"team": "aws",
"outputNamespace": "data",
"online": 1,
"sourceFile": "group_bys/aws/purchases.py",
"customJson": "{\"airflowDependencies\": [{\"name\": \"wf_data_purchases_with_offset_0\", \"spec\": \"data.purchases/ds={{ macros.ds_add(ds, 0) }}\"}]}",
"executionInfo": {
"env": {
"common": {
"VERSION": "latest",
"JOB_MODE": "local[*]",
"HADOOP_DIR": "[STREAMING-TODO]/path/to/folder/containing",
"CHRONON_ONLINE_CLASS": "[ONLINE-TODO]your.online.class",
"CHRONON_ONLINE_ARGS": "[ONLINE-TODO]args prefixed with -Z become constructor map for your implementation of ai.chronon.online.Api, -Zkv-host=<YOUR_HOST> -Zkv-port=<YOUR_PORT>",
"PARTITION_COLUMN": "ds",
"PARTITION_FORMAT": "yyyy-MM-dd",
"CUSTOMER_ID": "dev",
"GCP_PROJECT_ID": "canary-443022",
"GCP_REGION": "us-central1",
"GCP_DATAPROC_CLUSTER_NAME": "zipline-canary-cluster",
"GCP_BIGTABLE_INSTANCE_ID": "zipline-canary-instance",
"FLINK_STATE_URI": "gs://zipline-warehouse-canary/flink-state",
"CLOUD_PROVIDER": "aws"
},
"modeEnvironments": {}
},
"conf": {
"common": {
"spark.chronon.partition.column": "ds"
},
"modeConfigs": {}
},
"scheduleCron": "@daily",
"historicalBackfill": 0
}
},
"sources": [
{
"events": {
"table": "data.purchases",
"query": {
"selects": {
"user_id": "user_id",
"purchase_price": "purchase_price"
},
"timeColumn": "ts"
}
}
}
],
"keyColumns": [
"user_id"
],
"aggregations": [
{
"inputColumn": "purchase_price",
"operation": 7,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 6,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 8,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 13,
"argMap": {
"k": "10"
}
}
],
"backfillStartDate": "2023-11-01"
}
123 changes: 123 additions & 0 deletions api/python/test/canary/compiled/group_bys/aws/purchases.v1_test
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"metaData": {
"name": "aws.purchases.v1_test",
"team": "aws",
"outputNamespace": "data",
"online": 1,
"sourceFile": "group_bys/aws/purchases.py",
"customJson": "{\"airflowDependencies\": [{\"name\": \"wf_data_purchases_with_offset_0\", \"spec\": \"data.purchases/ds={{ macros.ds_add(ds, 0) }}\"}]}",
"executionInfo": {
"env": {
"common": {
"VERSION": "latest",
"JOB_MODE": "local[*]",
"HADOOP_DIR": "[STREAMING-TODO]/path/to/folder/containing",
"CHRONON_ONLINE_CLASS": "[ONLINE-TODO]your.online.class",
"CHRONON_ONLINE_ARGS": "[ONLINE-TODO]args prefixed with -Z become constructor map for your implementation of ai.chronon.online.Api, -Zkv-host=<YOUR_HOST> -Zkv-port=<YOUR_PORT>",
"PARTITION_COLUMN": "ds",
"PARTITION_FORMAT": "yyyy-MM-dd",
"CUSTOMER_ID": "dev",
"GCP_PROJECT_ID": "canary-443022",
"GCP_REGION": "us-central1",
"GCP_DATAPROC_CLUSTER_NAME": "zipline-canary-cluster",
"GCP_BIGTABLE_INSTANCE_ID": "zipline-canary-instance",
"FLINK_STATE_URI": "gs://zipline-warehouse-canary/flink-state",
"CLOUD_PROVIDER": "aws"
},
"modeEnvironments": {}
},
"conf": {
"common": {
"spark.chronon.partition.column": "ds"
},
"modeConfigs": {}
},
"scheduleCron": "@daily",
"historicalBackfill": 0
}
},
"sources": [
{
"events": {
"table": "data.purchases",
"query": {
"selects": {
"user_id": "user_id",
"purchase_price": "purchase_price"
},
"timeColumn": "ts"
}
}
}
],
"keyColumns": [
"user_id"
],
"aggregations": [
{
"inputColumn": "purchase_price",
"operation": 7,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 6,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 8,
"argMap": {},
"windows": [
{
"length": 3,
"timeUnit": 1
},
{
"length": 14,
"timeUnit": 1
},
{
"length": 30,
"timeUnit": 1
}
]
},
{
"inputColumn": "purchase_price",
"operation": 13,
"argMap": {
"k": "10"
}
}
],
"backfillStartDate": "2023-11-01"
}
Loading
Loading