| Line 153... |
Line 153... |
| 153 |
<partitioning>
|
153 |
<partitioning>
|
| 154 |
<method>none</method>
|
154 |
<method>none</method>
|
| 155 |
<schema_name/>
|
155 |
<schema_name/>
|
| 156 |
</partitioning>
|
156 |
</partitioning>
|
| 157 |
<connection>transactionDC_Prod</connection>
|
157 |
<connection>transactionDC_Prod</connection>
|
| 158 |
<sql>SELECT o.id 'order_id', o.customer_id, o.customer_pincode,
|
158 |
<sql>SELECT SQL_NO_CACHE o.id 'order_id', o.customer_id, o.customer_pincode,
|
| 159 |
o.status 'order_status', o.total_amount,
|
159 |
o.status 'order_status', o.total_amount,
|
| 160 |
datediff(o.created_timestamp, '20101231') as date_id, hour(o.created_timestamp) as order_hour,
|
160 |
datediff(o.created_timestamp, '20101231') as date_id, hour(o.created_timestamp) as order_hour,
|
| 161 |
o.transaction_id, l.item_id, l.quantity, l.unit_price, l.transfer_price, p.gatewayId,
|
161 |
o.transaction_id, l.item_id, l.quantity, l.unit_price, l.transfer_price, p.gatewayId,
|
| 162 |
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 'payment_method',
|
162 |
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 'payment_method',
|
| 163 |
t.coupon_code, t.session_source,
|
163 |
t.coupon_code, t.session_source,
|