forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-36954: [Python] Add more FlightInfo / FlightEndpoint attribu…
…tes (apache#43537) ### Rationale for this change The C++ classes `FlightInfo` and `FlightEndpoint` have attributes that are not available via the Python API. ### What changes are included in this PR? Make the following attributes available in Python: - `FlightInfo.ordered` - `FlightInfo.app_metadata` - `FlightEndpoint.expiration_time` - `FlightEndpoint.app_metadata` Also makes existing attributes optional in constructor: - `FlightInfo.total_records` - `FlightInfo.total_bytes` ### Are these changes tested? Existing tests that test existing attributes are extended. ### Are there any user-facing changes? Yes, changes are backward compatible. * GitHub Issue: apache#36954 Lead-authored-by: Enrico Minack <[email protected]> Co-authored-by: Adam Reeve <[email protected]> Co-authored-by: Joris Van den Bossche <[email protected]> Co-authored-by: David Li <[email protected]> Signed-off-by: David Li <[email protected]>
- Loading branch information
1 parent
32de498
commit b193c4f
Showing
10 changed files
with
307 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# distutils: language = c++ | ||
|
||
|
||
cdef extern from "<chrono>" namespace "std::chrono::system_clock": | ||
cdef cppclass time_point: | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.