Created on 06-29-2015 04:40 AM - edited 09-16-2022 02:32 AM
i need Auto Increment columns in Impala. please let me know this feature is avaliable or not
Created 06-29-2015 10:49 AM
This feature is currrently not available. May I ask what your use case is?
Created on 06-29-2015 10:56 AM - edited 06-29-2015 10:57 AM
Presently we are using SQL server now we are moving this logic to one of Big databases so i am doing POC in Impala. we are doing so many operation based on Auto Increment Column.
So we need AutoIncrement functionality. is there any way to achive this.One more question is Primary column support is there?
Created 06-29-2015 11:26 AM
There is no enforcement of key constraints or auto increment in Impala. Please understand that Impala and SQL Server are quite different technologies each with their own unique set of advantades/disadvantages.
What kind of operations are you doing based on auto increment?
Created on 03-01-2016 01:01 AM - edited 03-01-2016 01:04 AM
whenever a new record is inserted, sequence number has to be generated for key columns.
first day : 100 record with sequence number from 1 to 100.
second day : 10 new records. Sequence number should start from 101 to 110.
We can achieve this in ETL tools. Also, In some databases, we have create sequence function and use the next value in select clause.
Is it possible to achieve in impala ?
Created 01-22-2018 01:25 PM
Hello everyone,
I was wondering like Iamwan if it was still impossible today (in January 2018) to auto increment an ID (an int, a bigint or whatever) in a table (in Impala or Hive) when data are added. Would you have further information please ?
I didn't find anything about it here : https://www.cloudera.com/documentation/enterprise/5-9-x/topics/impala_datatypes.html
Have a nice day !