Subversion Repositories SmartDukaan

Rev

Rev 7203 | 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>
5160 anupam.sin 71
    <name>sales_DClocal</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>
2400 ankur.sing 96
    <name>salesDC_DW</name>
97
    <server>localhost</server>
98
    <type>MYSQL</type>
99
    <access>Native</access>
100
    <database>sales</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>
2584 vikas 121
    <name>transactionDC_local</name>
122
    <server>localhost</server>
123
    <type>MYSQL</type>
124
    <access>Native</access>
125
    <database>transaction</database>
126
    <port>3306</port>
127
    <username>root</username>
128
    <password>Encrypted 2be98afc86aa7f2e4b811a1608cc2fd8a</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
  <connection>
2400 ankur.sing 146
    <name>transactionDC_Prod</name>
5160 anupam.sin 147
    <server>192.168.190.113</server>
2400 ankur.sing 148
    <type>MYSQL</type>
149
    <access>Native</access>
150
    <database>transaction</database>
151
    <port>3306</port>
152
    <username>pentaho</username>
2519 vikas 153
    <password>Encrypted 2be98afc86aa7f2e4cb79ac798cc2fd8a</password>
2400 ankur.sing 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>
170
  <order>
2834 vikas 171
  <hop> <from>ordersMapping</from><to>salesDW</to><enabled>Y</enabled> </hop>  <hop> <from>orders</from><to>ordersMapping</to><enabled>Y</enabled> </hop>  </order>
2400 ankur.sing 172
  <step>
2519 vikas 173
    <name>orders</name>
174
    <type>TableInput</type>
2400 ankur.sing 175
    <description/>
176
    <distribute>Y</distribute>
177
    <copies>1</copies>
178
         <partitioning>
179
           <method>none</method>
180
           <schema_name/>
181
           </partitioning>
2519 vikas 182
    <connection>transactionDC_Prod</connection>
6474 anupam.sin 183
    <sql>SELECT SQL_NO_CACHE o.id &apos;order_id&apos;, o.customer_id, o.customer_pincode,  o.status &apos;order_status&apos;, o.total_amount, ps.hotspotId as pickupStoreId,  
184
		datediff(o.created_timestamp, &apos;20101231&apos;) as date_id, hour(o.created_timestamp) as order_hour, o.transaction_id, l.item_id, l.quantity, 
185
		case when unit_price&lt;250 then 0 when unit_price&lt;500 then 1 when unit_price&lt;1000 then 2 
186
			 when unit_price&lt;2000 then 3 when unit_price &lt; 5000 then 4 when unit_price &lt; 10000 then 5 when unit_price &lt; 15000 then 6 
7203 anupam.sin 187
			 when unit_price &lt;20000 then 7 when unit_price &lt; 50000 then 8 else 9 end as price_range, l.transfer_price, case when l.nlc is null then l.transfer_price else l.nlc end as nlc, p.gatewayId,  
6474 anupam.sin 188
		case when pa.value is null then case when p.gatewayId = 1 then 2099 when p.gatewayId = 2 then 1099 else null end else pa.value end &apos;payment_method&apos;, 
189
		upper(trim(t.coupon_code)) as coupon_code,  
190
		case when t.session_source is null then &apos;Unknown&apos; when t.session_source like &apos;DIRECT%&apos; then &apos;Direct&apos; when t.session_source like &apos;ORGANIC%&apos; then &apos;Organic&apos; 
191
			 when t.session_source like &apos;PAID%&apos; then &apos;Paid&apos; else &apos;Referer&apos; end as session_source_type, 
192
		SUBSTRING_INDEX(REPLACE(REPLACE(SUBSTR(session_source, LOCATE(&apos;http:&#47;&#47;&apos;, LCASE(session_source)), LENGTH(session_source)), &apos;http:&#47;&#47;&apos;, &apos;&apos;), &apos;www.&apos;, &apos;&apos;), &apos;&#47;&apos;, 1) as session_source_url, 
193
		case when datediff(t.session_start_time, u.source_start_time) &gt; 30 then 0 when datediff(t.session_start_time, u.source_start_time) &gt; 15 then 1
194
			 when datediff(t.session_start_time, u.source_start_time) &gt; 7 then 2 when datediff(t.session_start_time, u.source_start_time) &gt; 2 then 3
195
			 when datediff(t.session_start_time, u.source_start_time) &gt; 1 then 4 else 5 end as days_to_purchase, aff.name aff_name, 
196
		case when o.originalOrderId is null then datediff(o.created_timestamp, &apos;20101231&apos;)
7203 anupam.sin 197
			 else datediff((select created_timestamp from `order` where id = o.originalOrderId), &apos;20101231&apos;) end as booking_date_id ,
7205 anupam.sin 198
		case when o.otg = 1 then 1 else 0 end as otg,
7203 anupam.sin 199
		o.insurer, o.insuranceAmount 
6474 anupam.sin 200
FROM `order` o  
201
left join lineitem l on(o.id = l.order_id )  
202
left join payment.payment p on (o.transaction_id = p.merchantTxnId and p.id=(select max(id) from payment.payment where merchantTxnId = o.transaction_id))  
203
left join payment.paymentattribute pa on (p.id = pa.payment_id and pa.name = &apos;payMethod&apos;) 
204
left join transaction t on (o.transaction_id = t.id) 
205
left join user.tracklog tl on (tl.user_id = o.customer_id and tl.data like concat(convert(p.id, char), &apos;%&apos;))  
206
left join user.user u on (u.id = o.customer_id)  left join user.affiliate aff on (tl.affiliate_id = aff.id) 
7203 anupam.sin 207
left join logistics.pickupstore ps on (o.pickupStoreId = ps.id) where o.status &gt; 1 group by order_id</sql>
2519 vikas 208
    <limit>0</limit>
209
    <lookup/>
210
    <execute_each_row>N</execute_each_row>
211
    <variables_active>N</variables_active>
212
    <lazy_conversion_active>N</lazy_conversion_active>
2400 ankur.sing 213
     <cluster_schema/>
214
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
2834 vikas 215
      <xloc>133</xloc>
3483 vikas 216
      <yloc>162</yloc>
2400 ankur.sing 217
      <draw>Y</draw>
218
      </GUI>
219
    </step>
220
 
221
  <step>
222
    <name>ordersMapping</name>
223
    <type>SelectValues</type>
224
    <description/>
225
    <distribute>Y</distribute>
226
    <copies>1</copies>
227
         <partitioning>
228
           <method>none</method>
229
           <schema_name/>
230
           </partitioning>
231
    <fields>      <field>        <name>order_id</name>
5160 anupam.sin 232
        <rename/>
2400 ankur.sing 233
        <length>-2</length>
234
        <precision>-2</precision>
235
      </field>      <field>        <name>customer_id</name>
5160 anupam.sin 236
        <rename/>
2400 ankur.sing 237
        <length>-2</length>
238
        <precision>-2</precision>
5160 anupam.sin 239
      </field>      <field>        <name>customer_pincode</name>
240
        <rename>pincode</rename>
241
        <length>-2</length>
242
        <precision>-2</precision>
243
      </field>      <field>        <name>order_status</name>
244
        <rename>status</rename>
245
        <length>-2</length>
246
        <precision>-2</precision>
2834 vikas 247
      </field>      <field>        <name>total_amount</name>
5160 anupam.sin 248
        <rename/>
2400 ankur.sing 249
        <length>-2</length>
250
        <precision>-2</precision>
5798 anupam.sin 251
      </field>      <field>        <name>pickupStoreId</name>
252
        <rename/>
253
        <length>-2</length>
254
        <precision>-2</precision>
2400 ankur.sing 255
      </field>      <field>        <name>date_id</name>
5160 anupam.sin 256
        <rename/>
2400 ankur.sing 257
        <length>-2</length>
258
        <precision>-2</precision>
2834 vikas 259
      </field>      <field>        <name>order_hour</name>
5160 anupam.sin 260
        <rename/>
2400 ankur.sing 261
        <length>-2</length>
262
        <precision>-2</precision>
2834 vikas 263
      </field>      <field>        <name>transaction_id</name>
5160 anupam.sin 264
        <rename/>
2400 ankur.sing 265
        <length>-2</length>
266
        <precision>-2</precision>
2834 vikas 267
      </field>      <field>        <name>item_id</name>
5160 anupam.sin 268
        <rename/>
2400 ankur.sing 269
        <length>-2</length>
270
        <precision>-2</precision>
2834 vikas 271
      </field>      <field>        <name>quantity</name>
5160 anupam.sin 272
        <rename/>
2400 ankur.sing 273
        <length>-2</length>
274
        <precision>-2</precision>
5160 anupam.sin 275
      </field>      <field>        <name>price_range</name>
276
        <rename/>
277
        <length>-2</length>
278
        <precision>-2</precision>
2584 vikas 279
      </field>      <field>        <name>transfer_price</name>
5160 anupam.sin 280
        <rename/>
2584 vikas 281
        <length>-2</length>
282
        <precision>-2</precision>
283
      </field>      <field>        <name>gatewayId</name>
5160 anupam.sin 284
        <rename/>
2584 vikas 285
        <length>-2</length>
286
        <precision>-2</precision>
287
      </field>      <field>        <name>payment_method</name>
5160 anupam.sin 288
        <rename/>
2584 vikas 289
        <length>-2</length>
290
        <precision>-2</precision>
2834 vikas 291
      </field>      <field>        <name>coupon_code</name>
5160 anupam.sin 292
        <rename/>
2834 vikas 293
        <length>-2</length>
294
        <precision>-2</precision>
3436 vikas 295
      </field>      <field>        <name>session_source_type</name>
5160 anupam.sin 296
        <rename/>
3436 vikas 297
        <length>-2</length>
298
        <precision>-2</precision>
299
      </field>      <field>        <name>session_source_url</name>
5160 anupam.sin 300
        <rename/>
3436 vikas 301
        <length>-2</length>
302
        <precision>-2</precision>
5160 anupam.sin 303
      </field>      <field>        <name>days_to_purchase</name>
3481 vikas 304
        <rename/>
305
        <length>-2</length>
306
        <precision>-2</precision>
5160 anupam.sin 307
      </field>      <field>        <name>aff_name</name>
3481 vikas 308
        <rename/>
309
        <length>-2</length>
310
        <precision>-2</precision>
5160 anupam.sin 311
      </field>      <field>        <name>booking_date_id</name>
312
        <rename/>
313
        <length>-2</length>
314
        <precision>-2</precision>
7205 anupam.sin 315
      </field>      <field>        <name>nlc</name>
316
        <rename/>
317
        <length>-2</length>
318
        <precision>-2</precision>
319
      </field>      <field>        <name>otg</name>
320
        <rename/>
321
        <length>-2</length>
322
        <precision>-2</precision>
323
      </field>      <field>        <name>insurer</name>
324
        <rename/>
325
        <length>-2</length>
326
        <precision>-2</precision>
327
      </field>      <field>        <name>insuranceAmount</name>
328
        <rename/>
329
        <length>-2</length>
330
        <precision>-2</precision>
2400 ankur.sing 331
      </field>        <select_unspecified>N</select_unspecified>
332
    </fields>     <cluster_schema/>
333
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
7203 anupam.sin 334
      <xloc>369</xloc>
335
      <yloc>162</yloc>
2400 ankur.sing 336
      <draw>Y</draw>
337
      </GUI>
338
    </step>
339
 
340
  <step>
2519 vikas 341
    <name>salesDW</name>
342
    <type>TableOutput</type>
2400 ankur.sing 343
    <description/>
344
    <distribute>Y</distribute>
345
    <copies>1</copies>
346
         <partitioning>
347
           <method>none</method>
348
           <schema_name/>
349
           </partitioning>
2519 vikas 350
    <connection>salesDC_DW</connection>
7205 anupam.sin 351
    <schema>sales</schema>
2584 vikas 352
    <table>sales</table>
2519 vikas 353
    <commit>1000</commit>
354
    <truncate>Y</truncate>
355
    <ignore_errors>N</ignore_errors>
356
    <use_batch>Y</use_batch>
357
    <specify_fields>N</specify_fields>
358
    <partitioning_enabled>N</partitioning_enabled>
359
    <partitioning_field/>
360
    <partitioning_daily>N</partitioning_daily>
361
    <partitioning_monthly>Y</partitioning_monthly>
362
    <tablename_in_field>N</tablename_in_field>
363
    <tablename_field/>
364
    <tablename_in_table>Y</tablename_in_table>
365
    <return_keys>N</return_keys>
366
    <return_field/>
2400 ankur.sing 367
    <fields>
5160 anupam.sin 368
        <field>
369
          <column_name>order_id</column_name>
370
          <stream_name>order_id</stream_name>
371
        </field>
372
        <field>
373
          <column_name>customer_id</column_name>
374
          <stream_name>customer_id</stream_name>
375
        </field>
376
        <field>
377
          <column_name>pincode</column_name>
378
          <stream_name>pincode</stream_name>
379
        </field>
380
        <field>
381
          <column_name>status</column_name>
382
          <stream_name>status</stream_name>
383
        </field>
384
        <field>
385
          <column_name>total_amount</column_name>
386
          <stream_name>total_amount</stream_name>
387
        </field>
388
        <field>
389
          <column_name>date_id</column_name>
390
          <stream_name>date_id</stream_name>
391
        </field>
392
        <field>
393
          <column_name>order_hour</column_name>
394
          <stream_name>order_hour</stream_name>
395
        </field>
396
        <field>
397
          <column_name>transaction_id</column_name>
398
          <stream_name>transaction_id</stream_name>
399
        </field>
400
        <field>
401
          <column_name>item_id</column_name>
402
          <stream_name>item_id</stream_name>
403
        </field>
404
        <field>
405
          <column_name>quantity</column_name>
406
          <stream_name>quantity</stream_name>
407
        </field>
408
        <field>
409
          <column_name>price_range</column_name>
410
          <stream_name>price_range</stream_name>
411
        </field>
412
        <field>
413
          <column_name>transfer_price</column_name>
414
          <stream_name>transfer_price</stream_name>
415
        </field>
416
        <field>
417
          <column_name>gatewayId</column_name>
418
          <stream_name>gatewayId</stream_name>
419
        </field>
420
        <field>
421
          <column_name>payment_method</column_name>
422
          <stream_name>payment_method</stream_name>
423
        </field>
424
        <field>
425
          <column_name>coupon_code</column_name>
426
          <stream_name>coupon_code</stream_name>
427
        </field>
428
        <field>
429
          <column_name>session_source_type</column_name>
430
          <stream_name>session_source_type</stream_name>
431
        </field>
432
        <field>
433
          <column_name>session_source_url</column_name>
434
          <stream_name>session_source_url</stream_name>
435
        </field>
436
        <field>
437
          <column_name>days_to_purchase</column_name>
438
          <stream_name>days_to_purchase</stream_name>
439
        </field>
440
        <field>
441
          <column_name>aff_name</column_name>
442
          <stream_name>aff_name</stream_name>
443
        </field>
444
        <field>
445
          <column_name>booking_date_id</column_name>
446
          <stream_name>booking_date_id</stream_name>
447
        </field>
5798 anupam.sin 448
        <field>
449
          <column_name>pickupStoreId</column_name>
450
          <stream_name>pickupStoreId</stream_name>
451
        </field>
7205 anupam.sin 452
        <field>
453
          <column_name>nlc</column_name>
454
          <stream_name>nlc</stream_name>
455
        </field>
456
        <field>
457
          <column_name>otg</column_name>
458
          <stream_name>otg</stream_name>
459
        </field>
460
        <field>
461
          <column_name>insurer</column_name>
462
          <stream_name>insurer</stream_name>
463
        </field>
464
        <field>
465
          <column_name>insuranceAmount</column_name>
466
          <stream_name>insuranceAmount</stream_name>
467
        </field>
2519 vikas 468
    </fields>
2400 ankur.sing 469
     <cluster_schema/>
470
 <remotesteps>   <input>   </input>   <output>   </output> </remotesteps>    <GUI>
7203 anupam.sin 471
      <xloc>631</xloc>
472
      <yloc>162</yloc>
2400 ankur.sing 473
      <draw>Y</draw>
474
      </GUI>
475
    </step>
476
 
477
  <step_error_handling>
478
  </step_error_handling>
479
   <slave-step-copy-partition-distribution>
480
</slave-step-copy-partition-distribution>
481
   <slave_transformation>N</slave_transformation>
482
</transformation>