| Line 156... |
Line 156... |
| 156 |
</partitioning>
|
156 |
</partitioning>
|
| 157 |
<connection>transactionDC_Prod</connection>
|
157 |
<connection>transactionDC_Prod</connection>
|
| 158 |
<sql>select datediff(o.created_timestamp, '20101231') as date_id, o.logistics_provider_id, o.customer_pincode, o.status,
|
158 |
<sql>select datediff(o.created_timestamp, '20101231') 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,
|
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,
|
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
|
161 |
datediff(o.delivery_timestamp, o.created_timestamp)-datediff(o.expected_delivery_time, o.created_timestamp) as actual_estimate_diff, o.delay_cause
|
| 162 |
from `order` o
|
162 |
from `order` o
|
| 163 |
left join lineitem l on (o.id = l.order_id)
|
163 |
left join lineitem l on (o.id = l.order_id)
|
| 164 |
where o.status not in (0, 1)</sql>
|
164 |
where o.status not in (0, 1)</sql>
|
| 165 |
<limit>0</limit>
|
165 |
<limit>0</limit>
|
| 166 |
<lookup/>
|
166 |
<lookup/>
|
| Line 215... |
Line 215... |
| 215 |
<precision>-2</precision>
|
215 |
<precision>-2</precision>
|
| 216 |
</field> <field> <name>actual_estimate_diff</name>
|
216 |
</field> <field> <name>actual_estimate_diff</name>
|
| 217 |
<rename/>
|
217 |
<rename/>
|
| 218 |
<length>-2</length>
|
218 |
<length>-2</length>
|
| 219 |
<precision>-2</precision>
|
219 |
<precision>-2</precision>
|
| - |
|
220 |
</field> <field> <name>delay_cause</name>
|
| - |
|
221 |
<rename/>
|
| - |
|
222 |
<length>-2</length>
|
| - |
|
223 |
<precision>-2</precision>
|
| 220 |
</field> <select_unspecified>N</select_unspecified>
|
224 |
</field> <select_unspecified>N</select_unspecified>
|
| 221 |
</fields> <cluster_schema/>
|
225 |
</fields> <cluster_schema/>
|
| 222 |
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
226 |
<remotesteps> <input> </input> <output> </output> </remotesteps> <GUI>
|
| 223 |
<xloc>371</xloc>
|
227 |
<xloc>371</xloc>
|
| 224 |
<yloc>160</yloc>
|
228 |
<yloc>160</yloc>
|