Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2400 ankur.sing 1
<?xml version="1.0" encoding="UTF-8"?>
2
<transformation>
3
  <info>
4
    <name>ordersLoader</name>
5
    <description/>
6
    <extended_description/>
7
    <trans_version/>
2519 vikas 8
    <trans_type>Normal</trans_type>
2400 ankur.sing 9
    <directory>&#47;</directory>
10
    <parameters>
11
    </parameters>
12
    <log>
2519 vikas 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>N</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>N</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>N</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>
2400 ankur.sing 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>
2519 vikas 54
    <step_performance_capturing_size_limit/>
2400 ankur.sing 55
    <dependencies>
56
    </dependencies>
57
    <partitionschemas>
58
    </partitionschemas>
59
    <slaveservers>
60
    </slaveservers>
61
    <clusterschemas>
62
    </clusterschemas>
2519 vikas 63
  <created_user/>
64
  <created_date>2011&#47;07&#47;04 19:17:12.267</created_date>
2400 ankur.sing 65
  <modified_user>-</modified_user>
66
  <modified_date>2011&#47;06&#47;23 16:31:56.870</modified_date>
67
  </info>
68
  <notepads>
69
  </notepads>
70
  <connection>
71
    <name>salesDC_DW</name>
72
    <server>localhost</server>
73
    <type>MYSQL</type>
74
    <access>Native</access>
75
    <database>sales</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>
2584 vikas 96
    <name>transactionDC_local</name>
97
    <server>localhost</server>
98
    <type>MYSQL</type>
99
    <access>Native</access>
100
    <database>transaction</database>
101
    <port>3306</port>
102
    <username>root</username>
103
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</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>
2400 ankur.sing 121
    <name>transactionDC_Prod</name>
122
    <server>192.168.141.43</server>
123
    <type>MYSQL</type>
124
    <access>Native</access>
125
    <database>transaction</database>
126
    <port>3306</port>
127
    <username>pentaho</username>
2519 vikas 128
    <password>Encrypted 2be98afc86aa7f2e4cb79ac798cc2fd8a</password>
2400 ankur.sing 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>
2519 vikas 146
  <hop> <from>orders</from><to>orderJoin</to><enabled>Y</enabled> </hop>  <hop> <from>datedim</from><to>orderJoin</to><enabled>Y</enabled> </hop>  <hop> <from>orderJoin</from><to>ordersMapping</to><enabled>Y</enabled> </hop>  <hop> <from>ordersMapping</from><to>salesDW</to><enabled>Y</enabled> </hop>  </order>
2400 ankur.sing 147
  <step>
148
    <name>datedim</name>
149
    <type>TableInput</type>
150
    <description/>
151
    <distribute>Y</distribute>
152
    <copies>1</copies>
153
         <partitioning>
154
           <method>none</method>
155
           <schema_name/>
156
           </partitioning>
157
    <connection>salesDC_DW</connection>
158
    <sql>SELECT 
159
date_id,
2519 vikas 160
fulldate &apos;date&apos;
2400 ankur.sing 161
FROM datedim</sql>
162
    <limit>0</limit>
163
    <lookup/>
164
    <execute_each_row>N</execute_each_row>
165
    <variables_active>N</variables_active>
166
    <lazy_conversion_active>N</lazy_conversion_active>
167
     <cluster_schema/>
168
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
169
      <xloc>93</xloc>
170
      <yloc>205</yloc>
171
      <draw>Y</draw>
172
      </GUI>
173
    </step>
174
 
175
  <step>
176
    <name>orderJoin</name>
177
    <type>JoinRows</type>
178
    <description/>
179
    <distribute>Y</distribute>
180
    <copies>1</copies>
181
         <partitioning>
182
           <method>none</method>
183
           <schema_name/>
184
           </partitioning>
185
      <directory>%%java.io.tmpdir%%</directory>
186
      <prefix>out</prefix>
187
      <cache_size>500</cache_size>
188
      <main/>
189
    <compare>
190
<condition>
191
 <negated>N</negated>
192
 <conditions>
193
  <condition>
194
   <negated>N</negated>
2519 vikas 195
   <leftvalue>order_date</leftvalue>
196
   <function>=</function>
2400 ankur.sing 197
   <rightvalue>date</rightvalue>
198
   </condition>
199
  </conditions>
200
 </condition>
201
    </compare>
202
     <cluster_schema/>
203
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
204
      <xloc>225</xloc>
205
      <yloc>163</yloc>
206
      <draw>Y</draw>
207
      </GUI>
208
    </step>
209
 
210
  <step>
2519 vikas 211
    <name>orders</name>
212
    <type>TableInput</type>
2400 ankur.sing 213
    <description/>
214
    <distribute>Y</distribute>
215
    <copies>1</copies>
216
         <partitioning>
217
           <method>none</method>
218
           <schema_name/>
219
           </partitioning>
2519 vikas 220
    <connection>transactionDC_Prod</connection>
2584 vikas 221
    <sql>SELECT  o.id &apos;order_id&apos;, o.customer_id, o.customer_pincode, 
222
o.status &apos;order_status&apos;, o.total_amount, 
223
date(o.created_timestamp) as order_date, o.transaction_id, l.item_id, 
224
l.quantity, l.unit_price, l.transfer_price, p.gatewayId, pa.value &apos;payment_method&apos;  
225
FROM `order` o 
226
left join lineitem l on(o.id = l.order_id ) 
227
left join payment.payment p on (o.transaction_id = p.merchantTxnId) 
2585 vikas 228
left join payment.paymentattribute pa on (p.id = pa.payment_id and pa.name = &apos;payMethod&apos;)
229
group by order_id</sql>
2519 vikas 230
    <limit>0</limit>
231
    <lookup/>
232
    <execute_each_row>N</execute_each_row>
233
    <variables_active>N</variables_active>
234
    <lazy_conversion_active>N</lazy_conversion_active>
2400 ankur.sing 235
     <cluster_schema/>
236
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2519 vikas 237
      <xloc>98</xloc>
238
      <yloc>113</yloc>
2400 ankur.sing 239
      <draw>Y</draw>
240
      </GUI>
241
    </step>
242
 
243
  <step>
244
    <name>ordersMapping</name>
245
    <type>SelectValues</type>
246
    <description/>
247
    <distribute>Y</distribute>
248
    <copies>1</copies>
249
         <partitioning>
250
           <method>none</method>
251
           <schema_name/>
252
           </partitioning>
253
    <fields>      <field>        <name>order_id</name>
2584 vikas 254
        <rename/>
2400 ankur.sing 255
        <length>-2</length>
256
        <precision>-2</precision>
257
      </field>      <field>        <name>transaction_id</name>
2584 vikas 258
        <rename/>
2400 ankur.sing 259
        <length>-2</length>
260
        <precision>-2</precision>
261
      </field>      <field>        <name>customer_id</name>
2584 vikas 262
        <rename/>
2400 ankur.sing 263
        <length>-2</length>
264
        <precision>-2</precision>
265
      </field>      <field>        <name>customer_pincode</name>
266
        <rename>pincode</rename>
267
        <length>-2</length>
268
        <precision>-2</precision>
269
      </field>      <field>        <name>date_id</name>
2584 vikas 270
        <rename/>
2400 ankur.sing 271
        <length>-2</length>
272
        <precision>-2</precision>
273
      </field>      <field>        <name>item_id</name>
2584 vikas 274
        <rename/>
2400 ankur.sing 275
        <length>-2</length>
276
        <precision>-2</precision>
277
      </field>      <field>        <name>quantity</name>
2584 vikas 278
        <rename/>
2400 ankur.sing 279
        <length>-2</length>
280
        <precision>-2</precision>
281
      </field>      <field>        <name>unit_price</name>
2584 vikas 282
        <rename/>
2400 ankur.sing 283
        <length>-2</length>
284
        <precision>-2</precision>
285
      </field>      <field>        <name>order_status</name>
286
        <rename>status</rename>
287
        <length>-2</length>
288
        <precision>-2</precision>
2584 vikas 289
      </field>      <field>        <name>total_amount</name>
290
        <rename/>
291
        <length>-2</length>
292
        <precision>-2</precision>
293
      </field>      <field>        <name>transfer_price</name>
294
        <rename/>
295
        <length>-2</length>
296
        <precision>-2</precision>
297
      </field>      <field>        <name>gatewayId</name>
298
        <rename/>
299
        <length>-2</length>
300
        <precision>-2</precision>
301
      </field>      <field>        <name>payment_method</name>
302
        <rename/>
303
        <length>-2</length>
304
        <precision>-2</precision>
2400 ankur.sing 305
      </field>        <select_unspecified>N</select_unspecified>
306
    </fields>     <cluster_schema/>
307
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2584 vikas 308
      <xloc>371</xloc>
2400 ankur.sing 309
      <yloc>160</yloc>
310
      <draw>Y</draw>
311
      </GUI>
312
    </step>
313
 
314
  <step>
2519 vikas 315
    <name>salesDW</name>
316
    <type>TableOutput</type>
2400 ankur.sing 317
    <description/>
318
    <distribute>Y</distribute>
319
    <copies>1</copies>
320
         <partitioning>
321
           <method>none</method>
322
           <schema_name/>
323
           </partitioning>
2519 vikas 324
    <connection>salesDC_DW</connection>
325
    <schema/>
2584 vikas 326
    <table>sales</table>
2519 vikas 327
    <commit>1000</commit>
328
    <truncate>Y</truncate>
329
    <ignore_errors>N</ignore_errors>
330
    <use_batch>Y</use_batch>
331
    <specify_fields>N</specify_fields>
332
    <partitioning_enabled>N</partitioning_enabled>
333
    <partitioning_field/>
334
    <partitioning_daily>N</partitioning_daily>
335
    <partitioning_monthly>Y</partitioning_monthly>
336
    <tablename_in_field>N</tablename_in_field>
337
    <tablename_field/>
338
    <tablename_in_table>Y</tablename_in_table>
339
    <return_keys>N</return_keys>
340
    <return_field/>
2400 ankur.sing 341
    <fields>
2519 vikas 342
    </fields>
2400 ankur.sing 343
     <cluster_schema/>
344
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2519 vikas 345
      <xloc>630</xloc>
346
      <yloc>161</yloc>
2400 ankur.sing 347
      <draw>Y</draw>
348
      </GUI>
349
    </step>
350
 
351
  <step_error_handling>
352
  </step_error_handling>
353
   <slave-step-copy-partition-distribution>
354
</slave-step-copy-partition-distribution>
355
   <slave_transformation>N</slave_transformation>
356
</transformation>