/
query_from_vector.note.json
307 lines (307 loc) · 10.4 KB
/
query_from_vector.note.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
{
"paragraphs": [
{
"text": "%md\n## Steps to load: ##\n 1. Load data into Vector in one of the other notebooks\n 2. Create **target** Spark SQL temp table (**bank_in_vector**) by linking it to an existing table in Vector\n 3. Read data from vector (**bank_in_vector**)",
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"tableHide": false,
"colWidth": 12.0,
"editorMode": "ace/mode/markdown",
"editorHide": true,
"graph": {
"mode": "table",
"height": 52.0,
"optionOpen": false,
"keys": [],
"values": [],
"groups": [],
"scatter": {}
},
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
"jobName": "paragraph_1462489853860_-1720932456",
"id": "20160505-231053_802989044",
"result": {
"code": "SUCCESS",
"type": "HTML",
"msg": "\u003ch2\u003eSteps to load:\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eLoad data into Vector in one of the other notebooks\u003c/li\u003e\n\u003cli\u003eCreate \u003cstrong\u003etarget\u003c/strong\u003e Spark SQL temp table (\u003cstrong\u003ebank_in_vector\u003c/strong\u003e) by linking it to an existing table in Vector\u003c/li\u003e\n\u003cli\u003eRead data from vector (\u003cstrong\u003ebank_in_vector\u003c/strong\u003e)\u003c/li\u003e\n\u003c/ol\u003e\n"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:33 PM",
"dateFinished": "May 5, 2016 11:16:33 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
},
{
"title": "Create target temp table link to Vector table",
"text": "%sql\nCREATE TEMPORARY TABLE bank_in_vector USING com.actian.spark_vector.sql.DefaultSource\nOPTIONS ( host \"localhost\", user \"actian\", password \"actian\", instance \"VW\", database \"sample\", table \"bank\" )",
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"tableHide": true,
"colWidth": 12.0,
"editorMode": "ace/mode/scala",
"editorHide": false,
"title": true,
"graph": {
"mode": "table",
"height": 121.0,
"optionOpen": false,
"keys": [
{
"name": "null",
"index": 0.0,
"aggr": "sum"
}
],
"values": [],
"groups": [],
"scatter": {
"xAxis": {
"name": "null",
"index": 0.0,
"aggr": "sum"
}
}
},
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
"jobName": "paragraph_1462489853862_-1720162958",
"id": "20160505-231053_1554233328",
"result": {
"code": "SUCCESS",
"type": "TABLE",
"msg": "null\n"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:33 PM",
"dateFinished": "May 5, 2016 11:16:33 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
},
{
"title": "Read from Vector",
"text": "%sql \nselect age, count(1) value\nfrom bank_in_vector\nwhere age \u003c 40 \ngroup by age \norder by age\n",
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"colWidth": 6.0,
"editorMode": "ace/mode/sql",
"editorHide": false,
"title": false,
"graph": {
"mode": "multiBarChart",
"height": 182.0,
"optionOpen": false,
"keys": [
{
"name": "age",
"index": 0.0,
"aggr": "sum"
}
],
"values": [
{
"name": "value",
"index": 1.0,
"aggr": "sum"
}
],
"groups": [],
"scatter": {
"xAxis": {
"name": "age",
"index": 0.0,
"aggr": "sum"
},
"yAxis": {
"name": "value",
"index": 1.0,
"aggr": "sum"
}
}
},
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
"jobName": "paragraph_1462489853863_-1720547707",
"id": "20160505-231053_1860193658",
"result": {
"code": "SUCCESS",
"type": "TABLE",
"msg": "age\tvalue\n11\t6\n13\t6\n17\t6\n18\t15\n19\t44\n20\t50\n21\t88\n22\t132\n23\t208\n24\t308\n25\t527\n26\t808\n27\t912\n28\t1041\n29\t1188\n30\t1763\n31\t2002\n32\t2091\n33\t1975\n34\t1936\n35\t1897\n36\t1812\n37\t1699\n38\t1466\n39\t1490\n"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:33 PM",
"dateFinished": "May 5, 2016 11:16:34 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
},
{
"title": "Read From Vector",
"text": "%sql \nselect age, count(1) value\nfrom bank_in_vector\nwhere age \u003c ${age} \ngroup by age \norder by age",
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"colWidth": 6.0,
"editorMode": "ace/mode/sql",
"editorHide": false,
"title": false,
"graph": {
"mode": "multiBarChart",
"height": 182.0,
"optionOpen": false,
"keys": [
{
"name": "age",
"index": 0.0,
"aggr": "sum"
}
],
"values": [
{
"name": "value",
"index": 1.0,
"aggr": "sum"
}
],
"groups": [],
"scatter": {
"xAxis": {
"name": "age",
"index": 0.0,
"aggr": "sum"
},
"yAxis": {
"name": "value",
"index": 1.0,
"aggr": "sum"
}
}
},
"enabled": true
},
"settings": {
"params": {
"maxAge": "35",
"age": "40"
},
"forms": {
"age": {
"name": "age",
"defaultValue": "",
"hidden": false
}
}
},
"jobName": "paragraph_1462489853863_-1720547707",
"id": "20160505-231053_438932731",
"result": {
"code": "SUCCESS",
"type": "TABLE",
"msg": "age\tvalue\n11\t6\n13\t6\n17\t6\n18\t15\n19\t44\n20\t50\n21\t88\n22\t132\n23\t208\n24\t308\n25\t527\n26\t808\n27\t912\n28\t1041\n29\t1188\n30\t1763\n31\t2002\n32\t2091\n33\t1975\n34\t1936\n35\t1897\n36\t1812\n37\t1699\n38\t1466\n39\t1490\n"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:34 PM",
"dateFinished": "May 5, 2016 11:16:34 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
},
{
"text": "%md\n\nAbout bank data\n\n```\nCitation Request:\n This dataset is public available for research. The details are described in [Moro et al., 2011]. \n Please include this citation if you plan to use this database:\n\n [Moro et al., 2011] S. Moro, R. Laureano and P. Cortez. Using Data Mining for Bank Direct Marketing: An Application of the CRISP-DM Methodology. \n In P. Novais et al. (Eds.), Proceedings of the European Simulation and Modelling Conference - ESM\u00272011, pp. 117-121, Guimarães, Portugal, October, 2011. EUROSIS.\n\n Available at: [pdf] http://hdl.handle.net/1822/14838\n [bib] http://www3.dsi.uminho.pt/pcortez/bib/2011-esm-1.txt\n```",
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"colWidth": 12.0,
"editorMode": "ace/mode/markdown",
"editorHide": true,
"graph": {
"mode": "table",
"height": 300.0,
"optionOpen": false,
"keys": [],
"values": [],
"groups": [],
"scatter": {}
},
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
"jobName": "paragraph_1462489853863_-1720547707",
"id": "20160505-231053_1534372985",
"result": {
"code": "SUCCESS",
"type": "HTML",
"msg": "\u003cp\u003eAbout bank data\u003c/p\u003e\n\u003cpre\u003e\u003ccode\u003eCitation Request:\n This dataset is public available for research. The details are described in [Moro et al., 2011]. \n Please include this citation if you plan to use this database:\n\n [Moro et al., 2011] S. Moro, R. Laureano and P. Cortez. Using Data Mining for Bank Direct Marketing: An Application of the CRISP-DM Methodology. \n In P. Novais et al. (Eds.), Proceedings of the European Simulation and Modelling Conference - ESM\u00272011, pp. 117-121, Guimarães, Portugal, October, 2011. EUROSIS.\n\n Available at: [pdf] http://hdl.handle.net/1822/14838\n [bib] http://www3.dsi.uminho.pt/pcortez/bib/2011-esm-1.txt\n\u003c/code\u003e\u003c/pre\u003e\n"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:33 PM",
"dateFinished": "May 5, 2016 11:16:33 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
},
{
"dateUpdated": "May 5, 2016 11:16:33 PM",
"config": {
"colWidth": 12.0,
"editorMode": "ace/mode/scala",
"editorHide": false,
"graph": {
"mode": "table",
"height": 300.0,
"optionOpen": false,
"keys": [],
"values": [],
"groups": [],
"scatter": {}
},
"enabled": true
},
"settings": {
"params": {},
"forms": {}
},
"jobName": "paragraph_1462489853863_-1720547707",
"id": "20160505-231053_859643806",
"result": {
"code": "SUCCESS",
"type": "TEXT"
},
"dateCreated": "May 5, 2016 11:10:53 PM",
"dateStarted": "May 5, 2016 11:16:34 PM",
"dateFinished": "May 5, 2016 11:16:34 PM",
"status": "FINISHED",
"progressUpdateIntervalMs": 500
}
],
"name": "Query From Vector",
"id": "2BKA7KCA2",
"angularObjects": {
"2BM8CE4QD": [],
"2BHB5MJF7": [],
"2BHJTHC9R": [],
"2BJPQ5R1E": [],
"2BMAVKEBH": [],
"2BHDYR96M": [],
"2BHZ8VFFM": [],
"2BHXA61QG": [],
"2BHW3JNYC": [],
"2BMTUZ3NB": [],
"2BHYMPQD6": [],
"2BK7KCQ3B": [],
"2BH9PHRN5": [],
"2BMASZNN6": []
},
"config": {},
"info": {}
}