Subversion Repositories SmartDukaan

Rev

Rev 3548 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3544 vikas 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
    <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>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>
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/>
55
    <dependencies>
56
    </dependencies>
57
    <partitionschemas>
58
    </partitionschemas>
59
    <slaveservers>
60
    </slaveservers>
61
    <clusterschemas>
62
    </clusterschemas>
63
  <created_user/>
64
  <created_date>2011&#47;07&#47;04 19:17:12.267</created_date>
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>
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>
121
    <name>transactionDC_Prod</name>
122
    <server>192.168.190.114</server>
123
    <type>MYSQL</type>
124
    <access>Native</access>
125
    <database>transaction</database>
126
    <port>3306</port>
127
    <username>pentaho</username>
128
    <password>Encrypted 2be98afc86aa7f2e4cb79ac798cc2fd8a</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>
146
  <hop> <from>ordersMapping</from><to>orderfulfillmentDW</to><enabled>Y</enabled> </hop>  <hop> <from>orderfulfillments</from><to>ordersMapping</to><enabled>Y</enabled> </hop>  </order>
147
  <step>
148
    <name>orderfulfillments</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>transactionDC_Prod</connection>
158
    <sql>select datediff(o.created_timestamp, &apos;20101231&apos;) as date_id, o.logistics_provider_id, o.customer_pincode, o.status, 
159
l.item_id, datediff(o.expected_delivery_time, o.created_timestamp) as expected_delivery_days, 
160
datediff(o.delivery_timestamp, o.created_timestamp) as actual_delivery_days, 
161
datediff(o.delivery_timestamp, o.created_timestamp)-datediff(o.expected_delivery_time, o.created_timestamp) as actual_estimate_diff 
162
from `order` o 
163
left join lineitem l on (o.id = l.order_id) 
164
where o.status not in (0, 1)</sql>
165
    <limit>0</limit>
166
    <lookup/>
167
    <execute_each_row>N</execute_each_row>
168
    <variables_active>N</variables_active>
169
    <lazy_conversion_active>N</lazy_conversion_active>
170
     <cluster_schema/>
171
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
172
      <xloc>133</xloc>
173
      <yloc>162</yloc>
174
      <draw>Y</draw>
175
      </GUI>
176
    </step>
177
 
178
  <step>
179
    <name>ordersMapping</name>
180
    <type>SelectValues</type>
181
    <description/>
182
    <distribute>Y</distribute>
183
    <copies>1</copies>
184
         <partitioning>
185
           <method>none</method>
186
           <schema_name/>
187
           </partitioning>
188
    <fields>      <field>        <name>date_id</name>
189
        <rename/>
190
        <length>-2</length>
191
        <precision>-2</precision>
192
      </field>      <field>        <name>logistics_provider_id</name>
193
        <rename/>
194
        <length>-2</length>
195
        <precision>-2</precision>
196
      </field>      <field>        <name>customer_pincode</name>
197
        <rename/>
198
        <length>-2</length>
199
        <precision>-2</precision>
200
      </field>      <field>        <name>status</name>
201
        <rename/>
202
        <length>-2</length>
203
        <precision>-2</precision>
204
      </field>      <field>        <name>item_id</name>
205
        <rename/>
206
        <length>-2</length>
207
        <precision>-2</precision>
208
      </field>      <field>        <name>expected_delivery_days</name>
209
        <rename/>
210
        <length>-2</length>
211
        <precision>-2</precision>
212
      </field>      <field>        <name>actual_delivery_days</name>
213
        <rename/>
214
        <length>-2</length>
215
        <precision>-2</precision>
216
      </field>      <field>        <name>actual_estimate_diff</name>
217
        <rename/>
218
        <length>-2</length>
219
        <precision>-2</precision>
220
      </field>        <select_unspecified>N</select_unspecified>
221
    </fields>     <cluster_schema/>
222
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
223
      <xloc>371</xloc>
224
      <yloc>160</yloc>
225
      <draw>Y</draw>
226
      </GUI>
227
    </step>
228
 
229
  <step>
230
    <name>orderfulfillmentDW</name>
231
    <type>TableOutput</type>
232
    <description/>
233
    <distribute>Y</distribute>
234
    <copies>1</copies>
235
         <partitioning>
236
           <method>none</method>
237
           <schema_name/>
238
           </partitioning>
239
    <connection>salesDC_DW</connection>
240
    <schema/>
241
    <table>orderfulfillment</table>
242
    <commit>1000</commit>
243
    <truncate>Y</truncate>
244
    <ignore_errors>N</ignore_errors>
245
    <use_batch>Y</use_batch>
246
    <specify_fields>N</specify_fields>
247
    <partitioning_enabled>N</partitioning_enabled>
248
    <partitioning_field/>
249
    <partitioning_daily>N</partitioning_daily>
250
    <partitioning_monthly>Y</partitioning_monthly>
251
    <tablename_in_field>N</tablename_in_field>
252
    <tablename_field/>
253
    <tablename_in_table>Y</tablename_in_table>
254
    <return_keys>N</return_keys>
255
    <return_field/>
256
    <fields>
257
    </fields>
258
     <cluster_schema/>
259
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
260
      <xloc>630</xloc>
261
      <yloc>161</yloc>
262
      <draw>Y</draw>
263
      </GUI>
264
    </step>
265
 
266
  <step_error_handling>
267
  </step_error_handling>
268
   <slave-step-copy-partition-distribution>
269
</slave-step-copy-partition-distribution>
270
   <slave_transformation>N</slave_transformation>
271
</transformation>