-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-984: [GLib] Add Go examples #661
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
Conversation
| } | ||
|
|
||
| recordBatch := arrow.NewRecordBatch(schema, 4, columns) | ||
| writer.WriteRecordBatch(recordBatch) |
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.
Can this return an error?
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 added error checks for them by #666.
wesm
left a comment
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.
+1, very cool
|
I'm interested to start a native Go implementation, since this will only run on Linux, right? |
It'll be useful because it'll be faster and provide more Go style API than GLib bindings based bindings. Maintaining the implementation may be a problem.
It's not right. The GLib bindings and bindings based on the GLib bindings can work on Linux, macOS and Windows. At least Ruby bindings can work on them. I'm developing GTK+ bindings with GObject Introspection. (gtk3 gem) The bindings can work on Linux, macOS and Windows. But installing from source will be difficult for users. We need to provide packages for easy to use. For macOS, it's better that we send a pull request to Homebrew. For Windows, it's better that we build binary and make it downloadable. I'm doing it by cross-compiling on my Debian GNU/Linux machine for gtk3 gem. |
|
Ah that's good to know about GLib. I would like to make a minimal implementation for Go that can read and write the streaming format and provide access to the raw buffers. I am not sure when I will have the time though =) Probably not until 2018... It will also need to provide binaries for integration testing. Quite a bit of work; if we can recruit some developres from the Go community (like users or developers of InfluxDB or another database written in Go) that might be a good place to start |
Author: Kouhei Sutou <kou@clear-code.com> Closes apache#661 from kou/glib-example-go and squashes the following commits: 22e35cb [Kouhei Sutou] [GLib] Add Go examples
## What's Changed Instead of repeatedly trying to access locations which have failed before, cache them and move them to the end of the list of locations to attempt on subsequent accesses. This provides a better user experience for Flight SQL services that return multiple locations in the expectation that the user may not be able to access some of them (but would have a better experience if they are). Requires apache#494. Closes apache#661.
No description provided.