Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParquetError(ArrowError("creating ListArrayReader with type FixedSizeList ... should be unreachable #39

Open
AlJohri opened this issue Feb 4, 2023 · 1 comment

Comments

@AlJohri
Copy link

AlJohri commented Feb 4, 2023

hi there, ran into a new error today. I'm guessing it might have to do with the fact that the inner list field is called item instead of element?

❯ pqrs head --json output.parquet
Error: ParquetError(ArrowError("creating ListArrayReader with type FixedSizeList(Field { name: \"item\", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }, 256) should be unreachable"))

❯ pqrs schema output.parquet 
Metadata for file: output.parquet trying to cat a parquet. I'm guessing it might have something to do with the 

version: 1
num of rows: 30
created by: parquet-cpp-arrow version 6.0.1
metadata:
  ARROW:schema: /////4gBAAAQAAAAAAAKAAwABgAFAAgACgAAAAABBAAMAAAACAAIAAAABAAIAAAABAAAAAUAAAAoAQAA7AAAAMAAAACAAAAABAAAAPz+//8AAAAQFAAAACQAAAAEAAAAAQAAADAAAAAJAAAAZW1iZWRkaW5nAAYACAAEAAYAAAAAAQAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEDEAAAABwAAAAEAAAAAAAAAAQAAABpdGVtAAAGAAgABgAGAAAAAAABAHT///8AAAACEAAAACQAAAAEAAAAAAAAAAgAAABzaGFyZF9pZAAAAAAIAAwACAAHAAgAAAAAAAABIAAAALD///8AAAAFEAAAABgAAAAEAAAAAAAAAAQAAAB0ZXh0AAAAAJz////Y////AAAABRAAAAAYAAAABAAAAAAAAAAFAAAAdGl0bGUAAADE////EAAUAAgAAAAHAAwAAAAQABAAAAAAAAAFEAAAACAAAAAEAAAAAAAAAAoAAABwYXNzYWdlX2lkAAAEAAQABAAAAA==
message schema {
  REQUIRED BYTE_ARRAY passage_id (STRING);
  REQUIRED BYTE_ARRAY title (STRING);
  REQUIRED BYTE_ARRAY text (STRING);
  REQUIRED INT32 shard_id;
  REQUIRED group embedding (LIST) {
    REPEATED group list {
      OPTIONAL FLOAT item;
    }
  }
}

EDIT: I tried changing the name from item to element via pyarrow's use_compliant_nested_type=True but that didn't fix the issue so it might be something else.

@AlJohri
Copy link
Author

AlJohri commented Feb 4, 2023

I figured out the issue! It has to do with --json flag:

❯ pqrs head -n1 output.parquet  
{passage_id: "asdjfaslkdfasf", title: "adsfasdf", text: "asdfasdfadf", shard_id: 0, embedding: [1,2,3,4]}

❯ pqrs head -n1 --json output.parquet
Error: ParquetError(ArrowError("creating ListArrayReader with type FixedSizeList(Field { name: \"item\", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }, 256) should be unreachable"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant