You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by Saloni Udani <sa...@gmail.com> on 2020/11/19 05:10:14 UTC

Set default value for a field.

Hello,

We use Apache Arrow 2.0.0 java implementation for data transfer and
enrichment. Is there a way to set a default value for a Field? As of now we
iterate all indexes of a FieldVector and set the same value.



Regards
Saloni Udani

Re: Set default value for a field.

Posted by Saloni Udani <sa...@gmail.com>.
Ok.
Thanks for the clarification Micah.

On Sat, Nov 21, 2020 at 9:30 AM Micah Kornfield <em...@gmail.com>
wrote:

> That is the only way that I'm aware of doing it. The specification doesn't
> allow for default values (there has been some prior discussion on adding
> things like RLE to the specification but that is a major project).
>
> On Wed, Nov 18, 2020 at 9:10 PM Saloni Udani <sa...@gmail.com>
> wrote:
>
>> Hello,
>>
>> We use Apache Arrow 2.0.0 java implementation for data transfer and
>> enrichment. Is there a way to set a default value for a Field? As of now we
>> iterate all indexes of a FieldVector and set the same value.
>>
>>
>>
>> Regards
>> Saloni Udani
>>
>

Re: Set default value for a field.

Posted by Micah Kornfield <em...@gmail.com>.
That is the only way that I'm aware of doing it. The specification doesn't
allow for default values (there has been some prior discussion on adding
things like RLE to the specification but that is a major project).

On Wed, Nov 18, 2020 at 9:10 PM Saloni Udani <sa...@gmail.com>
wrote:

> Hello,
>
> We use Apache Arrow 2.0.0 java implementation for data transfer and
> enrichment. Is there a way to set a default value for a Field? As of now we
> iterate all indexes of a FieldVector and set the same value.
>
>
>
> Regards
> Saloni Udani
>