Subversion Repositories SmartDukaan

Rev

Rev 3280 | Rev 3510 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3280 Rev 3436
Line 154... Line 154...
154
         <partitioning>
154
         <partitioning>
155
           <method>none</method>
155
           <method>none</method>
156
           <schema_name/>
156
           <schema_name/>
157
           </partitioning>
157
           </partitioning>
158
    <connection>userDC_Prod</connection>
158
    <connection>userDC_Prod</connection>
159
    <sql>select SQL_NO_CACHE id, email, name, is_anonymous, date_of_birth, sex, source,
159
    <sql>select SQL_NO_CACHE id, email, name, is_anonymous, date_of_birth, sex, 
-
 
160
case when source is null then &apos;Unknown&apos; when source like &apos;DIRECT%&apos; then &apos;Direct&apos; when source like &apos;ORGANIC%&apos; then &apos;Organic&apos; when source like &apos;PAID%&apos; then &apos;Paid&apos; else &apos;Referer&apos; end as source_type,
-
 
161
SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(source,&apos;:&#47;&#47;&apos;,-1),&apos;&#47;&apos;,1),&apos;www.&apos;,-1) as source_url,
160
case when datediff(source_start_time, &apos;20101231&apos;) &gt; 0 then datediff(source_start_time, &apos;20101231&apos;) else 1 end as source_start_date_id, 
162
case when datediff(source_start_time, &apos;20101231&apos;) &gt; 0 then datediff(source_start_time, &apos;20101231&apos;) else 1 end as source_start_date_id, 
161
hour(source_start_time) as source_start_hour
163
hour(source_start_time) as source_start_hour
162
from user 
164
from user 
163
where is_anonymous = 0;</sql>
165
where is_anonymous = 0;</sql>
164
    <limit>0</limit>
166
    <limit>0</limit>
Line 271... Line 273...
271
        <precision>-2</precision>
273
        <precision>-2</precision>
272
      </field>      <field>        <name>sex</name>
274
      </field>      <field>        <name>sex</name>
273
        <rename/>
275
        <rename/>
274
        <length>-2</length>
276
        <length>-2</length>
275
        <precision>-2</precision>
277
        <precision>-2</precision>
276
      </field>      <field>        <name>source</name>
278
      </field>      <field>        <name>source_start_date_id</name>
277
        <rename/>
279
        <rename/>
278
        <length>-2</length>
280
        <length>-2</length>
279
        <precision>-2</precision>
281
        <precision>-2</precision>
280
      </field>      <field>        <name>source_start_date_id</name>
282
      </field>      <field>        <name>source_start_hour</name>
281
        <rename/>
283
        <rename/>
282
        <length>-2</length>
284
        <length>-2</length>
283
        <precision>-2</precision>
285
        <precision>-2</precision>
284
      </field>      <field>        <name>source_start_hour</name>
286
      </field>      <field>        <name>source_type</name>
-
 
287
        <rename/>
-
 
288
        <length>-2</length>
-
 
289
        <precision>-2</precision>
-
 
290
      </field>      <field>        <name>source_url</name>
285
        <rename/>
291
        <rename/>
286
        <length>-2</length>
292
        <length>-2</length>
287
        <precision>-2</precision>
293
        <precision>-2</precision>
288
      </field>        <select_unspecified>N</select_unspecified>
294
      </field>        <select_unspecified>N</select_unspecified>
289
    </fields>     <cluster_schema/>
295
    </fields>     <cluster_schema/>