You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/01/26 13:40:03 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3608: Minor: Add test for dictionary encoding of batches

tustvold commented on code in PR #3608:
URL: https://github.com/apache/arrow-rs/pull/3608#discussion_r1087868471


##########
arrow-flight/tests/encode_decode.rs:
##########
@@ -123,6 +123,33 @@ async fn test_zero_batches_schema_specified() {
     assert_eq!(decoder.schema(), Some(&schema));
 }
 
+#[tokio::test]
+async fn test_zero_batches_dictonary_schema_specified() {
+    let schema = Arc::new(Schema::new(vec![
+        Field::new("a", DataType::Int64, false),
+        Field::new(
+            "b",
+            DataType::Dictionary(Box::new(DataType::Int32), Box::new(DataType::Utf8)),
+            false,
+        ),
+    ]));
+
+    let expected_schema = Arc::new(Schema::new(vec![

Review Comment:
   ```suggestion
       // Expect dictionary to be hydrated in output (#3389)
       let expected_schema = Arc::new(Schema::new(vec![
   ```



-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org