Skip to content

Commit d76539e

Browse files
committed
Expose send effect to messages dataframe
1 parent 42b5d76 commit d76539e

File tree

4 files changed

+100
-43
lines changed

4 files changed

+100
-43
lines changed

ica/queries/messages.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ SELECT
44
"handle_id",
55
"handle"."id" AS "sender_handle",
66
"attributedBody",
7+
"message"."expressive_send_style_id",
78
datetime("message"."date" / 1000000000 + strftime("%s", "2001-01-01") ,"unixepoch") as "datetime",
89
"is_from_me"
910
FROM "message"

tests/data/dbs/chats/message.json

Lines changed: 76 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,302 +5,340 @@
55
"attributedBody": "",
66
"date": 727379229507062144,
77
"is_from_me": true,
8-
"handle_id": "user-daniel"
8+
"handle_id": "user-daniel",
9+
"expressive_send_style_id": "com.apple.messages.effect.CKEchoEffect"
910
},
1011
{
1112
"ROWID": "17f5642d-68df-4604-9c1c-43fd63a54f2e",
1213
"text": "Oh hey, John! Sure, the party is on the 30th! \ud83c\udf8a",
1314
"attributedBody": "",
1415
"date": 727379249287274624,
1516
"is_from_me": false,
16-
"handle_id": "user-daniel"
17+
"handle_id": "user-daniel",
18+
"expressive_send_style_id": null
1719
},
1820
{
1921
"ROWID": "7fc5ac48-a5d4-4f8a-a749-f085bf246c1a",
2022
"text": "Perfect, thanks man! \ud83d\udc4d\ud83d\udc4d\ud83c\udffb\ud83d\udc4d\ud83c\udffc\ud83d\udc4d\ud83c\udffd\ud83d\udc4d\ud83c\udffe\ud83d\udc4d\ud83c\udfff",
2123
"attributedBody": "",
2224
"date": 727379298702376320,
2325
"is_from_me": true,
24-
"handle_id": "user-daniel"
26+
"handle_id": "user-daniel",
27+
"expressive_send_style_id": null
2528
},
2629
{
2730
"ROWID": "5ab162b0-e4c7-4e77-9623-c2396bb81d73",
2831
"text": "Hey Jane, how's your day going? \ud83d\ude0a",
2932
"attributedBody": "",
3033
"date": 726364800000000000,
3134
"is_from_me": true,
32-
"handle_id": "user-jane"
35+
"handle_id": "user-jane",
36+
"expressive_send_style_id": null
3337
},
3438
{
3539
"ROWID": "31a32e77-87c7-4c04-9fab-d7f42ba9484c",
3640
"text": "Reacted \ud83d\udc4b to \u201cHey Jane, how's your day going? \ud83d\ude0a\u201d",
3741
"attributedBody": "",
3842
"date": 726442400302259968,
3943
"is_from_me": false,
40-
"handle_id": "user-jane"
44+
"handle_id": "user-jane",
45+
"expressive_send_style_id": null
4146
},
4247
{
4348
"ROWID": "ef073cec-fcd5-4fdb-b400-c2f54a7cb974",
4449
"text": "Hey John, it's been great so far! \ud83d\ude00 Just finished a productive meeting. What about you?",
4550
"attributedBody": "",
4651
"date": 726442407346190720,
4752
"is_from_me": false,
48-
"handle_id": "user-jane"
53+
"handle_id": "user-jane",
54+
"expressive_send_style_id": null
4955
},
5056
{
5157
"ROWID": "a8221838-fc7e-4096-94af-a71282081449",
5258
"text": "Sounds good! I'm just taking a quick break before diving into some coding. \ud83d\udc68\u200d\ud83d\udcbb",
5359
"attributedBody": "",
5460
"date": 726522868945607168,
5561
"is_from_me": true,
56-
"handle_id": "user-jane"
62+
"handle_id": "user-jane",
63+
"expressive_send_style_id": null
5764
},
5865
{
5966
"ROWID": "90b09b75-b098-4ff7-9271-c27f6b1efc75",
6067
"text": "That sounds exciting! \ud83d\ude00 What are you working on?",
6168
"attributedBody": "",
6269
"date": 726522900219992192,
6370
"is_from_me": false,
64-
"handle_id": "user-jane"
71+
"handle_id": "user-jane",
72+
"expressive_send_style_id": null
6573
},
6674
{
6775
"ROWID": "a872294d-5758-4e51-a25a-3c6cac425081",
6876
"text": "Building a new feature for our app. It should make things a lot easier for users. \ud83d\ude4c",
6977
"attributedBody": "",
7078
"date": 726689916631041792,
7179
"is_from_me": true,
72-
"handle_id": "user-jane"
80+
"handle_id": "user-jane",
81+
"expressive_send_style_id": null
7382
},
7483
{
7584
"ROWID": "ef65772c-730f-4536-ae42-0ea2bc1adbc5",
7685
"text": "Emphasized \u201cBuilding a new feature for our app. It should make things a lot easier for users. \ud83d\ude4c\u201d",
7786
"attributedBody": "",
7887
"date": 726689955617652480,
7988
"is_from_me": false,
80-
"handle_id": "user-jane"
89+
"handle_id": "user-jane",
90+
"expressive_send_style_id": null
8191
},
8292
{
8393
"ROWID": "bc033640-98c1-4a8f-b09f-9d0a8c4c71cb",
8494
"text": "Hey John! What's up? \ud83d\udc4a",
8595
"attributedBody": "",
8696
"date": 726361900437000064,
8797
"is_from_me": false,
88-
"handle_id": "user-thomas"
98+
"handle_id": "user-thomas",
99+
"expressive_send_style_id": null
89100
},
90101
{
91102
"ROWID": "662ceec7-bb4a-4e30-9357-b96eb633b3d1",
92103
"text": "Loved \u201cHey John! What's up? \ud83d\udc4a\u201d",
93104
"attributedBody": "",
94105
"date": 726362122374000128,
95106
"is_from_me": true,
96-
"handle_id": "user-thomas"
107+
"handle_id": "user-thomas",
108+
"expressive_send_style_id": null
97109
},
98110
{
99111
"ROWID": "3bdbefe4-2d18-47da-93a4-524593cc8fec",
100112
"text": "Hey Thomas! Not much, just chatting with Jane. \u263a\ufe0f What's going on with you?",
101113
"attributedBody": "",
102114
"date": 726456930474000000,
103115
"is_from_me": true,
104-
"handle_id": "user-thomas"
116+
"handle_id": "user-thomas",
117+
"expressive_send_style_id": null
105118
},
106119
{
107120
"ROWID": "db50d4a8-638c-44e4-ba5b-f6675e1b4aa9",
108121
"text": "That's awesome! \ud83d\ude00\ud83d\ude00\ud83d\ude00 I can't wait to see it. \ud83d\ude0a In the meantime, I'm gonna grab some lunch.",
109122
"attributedBody": "",
110123
"date": 726950535810231168,
111124
"is_from_me": false,
112-
"handle_id": "user-jane"
125+
"handle_id": "user-jane",
126+
"expressive_send_style_id": null
113127
},
114128
{
115129
"ROWID": "1c745f90-5cab-4e25-a65a-c6b6209fb6f3",
116130
"text": "Just finished up a coding session myself. Feeling a bit brain-fried, but also kind of accomplished. \ud83d\ude0e",
117131
"attributedBody": "",
118132
"date": 726703624406149632,
119133
"is_from_me": false,
120-
"handle_id": "user-thomas"
134+
"handle_id": "user-thomas",
135+
"expressive_send_style_id": null
121136
},
122137
{
123138
"ROWID": "7560b9f5-4b09-484b-a485-c81b39c9e41a",
124139
"text": "Sounds like a good plan! \ud83c\udf4e Enjoy your lunch!",
125140
"attributedBody": "",
126141
"date": 727118724365438976,
127142
"is_from_me": true,
128-
"handle_id": "user-jane"
143+
"handle_id": "user-jane",
144+
"expressive_send_style_id": null
129145
},
130146
{
131147
"ROWID": "eb95d508-cc5d-4f5d-9fa7-bee604bd0dd1",
132148
"text": "Thanks! I will. Talk to you later! \u263a\ufe0f",
133149
"attributedBody": "",
134150
"date": 727218371085356672,
135151
"is_from_me": false,
136-
"handle_id": "user-jane"
152+
"handle_id": "user-jane",
153+
"expressive_send_style_id": null
137154
},
138155
{
139156
"ROWID": "4279e14b-f787-44fb-93c9-8185ec348770",
140157
"text": "\ufffc",
141158
"attributedBody": "",
142159
"date": 727317821465999872,
143160
"is_from_me": true,
144-
"handle_id": "user-jane"
161+
"handle_id": "user-jane",
162+
"expressive_send_style_id": null
145163
},
146164
{
147165
"ROWID": "855c1f22-2ac0-46e2-ae76-e4c164d4236e",
148166
"text": "Yeah, I definitely needed a break. \ud83d\ude0c What are you working on these days?",
149167
"attributedBody": "",
150168
"date": 726769943348052736,
151169
"is_from_me": false,
152-
"handle_id": "user-thomas"
170+
"handle_id": "user-thomas",
171+
"expressive_send_style_id": null
153172
},
154173
{
155174
"ROWID": "968e4e64-bb66-42fa-9bc3-379ec1dbdb87",
156175
"text": "I'm building a new feature for our app at work! It's been a challenge, but https://open.spotify.com/playlist/37i9dQZF1DWWQRwui0ExPn has been helping \ud83c\udfa7",
157176
"attributedBody": "",
158177
"date": 726777291571192064,
159178
"is_from_me": true,
160-
"handle_id": "user-thomas"
179+
"handle_id": "user-thomas",
180+
"expressive_send_style_id": null
161181
},
162182
{
163183
"ROWID": "f0b4da10-4f43-4cc8-b131-b29a8df9d0ed",
164184
"text": "Liked \u201cI'm building a new feature for our app at work! It's been a challenge, but https://open.spotify.com/playlist/37i9dQZF1DWWQRwui0ExPn has been helping \ud83c\udfa7\u201d",
165185
"attributedBody": "",
166186
"date": 726777298531000192,
167187
"is_from_me": false,
168-
"handle_id": "user-thomas"
188+
"handle_id": "user-thomas",
189+
"expressive_send_style_id": null
169190
},
170191
{
171192
"ROWID": "09942383-4155-4cb4-9360-8b54e0b643c9",
172193
"text": "That's so cool! And great playlist. It reminds me of https://www.youtube.com/watch?v=sF80I-TQiW0 and https://www.youtube.com/watch?v=jfKfPfyJRdk",
173194
"attributedBody": "",
174195
"date": 726777306887309056,
175196
"is_from_me": false,
176-
"handle_id": "user-thomas"
197+
"handle_id": "user-thomas",
198+
"expressive_send_style_id": null
177199
},
178200
{
179201
"ROWID": "409279d7-5efc-482f-b8eb-feed621431c9",
180202
"text": "Loved \u201cThat's so cool! And great playlist. It reminds me of https://www.youtube.com/watch?v=3yx2G8GMT9I and https://www.youtube.com/watch?v=jfKfPfyJRdk\u201d",
181203
"attributedBody": "",
182204
"date": 726777405792999936,
183205
"is_from_me": true,
184-
"handle_id": "user-thomas"
206+
"handle_id": "user-thomas",
207+
"expressive_send_style_id": null
185208
},
186209
{
187210
"ROWID": "53e399eb-b1f6-4a2a-93ea-a77d30cc8fbc",
188211
"text": "Oh wow! I haven't listened to these before! These are great!",
189212
"attributedBody": "",
190213
"date": 726777446593999872,
191214
"is_from_me": true,
192-
"handle_id": "user-thomas"
215+
"handle_id": "user-thomas",
216+
"expressive_send_style_id": null
193217
},
194218
{
195219
"ROWID": "e9927687-e199-4031-a4c5-c69f4e734fdf",
196220
"text": "Kinda reminds me of:",
197221
"attributedBody": "",
198222
"date": 726784706461334912,
199223
"is_from_me": true,
200-
"handle_id": "user-thomas"
224+
"handle_id": "user-thomas",
225+
"expressive_send_style_id": null
201226
},
202227
{
203228
"ROWID": "71a4a961-1695-4605-bbc6-367b5edccd15",
204229
"text": "https://www.youtube.com/watch?v=tONVgIvdk0A and https://music.apple.com/us/station/lo-fi-station/ra.1569482000",
205230
"attributedBody": "",
206231
"date": 726784720391002368,
207232
"is_from_me": true,
208-
"handle_id": "user-thomas"
233+
"handle_id": "user-thomas",
234+
"expressive_send_style_id": null
209235
},
210236
{
211237
"ROWID": "5ad21286-3ed9-496e-a8ee-b0df99ca1902",
212238
"text": "Oh yeah that's a good one too!",
213239
"attributedBody": "",
214240
"date": 726784803225128832,
215241
"is_from_me": false,
216-
"handle_id": "user-thomas"
242+
"handle_id": "user-thomas",
243+
"expressive_send_style_id": null
217244
},
218245
{
219246
"ROWID": "3b7470a5-11b9-441a-b8e5-d486cc674214",
220247
"text": "On the topic of lo-fi, have you seen https://www.youtube.com/watch?v=ovw8a-RfVpA ?",
221248
"attributedBody": "",
222249
"date": 726784833411200512,
223250
"is_from_me": false,
224-
"handle_id": "user-thomas"
251+
"handle_id": "user-thomas",
252+
"expressive_send_style_id": null
225253
},
226254
{
227255
"ROWID": "78469913-ef30-4b2d-aac0-1e19d765b2a2",
228256
"text": "Disliked \u201cOn the topic of lo-fi, have you seen https://www.youtube.com/watch?v=ovw8a-RfVpA ?\u201d",
229257
"attributedBody": "",
230258
"date": 726785488238000128,
231259
"is_from_me": true,
232-
"handle_id": "user-thomas"
260+
"handle_id": "user-thomas",
261+
"expressive_send_style_id": null
233262
},
234263
{
235264
"ROWID": "00110e8b-7da6-4f0a-88b6-58c50df3b060",
236265
"text": "Oh gosh this is terrible.. I can't even stand to listen to it lol",
237266
"attributedBody": "",
238267
"date": 726785493717000064,
239268
"is_from_me": true,
240-
"handle_id": "user-thomas"
269+
"handle_id": "user-thomas",
270+
"expressive_send_style_id": null
241271
},
242272
{
243273
"ROWID": "4a92c212-8c5b-4a18-89fc-e64997239bce",
244274
"text": "Questioned \u201cOh gosh this is terrible.. I can't even stand to listen to it lol\u201d",
245275
"attributedBody": "",
246276
"date": 726785497902000128,
247277
"is_from_me": false,
248-
"handle_id": "user-thomas"
278+
"handle_id": "user-thomas",
279+
"expressive_send_style_id": null
249280
},
250281
{
251282
"ROWID": "c6e63761-69e9-406b-a1f8-4265e9c1e69d",
252283
"text": "Ha really? I totally love it. Maybe I'm crazy \ud83d\ude05",
253284
"attributedBody": "",
254285
"date": 726785548624000128,
255286
"is_from_me": false,
256-
"handle_id": "user-thomas"
287+
"handle_id": "user-thomas",
288+
"expressive_send_style_id": null
257289
},
258290
{
259291
"ROWID": "ed0e06dc-4ccf-4922-a413-af027bbcfc7d",
260292
"text": "Laughed at \u201cHa really? I totally love it. Maybe I'm crazy \ud83d\ude05\u201d",
261293
"attributedBody": "",
262294
"date": 726785662811000064,
263295
"is_from_me": true,
264-
"handle_id": "user-thomas"
296+
"handle_id": "user-thomas",
297+
"expressive_send_style_id": null
265298
},
266299
{
267300
"ROWID": "c18f855d-7293-4e26-b5c2-5844e74b5be4",
268301
"text": "Maybe just a little \ud83e\udd0f\ud83d\ude1d\ud83e\udd23",
269302
"attributedBody": "",
270303
"date": 726785898617999744,
271304
"is_from_me": true,
272-
"handle_id": "user-thomas"
305+
"handle_id": "user-thomas",
306+
"expressive_send_style_id": null
273307
},
274308
{
275309
"ROWID": "58c56cea-4704-4262-bf6c-be1175203f44",
276310
"text": "Anyway, man, I gotta go, but I enjoyed this conversation \ud83d\ude06",
277311
"attributedBody": "",
278312
"date": 726787156239343360,
279313
"is_from_me": true,
280-
"handle_id": "user-thomas"
314+
"handle_id": "user-thomas",
315+
"expressive_send_style_id": null
281316
},
282317
{
283318
"ROWID": "3d49862a-5cc1-44d4-a148-c5c9338b7dfd",
284319
"text": "Same here! \ud83e\udd23 Catch you later!",
285320
"attributedBody": "",
286321
"date": 726787191071867648,
287322
"is_from_me": false,
288-
"handle_id": "user-thomas"
323+
"handle_id": "user-thomas",
324+
"expressive_send_style_id": null
289325
},
290326
{
291327
"ROWID": "9368cfd3-ad0c-4110-8658-0b81b08e71eb",
292328
"text": null,
293329
"attributedBody": "base64:BAtzdHJlYW10eXBlZIHoA4QBQISEhBlOU011dGFibGVBdHRyaWJ1dGVkU3RyaW5nAISEEk5TQXR0cmlidXRlZFN0cmluZwCEhAhOU09iamVjdACFkoSEhA9OU011dGFibGVTdHJpbmcBhIQITlNTdHJpbmcBlYQBKyxMb3ZlZCDigJxTYW1lIGhlcmUhIPCfpKMgQ2F0Y2ggeW91IGxhdGVyIeKAnYaEAmlJASaShISEDE5TRGljdGlvbmFyeQCVhAFpAZKEmJgdX19rSU1NZXNzYWdlUGFydEF0dHJpYnV0ZU5hbWWGkoSEhAhOU051bWJlcgCEhAdOU1ZhbHVlAJWEASqEm5sAhoaG",
294330
"date": 726787260392262912,
295331
"is_from_me": false,
296-
"handle_id": "user-thomas"
332+
"handle_id": "user-thomas",
333+
"expressive_send_style_id": null
297334
},
298335
{
299336
"ROWID": "0af51fdf-6c5f-4248-8c78-92cebb271c5e",
300337
"text": "Hello everyone!",
301338
"attributedBody": "",
302339
"date": 727379229507062145,
303340
"is_from_me": true,
304-
"handle_id": 0
341+
"handle_id": 0,
342+
"expressive_send_style_id": null
305343
}
306344
]

0 commit comments

Comments
 (0)