CREATE OR REPLACE EXTERNAL TABLE source.custom_hive_partitioned_table WITH PARTITION COLUMNS ( dt STRING, -- column order must match the external path lang STRING) OPTIONS ( uris = ['gs://events-export-avro/public-project/avro_external_test/*'], format = 'AVRO', hive_partition_uri_prefix = 'gs://events-export-avro/public-project/avro_external_test', require_hive_partition_filter = false);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Description: AWS S3 data lake stack. | |
Parameters: | |
SourceDataBucketName: | |
Description: Data lake bucket with source data files. | |
Type: String | |
Default: datalake.staging.aws | |
Resources: |
AWSTemplateFormatVersion: '2010-09-09' Description: AWS S3 data lake stack. Parameters:
SourceDataBucketName: Description: Data lake bucket with source data files. Type: String Default: datalake.staging.aws
Resources:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Description: AWS S3 data lake stack. | |
Parameters: | |
SourceDataBucketName: | |
Description: Data lake bucket with source data files. | |
Type: String | |
Default: datalake.staging.aws | |
StackPackageS3Key: |
curl -v -X DELETE "http://subscriber.test.palringo.aws/subscriber/78034896/delete" -H "Content-Type:application/json" -H "Palringo-RequesterId:78034896" --data '{"reason":"test", "author": 78034896, "source": 78034896}'
curl -v -X DELETE "http://subscriber.test.palringo.aws/subscriber/78034896/delete" -H "Content-Type:application/json" -H "Palringo-RequesterId:78034896" --data '{"reason":"test", "author": 78034896, "source": 78034896}'
curl -v -X POST "http://subscriber.test.palringo.aws/subscriber/1/undelete" -H "Content-Type:application/json" -H "Palringo-RequesterId:78034896"
curl -v -X PUT "http://bigquery-data.test.palringo.aws/job/create/" -H "Content-Type:application/json" -H "Palringo-RequesterId:78034896" --data '{"criteria": {"groupMembership": {"idList": [896]}}, "pageSize": 10,"code": "myJobId202301100857", "dryRun": true}'
curl -v GET http://bigquery-data.test.palringo.aws/job/myJobId202301100857/1
- Change last_seen_d_u (based on device) to last_seen (subscriber_id) > churned_u
- Use d1, d2, d0 for one model and week_1 activity for another for model training and prediction.
- Change MIN_ACTIVITY_DATE = '20220501'
- Remove user_pseudo_id and use user_id
- added features from daily_session table
- added credit spend
- excluded bots
- excluded outliers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataform run --tags="unit_tests" --include-deps=true --schema-suffix=tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
select | |
cast(json_extract(src,'$.user_id') as string) as user_id | |
... |