Skip to content

Conversation

@aiguofer
Copy link
Contributor

@aiguofer aiguofer commented Oct 18, 2023

Making necessary changes in Java to expose the newly added app_metadata.

@aiguofer aiguofer requested a review from lidavidm as a code owner October 18, 2023 19:27
@github-actions
Copy link

⚠️ GitHub issue #38022 has been automatically assigned in GitHub to PR creator.

* @param appMetadata (optional) Application metadata associated with this endpoint.
* @param locations The possible locations the stream can be retrieved from.
*/
public FlightEndpoint(Ticket ticket, Instant expirationTime, String appMetadata, Location... locations) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I add a constructor for FlightEndpoint(Ticket ticket, String appMetadata, Location... locations)?

Copy link
Member

Choose a reason for hiding this comment

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

We can omit that. A builder could be added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to private and added builder.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 18, 2023
@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Oct 18, 2023
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Oct 19, 2023
* @param appMetadata (optional) Application metadata associated with this endpoint.
* @param locations The possible locations the stream can be retrieved from.
*/
public FlightEndpoint(Ticket ticket, Instant expirationTime, String appMetadata, Location... locations) {
Copy link
Member

Choose a reason for hiding this comment

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

We can omit that. A builder could be added.

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting change review Awaiting change review labels Oct 20, 2023
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Oct 20, 2023
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Oct 23, 2023
@lidavidm
Copy link
Member

You'll want to rebase again, also unskip Java here:

Scenario(
"app_metadata_flight_info_endpoint",
description="Ensure support FlightInfo and Endpoint app_metadata",
skip_testers={"JS", "C#", "Rust", "Java"}
),

@lidavidm
Copy link
Member

Ah, sorry - then you need to implement the integration test scenario for Java to do the same thing as Go/C++: add an AppMetadataFlightInfoEndpointScenario.java at https://github.com/apache/arrow/tree/main/java/flight/flight-integration-tests/src/main/java/org/apache/arrow/flight/integration/tests following appMetadataFlightInfoEndpointScenarioTester in Go (

type appMetadataFlightInfoEndpointScenarioTester struct {
)

@aiguofer
Copy link
Contributor Author

No worries! Started on this but the java setup is quite different.

For the Producer, should I extend IntegrationProducer or NoOpFlightProducer? I've seen instances of both (and then there's FlightSqlScenarioProducer which implements the whole thing).

@lidavidm
Copy link
Member

Start with NoOpFlightProducer here. IntegrationProducer should probably be renamed since it's specific to the roundtrip integration tests

@aiguofer
Copy link
Contributor Author

aiguofer commented Oct 24, 2023

Something interesting I noticed from the Go test... the Ticket on the FlightEndpoint can be null? Should I change the builder to accommodate (make another builder method taking only a potential list of endpoints).

@lidavidm
Copy link
Member

the Ticket on the FlightEndpoint can be null

It's Protobuf, so any field can be omitted, but this is the same as having a ticket whose value is an empty string. I don't think we need to expose this separately in other languages.

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

Thank you!

@lidavidm lidavidm merged commit 57f643c into apache:main Oct 26, 2023
@lidavidm lidavidm removed the awaiting merge Awaiting merge label Oct 26, 2023
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 57f643c.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them.

loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…nd FlightEndpoint (apache#38331)

Making necessary changes in Java to expose the newly added app_metadata.
* Closes: apache#38022

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…nd FlightEndpoint (apache#38331)

Making necessary changes in Java to expose the newly added app_metadata.
* Closes: apache#38022

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…nd FlightEndpoint (apache#38331)

Making necessary changes in Java to expose the newly added app_metadata.
* Closes: apache#38022

Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java][FlightRPC] Expose app_metadata for FlightInfo and FlightEndpoint

2 participants