Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(csharp/src/Apache.Arrow.Adbc): correct StandardSchemas.ColumnSchema data types #1731
fix(csharp/src/Apache.Arrow.Adbc): correct StandardSchemas.ColumnSchema data types #1731
Changes from 1 commit
567aa6c
844df7f
88491e7
fd0fac5
caca299
d09c8fa
8c88186
6b891c0
a4bdf6d
d46e982
13e7b73
28d2a84
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 32 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The summary seems underspecified for a public function. I can't tell from the text what it does or what I need to pass to it to make it work.
Is this functionality which should be in the core Arrow library?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I believe this should likely be included in the Arrow library. Not sure of it proper placement in the namespace, yet.
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 40 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 60 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 60 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 60 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 88 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 113 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 113 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 113 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 121 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 121 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 121 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
Check warning on line 128 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# ubuntu-latest
Check warning on line 128 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# windows-2019
Check warning on line 128 in csharp/src/Apache.Arrow.Adbc/Extensions/ListArrayExtensions.cs
GitHub Actions / C# macos-latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does a very superficial comparison of types. For instance, it doesn't check the precision and scale of decimals, length of a fixed-size list, the units of dates, times or intervals, whether or not a union is dense or sparse, the name or nullability of a field, etc. That seems mostly okay for an internal method being used privately against a relatively-known schema, but problematic for a public function that's being exported for anyone to use.
How many of the gaps in the above list are features (for this particular use case) rather than flaws? Should this be standard functionality in the core Arrow library? It seems to overlap with what the (internal) class ArrayDataTypeComparer does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to use the existing class, if it were exposed. I could also make this better and more rigorous, if you believe it might be used outside of its current context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected data types.