Subversion Repositories SmartDukaan

Rev

Rev 6557 | 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,
6560 anupam.sin 182
b.creationTimestamp as timestamp,
6547 anupam.sin 183
 
184
 
6557 anupam.sin 185
1000000000 + b.transaction_id as transactionId, 
6554 anupam.sin 186
case when b.totalAmount&lt;250 then 0 when b.totalAmount&lt;500 then 1 when b.totalAmount&lt;1000 then 2 
187
			 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 
188
			 when b.totalAmount &lt;20000 then 7 when b.totalAmount &lt; 50000 then 8 else 9 end as amount,
189
case when b.totalAmount&lt;250 then 0 when b.totalAmount&lt;500 then 1 when b.totalAmount&lt;1000 then 2 
190
			 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 
191
			 when b.totalAmount &lt;20000 then 7 when b.totalAmount &lt; 50000 then 8 else 9 end as transferPrice, 
192
&apos;000000&apos; as pincode, 
193
case when d.dthOperatorId is null then 100000 + m.mobileOperatorId else 100000 + d.dthOperatorId end as itemId, 
6547 anupam.sin 194
1 as quantity,
195
1005 as status,
196
 
197
 
198
from baseorder b 
199
join rechargeorder r on b.id = r.immediateconsumedorder_digitalorder_baseorder_id 
6554 anupam.sin 200
left join mobilerechargeorder m on m.rechargeorder_immediateconsumedorder_digitalorder_baseorder_id = b.id 
201
left join dthrechargeorder d on d.rechargeorder_immediateconsumedorder_digitalorder_baseorder_id = b.id 
6547 anupam.sin 202
where r.status = 5;
203
</sql>
6541 anupam.sin 204
    <limit>0</limit>
205
    <lookup/>
206
    <execute_each_row>N</execute_each_row>
207
    <variables_active>N</variables_active>
208
    <lazy_conversion_active>N</lazy_conversion_active>
209
     <cluster_schema/>
210
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
6560 anupam.sin 211
      <xloc>120</xloc>
212
      <yloc>278</yloc>
6541 anupam.sin 213
      <draw>Y</draw>
214
      </GUI>
215
    </step>
216
 
217
  <step>
218
    <name>PhysicalOrder</name>
219
    <type>TableInput</type>
220
    <description>PhysicalOrder</description>
221
    <distribute>Y</distribute>
222
    <copies>1</copies>
223
         <partitioning>
224
           <method>none</method>
225
           <schema_name/>
226
           </partitioning>
6557 anupam.sin 227
    <connection>Prod_trans</connection>
6541 anupam.sin 228
    <sql>select o.id as orderId, 
229
o.customer_id as userId, 
230
 
231
case when o.originalOrderId is null then datediff(o.created_timestamp, &apos;20101231&apos;)
6560 anupam.sin 232
	else datediff((select created_timestamp from `order` where id = o.originalOrderId), &apos;20101231&apos;) end as dateId ,
233
o.created_timestamp as timestamp, 
6541 anupam.sin 234
 
235
 
236
o.transaction_id as transactionId, 
6554 anupam.sin 237
case when total_amount&lt;250 then 0 when total_amount&lt;500 then 1 when total_amount&lt;1000 then 2 
238
			 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 
239
			 when total_amount &lt;20000 then 7 when total_amount &lt; 50000 then 8 else 9 end as amount, 
240
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 
241
			 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 
242
			 when l.transfer_price &lt;20000 then 7 when l.transfer_price &lt; 50000 then 8 else 9 end as transferPrice, 
6547 anupam.sin 243
o.customer_pincode as pincode, 
6541 anupam.sin 244
l.item_id as itemId, 
245
l.quantity ,
246
o.status,
247
 
248
 
249
from `order` o 
250
join lineitem l on l.order_id = o.id 
251
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)
252
</sql>
253
    <limit>0</limit>
254
    <lookup/>
255
    <execute_each_row>N</execute_each_row>
256
    <variables_active>N</variables_active>
257
    <lazy_conversion_active>N</lazy_conversion_active>
258
     <cluster_schema/>
259
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
6554 anupam.sin 260
      <xloc>126</xloc>
6560 anupam.sin 261
      <yloc>145</yloc>
6541 anupam.sin 262
      <draw>Y</draw>
263
      </GUI>
264
    </step>
265
 
266
  <step>
6554 anupam.sin 267
    <name>DigitalOrderSelector</name>
6541 anupam.sin 268
    <type>SelectValues</type>
269
    <description/>
270
    <distribute>Y</distribute>
271
    <copies>1</copies>
272
         <partitioning>
273
           <method>none</method>
274
           <schema_name/>
275
           </partitioning>
276
    <fields>        <select_unspecified>N</select_unspecified>
277
      <meta>        <name>orderId</name>
278
        <rename>orderId</rename>
279
        <type>-</type>
280
        <length>9</length>
281
        <precision>0</precision>
282
        <conversion_mask/>
283
        <date_format_lenient>false</date_format_lenient>
284
        <encoding/>
285
        <decimal_symbol/>
286
        <grouping_symbol/>
287
        <currency_symbol/>
288
        <storage_type/>
6547 anupam.sin 289
      </meta>      <meta>        <name>userId</name>
290
        <rename>userId</rename>
291
        <type>-</type>
292
        <length>9</length>
293
        <precision>0</precision>
294
        <conversion_mask/>
295
        <date_format_lenient>false</date_format_lenient>
296
        <encoding/>
297
        <decimal_symbol/>
298
        <grouping_symbol/>
299
        <currency_symbol/>
300
        <storage_type/>
301
      </meta>      <meta>        <name>orderType</name>
302
        <rename>orderType</rename>
303
        <type>-</type>
304
        <length>15</length>
305
        <precision>0</precision>
306
        <conversion_mask/>
307
        <date_format_lenient>false</date_format_lenient>
308
        <encoding/>
309
        <decimal_symbol/>
310
        <grouping_symbol/>
311
        <currency_symbol/>
312
        <storage_type/>
6541 anupam.sin 313
      </meta>      <meta>        <name>dateId</name>
314
        <rename>dateId</rename>
315
        <type>-</type>
316
        <length>15</length>
317
        <precision>0</precision>
318
        <conversion_mask/>
319
        <date_format_lenient>false</date_format_lenient>
320
        <encoding/>
321
        <decimal_symbol/>
322
        <grouping_symbol/>
323
        <currency_symbol/>
324
        <storage_type/>
6547 anupam.sin 325
      </meta>      <meta>        <name>repeatType</name>
326
        <rename>repeatType</rename>
6541 anupam.sin 327
        <type>-</type>
6547 anupam.sin 328
        <length>15</length>
6541 anupam.sin 329
        <precision>0</precision>
330
        <conversion_mask/>
331
        <date_format_lenient>false</date_format_lenient>
332
        <encoding/>
333
        <decimal_symbol/>
334
        <grouping_symbol/>
335
        <currency_symbol/>
336
        <storage_type/>
6547 anupam.sin 337
      </meta>      <meta>        <name>repeatFrequency</name>
338
        <rename>repeatFrequency</rename>
6541 anupam.sin 339
        <type>-</type>
340
        <length>15</length>
341
        <precision>0</precision>
342
        <conversion_mask/>
343
        <date_format_lenient>false</date_format_lenient>
344
        <encoding/>
345
        <decimal_symbol/>
346
        <grouping_symbol/>
347
        <currency_symbol/>
348
        <storage_type/>
6547 anupam.sin 349
      </meta>      <meta>        <name>transactionId</name>
350
        <rename>transactionId</rename>
6557 anupam.sin 351
        <type>Integer</type>
352
        <length>11</length>
6547 anupam.sin 353
        <precision>0</precision>
354
        <conversion_mask/>
355
        <date_format_lenient>false</date_format_lenient>
356
        <encoding/>
357
        <decimal_symbol/>
358
        <grouping_symbol/>
359
        <currency_symbol/>
360
        <storage_type/>
6541 anupam.sin 361
      </meta>      <meta>        <name>amount</name>
362
        <rename>amount</rename>
363
        <type>Number</type>
364
        <length>9</length>
365
        <precision>0</precision>
366
        <conversion_mask/>
367
        <date_format_lenient>false</date_format_lenient>
368
        <encoding/>
369
        <decimal_symbol/>
370
        <grouping_symbol/>
371
        <currency_symbol/>
372
        <storage_type/>
6547 anupam.sin 373
      </meta>      <meta>        <name>transferPrice</name>
374
        <rename>transferPrice</rename>
375
        <type>Number</type>
376
        <length>9</length>
377
        <precision>0</precision>
378
        <conversion_mask/>
379
        <date_format_lenient>false</date_format_lenient>
380
        <encoding/>
381
        <decimal_symbol/>
382
        <grouping_symbol/>
383
        <currency_symbol/>
384
        <storage_type/>
385
      </meta>      <meta>        <name>pincode</name>
386
        <rename>pincode</rename>
387
        <type>-</type>
388
        <length>3</length>
389
        <precision>-2</precision>
390
        <conversion_mask/>
391
        <date_format_lenient>false</date_format_lenient>
392
        <encoding/>
393
        <decimal_symbol/>
394
        <grouping_symbol/>
395
        <currency_symbol/>
396
        <storage_type/>
397
      </meta>      <meta>        <name>itemId</name>
398
        <rename>itemId</rename>
6554 anupam.sin 399
        <type>Integer</type>
400
        <length>9</length>
6547 anupam.sin 401
        <precision>0</precision>
402
        <conversion_mask/>
403
        <date_format_lenient>false</date_format_lenient>
404
        <encoding/>
405
        <decimal_symbol/>
406
        <grouping_symbol/>
407
        <currency_symbol/>
408
        <storage_type/>
409
      </meta>      <meta>        <name>quantity</name>
410
        <rename>quantity</rename>
411
        <type>Number</type>
412
        <length>15</length>
413
        <precision>0</precision>
414
        <conversion_mask/>
415
        <date_format_lenient>false</date_format_lenient>
416
        <encoding/>
417
        <decimal_symbol/>
418
        <grouping_symbol/>
419
        <currency_symbol/>
420
        <storage_type/>
421
      </meta>      <meta>        <name>status</name>
422
        <rename>status</rename>
423
        <type>-</type>
424
        <length>9</length>
425
        <precision>0</precision>
426
        <conversion_mask/>
427
        <date_format_lenient>false</date_format_lenient>
428
        <encoding/>
429
        <decimal_symbol/>
430
        <grouping_symbol/>
431
        <currency_symbol/>
432
        <storage_type/>
433
      </meta>      <meta>        <name>firstOrderType</name>
434
        <rename>firstOrderType</rename>
435
        <type>-</type>
436
        <length>15</length>
437
        <precision>0</precision>
438
        <conversion_mask/>
439
        <date_format_lenient>false</date_format_lenient>
440
        <encoding/>
441
        <decimal_symbol/>
442
        <grouping_symbol/>
443
        <currency_symbol/>
444
        <storage_type/>
445
      </meta>      <meta>        <name>firstOrderDate</name>
446
        <rename>firstOrderDate</rename>
447
        <type>-</type>
448
        <length>15</length>
449
        <precision>0</precision>
450
        <conversion_mask/>
451
        <date_format_lenient>false</date_format_lenient>
452
        <encoding/>
453
        <decimal_symbol/>
454
        <grouping_symbol/>
455
        <currency_symbol/>
456
        <storage_type/>
6541 anupam.sin 457
      </meta>    </fields>     <cluster_schema/>
458
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
459
      <xloc>316</xloc>
460
      <yloc>278</yloc>
461
      <draw>Y</draw>
462
      </GUI>
463
    </step>
464
 
465
  <step>
466
    <name>Sort rows</name>
467
    <type>SortRows</type>
468
    <description/>
469
    <distribute>Y</distribute>
470
    <copies>1</copies>
471
         <partitioning>
472
           <method>none</method>
473
           <schema_name/>
474
           </partitioning>
475
      <directory>%%java.io.tmpdir%%</directory>
476
      <prefix>out</prefix>
477
      <sort_size>1000000</sort_size>
478
      <free_memory>25</free_memory>
479
      <compress>N</compress>
480
      <compress_variable/>
481
      <unique_rows>N</unique_rows>
482
    <fields>
483
      <field>
484
        <name>userId</name>
485
        <ascending>Y</ascending>
486
        <case_sensitive>N</case_sensitive>
487
      </field>
488
    </fields>
489
     <cluster_schema/>
490
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
491
      <xloc>566</xloc>
492
      <yloc>209</yloc>
493
      <draw>Y</draw>
494
      </GUI>
495
    </step>
496
 
497
  <step>
498
    <name>Table output</name>
499
    <type>TableOutput</type>
500
    <description/>
501
    <distribute>Y</distribute>
502
    <copies>1</copies>
503
         <partitioning>
504
           <method>none</method>
505
           <schema_name/>
506
           </partitioning>
507
    <connection>sales_local</connection>
508
    <schema>sales</schema>
509
    <table>commonorders</table>
510
    <commit>1000</commit>
511
    <truncate>Y</truncate>
512
    <ignore_errors>N</ignore_errors>
513
    <use_batch>Y</use_batch>
514
    <specify_fields>N</specify_fields>
515
    <partitioning_enabled>N</partitioning_enabled>
516
    <partitioning_field/>
517
    <partitioning_daily>N</partitioning_daily>
518
    <partitioning_monthly>Y</partitioning_monthly>
519
    <tablename_in_field>N</tablename_in_field>
520
    <tablename_field/>
521
    <tablename_in_table>Y</tablename_in_table>
522
    <return_keys>N</return_keys>
523
    <return_field/>
524
    <fields>
525
        <field>
526
          <column_name>userId</column_name>
527
          <stream_name>userId</stream_name>
528
        </field>
529
        <field>
530
          <column_name>amount</column_name>
531
          <stream_name>amount</stream_name>
532
        </field>
533
        <field>
534
          <column_name>orderId</column_name>
535
          <stream_name>orderId</stream_name>
536
        </field>
537
        <field>
538
          <column_name>dateId</column_name>
539
          <stream_name>dateId</stream_name>
540
        </field>
541
        <field>
6547 anupam.sin 542
          <column_name>orderType</column_name>
543
          <stream_name>orderType</stream_name>
6541 anupam.sin 544
        </field>
6547 anupam.sin 545
        <field>
546
          <column_name>repeatType</column_name>
547
          <stream_name>repeatType</stream_name>
548
        </field>
549
        <field>
550
          <column_name>repeatFrequency</column_name>
551
          <stream_name>repeatFrequency</stream_name>
552
        </field>
553
        <field>
554
          <column_name>transactionId</column_name>
555
          <stream_name>transactionId</stream_name>
556
        </field>
557
        <field>
558
          <column_name>transferPrice</column_name>
559
          <stream_name>transferPrice</stream_name>
560
        </field>
561
        <field>
562
          <column_name>pincode</column_name>
563
          <stream_name>pincode</stream_name>
564
        </field>
565
        <field>
566
          <column_name>itemId</column_name>
567
          <stream_name>itemId</stream_name>
568
        </field>
569
        <field>
570
          <column_name>quantity</column_name>
571
          <stream_name>quantity</stream_name>
572
        </field>
573
        <field>
574
          <column_name>status</column_name>
575
          <stream_name>status</stream_name>
576
        </field>
577
        <field>
578
          <column_name>firstOrderType</column_name>
579
          <stream_name>firstOrderType</stream_name>
580
        </field>
581
        <field>
582
          <column_name>firstOrderDate</column_name>
583
          <stream_name>firstOrderDate</stream_name>
584
        </field>
6541 anupam.sin 585
    </fields>
586
     <cluster_schema/>
587
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
588
      <xloc>715</xloc>
589
      <yloc>209</yloc>
590
      <draw>Y</draw>
591
      </GUI>
592
    </step>
593
 
6554 anupam.sin 594
  <step>
595
    <name>PhysicalOrderSelector</name>
596
    <type>SelectValues</type>
597
    <description/>
598
    <distribute>Y</distribute>
599
    <copies>1</copies>
600
         <partitioning>
601
           <method>none</method>
602
           <schema_name/>
603
           </partitioning>
604
    <fields>        <select_unspecified>N</select_unspecified>
605
      <meta>        <name>orderId</name>
606
        <rename>orderId</rename>
607
        <type>-</type>
608
        <length>9</length>
609
        <precision>0</precision>
610
        <conversion_mask/>
611
        <date_format_lenient>false</date_format_lenient>
612
        <encoding/>
613
        <decimal_symbol/>
614
        <grouping_symbol/>
615
        <currency_symbol/>
616
        <storage_type/>
617
      </meta>      <meta>        <name>userId</name>
618
        <rename>userId</rename>
619
        <type>-</type>
620
        <length>9</length>
621
        <precision>0</precision>
622
        <conversion_mask/>
623
        <date_format_lenient>false</date_format_lenient>
624
        <encoding/>
625
        <decimal_symbol/>
626
        <grouping_symbol/>
627
        <currency_symbol/>
628
        <storage_type/>
629
      </meta>      <meta>        <name>orderType</name>
630
        <rename>orderType</rename>
631
        <type>-</type>
632
        <length>15</length>
633
        <precision>0</precision>
634
        <conversion_mask/>
635
        <date_format_lenient>false</date_format_lenient>
636
        <encoding/>
637
        <decimal_symbol/>
638
        <grouping_symbol/>
639
        <currency_symbol/>
640
        <storage_type/>
641
      </meta>      <meta>        <name>dateId</name>
642
        <rename>dateId</rename>
643
        <type>-</type>
644
        <length>15</length>
645
        <precision>0</precision>
646
        <conversion_mask/>
647
        <date_format_lenient>false</date_format_lenient>
648
        <encoding/>
649
        <decimal_symbol/>
650
        <grouping_symbol/>
651
        <currency_symbol/>
652
        <storage_type/>
653
      </meta>      <meta>        <name>repeatType</name>
654
        <rename>repeatType</rename>
655
        <type>-</type>
656
        <length>15</length>
657
        <precision>0</precision>
658
        <conversion_mask/>
659
        <date_format_lenient>false</date_format_lenient>
660
        <encoding/>
661
        <decimal_symbol/>
662
        <grouping_symbol/>
663
        <currency_symbol/>
664
        <storage_type/>
665
      </meta>      <meta>        <name>repeatFrequency</name>
666
        <rename>repeatFrequency</rename>
667
        <type>-</type>
668
        <length>15</length>
669
        <precision>0</precision>
670
        <conversion_mask/>
671
        <date_format_lenient>false</date_format_lenient>
672
        <encoding/>
673
        <decimal_symbol/>
674
        <grouping_symbol/>
675
        <currency_symbol/>
676
        <storage_type/>
677
      </meta>      <meta>        <name>transactionId</name>
678
        <rename>transactionId</rename>
6557 anupam.sin 679
        <type>Integer</type>
680
        <length>11</length>
6554 anupam.sin 681
        <precision>0</precision>
682
        <conversion_mask/>
683
        <date_format_lenient>false</date_format_lenient>
684
        <encoding/>
685
        <decimal_symbol/>
686
        <grouping_symbol/>
687
        <currency_symbol/>
688
        <storage_type/>
689
      </meta>      <meta>        <name>amount</name>
690
        <rename>amount</rename>
691
        <type>Number</type>
692
        <length>9</length>
693
        <precision>0</precision>
694
        <conversion_mask/>
695
        <date_format_lenient>false</date_format_lenient>
696
        <encoding/>
697
        <decimal_symbol/>
698
        <grouping_symbol/>
699
        <currency_symbol/>
700
        <storage_type/>
701
      </meta>      <meta>        <name>transferPrice</name>
702
        <rename>transferPrice</rename>
703
        <type>Number</type>
704
        <length>9</length>
705
        <precision>0</precision>
706
        <conversion_mask/>
707
        <date_format_lenient>false</date_format_lenient>
708
        <encoding/>
709
        <decimal_symbol/>
710
        <grouping_symbol/>
711
        <currency_symbol/>
712
        <storage_type/>
713
      </meta>      <meta>        <name>pincode</name>
714
        <rename>pincode</rename>
715
        <type>-</type>
716
        <length>10</length>
717
        <precision>-2</precision>
718
        <conversion_mask/>
719
        <date_format_lenient>false</date_format_lenient>
720
        <encoding/>
721
        <decimal_symbol/>
722
        <grouping_symbol/>
723
        <currency_symbol/>
724
        <storage_type/>
725
      </meta>      <meta>        <name>itemId</name>
726
        <rename>itemId</rename>
727
        <type>Integer</type>
728
        <length>9</length>
729
        <precision>0</precision>
730
        <conversion_mask/>
731
        <date_format_lenient>false</date_format_lenient>
732
        <encoding/>
733
        <decimal_symbol/>
734
        <grouping_symbol/>
735
        <currency_symbol/>
736
        <storage_type/>
737
      </meta>      <meta>        <name>quantity</name>
738
        <rename>quantity</rename>
739
        <type>-</type>
740
        <length>-2</length>
741
        <precision>-2</precision>
742
        <conversion_mask/>
743
        <date_format_lenient>false</date_format_lenient>
744
        <encoding/>
745
        <decimal_symbol/>
746
        <grouping_symbol/>
747
        <currency_symbol/>
748
        <storage_type/>
749
      </meta>      <meta>        <name>status</name>
750
        <rename>status</rename>
751
        <type>-</type>
752
        <length>9</length>
753
        <precision>0</precision>
754
        <conversion_mask/>
755
        <date_format_lenient>false</date_format_lenient>
756
        <encoding/>
757
        <decimal_symbol/>
758
        <grouping_symbol/>
759
        <currency_symbol/>
760
        <storage_type/>
761
      </meta>      <meta>        <name>firstOrderType</name>
762
        <rename>firstOrderType</rename>
763
        <type>-</type>
764
        <length>15</length>
765
        <precision>0</precision>
766
        <conversion_mask/>
767
        <date_format_lenient>false</date_format_lenient>
768
        <encoding/>
769
        <decimal_symbol/>
770
        <grouping_symbol/>
771
        <currency_symbol/>
772
        <storage_type/>
773
      </meta>      <meta>        <name>firstOrderDate</name>
774
        <rename>firstOrderDate</rename>
775
        <type>-</type>
776
        <length>15</length>
777
        <precision>0</precision>
778
        <conversion_mask/>
779
        <date_format_lenient>false</date_format_lenient>
780
        <encoding/>
781
        <decimal_symbol/>
782
        <grouping_symbol/>
783
        <currency_symbol/>
784
        <storage_type/>
785
      </meta>    </fields>     <cluster_schema/>
786
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
787
      <xloc>274</xloc>
788
      <yloc>145</yloc>
789
      <draw>Y</draw>
790
      </GUI>
791
    </step>
792
 
6541 anupam.sin 793
  <step_error_handling>
794
  </step_error_handling>
795
   <slave-step-copy-partition-distribution>
796
</slave-step-copy-partition-distribution>
797
   <slave_transformation>N</slave_transformation>
798
</transformation>