about summary refs log tree commit diff
path: root/tvix/tools/narinfo2parquet/src/main.rs
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2024-02-19T04·11+0000
committeredef <edef@edef.eu>2024-02-19T16·03+0000
commitf4963cdfd80f0ddfc004be46c519c02efdfeae5c (patch)
treeb4168300d40acf91e8dde5db6f6790264941d6d8 /tvix/tools/narinfo2parquet/src/main.rs
parentd991548ea2fcd44efae089efbd51c97edea2a89b (diff)
chore(tvix/tools/narinfo2parquet): polars 0.34.2 -> 0.36.2 r/7555
Change-Id: Ib17a7bbe560000c3fef3ba6182819f710d707909
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10967
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to '')
-rw-r--r--tvix/tools/narinfo2parquet/src/main.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/tvix/tools/narinfo2parquet/src/main.rs b/tvix/tools/narinfo2parquet/src/main.rs
index 50eab0a796..3b793e02b1 100644
--- a/tvix/tools/narinfo2parquet/src/main.rs
+++ b/tvix/tools/narinfo2parquet/src/main.rs
@@ -111,9 +111,9 @@ fn for_each(reader: impl Read, mut f: impl FnMut(&str) -> Result<()>) -> Result<
 /// }
 /// ```
 struct FrameBuilder {
-    store_path_hash_str: Utf8ChunkedBuilder,
+    store_path_hash_str: StringChunkedBuilder,
     store_path_hash: BinaryChunkedBuilder,
-    store_path_name: Utf8ChunkedBuilder,
+    store_path_name: StringChunkedBuilder,
     nar_hash: BinaryChunkedBuilder,
     nar_size: PrimitiveChunkedBuilder<UInt64Type>,
     references: ListBinaryChunkedBuilder,
@@ -130,18 +130,22 @@ struct FrameBuilder {
 impl Default for FrameBuilder {
     fn default() -> Self {
         Self {
-            store_path_hash_str: Utf8ChunkedBuilder::new("store_path_hash_str", 0, 0),
+            store_path_hash_str: StringChunkedBuilder::new("store_path_hash_str", 0, 0),
             store_path_hash: BinaryChunkedBuilder::new("store_path_hash", 0, 0),
-            store_path_name: Utf8ChunkedBuilder::new("store_path_name", 0, 0),
+            store_path_name: StringChunkedBuilder::new("store_path_name", 0, 0),
             nar_hash: BinaryChunkedBuilder::new("nar_hash", 0, 0),
             nar_size: PrimitiveChunkedBuilder::new("nar_size", 0),
             references: ListBinaryChunkedBuilder::new("references", 0, 0),
             signature: BinaryChunkedBuilder::new("signature", 0, 0),
-            ca_algo: CategoricalChunkedBuilder::new("ca_algo", 0),
+            ca_algo: CategoricalChunkedBuilder::new("ca_algo", 0, CategoricalOrdering::Lexical),
             ca_hash: BinaryChunkedBuilder::new("ca_hash", 0, 0),
             file_hash: BinaryChunkedBuilder::new("file_hash", 0, 0),
             file_size: PrimitiveChunkedBuilder::new("file_size", 0),
-            compression: CategoricalChunkedBuilder::new("compression", 0),
+            compression: CategoricalChunkedBuilder::new(
+                "compression",
+                0,
+                CategoricalOrdering::Lexical,
+            ),
             quirk_references_out_of_order: BooleanChunkedBuilder::new(
                 "quirk_references_out_of_order",
                 0,