Re: [DISCUSSION] optimization of OrderBy sorted columns + Limit Query

2017-09-24 Thread simafengyun
Recently , I used the latest code done test as below
1.  Create Table:           
CREATE TABLE rx5_tbox_parquet_all(
           carid STRING,
           inputstime TIMESTAMP,
           carsyspwrmod INT,
           cardofrontpas INT,
           cardofrontdrv INT,
           cardorearleft INT,
           cardorearright INT,
           carbonnet INT,
           carboot INT,
           carwinfrontleft INT,
           carwinrearleft INT,
           carwinfrontright INT,
           carwinrearright INT,
           carsunroof INT,
           carcsactive INT,
           carcsenabled INT,
           carseatbeltdrv INT
          )
          STORED BY 'carbondata'
          TBLPROPERTIES('SORT_COLUMNS'='carid',
'DICTIONARY_INCLUDE'='carid')

2.  Load  0.1 billion  data

3.  Run the below sql

          select
           carid,
            inputstime,
            carsyspwrmod,
            cardofrontpas,
            cardofrontdrv,
            cardorearleft,
            cardorearright,
            carbonnet,
            carboot,
            carwinfrontleft,
            carwinrearleft,
            carwinfrontright,
            carwinrearright
          from rx5_tbox_parquet_all2
          order by carid
          limit 10


Use carbondata1.2 master code + spark2.1 to run
|carid             
|inputstime|carsyspwrmod|cardofrontpas|cardofrontdrv|cardorearleft|cardorearright|carbonnet|carboot|carwinfrontleft|carwinrearleft|carwinfrontright|carwinrearright|
+-+++---+---+---++-+---+--+-+---+--+
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
+-+++---+---+---++-+---+--+-+---+--+

limit 10 query time: *28777*

Use orderby +limit optimized carbondata1.2 master code + spark1.6.3 to run

+-+++---+---+---++-+---+--+-+---+--+
|carid             
|inputstime|carsyspwrmod|cardofrontpas|cardofrontdrv|cardorearleft|cardorearright|carbonnet|carboot|carwinfrontleft|carwinrearleft|carwinfrontright|carwinrearright|
+-+++---+---+---++-+---+--+-+---+--+
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |
|LSJA24790HS020662|null    |2           |0              |0              |0 
            |0               |0        |0      |0                 |0       
        |0                  |0                 |

Re: [VOTE] Apache CarbonData 1.2.0(RC3) release

2017-09-24 Thread David CaiQiang

 +1 Release this package as Apache CarbonData 1.2.0 

1. Release
  There are important new features and the integration of new platform

2. The tag
 " mvn clean -DskipTests -Pspark-2.1 -Pbuild-with-format package" passed
 "mvn clean -DskipTests -Pspark-2.1 -Pbuild-with-format install" passed

3. The artifacts 
  both md5sum and sha512 are correct



-
Best Regards
David Cai
--
Sent from: 
http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/