parquet_string_column_append_null Subroutine

public subroutine parquet_string_column_append_null(self)

Appends a null element to the end of the column (a zero-width, invalid slot).

Arguments

Type IntentOptional Attributes Name
type(parquet_string_column), intent(inout) :: self

the column.


Source Code

    subroutine parquet_string_column_append_null(self)
        type(parquet_string_column), intent(inout) :: self !! the column.
        call ensure_offsets_cap(self, self%nrows + 1_int64)
        self%offsets(self%nrows+2) = self%nchars
        self%has_nulls = .true.
        call ensure_validity_cap(self, self%nrows + 1_int64)
        call set_bit_null(self, self%nrows + 1_int64)
        self%n_null = self%n_null + 1_int64
        self%nrows = self%nrows + 1_int64
    end subroutine parquet_string_column_append_null