Subversion Repositories SmartDukaan

Rev

Rev 6554 | Rev 6560 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6541 anupam.sin 1
<?xml version="1.0" encoding="UTF-8"?>
2
<transformation>
3
  <info>
4
    <name>RepeatSaleAnalysis</name>
5
    <description/>
6
    <extended_description/>
7
    <trans_version/>
8
    <trans_type>Normal</trans_type>
9
    <directory>&#47;</directory>
10
    <parameters>
11
    </parameters>
12
    <log>
13
<trans-log-table><connection/>
14
<schema/>
15
<table/>
16
<size_limit_lines/>
17
<interval/>
18
<timeout_days/>
19
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STATUS</id><enabled>Y</enabled><name>STATUS</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name><subject/></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name><subject/></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name><subject/></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name><subject/></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name><subject/></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name><subject/></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>STARTDATE</id><enabled>Y</enabled><name>STARTDATE</name></field><field><id>ENDDATE</id><enabled>Y</enabled><name>ENDDATE</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>DEPDATE</id><enabled>Y</enabled><name>DEPDATE</name></field><field><id>REPLAYDATE</id><enabled>Y</enabled><name>REPLAYDATE</name></field><field><id>LOG_FIELD</id><enabled>Y</enabled><name>LOG_FIELD</name></field></trans-log-table>
20
<perf-log-table><connection/>
21
<schema/>
22
<table/>
23
<interval/>
24
<timeout_days/>
25
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>SEQ_NR</id><enabled>Y</enabled><name>SEQ_NR</name></field><field><id>LOGDATE</id><enabled>Y</enabled><name>LOGDATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>INPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>INPUT_BUFFER_ROWS</name></field><field><id>OUTPUT_BUFFER_ROWS</id><enabled>Y</enabled><name>OUTPUT_BUFFER_ROWS</name></field></perf-log-table>
26
<channel-log-table><connection/>
27
<schema/>
28
<table/>
29
<timeout_days/>
30
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>LOGGING_OBJECT_TYPE</id><enabled>Y</enabled><name>LOGGING_OBJECT_TYPE</name></field><field><id>OBJECT_NAME</id><enabled>Y</enabled><name>OBJECT_NAME</name></field><field><id>OBJECT_COPY</id><enabled>Y</enabled><name>OBJECT_COPY</name></field><field><id>REPOSITORY_DIRECTORY</id><enabled>Y</enabled><name>REPOSITORY_DIRECTORY</name></field><field><id>FILENAME</id><enabled>Y</enabled><name>FILENAME</name></field><field><id>OBJECT_ID</id><enabled>Y</enabled><name>OBJECT_ID</name></field><field><id>OBJECT_REVISION</id><enabled>Y</enabled><name>OBJECT_REVISION</name></field><field><id>PARENT_CHANNEL_ID</id><enabled>Y</enabled><name>PARENT_CHANNEL_ID</name></field><field><id>ROOT_CHANNEL_ID</id><enabled>Y</enabled><name>ROOT_CHANNEL_ID</name></field></channel-log-table>
31
<step-log-table><connection/>
32
<schema/>
33
<table/>
34
<timeout_days/>
35
<field><id>ID_BATCH</id><enabled>Y</enabled><name>ID_BATCH</name></field><field><id>CHANNEL_ID</id><enabled>Y</enabled><name>CHANNEL_ID</name></field><field><id>LOG_DATE</id><enabled>Y</enabled><name>LOG_DATE</name></field><field><id>TRANSNAME</id><enabled>Y</enabled><name>TRANSNAME</name></field><field><id>STEPNAME</id><enabled>Y</enabled><name>STEPNAME</name></field><field><id>STEP_COPY</id><enabled>Y</enabled><name>STEP_COPY</name></field><field><id>LINES_READ</id><enabled>Y</enabled><name>LINES_READ</name></field><field><id>LINES_WRITTEN</id><enabled>Y</enabled><name>LINES_WRITTEN</name></field><field><id>LINES_UPDATED</id><enabled>Y</enabled><name>LINES_UPDATED</name></field><field><id>LINES_INPUT</id><enabled>Y</enabled><name>LINES_INPUT</name></field><field><id>LINES_OUTPUT</id><enabled>Y</enabled><name>LINES_OUTPUT</name></field><field><id>LINES_REJECTED</id><enabled>Y</enabled><name>LINES_REJECTED</name></field><field><id>ERRORS</id><enabled>Y</enabled><name>ERRORS</name></field><field><id>LOG_FIELD</id><enabled>N</enabled><name>LOG_FIELD</name></field></step-log-table>
36
    </log>
37
    <maxdate>
38
      <connection/>
39
      <table/>
40
      <field/>
41
      <offset>0.0</offset>
42
      <maxdiff>0.0</maxdiff>
43
    </maxdate>
44
    <size_rowset>10000</size_rowset>
45
    <sleep_time_empty>50</sleep_time_empty>
46
    <sleep_time_full>50</sleep_time_full>
47
    <unique_connections>N</unique_connections>
48
    <feedback_shown>Y</feedback_shown>
49
    <feedback_size>50000</feedback_size>
50
    <using_thread_priorities>Y</using_thread_priorities>
51
    <shared_objects_file/>
52
    <capture_step_performance>N</capture_step_performance>
53
    <step_performance_capturing_delay>1000</step_performance_capturing_delay>
54
    <step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
55
    <dependencies>
56
    </dependencies>
57
    <partitionschemas>
58
    </partitionschemas>
59
    <slaveservers>
60
    </slaveservers>
61
    <clusterschemas>
62
    </clusterschemas>
63
  <created_user>-</created_user>
64
  <created_date>2012&#47;12&#47;21 13:18:30.424</created_date>
65
  <modified_user>-</modified_user>
66
  <modified_date>2012&#47;12&#47;21 13:18:30.424</modified_date>
67
  </info>
68
  <notepads>
69
  </notepads>
70
  <connection>
71
    <name>local_tran</name>
72
    <server>localhost</server>
73
    <type>MYSQL</type>
74
    <access>Native</access>
75
    <database>transaction</database>
76
    <port>3306</port>
77
    <username>root</username>
78
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</password>
79
    <servername/>
80
    <data_tablespace/>
81
    <index_tablespace/>
82
    <attributes>
83
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
84
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
85
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
86
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
87
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
88
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
89
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
90
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
91
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
92
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
93
    </attributes>
94
  </connection>
95
  <connection>
6557 anupam.sin 96
    <name>Prod_trans</name>
97
    <server>192.168.190.113</server>
98
    <type>MYSQL</type>
99
    <access>Native</access>
100
    <database>transaction</database>
101
    <port>3306</port>
102
    <username>pentaho</username>
103
    <password>Encrypted 2be98afc86aa7f2e4cb79ac798cc2fd8a</password>
104
    <servername/>
105
    <data_tablespace/>
106
    <index_tablespace/>
107
    <attributes>
108
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
109
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
110
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
111
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
112
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
113
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
114
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
115
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
116
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
117
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
118
    </attributes>
119
  </connection>
120
  <connection>
6541 anupam.sin 121
    <name>sales_local</name>
122
    <server>localhost</server>
123
    <type>MYSQL</type>
124
    <access>Native</access>
125
    <database>sales</database>
126
    <port>3306</port>
127
    <username>root</username>
128
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</password>
129
    <servername/>
130
    <data_tablespace/>
131
    <index_tablespace/>
132
    <attributes>
133
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
134
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
135
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
136
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
137
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
138
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
139
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
140
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
141
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
142
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
143
    </attributes>
144
  </connection>
145
  <order>
6554 anupam.sin 146
  <hop> <from>PhysicalOrder</from><to>PhysicalOrderSelector</to><enabled>Y</enabled> </hop>  <hop> <from>Append streams</from><to>Sort rows</to><enabled>Y</enabled> </hop>  <hop> <from>Sort rows</from><to>Table output</to><enabled>Y</enabled> </hop>  <hop> <from>DigitalOrder</from><to>DigitalOrderSelector</to><enabled>Y</enabled> </hop>  <hop> <from>DigitalOrderSelector</from><to>Append streams</to><enabled>Y</enabled> </hop>  <hop> <from>PhysicalOrderSelector</from><to>Append streams</to><enabled>Y</enabled> </hop>  </order>
6541 anupam.sin 147
  <step>
148
    <name>Append streams</name>
149
    <type>Append</type>
150
    <description/>
151
    <distribute>Y</distribute>
152
    <copies>1</copies>
153
         <partitioning>
154
           <method>none</method>
155
           <schema_name/>
156
           </partitioning>
6554 anupam.sin 157
<head_name>PhysicalOrderSelector</head_name>
158
<tail_name>DigitalOrderSelector</tail_name>
6541 anupam.sin 159
     <cluster_schema/>
160
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
6554 anupam.sin 161
      <xloc>463</xloc>
162
      <yloc>209</yloc>
6541 anupam.sin 163
      <draw>Y</draw>
164
      </GUI>
165
    </step>
166
 
167
  <step>
168
    <name>DigitalOrder</name>
169
    <type>TableInput</type>
170
    <description/>
171
    <distribute>Y</distribute>
172
    <copies>1</copies>
173
         <partitioning>
174
           <method>none</method>
175
           <schema_name/>
176
           </partitioning>
6557 anupam.sin 177
    <connection>Prod_trans</connection>
6547 anupam.sin 178
    <sql>select b.id as orderId, 
179
b.userId, 
180
1 as orderType, 
181
datediff(b.creationTimestamp, &apos;20101231&apos;) as dateId,
182
 
183
 
6557 anupam.sin 184
1000000000 + b.transaction_id as transactionId, 
6554 anupam.sin 185
case when b.totalAmount&lt;250 then 0 when b.totalAmount&lt;500 then 1 when b.totalAmount&lt;1000 then 2 
186
			 when b.totalAmount&lt;2000 then 3 when b.totalAmount &lt; 5000 then 4 when b.totalAmount &lt; 10000 then 5 when b.totalAmount &lt; 15000 then 6 
187
			 when b.totalAmount &lt;20000 then 7 when b.totalAmount &lt; 50000 then 8 else 9 end as amount,
188
case when b.totalAmount&lt;250 then 0 when b.totalAmount&lt;500 then 1 when b.totalAmount&lt;1000 then 2 
189
			 when b.totalAmount&lt;2000 then 3 when b.totalAmount &lt; 5000 then 4 when b.totalAmount &lt; 10000 then 5 when b.totalAmount &lt; 15000 then 6 
190
			 when b.totalAmount &lt;20000 then 7 when b.totalAmount &lt; 50000 then 8 else 9 end as transferPrice, 
191
&apos;000000&apos; as pincode, 
192
case when d.dthOperatorId is null then 100000 + m.mobileOperatorId else 100000 + d.dthOperatorId end as itemId, 
6547 anupam.sin 193
1 as quantity,
194
1005 as status,
195
 
196
 
197
from baseorder b 
198
join rechargeorder r on b.id = r.immediateconsumedorder_digitalorder_baseorder_id 
6554 anupam.sin 199
left join mobilerechargeorder m on m.rechargeorder_immediateconsumedorder_digitalorder_baseorder_id = b.id 
200
left join dthrechargeorder d on d.rechargeorder_immediateconsumedorder_digitalorder_baseorder_id = b.id 
6547 anupam.sin 201
where r.status = 5;
202
</sql>
6541 anupam.sin 203
    <limit>0</limit>
204
    <lookup/>
205
    <execute_each_row>N</execute_each_row>
206
    <variables_active>N</variables_active>
207
    <lazy_conversion_active>N</lazy_conversion_active>
208
     <cluster_schema/>
209
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
6554 anupam.sin 210
      <xloc>119</xloc>
211
      <yloc>273</yloc>
6541 anupam.sin 212
      <draw>Y</draw>
213
      </GUI>
214
    </step>
215
 
216
  <step>
217
    <name>PhysicalOrder</name>
218
    <type>TableInput</type>
219
    <description>PhysicalOrder</description>
220
    <distribute>Y</distribute>
221
    <copies>1</copies>
222
         <partitioning>
223
           <method>none</method>
224
           <schema_name/>
225
           </partitioning>
6557 anupam.sin 226
    <connection>Prod_trans</connection>
6541 anupam.sin 227
    <sql>select o.id as orderId, 
228
o.customer_id as userId, 
229
 
230
case when o.originalOrderId is null then datediff(o.created_timestamp, &apos;20101231&apos;)
6547 anupam.sin 231
	else datediff((select created_timestamp from `order` where id = o.originalOrderId), &apos;20101231&apos;) end as dateId , 
6541 anupam.sin 232
 
233
 
234
o.transaction_id as transactionId, 
6554 anupam.sin 235
case when total_amount&lt;250 then 0 when total_amount&lt;500 then 1 when total_amount&lt;1000 then 2 
236
			 when total_amount&lt;2000 then 3 when total_amount &lt; 5000 then 4 when total_amount &lt; 10000 then 5 when total_amount &lt; 15000 then 6 
237
			 when total_amount &lt;20000 then 7 when total_amount &lt; 50000 then 8 else 9 end as amount, 
238
case when l.transfer_price&lt;250 then 0 when l.transfer_price&lt;500 then 1 when l.transfer_price&lt;1000 then 2 
239
			 when l.transfer_price&lt;2000 then 3 when l.transfer_price &lt; 5000 then 4 when l.transfer_price &lt; 10000 then 5 when l.transfer_price &lt; 15000 then 6 
240
			 when l.transfer_price &lt;20000 then 7 when l.transfer_price &lt; 50000 then 8 else 9 end as transferPrice, 
6547 anupam.sin 241
o.customer_pincode as pincode, 
6541 anupam.sin 242
l.item_id as itemId, 
243
l.quantity ,
244
o.status,
245
 
246
 
247
from `order` o 
248
join lineitem l on l.order_id = o.id 
249
where o.status in(2,3,4,5,6,7,9,10,12,13,14,16,17,19,20,21,22,23,24,25,26,27,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,48,50,51,52,54,56,57,58,59,60,61,62,63,64,65,66,67,68,70,72,74,76,77,79,80,81)
250
</sql>
251
    <limit>0</limit>
252
    <lookup/>
253
    <execute_each_row>N</execute_each_row>
254
    <variables_active>N</variables_active>
255
    <lazy_conversion_active>N</lazy_conversion_active>
256
     <cluster_schema/>
257
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
6554 anupam.sin 258
      <xloc>126</xloc>
259
      <yloc>140</yloc>
6541 anupam.sin 260
      <draw>Y</draw>
261
      </GUI>
262
    </step>
263
 
264
  <step>
6554 anupam.sin 265
    <name>DigitalOrderSelector</name>
6541 anupam.sin 266
    <type>SelectValues</type>
267
    <description/>
268
    <distribute>Y</distribute>
269
    <copies>1</copies>
270
         <partitioning>
271
           <method>none</method>
272
           <schema_name/>
273
           </partitioning>
274
    <fields>        <select_unspecified>N</select_unspecified>
275
      <meta>        <name>orderId</name>
276
        <rename>orderId</rename>
277
        <type>-</type>
278
        <length>9</length>
279
        <precision>0</precision>
280
        <conversion_mask/>
281
        <date_format_lenient>false</date_format_lenient>
282
        <encoding/>
283
        <decimal_symbol/>
284
        <grouping_symbol/>
285
        <currency_symbol/>
286
        <storage_type/>
6547 anupam.sin 287
      </meta>      <meta>        <name>userId</name>
288
        <rename>userId</rename>
289
        <type>-</type>
290
        <length>9</length>
291
        <precision>0</precision>
292
        <conversion_mask/>
293
        <date_format_lenient>false</date_format_lenient>
294
        <encoding/>
295
        <decimal_symbol/>
296
        <grouping_symbol/>
297
        <currency_symbol/>
298
        <storage_type/>
299
      </meta>      <meta>        <name>orderType</name>
300
        <rename>orderType</rename>
301
        <type>-</type>
302
        <length>15</length>
303
        <precision>0</precision>
304
        <conversion_mask/>
305
        <date_format_lenient>false</date_format_lenient>
306
        <encoding/>
307
        <decimal_symbol/>
308
        <grouping_symbol/>
309
        <currency_symbol/>
310
        <storage_type/>
6541 anupam.sin 311
      </meta>      <meta>        <name>dateId</name>
312
        <rename>dateId</rename>
313
        <type>-</type>
314
        <length>15</length>
315
        <precision>0</precision>
316
        <conversion_mask/>
317
        <date_format_lenient>false</date_format_lenient>
318
        <encoding/>
319
        <decimal_symbol/>
320
        <grouping_symbol/>
321
        <currency_symbol/>
322
        <storage_type/>
6547 anupam.sin 323
      </meta>      <meta>        <name>repeatType</name>
324
        <rename>repeatType</rename>
6541 anupam.sin 325
        <type>-</type>
6547 anupam.sin 326
        <length>15</length>
6541 anupam.sin 327
        <precision>0</precision>
328
        <conversion_mask/>
329
        <date_format_lenient>false</date_format_lenient>
330
        <encoding/>
331
        <decimal_symbol/>
332
        <grouping_symbol/>
333
        <currency_symbol/>
334
        <storage_type/>
6547 anupam.sin 335
      </meta>      <meta>        <name>repeatFrequency</name>
336
        <rename>repeatFrequency</rename>
6541 anupam.sin 337
        <type>-</type>
338
        <length>15</length>
339
        <precision>0</precision>
340
        <conversion_mask/>
341
        <date_format_lenient>false</date_format_lenient>
342
        <encoding/>
343
        <decimal_symbol/>
344
        <grouping_symbol/>
345
        <currency_symbol/>
346
        <storage_type/>
6547 anupam.sin 347
      </meta>      <meta>        <name>transactionId</name>
348
        <rename>transactionId</rename>
6557 anupam.sin 349
        <type>Integer</type>
350
        <length>11</length>
6547 anupam.sin 351
        <precision>0</precision>
352
        <conversion_mask/>
353
        <date_format_lenient>false</date_format_lenient>
354
        <encoding/>
355
        <decimal_symbol/>
356
        <grouping_symbol/>
357
        <currency_symbol/>
358
        <storage_type/>
6541 anupam.sin 359
      </meta>      <meta>        <name>amount</name>
360
        <rename>amount</rename>
361
        <type>Number</type>
362
        <length>9</length>
363
        <precision>0</precision>
364
        <conversion_mask/>
365
        <date_format_lenient>false</date_format_lenient>
366
        <encoding/>
367
        <decimal_symbol/>
368
        <grouping_symbol/>
369
        <currency_symbol/>
370
        <storage_type/>
6547 anupam.sin 371
      </meta>      <meta>        <name>transferPrice</name>
372
        <rename>transferPrice</rename>
373
        <type>Number</type>
374
        <length>9</length>
375
        <precision>0</precision>
376
        <conversion_mask/>
377
        <date_format_lenient>false</date_format_lenient>
378
        <encoding/>
379
        <decimal_symbol/>
380
        <grouping_symbol/>
381
        <currency_symbol/>
382
        <storage_type/>
383
      </meta>      <meta>        <name>pincode</name>
384
        <rename>pincode</rename>
385
        <type>-</type>
386
        <length>3</length>
387
        <precision>-2</precision>
388
        <conversion_mask/>
389
        <date_format_lenient>false</date_format_lenient>
390
        <encoding/>
391
        <decimal_symbol/>
392
        <grouping_symbol/>
393
        <currency_symbol/>
394
        <storage_type/>
395
      </meta>      <meta>        <name>itemId</name>
396
        <rename>itemId</rename>
6554 anupam.sin 397
        <type>Integer</type>
398
        <length>9</length>
6547 anupam.sin 399
        <precision>0</precision>
400
        <conversion_mask/>
401
        <date_format_lenient>false</date_format_lenient>
402
        <encoding/>
403
        <decimal_symbol/>
404
        <grouping_symbol/>
405
        <currency_symbol/>
406
        <storage_type/>
407
      </meta>      <meta>        <name>quantity</name>
408
        <rename>quantity</rename>
409
        <type>Number</type>
410
        <length>15</length>
411
        <precision>0</precision>
412
        <conversion_mask/>
413
        <date_format_lenient>false</date_format_lenient>
414
        <encoding/>
415
        <decimal_symbol/>
416
        <grouping_symbol/>
417
        <currency_symbol/>
418
        <storage_type/>
419
      </meta>      <meta>        <name>status</name>
420
        <rename>status</rename>
421
        <type>-</type>
422
        <length>9</length>
423
        <precision>0</precision>
424
        <conversion_mask/>
425
        <date_format_lenient>false</date_format_lenient>
426
        <encoding/>
427
        <decimal_symbol/>
428
        <grouping_symbol/>
429
        <currency_symbol/>
430
        <storage_type/>
431
      </meta>      <meta>        <name>firstOrderType</name>
432
        <rename>firstOrderType</rename>
433
        <type>-</type>
434
        <length>15</length>
435
        <precision>0</precision>
436
        <conversion_mask/>
437
        <date_format_lenient>false</date_format_lenient>
438
        <encoding/>
439
        <decimal_symbol/>
440
        <grouping_symbol/>
441
        <currency_symbol/>
442
        <storage_type/>
443
      </meta>      <meta>        <name>firstOrderDate</name>
444
        <rename>firstOrderDate</rename>
445
        <type>-</type>
446
        <length>15</length>
447
        <precision>0</precision>
448
        <conversion_mask/>
449
        <date_format_lenient>false</date_format_lenient>
450
        <encoding/>
451
        <decimal_symbol/>
452
        <grouping_symbol/>
453
        <currency_symbol/>
454
        <storage_type/>
6541 anupam.sin 455
      </meta>    </fields>     <cluster_schema/>
456
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
457
      <xloc>316</xloc>
458
      <yloc>278</yloc>
459
      <draw>Y</draw>
460
      </GUI>
461
    </step>
462
 
463
  <step>
464
    <name>Sort rows</name>
465
    <type>SortRows</type>
466
    <description/>
467
    <distribute>Y</distribute>
468
    <copies>1</copies>
469
         <partitioning>
470
           <method>none</method>
471
           <schema_name/>
472
           </partitioning>
473
      <directory>%%java.io.tmpdir%%</directory>
474
      <prefix>out</prefix>
475
      <sort_size>1000000</sort_size>
476
      <free_memory>25</free_memory>
477
      <compress>N</compress>
478
      <compress_variable/>
479
      <unique_rows>N</unique_rows>
480
    <fields>
481
      <field>
482
        <name>userId</name>
483
        <ascending>Y</ascending>
484
        <case_sensitive>N</case_sensitive>
485
      </field>
486
    </fields>
487
     <cluster_schema/>
488
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
489
      <xloc>566</xloc>
490
      <yloc>209</yloc>
491
      <draw>Y</draw>
492
      </GUI>
493
    </step>
494
 
495
  <step>
496
    <name>Table output</name>
497
    <type>TableOutput</type>
498
    <description/>
499
    <distribute>Y</distribute>
500
    <copies>1</copies>
501
         <partitioning>
502
           <method>none</method>
503
           <schema_name/>
504
           </partitioning>
505
    <connection>sales_local</connection>
506
    <schema>sales</schema>
507
    <table>commonorders</table>
508
    <commit>1000</commit>
509
    <truncate>Y</truncate>
510
    <ignore_errors>N</ignore_errors>
511
    <use_batch>Y</use_batch>
512
    <specify_fields>N</specify_fields>
513
    <partitioning_enabled>N</partitioning_enabled>
514
    <partitioning_field/>
515
    <partitioning_daily>N</partitioning_daily>
516
    <partitioning_monthly>Y</partitioning_monthly>
517
    <tablename_in_field>N</tablename_in_field>
518
    <tablename_field/>
519
    <tablename_in_table>Y</tablename_in_table>
520
    <return_keys>N</return_keys>
521
    <return_field/>
522
    <fields>
523
        <field>
524
          <column_name>userId</column_name>
525
          <stream_name>userId</stream_name>
526
        </field>
527
        <field>
528
          <column_name>amount</column_name>
529
          <stream_name>amount</stream_name>
530
        </field>
531
        <field>
532
          <column_name>orderId</column_name>
533
          <stream_name>orderId</stream_name>
534
        </field>
535
        <field>
536
          <column_name>dateId</column_name>
537
          <stream_name>dateId</stream_name>
538
        </field>
539
        <field>
6547 anupam.sin 540
          <column_name>orderType</column_name>
541
          <stream_name>orderType</stream_name>
6541 anupam.sin 542
        </field>
6547 anupam.sin 543
        <field>
544
          <column_name>repeatType</column_name>
545
          <stream_name>repeatType</stream_name>
546
        </field>
547
        <field>
548
          <column_name>repeatFrequency</column_name>
549
          <stream_name>repeatFrequency</stream_name>
550
        </field>
551
        <field>
552
          <column_name>transactionId</column_name>
553
          <stream_name>transactionId</stream_name>
554
        </field>
555
        <field>
556
          <column_name>transferPrice</column_name>
557
          <stream_name>transferPrice</stream_name>
558
        </field>
559
        <field>
560
          <column_name>pincode</column_name>
561
          <stream_name>pincode</stream_name>
562
        </field>
563
        <field>
564
          <column_name>itemId</column_name>
565
          <stream_name>itemId</stream_name>
566
        </field>
567
        <field>
568
          <column_name>quantity</column_name>
569
          <stream_name>quantity</stream_name>
570
        </field>
571
        <field>
572
          <column_name>status</column_name>
573
          <stream_name>status</stream_name>
574
        </field>
575
        <field>
576
          <column_name>firstOrderType</column_name>
577
          <stream_name>firstOrderType</stream_name>
578
        </field>
579
        <field>
580
          <column_name>firstOrderDate</column_name>
581
          <stream_name>firstOrderDate</stream_name>
582
        </field>
6541 anupam.sin 583
    </fields>
584
     <cluster_schema/>
585
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
586
      <xloc>715</xloc>
587
      <yloc>209</yloc>
588
      <draw>Y</draw>
589
      </GUI>
590
    </step>
591
 
6554 anupam.sin 592
  <step>
593
    <name>PhysicalOrderSelector</name>
594
    <type>SelectValues</type>
595
    <description/>
596
    <distribute>Y</distribute>
597
    <copies>1</copies>
598
         <partitioning>
599
           <method>none</method>
600
           <schema_name/>
601
           </partitioning>
602
    <fields>        <select_unspecified>N</select_unspecified>
603
      <meta>        <name>orderId</name>
604
        <rename>orderId</rename>
605
        <type>-</type>
606
        <length>9</length>
607
        <precision>0</precision>
608
        <conversion_mask/>
609
        <date_format_lenient>false</date_format_lenient>
610
        <encoding/>
611
        <decimal_symbol/>
612
        <grouping_symbol/>
613
        <currency_symbol/>
614
        <storage_type/>
615
      </meta>      <meta>        <name>userId</name>
616
        <rename>userId</rename>
617
        <type>-</type>
618
        <length>9</length>
619
        <precision>0</precision>
620
        <conversion_mask/>
621
        <date_format_lenient>false</date_format_lenient>
622
        <encoding/>
623
        <decimal_symbol/>
624
        <grouping_symbol/>
625
        <currency_symbol/>
626
        <storage_type/>
627
      </meta>      <meta>        <name>orderType</name>
628
        <rename>orderType</rename>
629
        <type>-</type>
630
        <length>15</length>
631
        <precision>0</precision>
632
        <conversion_mask/>
633
        <date_format_lenient>false</date_format_lenient>
634
        <encoding/>
635
        <decimal_symbol/>
636
        <grouping_symbol/>
637
        <currency_symbol/>
638
        <storage_type/>
639
      </meta>      <meta>        <name>dateId</name>
640
        <rename>dateId</rename>
641
        <type>-</type>
642
        <length>15</length>
643
        <precision>0</precision>
644
        <conversion_mask/>
645
        <date_format_lenient>false</date_format_lenient>
646
        <encoding/>
647
        <decimal_symbol/>
648
        <grouping_symbol/>
649
        <currency_symbol/>
650
        <storage_type/>
651
      </meta>      <meta>        <name>repeatType</name>
652
        <rename>repeatType</rename>
653
        <type>-</type>
654
        <length>15</length>
655
        <precision>0</precision>
656
        <conversion_mask/>
657
        <date_format_lenient>false</date_format_lenient>
658
        <encoding/>
659
        <decimal_symbol/>
660
        <grouping_symbol/>
661
        <currency_symbol/>
662
        <storage_type/>
663
      </meta>      <meta>        <name>repeatFrequency</name>
664
        <rename>repeatFrequency</rename>
665
        <type>-</type>
666
        <length>15</length>
667
        <precision>0</precision>
668
        <conversion_mask/>
669
        <date_format_lenient>false</date_format_lenient>
670
        <encoding/>
671
        <decimal_symbol/>
672
        <grouping_symbol/>
673
        <currency_symbol/>
674
        <storage_type/>
675
      </meta>      <meta>        <name>transactionId</name>
676
        <rename>transactionId</rename>
6557 anupam.sin 677
        <type>Integer</type>
678
        <length>11</length>
6554 anupam.sin 679
        <precision>0</precision>
680
        <conversion_mask/>
681
        <date_format_lenient>false</date_format_lenient>
682
        <encoding/>
683
        <decimal_symbol/>
684
        <grouping_symbol/>
685
        <currency_symbol/>
686
        <storage_type/>
687
      </meta>      <meta>        <name>amount</name>
688
        <rename>amount</rename>
689
        <type>Number</type>
690
        <length>9</length>
691
        <precision>0</precision>
692
        <conversion_mask/>
693
        <date_format_lenient>false</date_format_lenient>
694
        <encoding/>
695
        <decimal_symbol/>
696
        <grouping_symbol/>
697
        <currency_symbol/>
698
        <storage_type/>
699
      </meta>      <meta>        <name>transferPrice</name>
700
        <rename>transferPrice</rename>
701
        <type>Number</type>
702
        <length>9</length>
703
        <precision>0</precision>
704
        <conversion_mask/>
705
        <date_format_lenient>false</date_format_lenient>
706
        <encoding/>
707
        <decimal_symbol/>
708
        <grouping_symbol/>
709
        <currency_symbol/>
710
        <storage_type/>
711
      </meta>      <meta>        <name>pincode</name>
712
        <rename>pincode</rename>
713
        <type>-</type>
714
        <length>10</length>
715
        <precision>-2</precision>
716
        <conversion_mask/>
717
        <date_format_lenient>false</date_format_lenient>
718
        <encoding/>
719
        <decimal_symbol/>
720
        <grouping_symbol/>
721
        <currency_symbol/>
722
        <storage_type/>
723
      </meta>      <meta>        <name>itemId</name>
724
        <rename>itemId</rename>
725
        <type>Integer</type>
726
        <length>9</length>
727
        <precision>0</precision>
728
        <conversion_mask/>
729
        <date_format_lenient>false</date_format_lenient>
730
        <encoding/>
731
        <decimal_symbol/>
732
        <grouping_symbol/>
733
        <currency_symbol/>
734
        <storage_type/>
735
      </meta>      <meta>        <name>quantity</name>
736
        <rename>quantity</rename>
737
        <type>-</type>
738
        <length>-2</length>
739
        <precision>-2</precision>
740
        <conversion_mask/>
741
        <date_format_lenient>false</date_format_lenient>
742
        <encoding/>
743
        <decimal_symbol/>
744
        <grouping_symbol/>
745
        <currency_symbol/>
746
        <storage_type/>
747
      </meta>      <meta>        <name>status</name>
748
        <rename>status</rename>
749
        <type>-</type>
750
        <length>9</length>
751
        <precision>0</precision>
752
        <conversion_mask/>
753
        <date_format_lenient>false</date_format_lenient>
754
        <encoding/>
755
        <decimal_symbol/>
756
        <grouping_symbol/>
757
        <currency_symbol/>
758
        <storage_type/>
759
      </meta>      <meta>        <name>firstOrderType</name>
760
        <rename>firstOrderType</rename>
761
        <type>-</type>
762
        <length>15</length>
763
        <precision>0</precision>
764
        <conversion_mask/>
765
        <date_format_lenient>false</date_format_lenient>
766
        <encoding/>
767
        <decimal_symbol/>
768
        <grouping_symbol/>
769
        <currency_symbol/>
770
        <storage_type/>
771
      </meta>      <meta>        <name>firstOrderDate</name>
772
        <rename>firstOrderDate</rename>
773
        <type>-</type>
774
        <length>15</length>
775
        <precision>0</precision>
776
        <conversion_mask/>
777
        <date_format_lenient>false</date_format_lenient>
778
        <encoding/>
779
        <decimal_symbol/>
780
        <grouping_symbol/>
781
        <currency_symbol/>
782
        <storage_type/>
783
      </meta>    </fields>     <cluster_schema/>
784
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
785
      <xloc>274</xloc>
786
      <yloc>145</yloc>
787
      <draw>Y</draw>
788
      </GUI>
789
    </step>
790
 
6541 anupam.sin 791
  <step_error_handling>
792
  </step_error_handling>
793
   <slave-step-copy-partition-distribution>
794
</slave-step-copy-partition-distribution>
795
   <slave_transformation>N</slave_transformation>
796
</transformation>