Subversion Repositories SmartDukaan

Rev

Rev 5156 | Rev 6554 | 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>itemLoader</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:09:34.486</created_date>
2400 ankur.sing 65
  <modified_user>-</modified_user>
66
  <modified_date>2011&#47;06&#47;23 16:22:03.072</modified_date>
67
  </info>
68
  <notepads>
69
  </notepads>
70
  <connection>
71
    <name>catalogDC</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>
3496 vikas 96
    <name>catalogDC_local</name>
97
    <server>localhost</server>
98
    <type>MYSQL</type>
99
    <access>Native</access>
100
    <database>catalog</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>catalogDC_Prod</name>
5392 anupam.sin 122
    <server>192.168.190.113</server>
2400 ankur.sing 123
    <type>MYSQL</type>
124
    <access>Native</access>
125
    <database>catalog</database>
126
    <port>3306</port>
2533 vikas 127
    <username>pentaho</username>
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>
5156 anupam.sin 145
  <connection>
146
    <name>salesLocal</name>
147
    <server>localhost</server>
148
    <type>MYSQL</type>
149
    <access>Native</access>
150
    <database>sales</database>
151
    <port>3306</port>
152
    <username>root</username>
153
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</password>
154
    <servername/>
155
    <data_tablespace/>
156
    <index_tablespace/>
157
    <attributes>
158
      <attribute><code>EXTRA_OPTION_MYSQL.defaultFetchSize</code><attribute>500</attribute></attribute>
159
      <attribute><code>EXTRA_OPTION_MYSQL.useCursorFetch</code><attribute>true</attribute></attribute>
160
      <attribute><code>FORCE_IDENTIFIERS_TO_LOWERCASE</code><attribute>N</attribute></attribute>
161
      <attribute><code>FORCE_IDENTIFIERS_TO_UPPERCASE</code><attribute>N</attribute></attribute>
162
      <attribute><code>IS_CLUSTERED</code><attribute>N</attribute></attribute>
163
      <attribute><code>PORT_NUMBER</code><attribute>3306</attribute></attribute>
164
      <attribute><code>QUOTE_ALL_FIELDS</code><attribute>N</attribute></attribute>
165
      <attribute><code>STREAM_RESULTS</code><attribute>Y</attribute></attribute>
166
      <attribute><code>SUPPORTS_BOOLEAN_DATA_TYPE</code><attribute>N</attribute></attribute>
167
      <attribute><code>USE_POOLING</code><attribute>N</attribute></attribute>
168
    </attributes>
169
  </connection>
2400 ankur.sing 170
  <order>
171
  <hop> <from>items</from><to>items_Mapping</to><enabled>Y</enabled> </hop>  <hop> <from>items_Mapping</from><to>items_DW</to><enabled>Y</enabled> </hop>  </order>
172
  <step>
173
    <name>items</name>
174
    <type>TableInput</type>
175
    <description/>
176
    <distribute>Y</distribute>
177
    <copies>1</copies>
178
         <partitioning>
179
           <method>none</method>
180
           <schema_name/>
181
           </partitioning>
182
    <connection>catalogDC_Prod</connection>
3496 vikas 183
    <sql>SELECT SQL_NO_CACHE item.id, item.catalog_item_id, product_group, brand, model_number, model_name, 
5156 anupam.sin 184
       color, category.label category, parent.label parent_category,
185
case when sellingPrice&lt;2000 then &apos;a) 0-2000&apos; when sellingPrice &lt; 5000 then &apos;b) 2000-5000&apos; when sellingPrice &lt; 10000 then &apos;c) 5000-10000&apos; when sellingPrice &lt; 15000 then &apos;d) 10000-15000&apos; when sellingPrice &lt;20000 then &apos;e) 15000-20000&apos; when sellingPrice &lt; 50000 then &apos;f) 20000-50000&apos; else &apos;g) More than 50000&apos; end as price_range
2532 vikas 186
FROM item, category, category as parent 
187
where item.category = category.id 
188
and category.parent_category_id = parent.id</sql>
2400 ankur.sing 189
    <limit>0</limit>
190
    <lookup/>
191
    <execute_each_row>N</execute_each_row>
192
    <variables_active>N</variables_active>
193
    <lazy_conversion_active>N</lazy_conversion_active>
194
     <cluster_schema/>
195
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2532 vikas 196
      <xloc>144</xloc>
197
      <yloc>166</yloc>
2400 ankur.sing 198
      <draw>Y</draw>
199
      </GUI>
200
    </step>
201
 
202
  <step>
203
    <name>items_DW</name>
204
    <type>TableOutput</type>
205
    <description/>
206
    <distribute>Y</distribute>
207
    <copies>1</copies>
208
         <partitioning>
209
           <method>none</method>
210
           <schema_name/>
211
           </partitioning>
212
    <connection>catalogDC</connection>
213
    <schema/>
214
    <table>item</table>
215
    <commit>1000</commit>
216
    <truncate>Y</truncate>
217
    <ignore_errors>N</ignore_errors>
218
    <use_batch>Y</use_batch>
219
    <specify_fields>N</specify_fields>
220
    <partitioning_enabled>N</partitioning_enabled>
221
    <partitioning_field/>
222
    <partitioning_daily>N</partitioning_daily>
223
    <partitioning_monthly>Y</partitioning_monthly>
224
    <tablename_in_field>N</tablename_in_field>
225
    <tablename_field/>
226
    <tablename_in_table>Y</tablename_in_table>
227
    <return_keys>N</return_keys>
228
    <return_field/>
229
    <fields>
2532 vikas 230
        <field>
231
          <column_name>id</column_name>
232
          <stream_name>id</stream_name>
233
        </field>
234
        <field>
235
          <column_name>product_group</column_name>
236
          <stream_name>product_group</stream_name>
237
        </field>
238
        <field>
239
          <column_name>brand</column_name>
240
          <stream_name>brand</stream_name>
241
        </field>
242
        <field>
243
          <column_name>model_number</column_name>
244
          <stream_name>model_number</stream_name>
245
        </field>
246
        <field>
247
          <column_name>model_name</column_name>
248
          <stream_name>model_name</stream_name>
249
        </field>
250
        <field>
251
          <column_name>color</column_name>
252
          <stream_name>color</stream_name>
253
        </field>
254
        <field>
255
          <column_name>category</column_name>
256
          <stream_name>category</stream_name>
257
        </field>
5156 anupam.sin 258
        <field>
259
          <column_name>catalog_item_id</column_name>
260
          <stream_name>catalog_item_id</stream_name>
261
        </field>
262
        <field>
263
          <column_name>parent_category</column_name>
264
          <stream_name>parent_category</stream_name>
265
        </field>
266
        <field>
267
          <column_name>price_range</column_name>
268
          <stream_name>price_range</stream_name>
269
        </field>
2400 ankur.sing 270
    </fields>
271
     <cluster_schema/>
272
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
273
      <xloc>435</xloc>
274
      <yloc>166</yloc>
275
      <draw>Y</draw>
276
      </GUI>
277
    </step>
278
 
279
  <step>
280
    <name>items_Mapping</name>
281
    <type>SelectValues</type>
282
    <description/>
283
    <distribute>Y</distribute>
284
    <copies>1</copies>
285
         <partitioning>
286
           <method>none</method>
287
           <schema_name/>
288
           </partitioning>
289
    <fields>      <field>        <name>id</name>
3496 vikas 290
        <rename/>
2400 ankur.sing 291
        <length>-2</length>
292
        <precision>-2</precision>
5156 anupam.sin 293
      </field>      <field>        <name>catalog_item_id</name>
294
        <rename/>
295
        <length>-2</length>
296
        <precision>-2</precision>
2400 ankur.sing 297
      </field>      <field>        <name>product_group</name>
3496 vikas 298
        <rename/>
2400 ankur.sing 299
        <length>-2</length>
300
        <precision>-2</precision>
301
      </field>      <field>        <name>brand</name>
3496 vikas 302
        <rename/>
2400 ankur.sing 303
        <length>-2</length>
304
        <precision>-2</precision>
305
      </field>      <field>        <name>model_number</name>
3496 vikas 306
        <rename/>
2400 ankur.sing 307
        <length>-2</length>
308
        <precision>-2</precision>
309
      </field>      <field>        <name>model_name</name>
3496 vikas 310
        <rename/>
2400 ankur.sing 311
        <length>-2</length>
312
        <precision>-2</precision>
313
      </field>      <field>        <name>color</name>
3496 vikas 314
        <rename/>
2400 ankur.sing 315
        <length>-2</length>
316
        <precision>-2</precision>
2532 vikas 317
      </field>      <field>        <name>category</name>
3496 vikas 318
        <rename/>
2532 vikas 319
        <length>-2</length>
320
        <precision>-2</precision>
321
      </field>      <field>        <name>parent_category</name>
3496 vikas 322
        <rename/>
2532 vikas 323
        <length>-2</length>
324
        <precision>-2</precision>
5156 anupam.sin 325
      </field>      <field>        <name>price_range</name>
3496 vikas 326
        <rename/>
327
        <length>-2</length>
328
        <precision>-2</precision>
2400 ankur.sing 329
      </field>        <select_unspecified>N</select_unspecified>
330
    </fields>     <cluster_schema/>
331
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
332
      <xloc>304</xloc>
2532 vikas 333
      <yloc>167</yloc>
2400 ankur.sing 334
      <draw>Y</draw>
335
      </GUI>
336
    </step>
337
 
338
  <step_error_handling>
339
  </step_error_handling>
340
   <slave-step-copy-partition-distribution>
341
</slave-step-copy-partition-distribution>
342
   <slave_transformation>N</slave_transformation>
343
</transformation>