Subversion Repositories SmartDukaan

Rev

Rev 2585 | Rev 2834 | 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, 
2597 vikas 223
date(o.created_timestamp) as order_date, hour(o.created_timestamp) as order_hour,
224
o.transaction_id, l.item_id, l.quantity, l.unit_price, l.transfer_price, p.gatewayId, 
225
pa.value &apos;payment_method&apos;  
2584 vikas 226
FROM `order` o 
227
left join lineitem l on(o.id = l.order_id ) 
228
left join payment.payment p on (o.transaction_id = p.merchantTxnId) 
2585 vikas 229
left join payment.paymentattribute pa on (p.id = pa.payment_id and pa.name = &apos;payMethod&apos;)
230
group by order_id</sql>
2519 vikas 231
    <limit>0</limit>
232
    <lookup/>
233
    <execute_each_row>N</execute_each_row>
234
    <variables_active>N</variables_active>
235
    <lazy_conversion_active>N</lazy_conversion_active>
2400 ankur.sing 236
     <cluster_schema/>
237
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2519 vikas 238
      <xloc>98</xloc>
239
      <yloc>113</yloc>
2400 ankur.sing 240
      <draw>Y</draw>
241
      </GUI>
242
    </step>
243
 
244
  <step>
245
    <name>ordersMapping</name>
246
    <type>SelectValues</type>
247
    <description/>
248
    <distribute>Y</distribute>
249
    <copies>1</copies>
250
         <partitioning>
251
           <method>none</method>
252
           <schema_name/>
253
           </partitioning>
254
    <fields>      <field>        <name>order_id</name>
2597 vikas 255
        <rename>order_id</rename>
2400 ankur.sing 256
        <length>-2</length>
257
        <precision>-2</precision>
258
      </field>      <field>        <name>transaction_id</name>
2597 vikas 259
        <rename>transaction_id</rename>
2400 ankur.sing 260
        <length>-2</length>
261
        <precision>-2</precision>
262
      </field>      <field>        <name>customer_id</name>
2597 vikas 263
        <rename>customer_id</rename>
2400 ankur.sing 264
        <length>-2</length>
265
        <precision>-2</precision>
266
      </field>      <field>        <name>customer_pincode</name>
267
        <rename>pincode</rename>
268
        <length>-2</length>
269
        <precision>-2</precision>
270
      </field>      <field>        <name>date_id</name>
2597 vikas 271
        <rename>date_id</rename>
2400 ankur.sing 272
        <length>-2</length>
273
        <precision>-2</precision>
274
      </field>      <field>        <name>item_id</name>
2597 vikas 275
        <rename>item_id</rename>
2400 ankur.sing 276
        <length>-2</length>
277
        <precision>-2</precision>
278
      </field>      <field>        <name>quantity</name>
2597 vikas 279
        <rename>quantity</rename>
2400 ankur.sing 280
        <length>-2</length>
281
        <precision>-2</precision>
282
      </field>      <field>        <name>unit_price</name>
2597 vikas 283
        <rename>unit_price</rename>
2400 ankur.sing 284
        <length>-2</length>
285
        <precision>-2</precision>
286
      </field>      <field>        <name>order_status</name>
287
        <rename>status</rename>
288
        <length>-2</length>
289
        <precision>-2</precision>
2584 vikas 290
      </field>      <field>        <name>total_amount</name>
2597 vikas 291
        <rename>total_amount</rename>
2584 vikas 292
        <length>-2</length>
293
        <precision>-2</precision>
294
      </field>      <field>        <name>transfer_price</name>
2597 vikas 295
        <rename>transfer_price</rename>
2584 vikas 296
        <length>-2</length>
297
        <precision>-2</precision>
298
      </field>      <field>        <name>gatewayId</name>
2597 vikas 299
        <rename>gatewayId</rename>
2584 vikas 300
        <length>-2</length>
301
        <precision>-2</precision>
302
      </field>      <field>        <name>payment_method</name>
2597 vikas 303
        <rename>payment_method</rename>
2584 vikas 304
        <length>-2</length>
305
        <precision>-2</precision>
2597 vikas 306
      </field>      <field>        <name>order_hour</name>
307
        <rename>order_hour</rename>
308
        <length>-2</length>
309
        <precision>-2</precision>
2400 ankur.sing 310
      </field>        <select_unspecified>N</select_unspecified>
311
    </fields>     <cluster_schema/>
312
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2584 vikas 313
      <xloc>371</xloc>
2400 ankur.sing 314
      <yloc>160</yloc>
315
      <draw>Y</draw>
316
      </GUI>
317
    </step>
318
 
319
  <step>
2519 vikas 320
    <name>salesDW</name>
321
    <type>TableOutput</type>
2400 ankur.sing 322
    <description/>
323
    <distribute>Y</distribute>
324
    <copies>1</copies>
325
         <partitioning>
326
           <method>none</method>
327
           <schema_name/>
328
           </partitioning>
2519 vikas 329
    <connection>salesDC_DW</connection>
330
    <schema/>
2584 vikas 331
    <table>sales</table>
2519 vikas 332
    <commit>1000</commit>
333
    <truncate>Y</truncate>
334
    <ignore_errors>N</ignore_errors>
335
    <use_batch>Y</use_batch>
336
    <specify_fields>N</specify_fields>
337
    <partitioning_enabled>N</partitioning_enabled>
338
    <partitioning_field/>
339
    <partitioning_daily>N</partitioning_daily>
340
    <partitioning_monthly>Y</partitioning_monthly>
341
    <tablename_in_field>N</tablename_in_field>
342
    <tablename_field/>
343
    <tablename_in_table>Y</tablename_in_table>
344
    <return_keys>N</return_keys>
345
    <return_field/>
2400 ankur.sing 346
    <fields>
2519 vikas 347
    </fields>
2400 ankur.sing 348
     <cluster_schema/>
349
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2519 vikas 350
      <xloc>630</xloc>
351
      <yloc>161</yloc>
2400 ankur.sing 352
      <draw>Y</draw>
353
      </GUI>
354
    </step>
355
 
356
  <step_error_handling>
357
  </step_error_handling>
358
   <slave-step-copy-partition-distribution>
359
</slave-step-copy-partition-distribution>
360
   <slave_transformation>N</slave_transformation>
361
</transformation>