birschick-bq commented on code in PR #2341: URL: https://github.com/apache/arrow-adbc/pull/2341#discussion_r1868191294
########## csharp/test/Apache.Arrow.Adbc.Tests/TestBase.cs: ########## @@ -497,15 +476,20 @@ private static void ValidateBinaryArrayValue(Func<int, object?> expectedValues, /// <summary> /// Validates a single values for all results (in the batch). /// </summary> - /// <param name="value">The value to validate.</param> /// <param name="length">The length of the current batch/array.</param> + /// <param name="value">The value to validate.</param> /// <param name="getter">The getter function to retrieve the actual value.</param> - private static void ValidateValue(Func<int, object?> value, int length, Func<int, object?> getter, Int32Array? indexColumn = null) + /// <param name="indexColumn"></param> + private static void ValidateValue(int length, Func<int, object?> value, Func<int, object?> getter, Int32Array? indexColumn = null, Func<int, bool>? isNullEvaluator = default) { for (int i = 0; i < length; i++) { int valueIndex = indexColumn?.GetValue(i) ?? i; object? expected = value(valueIndex); + if (expected == null && isNullEvaluator != null) + { + Assert.True(isNullEvaluator(i), "expecting actual value to be null"); Review Comment: Done. Good catch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org