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

Exception when reading arrow stream (Value cannot be null. Parameter('name')) #25

Open
NRHelmi opened this issue Sep 8, 2022 · 3 comments
Labels

Comments

@NRHelmi
Copy link
Contributor

NRHelmi commented Sep 8, 2022

Apache arrow csharp library seems to have an issue when reading specific arrow streams, I was able to reproduce this behavior using this query

value type MyType = Int, Int
def output = ^MyType[1, 2]

Exception

Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'name')
   at Apache.Arrow.Field..ctor(String name, IArrowType dataType, Boolean nullable)
   at Apache.Arrow.Ipc.MessageSerializer.FieldFromFlatbuffer(Field flatbufField, DictionaryMemo& dictionaryMemo)
   at Apache.Arrow.Ipc.MessageSerializer.FieldFromFlatbuffer(Field flatbufField, DictionaryMemo& dictionaryMemo)
   at Apache.Arrow.Ipc.MessageSerializer.GetSchema(Schema schema, DictionaryMemo& dictionaryMemo)
   at Apache.Arrow.Ipc.ArrowStreamReaderImplementation.<ReadSchema>b__11_0(Memory`1 buff)
   at Apache.Arrow.Ipc.ArrowStreamReaderImplementation.ReadSchema()
   at Apache.Arrow.Ipc.ArrowStreamReaderImplementation.ReadRecordBatch()
   at Apache.Arrow.Ipc.ArrowStreamReaderImplementation.ReadNextRecordBatch()
   at Apache.Arrow.Ipc.ArrowStreamReader.ReadNextRecordBatch()

As far as I do understand the library is complaining about field name being null here, while I was able to read the same binary file using apache arrow for golang and python libraries
I created an issue apache arrow side waiting for guidance/fix
https://issues.apache.org/jira/browse/ARROW-17644

related: #21

cc: @bradlo @larf311 @NHDaly

@NRHelmi
Copy link
Contributor Author

NRHelmi commented Sep 14, 2022

The query below run without issue

value type MyType = Int, String
def output = ^MyType[1, "foo"]

This makes me feel that probably we are missing something for value types with similar sub types 🤔

@NRHelmi
Copy link
Contributor Author

NRHelmi commented Oct 3, 2022

@bradlo bradlo added type:bug Something isn't working component:rai-sdk-csharp labels Oct 5, 2022
@billscheidel-rai
Copy link

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-6829.

This link is only accessible to employees of RelationalAI.

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

No branches or pull requests

3 participants