MCPcopy Create free account
hub / github.com/apache/arrow / FixSelection

Method FixSelection

cpp/src/arrow/compute/util.h:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 return num_rows_safe;
209 }
210 static int FixSelection(int64_t num_rows_safe, int num_selected,
211 const uint16_t* selection) {
212 int num_selected_safe = num_selected;
213 while (num_selected_safe > 0 && selection[num_selected_safe - 1] >= num_rows_safe) {
214 --num_selected_safe;
215 }
216 return num_selected_safe;
217 }
218};
219
220} // namespace compute

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected