Hi Ghulam,
1. Autogenerating numeric values is not supported, yet.
2. If I understand your question correctly, it is doable. Here is an
example:
CREATE TYPE MyType AS {
f1: string,
f2: string,
f3: uuid
};
create dataset ds(MyType) primary key f1;
insert into ds {"f1": "str1", "f2": "str2", "f3": uuid()};
select value x from ds x;
Thanks
Ali
On Mon, Aug 12, 2019 at 3:46 PM Ali Alsuliman <[email protected]>
wrote:
> Hi Ghulam,
>
> 1. Autogenerating numeric values is not supported, yet.
> 2. If I understand your question correctly, it is doable. Here is an
> example:
>
> CREATE TYPE MyType AS {
> f1: string,
> f2: string,
> f3: uuid
> };
>
> create dataset ds(MyType) primary key f1;
>
> insert into ds {"f1": "str1", "f2": "str2", "f3": uuid()};
>
> select value x from ds x;
>
> Thanks
> Ali
>
> On Thu, Aug 8, 2019 at 8:25 AM ghulam rabbani <[email protected]>
> wrote:
>
>> One more query-
>>
>> Is there a way to use one field as autogenerated and another field as the
>> primary key?
>>
>>
>> On Thu, Aug 8, 2019 at 2:55 PM ghulam rabbani <[email protected]>
>> wrote:
>>
>> >
>> > Hi Team,
>> >
>> > Is there any way to autogenerate numeric value in the dataset . I am
>> > having these use cases- but according to doc, I can only generate the
>> value
>> > from UUID; Please let me know if you want any additional information.
>> >
>> > --
>> >
>> > *Thanks & Regards*
>> >
>> > *Ghulam Rabbani*
>> >
>> > *+91-9051457429 | [email protected] <[email protected]>*
>> >
>>
>>
>> --
>>
>> *Thanks & Regards*
>>
>> *Ghulam Rabbani*
>>
>> *+91-9051457429 | [email protected] <[email protected]>*
>>
>
>
> --
> Regards,
>
--
Regards,