Subversion Repositories SmartDukaan

Rev

Rev 2519 | Go to most recent revision | Details | 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/>
8
    <directory>&#47;</directory>
9
    <parameters>
10
    </parameters>
11
    <log>
12
      <read/>
13
      <write/>
14
      <input/>
15
      <output/>
16
      <update/>
17
      <rejected/>
18
      <connection/>
19
      <table/>
20
      <step_performance_table/>
21
      <use_batchid>Y</use_batchid>
22
      <use_logfield>N</use_logfield>
23
      <size_limit_lines/>
24
    </log>
25
    <maxdate>
26
      <connection/>
27
      <table/>
28
      <field/>
29
      <offset>0.0</offset>
30
      <maxdiff>0.0</maxdiff>
31
    </maxdate>
32
    <size_rowset>10000</size_rowset>
33
    <sleep_time_empty>50</sleep_time_empty>
34
    <sleep_time_full>50</sleep_time_full>
35
    <unique_connections>N</unique_connections>
36
    <feedback_shown>Y</feedback_shown>
37
    <feedback_size>50000</feedback_size>
38
    <using_thread_priorities>Y</using_thread_priorities>
39
    <shared_objects_file/>
40
    <capture_step_performance>N</capture_step_performance>
41
    <step_performance_capturing_delay>1000</step_performance_capturing_delay>
42
    <dependencies>
43
    </dependencies>
44
    <partitionschemas>
45
    </partitionschemas>
46
    <slaveservers>
47
    </slaveservers>
48
    <clusterschemas>
49
    </clusterschemas>
50
  <modified_user>-</modified_user>
51
  <modified_date>2011&#47;06&#47;23 16:31:56.870</modified_date>
52
  </info>
53
  <notepads>
54
  </notepads>
55
  <connection>
56
    <name>salesDC_DW</name>
57
    <server>localhost</server>
58
    <type>MYSQL</type>
59
    <access>Native</access>
60
    <database>sales</database>
61
    <port>3306</port>
62
    <username>root</username>
63
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</password>
64
    <servername/>
65
    <data_tablespace/>
66
    <index_tablespace/>
67
    <attributes>
68
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
69
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
70
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
71
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
72
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
73
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
74
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
75
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
76
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
77
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
78
    </attributes>
79
  </connection>
80
  <connection>
81
    <name>transactionDC_Prod</name>
82
    <server>192.168.141.43</server>
83
    <type>MYSQL</type>
84
    <access>Native</access>
85
    <database>transaction</database>
86
    <port>3306</port>
87
    <username>pentaho</username>
88
    <password>Encrypted 2be98afc86ad7978abf18a67fce93bcc9</password>
89
    <servername/>
90
    <data_tablespace/>
91
    <index_tablespace/>
92
    <attributes>
93
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
94
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
95
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
96
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
97
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
98
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
99
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
100
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
101
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
102
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
103
    </attributes>
104
  </connection>
105
  <order>
106
  <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>If field value is null</to><enabled>Y</enabled> </hop>  <hop> <from>If field value is null</from><to>salesDW</to><enabled>Y</enabled> </hop>  </order>
107
  <step>
108
    <name>orders</name>
109
    <type>TableInput</type>
110
    <description/>
111
    <distribute>Y</distribute>
112
    <copies>1</copies>
113
         <partitioning>
114
           <method>none</method>
115
           <schema_name/>
116
           </partitioning>
117
    <connection>transactionDC_Prod</connection>
118
    <sql>SELECT 
119
o.id &apos;order_id&apos;,
120
o.customer_id,
121
o.customer_pincode,
122
o.customer_city,
123
o.customer_state,
124
o.status &apos;order_status&apos;,
125
o.total_amount,
126
o.created_timestamp,
127
o.transaction_id,
128
l.item_id,
129
l.productGroup,
130
l.brand,
131
l.model_number,
132
l.model_name,
133
l.color,
134
l.quantity,
135
l.unit_price
136
 
137
FROM `order` o, lineitem l
138
WHERE o.id = l.order_id</sql>
139
    <limit>0</limit>
140
    <lookup/>
141
    <execute_each_row>N</execute_each_row>
142
    <variables_active>N</variables_active>
143
    <lazy_conversion_active>N</lazy_conversion_active>
144
     <cluster_schema/>
145
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
146
      <xloc>98</xloc>
147
      <yloc>113</yloc>
148
      <draw>Y</draw>
149
      </GUI>
150
    </step>
151
 
152
  <step>
153
    <name>datedim</name>
154
    <type>TableInput</type>
155
    <description/>
156
    <distribute>Y</distribute>
157
    <copies>1</copies>
158
         <partitioning>
159
           <method>none</method>
160
           <schema_name/>
161
           </partitioning>
162
    <connection>salesDC_DW</connection>
163
    <sql>SELECT 
164
date_id,
165
fulldate &apos;date&apos;,
166
DATE_ADD(fulldate, INTERVAL 1 DAY) &apos;nextdate&apos;,
167
dayofmonth,
168
dayofyear,
169
dayofweek,
170
dayname,
171
monthnumber,
172
monthname,
173
year,
174
quarter,
175
weekofyear 
176
FROM datedim</sql>
177
    <limit>0</limit>
178
    <lookup/>
179
    <execute_each_row>N</execute_each_row>
180
    <variables_active>N</variables_active>
181
    <lazy_conversion_active>N</lazy_conversion_active>
182
     <cluster_schema/>
183
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
184
      <xloc>93</xloc>
185
      <yloc>205</yloc>
186
      <draw>Y</draw>
187
      </GUI>
188
    </step>
189
 
190
  <step>
191
    <name>orderJoin</name>
192
    <type>JoinRows</type>
193
    <description/>
194
    <distribute>Y</distribute>
195
    <copies>1</copies>
196
         <partitioning>
197
           <method>none</method>
198
           <schema_name/>
199
           </partitioning>
200
      <directory>%%java.io.tmpdir%%</directory>
201
      <prefix>out</prefix>
202
      <cache_size>500</cache_size>
203
      <main/>
204
    <compare>
205
<condition>
206
 <negated>N</negated>
207
 <conditions>
208
  <condition>
209
   <negated>N</negated>
210
   <leftvalue>created_timestamp</leftvalue>
211
   <function>&gt;=</function>
212
   <rightvalue>date</rightvalue>
213
   </condition>
214
  <condition>
215
   <negated>N</negated>
216
   <operator>AND</operator>
217
   <leftvalue>created_timestamp</leftvalue>
218
   <function>&lt;</function>
219
   <rightvalue>nextdate</rightvalue>
220
   </condition>
221
  </conditions>
222
 </condition>
223
    </compare>
224
     <cluster_schema/>
225
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
226
      <xloc>225</xloc>
227
      <yloc>163</yloc>
228
      <draw>Y</draw>
229
      </GUI>
230
    </step>
231
 
232
  <step>
233
    <name>salesDW</name>
234
    <type>TableOutput</type>
235
    <description/>
236
    <distribute>Y</distribute>
237
    <copies>1</copies>
238
         <partitioning>
239
           <method>none</method>
240
           <schema_name/>
241
           </partitioning>
242
    <connection>salesDC_DW</connection>
243
    <schema/>
244
    <table>salesNew</table>
245
    <commit>1000</commit>
246
    <truncate>Y</truncate>
247
    <ignore_errors>N</ignore_errors>
248
    <use_batch>Y</use_batch>
249
    <specify_fields>N</specify_fields>
250
    <partitioning_enabled>N</partitioning_enabled>
251
    <partitioning_field/>
252
    <partitioning_daily>N</partitioning_daily>
253
    <partitioning_monthly>Y</partitioning_monthly>
254
    <tablename_in_field>N</tablename_in_field>
255
    <tablename_field/>
256
    <tablename_in_table>Y</tablename_in_table>
257
    <return_keys>N</return_keys>
258
    <return_field/>
259
    <fields>
260
    </fields>
261
     <cluster_schema/>
262
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
263
      <xloc>630</xloc>
264
      <yloc>161</yloc>
265
      <draw>Y</draw>
266
      </GUI>
267
    </step>
268
 
269
  <step>
270
    <name>ordersMapping</name>
271
    <type>SelectValues</type>
272
    <description/>
273
    <distribute>Y</distribute>
274
    <copies>1</copies>
275
         <partitioning>
276
           <method>none</method>
277
           <schema_name/>
278
           </partitioning>
279
    <fields>      <field>        <name>order_id</name>
280
        <rename>order_id</rename>
281
        <length>-2</length>
282
        <precision>-2</precision>
283
      </field>      <field>        <name>transaction_id</name>
284
        <rename>transaction_id</rename>
285
        <length>-2</length>
286
        <precision>-2</precision>
287
      </field>      <field>        <name>customer_id</name>
288
        <rename>customer_id</rename>
289
        <length>-2</length>
290
        <precision>-2</precision>
291
      </field>      <field>        <name>customer_pincode</name>
292
        <rename>pincode</rename>
293
        <length>-2</length>
294
        <precision>-2</precision>
295
      </field>      <field>        <name>date_id</name>
296
        <rename>date_id</rename>
297
        <length>-2</length>
298
        <precision>-2</precision>
299
      </field>      <field>        <name>item_id</name>
300
        <rename>item_id</rename>
301
        <length>-2</length>
302
        <precision>-2</precision>
303
      </field>      <field>        <name>quantity</name>
304
        <rename>quantity</rename>
305
        <length>-2</length>
306
        <precision>-2</precision>
307
      </field>      <field>        <name>unit_price</name>
308
        <rename>unit_price</rename>
309
        <length>-2</length>
310
        <precision>-2</precision>
311
      </field>      <field>        <name>order_status</name>
312
        <rename>status</rename>
313
        <length>-2</length>
314
        <precision>-2</precision>
315
      </field>        <select_unspecified>N</select_unspecified>
316
    </fields>     <cluster_schema/>
317
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
318
      <xloc>373</xloc>
319
      <yloc>160</yloc>
320
      <draw>Y</draw>
321
      </GUI>
322
    </step>
323
 
324
  <step>
325
    <name>If field value is null</name>
326
    <type>IfNull</type>
327
    <description/>
328
    <distribute>Y</distribute>
329
    <copies>1</copies>
330
         <partitioning>
331
           <method>none</method>
332
           <schema_name/>
333
           </partitioning>
334
      <replaceAllByValue/>
335
      <replaceAllMask/>
336
      <selectFields>N</selectFields>
337
      <selectValuesType>Y</selectValuesType>
338
    <valuetypes>
339
      <valuetype>
340
        <name>-</name>
341
        <value/>
342
        <mask/>
343
        </valuetype>
344
      </valuetypes>
345
    <fields>
346
      </fields>
347
     <cluster_schema/>
348
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
349
      <xloc>506</xloc>
350
      <yloc>160</yloc>
351
      <draw>Y</draw>
352
      </GUI>
353
    </step>
354
 
355
  <step_error_handling>
356
  </step_error_handling>
357
   <slave-step-copy-partition-distribution>
358
</slave-step-copy-partition-distribution>
359
   <slave_transformation>N</slave_transformation>
360
</transformation>