Skip to content

Commit ebca92c

Browse files
authored
Update examples to DataSQRL 0.8 (#76)
1 parent 54a4280 commit ebca92c

File tree

159 files changed

+403
-495
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+403
-495
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
test_commands: |
4848
compile -c study_analytics_package_test.json
4949
test -c study_analytics_package_test.json
50-
# FIXME https://github.com/DataSQRL/sqrl/issues/1140 compile -c study_analytics_package_snowflake.json
5150
- example: healthcare-study-api
5251
path: healthcare-study/healthcare-study-api
5352
tag: healthcare-study-api
@@ -152,8 +151,6 @@ jobs:
152151
cat <<EOF > ${{ matrix.path }}/Dockerfile
153152
FROM datasqrl/cmd:${SQRL_VERSION}
154153
155-
ENV TZ="UTC"
156-
157154
COPY . /build
158155
WORKDIR /build
159156
EOF
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CREATE TABLE AddClick (
1+
CREATE TABLE Clickstream (
22
url STRING NOT NULL,
33
userid STRING NOT NULL,
44
event_time TIMESTAMP_LTZ(3) NOT NULL METADATA FROM 'timestamp'
5-
);
5+
);

clickstream-ai-recommendation/clickstream-kafka/clickstream.table.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE AddClick (
1+
CREATE TABLE Clickstream (
22
url STRING NOT NULL,
33
userid STRING NOT NULL,
44
event_time TIMESTAMP_LTZ(3) NOT NULL METADATA FROM 'timestamp',
@@ -11,4 +11,4 @@ CREATE TABLE AddClick (
1111
'scan.startup.mode' = 'group-offsets',
1212
'properties.auto.offset.reset' = 'earliest',
1313
'format' = 'flexible-json'
14-
);
14+
);

clickstream-ai-recommendation/content-api/.nodiscovery

Whitespace-only changes.

clickstream-ai-recommendation/content-api/sample_content.table.sql

Lines changed: 0 additions & 12 deletions
This file was deleted.

clickstream-ai-recommendation/recommendation.sqrl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*+no_query */
2-
IMPORT clickstream.Clickstream;
2+
IMPORT clickstream-{{variant}}.clickstream;
3+
34
/*+no_query */
4-
IMPORT content.Content;
5+
IMPORT content-{{variant}}.content;
56

67
/* Find next page visits within 10 minutes */
78
_CoVisits := SELECT b.url AS beforeURL, a.url AS afterURL,
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
{
22
"script": {
3-
"main": "recommendation.sqrl"
3+
"main": "recommendation.sqrl",
4+
"config": {
5+
"variant": "api"
6+
}
7+
},
8+
"compiler" : {
9+
"logger": "print"
410
},
511
"engines": {
612
"flink" : {
713
"config" : {
814
"table.exec.source.idle-timeout": "5 s"
915
}
1016
}
11-
},
12-
"compiler" : {
13-
"logger": "print"
14-
},
15-
"dependencies": {
16-
"content" : {
17-
"folder": "content-api"
18-
},
19-
"clickstream" : {
20-
"folder": "clickstream-api"
21-
}
2217
}
2318
}

clickstream-ai-recommendation/recommendation_package_kafka.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"script": {
3-
"main": "recommendation.sqrl"
3+
"main": "recommendation.sqrl",
4+
"config": {
5+
"variant": "kafka"
6+
}
47
},
58
"compiler" : {
69
"logger": "kafka"
@@ -12,14 +15,6 @@
1215
}
1316
}
1417
},
15-
"dependencies": {
16-
"content" : {
17-
"folder": "content-kafka"
18-
},
19-
"clickstream" : {
20-
"folder": "clickstream-kafka"
21-
}
22-
},
2318
"test-runner": {
2419
"create-topics": ["content", "clickstream"]
2520
}

finance-credit-card-chatbot/credit-card-analytics/creditcard-kafka/cardassignment.table.sql renamed to finance-credit-card-chatbot/credit-card-analytics/creditcard-kafka/card_assignment.table.sql

File renamed without changes.

finance-credit-card-chatbot/credit-card-analytics/creditcard-kafka/merchantreward.table.sql renamed to finance-credit-card-chatbot/credit-card-analytics/creditcard-kafka/merchant_reward.table.sql

File renamed without changes.

0 commit comments

Comments
 (0)