Skip to content

Commit

Permalink
Feat: DuckDB CI in Docker (#4)
Browse files Browse the repository at this point in the history
* feat: update requirements.txt, add duckdb binary

* feat: Docker & DuckDB

* fix: local action usage

* fix: relative path to root Dockerfile

* test: check failure of ci

* fix: call main in ci.sh

* fix: duckdb in-memory, mat in target/, fix ci fail test

* fix: rm dev dependencies

* fix: more tidying

* fix: create permanent dir at integration_tests/tmp/materialized
  • Loading branch information
tnightengale authored Mar 6, 2023
1 parent 090ca1d commit 45ad426
Show file tree
Hide file tree
Showing 25 changed files with 2,692 additions and 191 deletions.
45 changes: 45 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "dbt-activity-schema",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "mcr.microsoft.com/devcontainers/python:0-3.10",
"build": {
"dockerfile": "../Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"extensions": [
"stkb.rewrap",
"yzhang.markdown-all-in-one",
"ms-toolsai.jupyter",
"innoverio.vscode-dbt-power-user"
],
"settings": {
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.associations": {
"/workspaces/dbt-activity-schema/**/*.sql": "jinja-sql"
},
"rewrap.autoWrap.enabled": true
}
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
5 changes: 5 additions & 0 deletions .github/actions/run_ci/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'Run CI'
description: 'Run the CI using the main Dockerfile.'
runs:
using: 'docker'
image: '../../../Dockerfile'
21 changes: 2 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,5 @@ jobs:
- name: Checkout Branch
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dbt
run: pip install -r requirements.txt

- name: Run and Test
env:
CI_SNOWFLAKE_DBT_ACCOUNT: ${{ secrets.CI_SNOWFLAKE_DBT_ACCOUNT }}
CI_SNOWFLAKE_DBT_USER: ${{ secrets.CI_SNOWFLAKE_DBT_USER }}
CI_SNOWFLAKE_DBT_PASS: ${{ secrets.CI_SNOWFLAKE_DBT_PASS }}
CI_SNOWFLAKE_DBT_ROLE: ${{ secrets.CI_SNOWFLAKE_DBT_ROLE }}
CI_SNOWFLAKE_DBT_DATABASE: ${{ secrets.CI_SNOWFLAKE_DBT_DATABASE }}
CI_SNOWFLAKE_DBT_WAREHOUSE: ${{ secrets.CI_SNOWFLAKE_DBT_WAREHOUSE }}
run: |
cd integration_tests
./scripts/ci.sh
- name: CI in Dockerfile
uses: ./.github/actions/run_ci
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3.10-bullseye AS base

ENV POETRY_VERSION=1.3.2 \
POETRY_HOME=/usr/local \
POETRY_VIRTUALENVS_CREATE=false \
DBT_PROFILES_DIR=. \
PROJECT_DIR=/workspaces/dbt-activity-schema/

RUN apt-get update \
&& curl -sSL https://install.python-poetry.org | python - \
&& apt-get clean

WORKDIR $PROJECT_DIR

COPY ["*poetry.lock", "pyproject.toml", "$PROJECT_DIR"]
RUN poetry install --no-interaction

ENTRYPOINT ["./scripts/ci.sh"]
7 changes: 0 additions & 7 deletions integration_tests/.example.env

This file was deleted.

3 changes: 2 additions & 1 deletion integration_tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

target/
dbt_packages/
logs/
tmp/materialized/*.csv
.DS_Store
2 changes: 1 addition & 1 deletion integration_tests/dbt_packages/dbt_activity_schema
5 changes: 3 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ macro-paths: ["macros"]
test-paths: ["tests"]

target-path: "target"
clean-targets: ["target", "dbt_modules"]
clean-targets: ["target", "dbt_packages"]

models:
+materialized: table
+materialized: external
+format: csv

vars:
primary_activity_columns:
Expand Down
18 changes: 6 additions & 12 deletions integration_tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ config:
use_colors: True

integration_tests:
target: snowflake
outputs:

snowflake:
type: snowflake
account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}"
user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}"
password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}"
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
schema: dbt_activity_schema_integration_tests
threads: 1
duckdb:
type: duckdb
path: ":memory:"
database: dbt
external_root: tmp/materialized # Materialize Models as CSV for Inspection
target: duckdb
4 changes: 0 additions & 4 deletions integration_tests/scripts/ci.sh

This file was deleted.

3 changes: 0 additions & 3 deletions integration_tests/scripts/export_env.sh

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,FIRST_AFTER_BOUGHT_SOMETHING_FEATURE_JSON,FIRST_AFTER_BOUGHT_SOMETHING_TS
3,1,2022-01-02 22:10:11.000,signed up,,{"type": 1},0,,1,,{"type": 1},2022-01-05 22:10:11.000
9,7,2022-01-08 22:10:11.000,signed up,,{"type": 1},0,,1,,{"type": 1},2022-01-11 22:10:11.000
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,first_after_bought_something_feature_json,first_after_bought_something_ts
3,1,2022-01-02 22:10:11,signed up,,"{""type"": 1}",0,,1,,"{""type"": 1}",2022-01-05 22:10:11
9,7,2022-01-08 22:10:11,signed up,,"{""type"": 1}",0,,1,,"{""type"": 1}",2022-01-11 22:10:11
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,FIRST_AFTER_BOUGHT_SOMETHING_FEATURE_JSON,FIRST_AFTER_BOUGHT_SOMETHING_TS
7,1,2022-01-06 22:10:11.000,visit page,,{"type": 1},0,,4,,,
2,1,2022-01-01 22:10:11.000,visit page,,{"type": 1},0,,1,2022-01-03 22:10:11.000,,
4,1,2022-01-03 22:10:11.000,visit page,,{"type": 2},0,,2,2022-01-04 22:10:11.000,,
10,7,2022-01-09 22:10:11.000,visit page,,{"type": 2},0,,2,2022-01-10 22:10:11.000,,
8,7,2022-01-07 22:10:11.000,visit page,,{"type": 1},0,,1,2022-01-09 22:10:11.000,,
5,1,2022-01-04 22:10:11.000,visit page,,{"type": 2},0,,3,2022-01-06 22:10:11.000,{"type": 1},2022-01-05 22:10:11.000
11,7,2022-01-10 22:10:11.000,visit page,,{"type": 2},0,,3,2022-01-12 22:10:11.000,{"type": 1},2022-01-11 22:10:11.000
13,7,2022-01-12 22:10:11.000,visit page,,{"type": 1},0,,4,,,
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,first_after_bought_something_feature_json,first_after_bought_something_ts
5,1,2022-01-04 22:10:11,visit page,,"{""type"": 2}",0,,3,2022-01-06 22:10:11,"{""type"": 1}",2022-01-05 22:10:11
11,7,2022-01-10 22:10:11,visit page,,"{""type"": 2}",0,,3,2022-01-12 22:10:11,"{""type"": 1}",2022-01-11 22:10:11
2,1,2022-01-01 22:10:11,visit page,,"{""type"": 1}",0,,1,2022-01-03 22:10:11,,
4,1,2022-01-03 22:10:11,visit page,,"{""type"": 2}",0,,2,2022-01-04 22:10:11,,
7,1,2022-01-06 22:10:11,visit page,,"{""type"": 1}",0,,4,,,
8,7,2022-01-07 22:10:11,visit page,,"{""type"": 1}",0,,1,2022-01-09 22:10:11,,
10,7,2022-01-09 22:10:11,visit page,,"{""type"": 2}",0,,2,2022-01-10 22:10:11,,
13,7,2022-01-12 22:10:11,visit page,,"{""type"": 1}",0,,4,,,
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,FIRST_AFTER_VISIT_PAGE_FEATURE_JSON,FIRST_AFTER_VISIT_PAGE_ACTIVITY_OCCURRENCE,FIRST_AFTER_VISIT_PAGE_TS
3,1,2022-01-02 22:10:11.000,signed up,,{"type": 1},0,,1,,{"type": 1},4,2022-01-06 22:10:11.000
9,7,2022-01-08 22:10:11.000,signed up,,{"type": 1},0,,1,,{"type": 1},4,2022-01-12 22:10:11.000
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,first_after_visit_page_feature_json,first_after_visit_page_activity_occurrence,first_after_visit_page_ts
3,1,2022-01-02 22:10:11,signed up,,"{""type"": 1}",0,,1,,"{""type"": 1}",4,2022-01-06 22:10:11
9,7,2022-01-08 22:10:11,signed up,,"{""type"": 1}",0,,1,,"{""type"": 1}",4,2022-01-12 22:10:11
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,FIRST_BEFORE_VISITED_PAGE_FEATURE_JSON,FIRST_BEFORE_VISITED_PAGE_TS
22,19,2022-01-21 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-17 22:10:11.000,[{""visited page"": 1}],2022-01-19 22:10:11.000
28,25,2022-01-27 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-23 22:10:11.000,[{""visited page"": 1}],2022-01-25 22:10:11.000
31,1,2022-01-30 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-01 22:10:11.000
34,4,2022-02-02 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-04 22:10:11.000
55,25,2022-02-23 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-25 22:10:11.000
19,16,2022-01-18 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-14 22:10:11.000,[{""visited page"": 1}],2022-01-16 22:10:11.000
25,22,2022-01-24 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-20 22:10:11.000,[{""visited page"": 1}],2022-01-22 22:10:11.000
52,22,2022-02-20 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-22 22:10:11.000
13,10,2022-01-12 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-08 22:10:11.000,[{""visited page"": 1}],2022-01-10 22:10:11.000
10,7,2022-01-09 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-05 22:10:11.000,[{""visited page"": 1}],2022-01-07 22:10:11.000
37,7,2022-02-05 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-07 22:10:11.000
46,16,2022-02-14 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-16 22:10:11.000
7,4,2022-01-06 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-02 22:10:11.000,[{""visited page"": 1}],2022-01-04 22:10:11.000
40,10,2022-02-08 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-10 22:10:11.000
4,1,2022-01-03 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-01-30 22:10:11.000,[{""visited page"": 1}],2022-01-01 22:10:11.000
16,13,2022-01-15 22:10:11.000,bought something,,[{""bought something"": 1}],100,,1,2022-02-11 22:10:11.000,[{""visited page"": 1}],2022-01-13 22:10:11.000
43,13,2022-02-11 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-13 22:10:11.000
49,19,2022-02-17 22:10:11.000,bought something,,[{""bought something"": 1}],100,,2,,[{""visited page"": 1}],2022-01-19 22:10:11.000
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,first_before_visited_page_feature_json,first_before_visited_page_ts
4,1,2022-01-03 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-01-30 22:10:11,"[{""""visited page"""": 1}]",2022-01-01 22:10:11
7,4,2022-01-06 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-02 22:10:11,"[{""""visited page"""": 1}]",2022-01-04 22:10:11
10,7,2022-01-09 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-05 22:10:11,"[{""""visited page"""": 1}]",2022-01-07 22:10:11
13,10,2022-01-12 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-08 22:10:11,"[{""""visited page"""": 1}]",2022-01-10 22:10:11
16,13,2022-01-15 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-11 22:10:11,"[{""""visited page"""": 1}]",2022-01-13 22:10:11
19,16,2022-01-18 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-14 22:10:11,"[{""""visited page"""": 1}]",2022-01-16 22:10:11
22,19,2022-01-21 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-17 22:10:11,"[{""""visited page"""": 1}]",2022-01-19 22:10:11
25,22,2022-01-24 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-20 22:10:11,"[{""""visited page"""": 1}]",2022-01-22 22:10:11
28,25,2022-01-27 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,1,2022-02-23 22:10:11,"[{""""visited page"""": 1}]",2022-01-25 22:10:11
31,1,2022-01-30 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-01 22:10:11
34,4,2022-02-02 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-04 22:10:11
37,7,2022-02-05 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-07 22:10:11
40,10,2022-02-08 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-10 22:10:11
43,13,2022-02-11 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-13 22:10:11
46,16,2022-02-14 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-16 22:10:11
49,19,2022-02-17 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-19 22:10:11
52,22,2022-02-20 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-22 22:10:11
55,25,2022-02-23 22:10:11,bought something,,"[{""""bought something"""": 1}]",100,,2,,"[{""""visited page"""": 1}]",2022-01-25 22:10:11
38 changes: 19 additions & 19 deletions integration_tests/seeds/first_ever/output/output__first_ever.csv
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,FIRST_EVER_SIGNED_UP_FEATURE_JSON,FIRST_EVER_SIGNED_UP_TS
41,13,2022-02-09 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-14 22:10:11.000
20,19,2022-01-19 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-15 22:10:11.000,[{""signed up"": 1}],2022-01-20 22:10:11.000
35,7,2022-02-03 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-08 22:10:11.000
2,1,2022-01-01 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-01-28 22:10:11.000,[{""signed up"": 1}],2022-01-02 22:10:11.000
23,22,2022-01-22 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-18 22:10:11.000,[{""signed up"": 1}],2022-01-23 22:10:11.000
26,25,2022-01-25 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-21 22:10:11.000,[{""signed up"": 1}],2022-01-26 22:10:11.000
5,4,2022-01-04 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-01-31 22:10:11.000,[{""signed up"": 1}],2022-01-05 22:10:11.000
8,7,2022-01-07 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-03 22:10:11.000,[{""signed up"": 1}],2022-01-08 22:10:11.000
11,10,2022-01-10 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-06 22:10:11.000,[{""signed up"": 1}],2022-01-11 22:10:11.000
47,19,2022-02-15 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-20 22:10:11.000
44,16,2022-02-12 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-17 22:10:11.000
50,22,2022-02-18 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-23 22:10:11.000
17,16,2022-01-16 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-12 22:10:11.000,[{""signed up"": 1}],2022-01-17 22:10:11.000
29,1,2022-01-28 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-02 22:10:11.000
32,4,2022-01-31 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-05 22:10:11.000
38,10,2022-02-06 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-11 22:10:11.000
53,25,2022-02-21 22:10:11.000,visited page,,[{""visited page"": 1}],0,,2,,[{""signed up"": 1}],2022-01-26 22:10:11.000
14,13,2022-01-13 22:10:11.000,visited page,,[{""visited page"": 1}],0,,1,2022-02-09 22:10:11.000,[{""signed up"": 1}],2022-01-14 22:10:11.000
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,first_ever_signed_up_feature_json,first_ever_signed_up_ts
2,1,2022-01-01 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-01-28 22:10:11,"[{""""signed up"""": 1}]",2022-01-02 22:10:11
5,4,2022-01-04 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-01-31 22:10:11,"[{""""signed up"""": 1}]",2022-01-05 22:10:11
8,7,2022-01-07 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-03 22:10:11,"[{""""signed up"""": 1}]",2022-01-08 22:10:11
11,10,2022-01-10 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-06 22:10:11,"[{""""signed up"""": 1}]",2022-01-11 22:10:11
14,13,2022-01-13 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-09 22:10:11,"[{""""signed up"""": 1}]",2022-01-14 22:10:11
17,16,2022-01-16 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-12 22:10:11,"[{""""signed up"""": 1}]",2022-01-17 22:10:11
20,19,2022-01-19 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-15 22:10:11,"[{""""signed up"""": 1}]",2022-01-20 22:10:11
23,22,2022-01-22 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-18 22:10:11,"[{""""signed up"""": 1}]",2022-01-23 22:10:11
26,25,2022-01-25 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,1,2022-02-21 22:10:11,"[{""""signed up"""": 1}]",2022-01-26 22:10:11
29,1,2022-01-28 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-02 22:10:11
32,4,2022-01-31 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-05 22:10:11
35,7,2022-02-03 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-08 22:10:11
38,10,2022-02-06 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-11 22:10:11
41,13,2022-02-09 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-14 22:10:11
44,16,2022-02-12 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-17 22:10:11
47,19,2022-02-15 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-20 22:10:11
50,22,2022-02-18 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-23 22:10:11
53,25,2022-02-21 22:10:11,visited page,,"[{""""visited page"""": 1}]",0,,2,,"[{""""signed up"""": 1}]",2022-01-26 22:10:11
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ACTIVITY_ID,CUSTOMER,TS,ACTIVITY,ANONYMOUS_CUSTOMER_ID,FEATURE_JSON,REVENUE_IMPACT,LINK,ACTIVITY_OCCURRENCE,ACTIVITY_REPEATED_AT,LAST_AFTER_VISIT_PAGE_FEATURE_JSON,LAST_AFTER_VISIT_PAGE_TS
9,7,2022-01-08 22:10:11.000,signed up,,[{"signed up": 1}],0,,1,,[{"visited page": 1}],2022-01-12 22:10:11.000
3,1,2022-01-02 22:10:11.000,signed up,,[{"signed up": 1}],0,,1,,[{"visited page": 1}],2022-01-06 22:10:11.000
activity_id,customer,ts,activity,anonymous_customer_id,feature_json,revenue_impact,link,activity_occurrence,activity_repeated_at,last_after_visit_page_feature_json,last_after_visit_page_ts
3,1,2022-01-02 22:10:11,signed up,,"[{""signed up"": 1}]",0,,1,,"[{""visited page"": 1}]",2022-01-06 22:10:11
9,7,2022-01-08 22:10:11,signed up,,"[{""signed up"": 1}]",0,,1,,"[{""visited page"": 1}]",2022-01-12 22:10:11
Loading

0 comments on commit 45ad426

Please sign in to comment.