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

Add FlightSQL module docs and links to arrow-flight crates #4012

Merged
merged 6 commits into from
Apr 4, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 3, 2023

Which issue does this PR close?

re #3887

Rationale for this change

While waiting for CI to run on #3887 I spent some time writing docs to make it easier to understand what is going on / what we have in this crate.

What changes are included in this PR?

  1. Add a breadcrumb to arrow-flight to point at the sql feature.
  2. Add module documentation to arrow-flight sql with some orienting text and pointers

Are there any user-facing changes?

more docs

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Apr 3, 2023
@alamb alamb force-pushed the alamb/update_docsss branch from 4a34d30 to b3841e1 Compare April 3, 2023 19:11
@alamb alamb changed the title Alamb/update docsss Add FlightSQL module docs and links to arrow-flight crates Apr 3, 2023
@alamb alamb requested a review from avantgardnerio April 3, 2023 19:16
@@ -30,6 +30,11 @@
//!
//! 2. Low level [tonic] generated [`flight_service_client`] and
//! [`flight_service_server`].
//!
//! 3. Experimental support for [Flight SQL] in [`sql`]. Requires the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to make this not experimental BTW. It's just a struct and impl in a library AFAIK, so it shouldn't hurt anyone.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we were just trying to give people the heads up that we would likely be making substantial changes to the API -- but then we do that with other parts of arrow, so maybe the extra "experimental" part is unecessary.

What do you think @tustvold / @viirya -- should we rename the feature flag from experimental (and maybe turn it on by default?)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did we get to with an integration test of FlightSQL? I think that would help justify graduating this functionality perhaps?

I'm somewhat apprehensive there may still be areas we have interpreted the specification differently, one was fixed last week. The experimental flag allows us to "fix" such things without needing to preserve backwards compatibility

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The experimental flag allows us to "fix" such things without needing to preserve backwards compatibility

Well, I guess I was thinking we break backwards compatibility fairly regularly (as in there are several API changes per release)

So it isn't like I think the flight sql feature is fully ready and the API won't change -- more like I wonder if we should treat it specially from the rest of arrow-flight

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backwards compatibility fairly 

We break Rust API compatibility for sure, protocol compatibility is a different beast imo, as providing an incremental migration story becomes very important for upgrades to actually be possible

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see -- you are perhaps imagining that the FlightSQL protocol itself may change, not just the rust implementation. The spec is marked as experimental in many places. 🤷

https://github.com/apache/arrow/blob/ad115be1214b13ce393537bdb9c34ae919e4997f/format/FlightSql.proto#LL46

Copy link
Contributor

@avantgardnerio avantgardnerio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unquestionably an improvement, ty :)

arrow-flight/src/sql/mod.rs Outdated Show resolved Hide resolved
@@ -15,6 +15,26 @@
// specific language governing permissions and limitations
// under the License.

//! Support for execute SQL queries using [Apache Arrow] [Flight SQL].
//!
//! [Flight SQL] is built on top of Arrow Flight RPC framework, by
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be easier to read if the link anchors were moved to the end

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea -- done in 7c8f3e1

@alamb alamb merged commit 7bac07a into apache:master Apr 4, 2023
@alamb alamb deleted the alamb/update_docsss branch April 4, 2023 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants