This is an automated email from the ASF dual-hosted git repository.

awong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new 18964fd  docs: fix PK column order
18964fd is described below

commit 18964fd29bce0cd9c949ae059c89ea8ee4901ca2
Author: Andrew Wong <[email protected]>
AuthorDate: Fri Oct 9 16:25:45 2020 -0700

    docs: fix PK column order
    
    I ran the query in Impala as written and it failed:
    
     Kudu PRIMARY KEY columns must be specified as the first columns in the 
table (expected leading columns ('sale_id', 'year') but found ('year', 
'sale_id'))
    
    Change-Id: I2a0986f28e49115cc972408ade497a823a36231d
    Reviewed-on: http://gerrit.cloudera.org:8080/16578
    Tested-by: Kudu Jenkins
    Reviewed-by: Alexey Serbin <[email protected]>
---
 docs/kudu_impala_integration.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/kudu_impala_integration.adoc 
b/docs/kudu_impala_integration.adoc
index 2a0e3ab..48b2ef7 100755
--- a/docs/kudu_impala_integration.adoc
+++ b/docs/kudu_impala_integration.adoc
@@ -510,7 +510,7 @@ ranges will be rejected.
 ----
 CREATE TABLE sales_by_year (
   year INT, sale_id INT, amount INT,
-  PRIMARY KEY (sale_id, year)
+  PRIMARY KEY (year, sale_id)
 )
 PARTITION BY RANGE (year) (
   PARTITION VALUE = 2012,

Reply via email to