Is your feature request related to a problem or challenge? Please describe what you are trying to do.
It would be nice to add append_nulls to MapBuilder, similar to append_nulls on GenericListBuilder. Appending the nulls at once, instead of using a loop has some nice performance implications:
Benchmark results (1,000,000 nulls):
┌─────────────────────────┬─────────┐
│ Method │ Time │
├─────────────────────────┼─────────┤
│ append(false) in a loop │ 2.36 ms │
├─────────────────────────┼─────────┤
│ append_nulls(N) │ 50 µs │
└─────────────────────────┴─────────┘
Describe the solution you'd like
Adding append_nulls to MapBuilder.
Describe alternatives you've considered
Calling append(false) in a loop.
Additional context
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
It would be nice to add
append_nullsto MapBuilder, similar toappend_nullsonGenericListBuilder. Appending the nulls at once, instead of using a loop has some nice performance implications:Describe the solution you'd like
Adding
append_nullstoMapBuilder.Describe alternatives you've considered
Calling
append(false)in a loop.Additional context