jduo commented on code in PR #38046:
URL: https://github.com/apache/arrow/pull/38046#discussion_r1358476385
##########
csharp/test/Apache.Arrow.Flight.Tests/FlightTests.cs:
##########
@@ -52,6 +53,10 @@ private RecordBatch CreateTestBatch(int startValue, int
length)
builder.Append(startValue + i);
}
batchBuilder.Append("test", true, builder.Build());
+ var keys = new
UInt16Array.Builder().AppendRange(Enumerable.Range(startValue, length).Select(i
=> (ushort)i)).Build();
+ var dictionary = new
StringArray.Builder().AppendRange(Enumerable.Range(startValue, length).Select(i
=> i.ToString())).Build();
+ var dictArray = new DictionaryArray(new
DictionaryType(UInt16Type.Default, StringType.Default, false), keys,
dictionary);
Review Comment:
Would it be possible to have the test validate the contents of the
dictionary?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]